Gitlab CI运行程序未生成或未显示任何输出 [英] Gitlab CI runner not building or showing any output

查看:664
本文介绍了Gitlab CI运行程序未生成或未显示任何输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我从Gitlab 7.x升级到8.0.4,几乎一切都进行得很顺利.在升级之前,我一直在使用CI,而升级后必须迁移或重新开始.我选择重新开始,因为我只有一个项目.

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.

我多次添加了一个新的shell运行程序(同时尝试了gitlab-ci-multi-runner和gitlab-runner),并且注册成功,并且运行程序显示它在Web控制台中处于活动状态.但是,当我尝试构建代码时,浏览器中唯一的输出是黑色的控制台",旋转器永远运行.

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.

推荐答案

我终于找到了答案.看来是权限问题.我相信这与历史有关.根据 https://gitlab.com/gitlab-org/gitlab -ci-multi-runner/issues/187 我只是删除了/var/opt/gitlab/gitlab-ci/builds中的文件,因为我不在乎历史.

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.

这篇关于Gitlab CI运行程序未生成或未显示任何输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆