Mac agent is not connecting to gocd server

11 views
Skip to first unread message

Manojsai katakam

unread,
Mar 24, 2023, 5:39:24 PM3/24/23
to go...@googlegroups.com
Hi , 

I'm able to connect to the server if I run go-agent service with sudo(sudo ./bin/go-agent start)  But failing when running without sudo (./bin/go-agent start). 
go-agent service was started without sudo but token & guid.txt are not being created in ./config/ directory. 

Our requirement is to connect mac agent without using sudo to start the go-agent service. 

Can anyone help us with this?  
Thanks in advance. 

Go-agent bootstrapper logs - 
at org.tanukisoftware.wrapper.WrapperJarApp.run(WrapperJarApp.java:451)
at java.base/java.lang.Thread.run(Thread.java:834)
Suppressed: java.lang.NullPointerException: null
at com.thoughtworks.go.agent.bootstrapper.DefaultAgentLauncherCreatorImpl.close(DefaultAgentLauncherCreatorImpl.java:125)
at com.thoughtworks.go.agent.bootstrapper.AgentBootstrapper.go(AgentBootstrapper.java:72)
... 15 common frames omitted
Caused by: java.nio.file.AccessDeniedException: data/68b41ed79ec93050-agent-launcher.jar
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixCopyFile.copyFile(UnixCopyFile.java:248)


Thanks & Regards,
Manoj K
Reply all
Reply to author
Forward
0 new messages