Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard stop updating due to migration(win -> linux) #7639

Open
1 task done
jimie-chaos opened this issue Jan 2, 2024 · 0 comments
Open
1 task done

Dashboard stop updating due to migration(win -> linux) #7639

jimie-chaos opened this issue Jan 2, 2024 · 0 comments
Labels
💊 bug Something isn't working

Comments

@jimie-chaos
Copy link

jimie-chaos commented Jan 2, 2024

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

  1. cmd run gogs backup(0.11.43.0330).
  2. move backup.zip to linux server(0.11.91).
  3. linux run gogs restore.
  4. change repositories dir.
  5. run gogs web(can run).
  6. update gogs(cp gogs->untar new version->move sustom/data/log) 0.12.11.
  7. run gogs web(can run).
  8. update gogs 0.12.0.
  9. run gogs web (can run).
  10. find the problem.
  11. push code
  12. dashboard not update
  13. search qustion and update git hooks(setting->git hooks)
  14. 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
  1. delete a project hook (pre-receive,post-receive,update) File.
  2. update git hook(3)
  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
@jimie-chaos jimie-chaos added the 💊 bug Something isn't working label Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💊 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant