Gogs安装错误

时间:2017-10-07 12:15:40

标签: git nginx centos7 failed-installation gogs

环境 操作系统: Centos7

小组: VestaCP(Nginx)

域名: my.exgitrepo.com(本地)

IP: 192.168.1.13(本地) 用户:管理员

在我的/home/admin/my.exgitrepo.com/public_html/我下载了gogs二进制文件,解压缩并运行var myDate = new Date('2017-10-06 05:11:53 UTC') console.log(myDate) var myDate1 = new Date('2017-10-07T12:07:06.694Z') console.log(myDate1) var difference = myDate.getSeconds() - myDate1.getSeconds() console.log(`Seconds passed: ${difference}`)

使用应用程序网址./gogs web和域http://my.exgitrepo.com:3000/

填写 my.exgitrepo.com:3000 上的表单

按安装浏览器时显示my.exgitrepo.com

和控制台

ERR_EMPTY_RESPONSE

单击安装时的响应如下

[admin@271-appdevelopment-box public_html]$ ./gogs web
2017/10/07 17:33:01 [ WARN] Custom config '/home/admin/web/my.exgitrepo.com/public_html/custom/conf/app.ini' not found, ignore this if you're running first time
2017/10/07 17:33:01 [TRACE] Custom path: /home/admin/web/271.git.com/public_html/custom
2017/10/07 17:33:01 [TRACE] Log path: /home/admin/web/271.git.com/public_html/log
2017/10/07 17:33:01 [TRACE] Log Mode: Console (Trace)
2017/10/07 17:33:01 [ INFO] Gogs 0.11.29.0727
2017/10/07 17:33:01 [ INFO] Cache Service Enabled
2017/10/07 17:33:01 [ INFO] Session Service Enabled
2017/10/07 17:33:01 [ INFO] SQLite3 Supported
2017/10/07 17:33:01 [ INFO] Run Mode: Development
2017/10/07 17:33:01 [ INFO] Listen: http://0.0.0.0:3000
[Macaron] 2017-10-07 17:33:19: Started GET / for 192.168.1.131
[Macaron] 2017-10-07 17:33:19: Completed GET / 302 Found in 288.498µs
2017/10/07 17:33:19 [TRACE] Session ID: e39a6882496f8db1
2017/10/07 17:33:19 [TRACE] CSRF Token: GbC454VgjEUCw1Ry_do3P2GkXcU6MTUwNzM3Nzc5OTA1MzYxOTgxMQ==
[Macaron] 2017-10-07 17:33:19: Started GET /install for 192.168.1.131
2017/10/07 17:33:19 [TRACE] Session ID: e39a6882496f8db1
2017/10/07 17:33:19 [TRACE] CSRF Token: GbC454VgjEUCw1Ry_do3P2GkXcU6MTUwNzM3Nzc5OTA1MzYxOTgxMQ==
2017/10/07 17:33:19 [TRACE] Template: install
[Macaron] 2017-10-07 17:33:19: Completed GET /install 200 OK in 35.710305ms

我可以看到用表格和日志文件创建的数据库是空的。

1 个答案:

答案 0 :(得分:1)

经过几个小时的调试后,我发现这是一个公共文件夹权限的问题。

{{1}}

gogs ,控制台输出由于权限而挂起,并且没有显示有关权限问题的输出。