syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
400 stars 40 forks source link

Can't push to gogs #506

Closed trevorprinn closed 4 years ago

trevorprinn commented 4 years ago

I'm having trouble pushing to gogs. This is an example of the messages I'm seeing

git.exe push --progress "gogs" transactions
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 300 bytes | 300.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: hooks/pre-receive: line 2: /snap/gogs/181117/gogs/gogs: No such file or directory
To https://gogs.tprinn.syncloud.it/trevor/WebBalances.git
! [remote rejected] transactions -> transactions (pre-receive hook declined)
error: failed to push some refs to 'https://gogs.tprinn.syncloud.it/trevor/WebBalances.git'

git did not exit cleanly (exit code 1) (1063 ms @ 05/05/2020 12:40:19)

The /snap/gogs folder contains only

drwxr-xr-x 12 root root 201 Jun 23  2019 190623288
drwxr-xr-x 12 root root 201 Aug  6  2019 19080616
drwxr-xr-x 12 root root 201 May  3 09:11 20050326
lrwxrwxrwx  1 root root   8 May  3 14:34 current -> 20050326

I'm not sure if the problem started after installing the latest version, or whether it has something to do with the power cut we suffered yesterday (the syncloud server seems to be fine otherwise, but one of the hard drives in my NAS was badly corrupted by it).

trevorprinn commented 4 years ago

I think the problem may be with just the one repo. I seem to be able to push to other repos.

trevorprinn commented 4 years ago

Panic over :-) I just had a look through the Admin Panel and tried running "Resync pre-receive, update and post-receive hooks of all repositories", which seems to have sorted it out. I guess the power probably went off at an unfortunate moment.