Skip to content

1.19.1-rootless Expect user 'git' but current user is: #24385

New issue

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

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

Already on GitHub? Sign in to your account

Closed
bota87 opened this issue Apr 27, 2023 · 2 comments
Closed

1.19.1-rootless Expect user 'git' but current user is: #24385

bota87 opened this issue Apr 27, 2023 · 2 comments
Labels
issue/duplicate The issue has already been reported.

Comments

@bota87
Copy link

bota87 commented Apr 27, 2023

Description

This config works with 1.18.5 but fail with 1.19.1 with this error. I see that changing the user from 1002:1002 to 1000:1000 (default) fix the issue

cmd/web.go:105:runWeb() [I] Starting Gitea on PID: 7
...s/setting/setting.go:322:loadRunModeFrom() [F] Expect user 'git' but current user is:

Gitea Version

1.19.1-rootless

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

alpine

How are you running Gitea?

version: '3.9'
services:
  gitea:
    image: gitea/gitea:1.19.1-rootless
    container_name: gitea
    restart: unless-stopped
    user: "1002:1002"
    volumes:
      - /data/gitea/data:/var/lib/gitea
      - /data/gitea/config:/etc/gitea
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3000:3000"
    environment:
      - GITEA__mailer__ENABLED=true
      - GITEA__mailer__PROTOCOL=smtp
      - GITEA__mailer__SMTP_PORT=25
      - GITEA__mailer__SMTP_ADDR=*
      - GITEA__mailer__FROM=*
      - GITEA__mailer__USER=*
      - GITEA__mailer__PASSWD=*
      - GITEA__mailer__FORCE_TRUST_SERVER_CERT=TRUE
      - GITEA__openid__IS_TLS_ENABLE_OPENID_SIGNIN=false
      - GITEA__openid__IS_TLS_ENABLE_OPENID_SIGNUP=false
      - GITEA__security__INSTALL_LOCK=true
      - GITEA__server__PROTOCOL=http
      - GITEA__server__DOMAIN=git.domain.it
      - GITEA__server__ROOT_URL=https://git.domain.it/
      - GITEA__service__ENABLE_NOTIFY_MAIL=true
      - GITEA__service__DISABLE_REGISTRATION=true
      - GITEA__service__REQUIRE_SIGNIN_VIEW=true
      - GITEA__service__DEFAULT_ALLOW_CREATE_ORGANIZATION=false

Database

SQLite

@yp05327
Copy link
Contributor

yp05327 commented Apr 28, 2023

Maybe same issue in #23632?

@bota87
Copy link
Author

bota87 commented Apr 28, 2023

Probably, I close this one

@bota87 bota87 closed this as completed Apr 28, 2023
@lunny lunny added issue/duplicate The issue has already been reported. and removed type/bug labels Apr 28, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/duplicate The issue has already been reported.
Projects
None yet
Development

No branches or pull requests

3 participants