【问题标题】:Gitlab and Gitlab CI CSRF errorGitlab 和 Gitlab CI CSRF 错误
【发布时间】:2014-04-25 06:15:11
【问题描述】:

我正在尝试在 Debian 的内部网络上使用 gitlab CI 设置 gitlab。 我正在使用 Gitlab 6.7.3 abd gitlab ci 4.3。 Gitlab 在自签名 ssl 上。

在我尝试开始构建之前,一切似乎都很好。两个系统都已连接并自动设置令牌。

当我提交到存储库时,构建在 gitlab CI 中显示为“待处理”,并且在日志中我可以看到:

Started POST "/projects/1/build?token=d18e0fea59ae4d40327f9cc11d2793" for 127.0.0.1 at 2014-04-25 05:38:02 +0000
Processing by ProjectsController#build as HTML
  Parameters: {"before"=>"0000000000000000000000000000000000000000", "after"=>"437d8dddd2de6c3329ca58808fd08b4557f8b3af", "ref"=>"refs/heads/master", "user_id"=>3, "user_name"=>"Pokluda, Vaclav", "project_id"=>1, "repository"=>{"name"=>"test", "url"=>"git@mobile-gitlab.dev:Vaclav.Pokluda/test.git", "description"=>"", "homepage"=>"https://mobile-gitlab.dev/Vaclav.Pokluda/test"}, "commits"=>nil, "total_commits_count"=>0, "token"=>"d18e0fea59ae4d40327f9cc11d2793", "id"=>"1", "project"=>{}}
Can't verify CSRF token authenticity
Completed 201 Created in 15ms (ActiveRecord: 1.6ms)

有什么建议吗?

【问题讨论】:

    标签: csrf gitlab gitlab-ci


    【解决方案1】:

    我猜你可能遇到了和我一样的错误,https://gitlab.com/gitlab-org/omnibus-gitlab/issues/761

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-15
      • 1970-01-01
      • 2018-06-02
      • 1970-01-01
      • 1970-01-01
      • 2022-10-21
      • 2020-04-02
      • 1970-01-01
      相关资源
      最近更新 更多