Giter Club home page Giter Club logo

Comments (12)

twang2218 avatar twang2218 commented on June 5, 2024

我这里看到的是好的呀。

2017-01-10 23 49 29

from gitlab-ce-zh.

maikebing avatar maikebing commented on June 5, 2024

注册一个账号

from gitlab-ce-zh.

maikebing avatar maikebing commented on June 5, 2024

点了注册后

from gitlab-ce-zh.

twang2218 avatar twang2218 commented on June 5, 2024

嗯,我在 https://gitclub.cn 上注册了一个账户,确实重定向后是空白页。从客户端跟踪了一下,发现服务端返回的内容是 400 Bad Request 内容为空:

HTTP/1.1 400 Bad Request
Server: nginx/1.6.2
Date: Tue, 10 Jan 2017 14:24:21 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 0
Connection: keep-alive
X-Request-Id: 72443c8a-cdb2-46ea-85e7-d32174f864e8
X-Runtime: 3.036429

因此进一步的信息应该查看你服务器的日志。

我本地 docker run -P twang2218/gitlab-ce-zh:8.15.3 后,可以注册用户,在我这里 /users 返回的是 302

HTTP/1.1 302 Found
Server: nginx
Date: Tue, 10 Jan 2017 14:19:09 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 107
Connection: keep-alive
Cache-Control: no-cache
Location: http://localhost:32769/dashboard/projects
Set-Cookie: request_method=POST; path=/
Set-Cookie: _gitlab_session=668fbd1b9c5e90edcfea1a07671a4c50; path=/; HttpOnly
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Request-Id: 8275eaa3-0236-4da0-81e9-d09cc152d569
X-Runtime: 0.445970
X-Ua-Compatible: IE=edge
X-Xss-Protection: 1; mode=block

一方面你查一下服务器日志,另一方面,你看能不能找到一个可以让我本地重现这个问题的办法。

from gitlab-ce-zh.

maikebing avatar maikebing commented on June 5, 2024
==> /var/log/gitlab/gitlab-rails/production.log <==
Completed 500 Internal Server Error in 3030ms (ActiveRecord: 6.0ms)

ActionController::ParameterMissing (param is missing or the value is empty: user):
  app/controllers/registrations_controller.rb:60:in `sign_up_params'
  app/controllers/registrations_controller.rb:68:in `resource'
  app/views/devise/shared/_signup_box.html.haml:3:in `_app_views_devise_shared__signup_box_html_haml__4519254100422264913_70253222314360'
  app/views/devise/registrations/new.html.haml:2:in `_app_views_devise_registrations_new_html_haml__1619682086775940562_70253163162760'
  app/controllers/registrations_controller.rb:22:in `create'
  lib/gitlab/middleware/multipart.rb:93:in `call'
  lib/gitlab/request_profiler/middleware.rb:15:in `call'
  lib/gitlab/middleware/go.rb:16:in `call'

from gitlab-ce-zh.

maikebing avatar maikebing commented on June 5, 2024
==> /var/log/gitlab/gitlab-workhorse/current <==
2017-01-11_02:49:06.81367 gitclub.cn @ - - [2017-01-11 02:49:03.773111155 +0000 UTC] "POST /users HTTP/1.1" 400 0 "https://gitclub.cn/users/sign_in?redirect_to_referer=yes" "Mozilla/5.0 (Windows NT 10.0.14393; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2950.5 Safari/537.36" 3.040433

==> /var/log/gitlab/nginx/gitlab_access.log <==
192.168.0.1 - - [11/Jan/2017:02:49:06 +0000] "POST /users HTTP/1.0" 400 0 "https://gitclub.cn/users/sign_in?redirect_to_referer=yes" "Mozilla/5.0 (Windows NT 10.0.14393; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2950.5 Safari/537.36"

from gitlab-ce-zh.

maikebing avatar maikebing commented on June 5, 2024

没搞清楚这个错在哪了。

from gitlab-ce-zh.

maikebing avatar maikebing commented on June 5, 2024
Processing by SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"SMl+BN2zMhPVg086UO3OTkDtrLs12eBRyKadeNXgjGi8mCI8hskatLGrrlFpkuEvUwTpaO8pxBUlymRgo8kEjw==", "user"=>{"login"=>"maikebing", "password"=>"[FILTERED]", "remember_me"=>"0"}}
Redirected to https://gitclub.cn/explore/projects

from gitlab-ce-zh.

twang2218 avatar twang2218 commented on June 5, 2024

@maikebing 你给的这几个日志都没有办法帮助排障。第一个是 500 Internal Server Error 内部错误,跟之前提到的 400 Bad Request 没关系。接着的两部分只是访问日志,也没有错误信息。最后这个也不是报错。

要么你就把日志完整的放到 https://gist.github.com/ 上,然后贴个链接过来;要么你给出一个最小配置可以重现你的问题的,让我这里可以重现问题。否则没法重现问题就没法排障。

另外,GitHub 支持 Markdown 语法,请使用 Markdown 语法来描述问题,特别是需要贴代码、日志的地方。

from gitlab-ce-zh.

maikebing avatar maikebing commented on June 5, 2024

是开启了

垃圾与防机器人保护

的原因

from gitlab-ce-zh.

twang2218 avatar twang2218 commented on June 5, 2024

哦,你是说 Google reCAPTCHA 开启后出故障?是配置问题,还是说这是一个 bug?现在是修复这个问题了么?

from gitlab-ce-zh.

maikebing avatar maikebing commented on June 5, 2024

我把 reCAPTCHA 关闭了就正常了。 应该不是配置问题。 我只是把reCAPTCHA 关了 , 然后就正常了。

from gitlab-ce-zh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.