2017-10-07 4 views
2

Environment OS: Centos7Gogs Installation Fehler

Panel: VestaCP (Nginx).

Domain: my.exgitrepo.com (lokal)

IP: 192.168.1.13 (lokal) Benutzer: Admin

In meinem /home/admin/my.exgitrepo .com/public_html/i heruntergeladen gogs binär, es entpacken und ausführen ./gogs web

Gefüllt Formen auf my.exgitrepo.com:3000 mit Anwendungs-URL http://my.exgitrepo.com:3000/ und Domain my.exgitrepo.com

Wenn drücken Browser ERR_EMPTY_RESPONSE

Und Konsole

[[email protected] 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 

Unten Antwort installieren sagt, wenn sie auf

installieren geklickt
[Macaron] 2017-10-07 17:38:21: Started POST /install for 192.168.1.131 
2017/10/07 17:38:21 [TRACE] Session ID: e39a6882496f8db1 
2017/10/07 17:38:21 [TRACE] CSRF Token: GbC454VgjEUCw1Ry_do3P2GkXcU6MTUwNzM3Nzc5OTA1MzYxOTgxMQ== 
2017/10/07 17:38:23 [TRACE] Custom path: /home/admin/web/my.exgitrepo.com/public_html/custom 
2017/10/07 17:38:23 [TRACE] Log path: /home/admin/web/my.exgitrepo.com/logs 
2017/10/07 17:38:23 [TRACE] Log Mode: File (Trace) 
2017/10/07 17:38:23 [ INFO] Gogs 0.11.29.0727 

kann ich sehen, Datenbank mit Tabellen erstellt und Protokolldateien sind leer.

Antwort

1

Nach dem Debuggen paar Stunden kam ich mit Erlaubnis des öffentlichen Ordners ist das Problem kennen.

chown admin:admin -R /home/admin/web/my.exgitrepo.com/public_html/public/ 

gogs, zeigen aufgrund von Berechtigungen hängt Konsole ausgegeben und keine Ausgabe über Berechtigungsproblem.