Hello Chris, This appears to be a permissions issue rather than anything specific to GoCD.
I recommend logging on to the Agent and manually running the script as the GoCD user (via sudo or su). From there you should be able to troubleshoot the permissions error. Once the script runs properly when run locally on the Agent, the Pipeline should also run without issue. Hope this helps, Jason Smyth On Wednesday, 29 June 2022 at 12:21:49 UTC-4 Chris wrote: > Hello > > I face the following issue using gocd, with my gocd agent: > > My app is containerized [docker] and needs to log via bind mount. The app > cannot log in the sandbox, as it does not have permissions to the log > directory. > > I would like the app to be copied out from the sandbox, into > /home/ubuntu/app , where it would have permissions to write to it's log > directory. > > Nothing has worked out so far, including trying to force permissions to > 777 to the directory, and I always get the following error message: > > cp: failed to access '/home/ubuntu/app': Permission denied > deployment/dev/deploy.sh: line 2: cd: /home/ubuntu/app: Permission denied > > Deploy script: > cp -r app/. /home/ubuntu/app > cd /home/ubuntu/app > make start > > Thank you! > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/258d0702-6683-4143-9723-77e85d5e4d2en%40googlegroups.com.
