sameersbn / sameersbn/docker-gitlab

entropy error for users running this on Synology NAS with pre-3.17 kernels

Open
#3,276 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
8.1k
Forks
2.1k
Avg merge
17h 47m
Merged PRs (30d)
7

Description

this might be a long shot but I can no longer use the package on Synology:

git push fails during unpack-objects with Fatal glibc error: cannot get entropy for arc4random

I am on Synology DSM 7.1.1-42962 Update 9, kernel 3.10.108, which predates the getrandom() syscall (added in Linux 3.17).

It would seem that glibc now calls getrandom() unconditionally and aborts on failure rather than falling back to /dev/urandom the way older glibc did.

Is there a potential fix that would be backward compatible?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing git push during unpack-objects on Synology DSM 7.1.1-42962 Update 9 with kernel 3.10.108, then inspect how the Dockerized GitLab environment and glibc handle the missing getrandom() syscall. Done means git push works on pre-3.17 kernels without breaking supported environments.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, git, linux
Domain
infrastructure, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.