could not find a temporary directory from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/tmpdir.rb:35:in `tmpdir'

22 views
Skip to first unread message

Foo JH

unread,
Oct 25, 2020, 12:31:57 AM10/25/20
to go-cd
Running go-agent-20.8.0-12213 on FreeBSD 12.1-RELEASE. 
go-server runs fine. Go-agent was registered and enabled on the server dashboard.

Trying to do a simple git pull and node build I got the above error. 

Qn:
1. Where is the temporary directory defined for the embedded Ruby?
2. What other changes need to be applied to the agent other than the server url?

Ketan Padegaonkar

unread,
Oct 26, 2020, 7:10:02 AM10/26/20
to go...@googlegroups.com
Looking at the code, I can see the tmpdir module is sniffing around for possible temp dir locations that is writable and bailing out because it could not determine one.

Perhaps try setting variables TMPDIR/TMP/TEMP to a location that's writable by the gocd process.

- Ketan


--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/fbafd117-0492-4e97-8378-ac914cc0a5b3n%40googlegroups.com.

Foo JH

unread,
Oct 28, 2020, 10:54:56 AM10/28/20
to go-cd
Thanks for looking into the source and offering a solution. Will try.
Reply all
Reply to author
Forward
0 new messages