错误现象:

使用命令“sudo gitlab-ctl tail ”,查看控制台日志,有如下错误信息:

URI::InvalidURIError (URI::InvalidURIError):
  lib/gitlab/proxy_http_connection_adapter.rb:14:in `connection'
  app/services/web_hook_service.rb:73:in `make_request'
  app/services/web_hook_service.rb:26:in `execute'
  app/models/hooks/web_hook.rb:10:in `execute'
  app/services/test_hooks/base_service.rb:22:in `block in execute'
  app/services/test_hooks/base_service.rb:19:in `catch'
  app/services/test_hooks/base_service.rb:19:in `execute'
  app/controllers/projects/hooks_controller.rb:41:in `test'
  lib/gitlab/i18n.rb:47:in `with_locale'
  lib/gitlab/i18n.rb:53:in `with_user_locale'
  app/controllers/application_controller.rb:325:in `set_locale'
  lib/gitlab/middleware/multipart.rb:95:in `call'
  lib/gitlab/request_profiler/middleware.rb:14:in `call'
  lib/gitlab/middleware/go.rb:17:in `call'
  lib/gitlab/etag_caching/middleware.rb:11:in `call'
  lib/gitlab/middleware/read_only.rb:31:in `call'
  lib/gitlab/request_context.rb:18:in `call'

gitlab页面提示:
在这里插入图片描述

在点击“push events”进行测试jenkins时,出现上图,是因为gitlab没有打开一项权限,做如下设置即可:

解决方案

1、用root用户登录gitlab,点击admin area:
在这里插入图片描述
2、点击“settings”,拉到最下方,将这一项勾上,保存退出,再次测试即可成功
在这里插入图片描述

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐