Gogs web 无法运行,如何重新安装?


#1

已解决. 删除就能重装了…

Gogs 版本:0.11.19
系统类型及版本:Ubuntu 16.04
数据库:sqlite3
问题描述:运行 ./gogs web 进入网页配置. 选择了sqlite3 和内置ssh. 之后终端的gogs 自动退出了. 再运行只有这样的输出(gogs 异常退出):

wuyong@xy-desktop:~/Share/SDKs/gogs$ ./gogs web
2017/08/08 21:30:18 [TRACE] Custom path: /home/wuyong/Share/SDKs/gogs/custom
2017/08/08 21:30:18 [TRACE] Log path: /home/wuyong/Share/SDKs/gogs/log
2017/08/08 21:30:18 [TRACE] Log Mode: File (Trace)
2017/08/08 21:30:18 [ INFO] Gogs 0.11.19.0609

网页install 进不去.
第一次安装, 请教如何排查问题?


#2

解决了…但是不会push不了.
(tensorflow) ➜ src git:(master) $ git remote add gogs http://localhost:3000/gerrie/fcn_alpha.git
(tensorflow) ➜ src git:(master) $ git remote add gogsssh wuyong@localhost:gerrie/fcn_alpha.git
(tensorflow) exciting! src git:(master) $ git push gogsssh master
ssh: connect to host localhost port 22: Connection refused
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


#3

错误不是很明显吗。。。22 端口连不上啊!


#4

我发现要把localhost改成ip.
改了还不行. 要把gerrie/fcn_alpha.git换成全路径.像这样:
wuyong@172.31.103.139:~/gogs-repositories/gerrie/fcn_alpha.git
这样可以clone和push了. 但是推送上去后网页版看不到文件.
重新把repo clone 下来发现其实push成功了. 只是网页不显示.


#5

可以问下你是怎么解决运行./gogs web后终端只输出

[TRACE] Custom path: /home/git/gogs/custom
2018/08/27 11:46:14 [TRACE] Log path: /home/git/gogs/log
2018/08/27 11:46:14 [TRACE] Build Time: 2018-06-05 12:58:53 UTC
2018/08/27 11:46:14 [TRACE] Build Git Hash: 91441c3fb29d8ead645d8fffa4658d749d5b3fc3
2018/08/27 11:46:14 [TRACE] Log Mode: File (Trace)
2018/08/27 11:46:14 [ INFO] Gogs 0.11.53.0603

#6

看起来是监听端口这一步一直没起来,检查下是不是权限问题什么的