Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Gitea docker container nightly cannot start #32954

Closed
stuzer05 opened this issue Dec 22, 2024 · 12 comments
Closed

Gitea docker container nightly cannot start #32954

stuzer05 opened this issue Dec 22, 2024 · 12 comments
Labels
issue/workaround it is or has a workaround type/bug

Comments

@stuzer05
Copy link
Contributor

stuzer05 commented Dec 22, 2024

Description

Possible because of this #32924

/usr/bin/entrypoint: exec: line 38: /bin/s6-svscan: not found

Gitea Version

image id 9981acd570bf

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

None

@stuzer05
Copy link
Contributor Author

apk add --no-cache s6

fixed the problem

@stuzer05
Copy link
Contributor Author

Actually the path was the problem, /bin/s6-svscan -> /usr/bin/s6-svscan

Created a PR #32955

GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Dec 22, 2024
`/bin/s6-svscan` is actuall located at `/usr/bin/s6-svscan`
zjjhot added a commit to zjjhot/gitea that referenced this issue Dec 23, 2024
* giteaofficial/main: (62 commits)
  Fix repo avatar conflict (go-gitea#32958)
  [skip ci] Updated licenses and gitignores
  fix trailing comma not matched in the case of alphanumeric issue (go-gitea#32945)
  Add auto-expanding running actions step (go-gitea#30058)
  Fix go-gitea#32954 (go-gitea#32955)
  Use Alpine 3.21 for the docker images (go-gitea#32924)
  Refactor template & test related code (go-gitea#32938)
  Use primary as button color (go-gitea#32949)
  [skip ci] Updated translations via Crowdin
  Add action auto-scroll (go-gitea#30057)
  Fix locale (go-gitea#32937)
  Enable Typescript `strictFunctionTypes` (go-gitea#32911)
  Fix areYouSure confirm (go-gitea#32941)
  Update i18n.go - Language Picker (go-gitea#32933)
  Move some errors to their own sub packages (go-gitea#32880)
  Improve navbar: add "admin" tip, add "active" style (go-gitea#32927)
  Refactor db package and remove unnecessary `DumpTables` (go-gitea#32930)
  show warning on navigation if currently editing comment or title (go-gitea#32920)
  Refactor pprof labels and process desc (go-gitea#32909)
  [skip ci] Updated translations via Crowdin
  ...
@pmainvil
Copy link

After updating image to gitea-latest, I get the following error on a Synology DSM 7.2.1 and the container stops.

/usr/bin/entrypoint: exec: line 38: /bin/s6-svscan: not found

@techknowlogick
Copy link
Member

@pmainvil Your configuration has a hardcoded endpoint, please either let the image use the default, or update it to the new location.

@pmainvil
Copy link

No change to the "gitea/gitea latest" image settings loaded many months ago. I simply upgraded the image to the latest version and it stopped working. I had done multiple updates without over time without any problems.

Image

@dgarrison63
Copy link

I'm having the exact same issue as @pmainvil in that I upgraded gitea which is running on my Synology NAS. Prior to the upgrade of the image, no issues at all.

The error messages i'm getting are this: /usr/bin/entrypoint: exec: line 38: /bin/s6-svscan: not found

I have not hardcoded anything and just left everything at the defaults in terms of entrypoint.

@titleistfour
Copy link

Exactly the same issue for me. No changes from the default. An update on Synology DSM 7.2.1 just broke my gitea container with the same error message: /usr/bin/entrypoint: exec: line 38: /bin/s6-svscan: not found

@titleistfour
Copy link

I ended up reverting to a previous specific tag version and that got my container back online.

@pmainvil
Copy link

pmainvil commented Feb 1, 2025

Reverted to 1.23.0 and got it working.

@le-rou
Copy link

le-rou commented Feb 3, 2025

Same for me: Synology NAS, Portainer, same error message. I didn't set up anything custom. However, I noticed that the CMD was correct in the image, but not in the container - turned out, there was an override after all.
Fixed it like this:

  • open gitea container
  • click duplicate/edit
  • under advanced: set Command and Entrypoint to default instead of override
  • deployed under new name for safety

@lunny lunny added the issue/workaround it is or has a workaround label Feb 3, 2025
@Tykin
Copy link

Tykin commented Feb 6, 2025

Same for me: Synology NAS, Portainer, same error message. I didn't set up anything custom. However, I noticed that the CMD was correct in the image, but not in the container - turned out, there was an override after all. Fixed it like this:

  • open gitea container
  • click duplicate/edit
  • under advanced: set Command and Entrypoint to default instead of override
  • deployed under new name for safety

If you are using Container Manager, I took the following steps:

  • Export your gitea container settings to json
  • Open the json and remove line
    "cmd" : "/bin/s6-svscan /etc/s6",
  • Import the json as a new container
  • You may need to change your ports in the old container to free them up for the new container

@pmainvil
Copy link

pmainvil commented Feb 6, 2025

Was about to try your workaround, but updated/tested latest (1.23.3) and it worked OK. All from container creation using the Container Manager.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
issue/workaround it is or has a workaround type/bug
Projects
None yet
Development

No branches or pull requests

8 participants