Skip to content

Expect user 'gitea' but current user is:  #4894

Closed
@tinxx

Description

@tinxx
  • Gitea version (or commit ref): 1.5.1
  • Git version: 2.18.0
  • Operating system: Alpine Linux v3.8
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist: --

Description

Gitea is unable to identify current user on Alpine Linux.
I have build a simple docker container using Alpine Linux to run the official release of Gitea taken from dl.gitea.io. Problem is that it does not seem to be able to identify current user, so if I set a RUN_USER in app.ini, all I get is the following error message:

2018/09/08 12:20:59 [...s/setting/setting.go:990 NewContext()] [E] Expect user 'gitea' but current user is: 

Gitea runs if you omit setting RUN_USER, but it uses empty user name in ssh strings, too, like so: ssh://@domain.tld/RepoName.git

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/duplicateThe issue has already been reported.type/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions