Skip to content
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

Cannot get passed initial configuration #20436

Closed
tamis-laan opened this issue Jul 21, 2022 · 4 comments
Closed

Cannot get passed initial configuration #20436

tamis-laan opened this issue Jul 21, 2022 · 4 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@tamis-laan
Copy link

tamis-laan commented Jul 21, 2022

Description

Using docker (compose) to host gitea:

version: '3'

services:
  gitea:
    image: gitea/gitea:1.16.8
    environment:
      - GITEA__server__PROTOCOL=http
      # - GITEA__server__ROOT_URL=https://git.mydomain.com/
      - GITEA__service__DISABLE_REGISTRATION=1
      - GITEA__repository__DEFAULT_PRIVATE=private
      - GITEA__database__DB_TYPE=sqlite3
    volumes:
      - gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - '3002:3000'
    restart: unless-stopped

volumes:
  gitea:
    name: serv-gitea

On http://server:3002 I find the initial configuration screen. There I add the administrator user, password and email. Pressing the Install Gitea button starts the browser loading but nothing happens. A refresh again shows the initial configuration screen.

Gitea Version

1.16.8

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 container

Database

SQLite

@wxiaoguang
Copy link
Contributor

Please provide logs.

I guess your container can not write files to your volume.

@wxiaoguang wxiaoguang added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail and removed type/bug labels Jul 22, 2022
@tamis-laan
Copy link
Author

I managed to find the problem, apparently GITEA__database__DB_TYPE=sqlite3 is not allowed. Removing this line reverts to the default which is also sqlite3. Kind of strange that this breaks gitea.

@zeripath
Copy link
Contributor

Removing GITEA__database__DB_TYPE=sqlite3 from the configuration is extremely unlikely to be relevant or have solved anything in and of itself.

Logging would have told us what was happening - and without logs we cannot tell you what has happened or provide any advice.

I'm going to close this - please reopen if you can provide logs.

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Jul 22, 2022

I think I find the problem now.

You are using '3002:3000', then you visit 127.0.0.1:3002 to install.

However , after installation, Gitea will auto redirect you to localhost:3000 (aka ROOT_URL), then you will see another fresh Gitea instance.

It's a bug of Gitea's ROOT_URL mechanism.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

No branches or pull requests

3 participants