Closed wlsf82 closed 7 years ago
@wlsf82 Thank you so much for using this plugin for so long 😄
For the issue, can you please check and let me know if the go
user has the permissions to delete that directory? I have seen that happen when the permissions of some files in the working directory gets changed. That explains the fact why it started working once you clean the directory manually. Having said that cleanup_workspace: true
should have done the same thing else it should have failed.
Can you please check / share the pipeline stage run logs? It should have something like
[go] Cleaning working directory ... since stage is configured to clean working directory
@ashwanthkumar, this has been displayed, yes:
[go] Job Started: 2017-08-25 11:43:27 UTC
[go] Start to prepare appearin-pwa-pr/212/lint-and-unit-test/1/lint-and-unit-test on ip-xxx-xx-xx-xx [/var/lib/go-agent]
[go] Cleaning working directory "/var/lib/go-agent/pipelines/appearin-pwa-pr" since stage is configured to clean working directory
[go] Start to update materials.
Interaction with plugin with id 'github.pr' implementing 'scm' extension failed while requesting for 'checkout'. Reason: [The plugin sent a response that could not be understood by Go. Plugin returned with code '500' and the following response: '"Exception Occurred: [git, submodule, update] - /var/lib/go-agent/pipelines/appearin-pwa-pr/workspace"']
[go] Job completed appearin-pwa-pr/212/lint-and-unit-test/1/lint-and-unit-test on ip-xxx-xx-xx-xx [/var/lib/go-agent]
I'm not sure if it could be a permission issue since the go
user can run all the other pipelines.
The error seems to be a little different this time. First time it was failing on git clean
now it's failing on git submodule update
. If it's not too much trouble, can you please try running those command manually as go
user on the same folder? The output from the git
command would help me understand what's the error that's happening.
hrm, when running git submodule update
in the workspace manually I'm getting this: Username for 'https://github.com':
So, seems that this is the issue, right?
I may need to add some AWS policy on the agents to be able to fetch the submodule, right?
Ah! Yes, can you please check if you've configured the username / password for the material or if it's possible please consider moving to git's SSH URL.
Yeah, we use SSH URLs. I'll check that and will keep you posted.
The issue was that we were using the https URL for the submodule instead of the git@github.com:...
At appear.in we use GoCD with the github.pr plugin for almost a year, and in one of our projects we started to face the following issue when trying to run its pipeline:
Interaction with plugin with id 'github.pr' implementing 'scm' extension failed while requesting for 'checkout'. Reason: [The plugin sent a response that could not be understood by Go. Plugin returned with code '500' and the following response: '"Exception Occurred: [git, clean, -dff] - /var/lib/go-agent/pipelines/appearin-pwa-pr/workspace/node_modules-dev/appearin-jslib-commons"']
Below is the log from the agent:
It's worth mentioning that other projects/pipelines use the same git submodule referenced in the error, and they simply work.
Also, we noticed that deleting the workspace manually from the agent fixed the issue once, but we haven't done it again, but we tried setting
cleanup_workspace: true
in the stage of the pipeline, and this has not solved the issue.GoCD version: 17.7.0 Github Pull Requests Builder version: 1.3.3