This page covers common problems you may encounter when installing, configuring, or running Gogs, organized by category.Documentation Index
Fetch the complete documentation index at: https://gogs.io/llms.txt
Use this file to discover all available pages before exploring further.
SSH
SSH connection hangs for 60 seconds
SSH connection hangs for 60 seconds
Incorrect binary path for update hook
Incorrect binary path for update hook
/admin) and run these two tasks:- Rewrite
.ssh/authorized_keysfile - Resync pre-receive, update and post-receive hooks of all repositories
Push succeeds but the dashboard timeline does not update
Push succeeds but the dashboard timeline does not update
- Ensure the mount point containing the repositories is not set as
noexec. Runmountto check, and if necessary add theexecoption to the mount point in/etc/fstab. - For
vfat(and possiblycifs) mounts, ensure theuid,gid, andfmaskoptions permit the Gogs user (or a group it belongs to) to execute files. - For network-mounted shares (NFS, Samba), ensure the server is not configured to disallow execution on the remote filesystem.
Git
Public key conflict: 'does not appear to be a git repository'
Public key conflict: 'does not appear to be a git repository'
~/.ssh/authorized_keys. This commonly happens if you are (or were) running GitLab on the same system user.Solution: Edit ~/.ssh/authorized_keys and remove the old duplicate entry, keeping only the key that was added by Gogs.Cannot call 'git' command by Gogs
Cannot call 'git' command by Gogs
cmd option, so git is not available on the system PATH.Solution: Reinstall Git for Windows and make sure the option to add Git to the system PATH (the cmd option) is enabled.Database
Incorrect MySQL storage engine (key too long)
Incorrect MySQL storage engine (key too long)
http://localhost:3000/install.Outdated MySQL password authentication
Outdated MySQL password authentication
@localhost entry. A second entry in the user table (such as @%) still has the old-format password.Solution: Update the password for all host entries of the MySQL user. See this GitHub discussion for detailed steps.Wrong SQLite3 database file
Wrong SQLite3 database file
user table does not exist.Possible cause: Gogs may be running as a system service and loading a different SQLite3 file than expected (for example, a relative path resolved differently).Solution: Use an absolute path for the SQLite3 database file in your custom/conf/app.ini configuration.Gmail error 534: 'Please log in via your web browser'
Gmail error 534: 'Please log in via your web browser'
- Visit https://accounts.google.com and log in.
- Go to https://accounts.google.com/DisplayUnlockCaptcha and click Continue.
- Copy the
ContinueSignInlink from the Gogs server log and complete the sign-in. - Check your spam folder in case your mail provider flagged the messages.
Authentication failed (error 535)
Authentication failed (error 535)
custom/conf/app.ini:Windows
Cygwin path conflict
Cygwin path conflict
cmd.exe) instead of Cygwin or other alternative shells.CSS loaded with wrong MIME type
CSS loaded with wrong MIME type
Content Type value for the .css file extension.Solution: Open the Windows Registry Editor, navigate to HKEY_CLASSES_ROOT\.css, and change the Content Type value to text/css.Other
Extremely slow page response despite low reported render time
Extremely slow page response despite low reported render time
- Nginx is trying to resolve
localhostas an IPv6 address, causing a delay. - Gravatar avatar lookups are being attempted without a valid email address.
- Use the explicit hostname
127.0.0.1instead oflocalhostduring the initial setup athttp://gogs-server:3000/install. - Either use a valid Gravatar email address for the administrator account or disable avatar lookup during the initial setup.
Duplicate entry for SSH key name
Duplicate entry for SSH key name
UQE_public_key_name) on SSH key names in the public_key table. This constraint is no longer needed.Solution: Manually delete the UQE_public_key_name unique index from the public_key table in your database.GLIBC_2.14 not found
GLIBC_2.14 not found
Permission denied when creating session data directory
Permission denied when creating session data directory
data subdirectory in the same directory as the Gogs binary. The process does not have write permission to that directory.Solution: Ensure the user running Gogs has permission to create subdirectories in the directory where the Gogs binary is located.remote rejected: hook declined
remote rejected: hook declined
bash shell is available on your system. All Gogs hook scripts require bash to run.