Skip to content

About

Gitea 1.26.2 Docker has a compatibility issue with git expecting a newer kernel sys-calls. Synology are notorious for using old kernels.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

gitea-synology-old-kernel

Gitea 1.26.2 Docker has a compatibility issue with git expecting a newer kernel sys-calls. Synology is notorious for using old kernels.

500 Internal Server Error
An error occurred:

CreatePost, updateGitRepoAfterCreate: CreateRepository(git update-server-info): exit status 1 - error: unable to get random bytes for temporary file: Function not implemented
error: unable to update info/refs: Function not implemented
error: unable to get random bytes for temporary file: Function not implemented
error: unable to update objects/info/packs: Function not implemented
Gitea Version: 1.26.2
# git update-server-info
error: unable to get random bytes for temporary file: Function not implemented
error: unable to update .git/info/refs: Function not implemented
error: unable to get random bytes for temporary file: Function not implemented
error: unable to update .git/objects/info/packs: Function not implemented
#  strace -f git update-server-info | grep -i getrandom 
..
..
getrandom(0x7ffdab7955c0, 8, 0)         = -1 ENOSYS (Function not implemented)
write(2, "error: unable to get random byte"..., 79error: unable to get random bytes for temporary file: Function not implemented
) = 79
..
..

Solution

  • Copy working git binary across to new image. << This Solution
  • Longterm solution use a Synology NAS for just storage only and run docker on a separate server
  • Use Synology virtual machine manager, if your model supports it, run a newer version of linux with docker in a virtual machine
  • Replace Synology NAS with something more open where you have control over the base OS.

FAQ

  • Why did you use inline-dockerfile in docker-compose over a dockerfile?

At the time I was using Portainer its just easier to use stack templates i.e docker-compose files

About

Gitea 1.26.2 Docker has a compatibility issue with git expecting a newer kernel sys-calls. Synology are notorious for using old kernels.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors