Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It can't hook back to gitlab-ci, because gitlab-ci returns a 500 #21

Open
renemeye opened this issue Oct 29, 2015 · 2 comments
Open

It can't hook back to gitlab-ci, because gitlab-ci returns a 500 #21

renemeye opened this issue Oct 29, 2015 · 2 comments

Comments

@renemeye
Copy link

I am using a real simple .gitlab-ci.yml file for a simple deployment. I got two problems and I am not sure if they are related.

  1. gcr can't checkout the repository stderr fatal: reference is not a tree: e3b686f6d6a3aedefba9b6dde23ab09edc71bb72
  2. It can't hook back to gitlab-ci, because gitlab-ci returns a 500

.gitlab-ci.yml:

job1:
  script: "ssh [email protected]; cd /to/a/path; git pull"

gcr is running in foreground.
Here is the output with log level silly:

gcr verb [client] no builds found
gcr info [client] checking for builds...
gcr http 201 https://server.url/ci/api/v1/builds/register.json
gcr verb [builder] cmd [ 'reset', '--hard' ]
gcr info [client] submitting build 6 to coordinator...
gcr verb [client] update build 6 running
gcr http PUT https:/server.url/ci/api/v1/builds/6.json
gcr verb [response] {"message"=>"500 Internal Server Error"}
gcr http 500 https://server.url/ci/api/v1/builds/6.json
gcr verb [builder] cmd [ 'clean', '-fdx' ]
gcr info [client] submitting build 6 to coordinator...
gcr verb [client] update build 6 running
gcr http PUT https://server.url/ci/api/v1/builds/6.json
gcr verb [response] {"message"=>"500 Internal Server Error"}
gcr http 500 https://server.url/ci/api/v1/builds/6.json
gcr verb [builder] cmd [ 'remote',
gcr verb [builder]   'set-url',
gcr verb [builder]   'origin',
gcr verb [builder]   'https://gitlab-ci-token:[email protected]/gropu/project.git' ]
gcr info [client] submitting build 6 to coordinator...
gcr verb [client] update build 6 running
gcr http PUT https://server.url/ci/api/v1/builds/6.json
gcr verb [response] {"message"=>"500 Internal Server Error"}
gcr http 500 https://server.url/ci/api/v1/builds/6.json
gcr verb [builder] cmd [ 'fetch', 'origin' ]
gcr info [client] submitting build 6 to coordinator...
gcr verb [client] update build 6 running
gcr http PUT https://server.url/ci/api/v1/builds/6.json
gcr verb [response] {"message"=>"500 Internal Server Error"}
gcr http 500 https://server.url/ci/api/v1/builds/6.json
gcr verb [builder] cmd [ 'checkout', 'e3b686f6d6a3aedefba9b6dde23ab09edc71bb72' ]
gcr sill [builder] stderr fatal: reference is not a tree: e3b686f6d6a3aedefba9b6dde23ab09edc71bb72
gcr sill [builder]
gcr info [client] submitting build 6 to coordinator...
gcr verb [client] update build 6 failed
gcr http PUT https://server.url/ci/api/v1/builds/6.json
gcr verb [response] {"message"=>"500 Internal Server Error"}
gcr http 500 https://server.url/ci/api/v1/builds/6.json
gcr ERR! [runner] build failed [6]
gcr info [client] checking for builds...
gcr http 404 https://server.url/ci/api/v1/builds/register.json
gcr verb [client] no builds found
  • gcr is at v3.0.0
  • gitlab is at 8.0.4 8.1.2 (Update: Same behaviour on gitlab 8.1.2)

Could you give me some pointers please?

@renemeye
Copy link
Author

Update. The empty repository (1) seems to be this problem:
https://gitlab.com/gitlab-org/gitlab-ce/issues/2727
I will try fix this tonight.

The problem 2 (It can't hook back to gitlab-ci, because gitlab-ci returns a 500) still exists.

@renemeye renemeye changed the title it seems to have trouble cloning the repository It can't hook back to gitlab-ci, because gitlab-ci returns a 500 Oct 29, 2015
@evanlucas
Copy link
Owner

I'm not really sure that this is an issue in gcr. It looks to be more of an issue with gitlab-ci? Is it sending incorrect data to trigger the 500 status code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants