First of all, I’m quite a bit of a noob when it comes to Git. But as I’m the one that is the less scared in server administration in my group, I’ve been hosting the git repositories for a group project.
I’m running Gogs Version: 0.11.86.0130, with mysql as a database.
All of that is running on Debian 9 Strech.
The problem is :
On a specific repository, it is impossible to upload a file through the web interface to any of the branches.
I’ve tested this on multiple accounts.
I can create a new file and commit.
I can modify a file and commit.
I can upload a file via command line and commit.
I’ve set the logs to Trace, and I can see this when uploading a file :
But no 404 page on the browser, it will just return back to the repository as it was before adding the file.
I’ve tried restarting the server : did not work
I haven’t tried reinstalling the whole thing and restoring a backup. May try in a VM to see if it works.
I can provide anything that will be able to help me resolve this issue.
On another note, I can’t seem to be able to use the backup option via cron.
the crontab entry is :
0 1,9,12,15,17 * * * /home/tanguy/backupScript.sh
the script launched by cron is at follows :
#!/bin/bash cd /home/tanguy/backupGogs && /home/tanguy/gogs/gogs/gogs backup date > date.log
I can see the date change, but no backup is created.
Thanks for taking the time to read all of this. If you have any idea for either of the issues, I’ll be happy to test them out.