Web无法登录,Git可以正常提交代码


#1

Web管理网站能打开。但是在点登录后是以下提示。然后无限等待直到web超时。用Git正常提交代码。服务器是局域网环境,系统centos7。

2018/02/05 15:58:28 [TRACE] Template: user/dashboard/dashboard
2018/02/05 15:58:42 [TRACE] Session ID: 652b558dba3388d9
2018/02/05 15:58:42 [TRACE] CSRF Token: h46O4mcCuBb2w2h7W-fB4HbhZGg6MTUxNzc4NTk4MTUyMzc5NDc0Ng==
2018/02/05 15:58:48 [TRACE] Session ID: 6b07fc18ccb4c500
2018/02/05 15:58:48 [TRACE] CSRF Token: 06F-QkcUOMoXOe6t1QvjdSpGx3Q6MTUxNzgxNzUyODYzODcxNDUyNA==
2018/02/05 15:58:48 [TRACE] Session ID: b5b6198a0b8723d2
2018/02/05 15:58:48 [TRACE] CSRF Token: lBiu4dd-LQZ6_Bvwafp0DYNanqg6MTUxNzgxNzUyODcwMzg3MjI3Ng==
2018/02/05 15:58:48 [TRACE] HTTPGit - Authenticated user: liwei
2018/02/05 15:58:50 [ WARN] AvatarLink.LibravatarService.FromEmail [442528906@qq.com]: lookup _avatars-sec._tcp.qq.com on 8.8.4.4:53: read udp 192.168.1.222:39342->8.8.4.4:53: i/o timeout
2018/02/05 15:58:50 [TRACE] Template: user/dashboard/dashboard
2018/02/05 15:58:54 [ WARN] AvatarLink.LibravatarService.FromEmail [442528906@qq.com]: lookup _avatars-sec._tcp.qq.com on 8.8.4.4:53: read udp 192.168.1.222:37720->8.8.4.4:53: i/o timeout
2018/02/05 15:59:08 [ WARN] AvatarLink.LibravatarService.FromEmail [442528906@qq.com]: lookup _avatars-sec._tcp.qq.com on 8.8.4.4:53: read udp 192.168.1.222:50278->8.8.4.4:53: i/o timeout
2018/02/05 15:59:22 [ WARN] AvatarLink.LibravatarService.FromEmail [442528906@qq.com]: lookup _avatars-sec._tcp.qq.com on 8.8.4.4:53: read udp 192.168.1.222:41792->8.8.4.4:53: i/o timeout


#2

看上去是邮件发送的域名解析失败,把git的邮件发送功能先屏蔽,如果可以,尝试修改下dns,再恢复邮件发送功能


#3

禁用 Gravatar 或者启用离线模式就好啦 OFFLINE_MODE = true.