Skip to content

Critical startup failure on 'latest' Docker image: su-exec: Permission denied #35435

@magowiz

Description

@magowiz

Description

Hello Gitea Team,

I am experiencing a critical startup failure when using the gitea/gitea:latest Docker image. The container enters a crash loop.

Environment Details:
All environment details (Host OS, Docker Version, docker-compose.yml) are included in the attached log file.

Problem Description:
When trying to start a Gitea container using image: gitea/gitea:latest with the provided docker-compose.yml, the container fails
to start and logs show a repeated su-exec: /usr/local/bin/gitea: Permission denied error.

Diagnostics and Findings:

  • We have confirmed that this is not a standard file permission issue, as permissions inside the container appear to be correct
    (-rwxr-xr-x).
  • The key finding is that the issue does not occur when using a specific version tag, for example gitea/gitea:1.21.11. The
    container with the versioned tag starts without the su-exec permission error.
  • This strongly suggests the issue is with the build of the :latest tag itself.
  • Side note: Running the broken :latest image, even briefly, updated the database schema, making it incompatible with older Gitea
    versions.

Please find all relevant logs, configuration, and system info in the attached file.

Thank you.

gitea_logs.txt

Gitea Version

1.24.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Raspbian

How are you running Gitea?

I'm running gitea in a docker compose.

Database

Sqlite3

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions