Dashboard stop updating due to migration(win -> linux)
jimie-chaos opened this issue · 0 comments
jimie-chaos commented
Gogs version
0.11.43.0330 -> 0.13.0
Git version
- Server: 2.30.0.windows.2 -> 1.8.3.1(linux)
- Client: 2.37.2.windows.2
Operating system
win10edu -> cantos 7
Database
mysql Ver 14.14 Distrib 5.7.20, for Win64 (x86_64) -> Ver 14.14 Distrib 5.7.38, for Linux (x86_64)
Describe the bug
dashboard not update.
push history loss.
To reproduce
- cmd run gogs backup(0.11.43.0330).
- move backup.zip to linux server(0.11.91).
- linux run gogs restore.
- change repositories dir.
- run gogs web(can run).
- update gogs(cp gogs->untar new version->move sustom/data/log) 0.12.11.
- run gogs web(can run).
- update gogs 0.12.0.
- run gogs web (can run).
- find the problem.
- push code
- dashboard not update
- search qustion and update git hooks(setting->git hooks)
- push again but tip(android studio):
Total 78 (delta 46), reused 0 (delta 0), pack-reused 0
remote: hooks/pre-receive:行2: D:/gogs/gogs.exe: 没有那个文件或目录
## transf:remote: hooks/pre-receive:row 2: D:/gogs/gogs.exe: not find fiel or dir
error: failed to push some refs to 'http://192.168.10.233:9528/---/project.git'
To http://192.168.10.233:9528/---/project.git
! refs/heads/developer:refs/heads/developer [remote rejected] (pre-receive hook declined)
Done
- delete a project hook (pre-receive,post-receive,update) File.
- update git hook(3)
- push history Data loss(1000 ->100) but can push.
Expected behavior
dashboard can update and can push(don't update git hook is normal)
restore push history
Additional context
otal 78 (delta 46), reused 0 (delta 0), pack-reused 0
remote: hooks/pre-receive:行2: D:/gogs/gogs.exe: 没有那个文件或目录
error: failed to push some refs to 'http://192.168.10.233:9528/---/project.git'
To http://192.168.10.233:9528/---/project.git
! refs/heads/developer:refs/heads/developer [remote rejected] (pre-receive hook declined)
Done
Code of Conduct
- I agree to follow this project's Code of Conduct