Gitlab CI runner not building or showing any output

北慕城南 提交于 2019-12-23 15:51:24

问题


Yesterday I upgraded from Gitlab 7.x to 8.0.4 and almost everything went smoothly. I was using the CI before without issue and after the upgrade had to migrate or start fresh. I chose to start fresh since I only had one project.

I have added a new shell runner (tried both gitlab-ci-multi-runner and gitlab-runner) multiple times and registration is successful and the runner shows it's active in the web console. But when I try to build my code the only output in the browser is the black "console" with the spinner running forever.

If I check the files in my shell I can see the code was successfully checked out but I can't tell if any of the build script was executed or not.

I'm not sure what logs I can check as everything I've found doesn't seem to help.


回答1:


I finally found an answer. It looks like a permission problem. I believe it has to with the history. As per https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/187 I just removed the files in /var/opt/gitlab/gitlab-ci/builds as I didn't care about the history.



来源:https://stackoverflow.com/questions/33117261/gitlab-ci-runner-not-building-or-showing-any-output

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!