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

Testing docker image - wont log in after creating user #317

Open
ItsNoted opened this issue Jul 29, 2021 · 4 comments
Open

Testing docker image - wont log in after creating user #317

ItsNoted opened this issue Jul 29, 2021 · 4 comments

Comments

@ItsNoted
Copy link

ItsNoted commented Jul 29, 2021

I just installed and ran the image from @alex-phillips to test it out. It installed fine but then wouldn't log in after creating the admin account.

version: "2.1"
services:
heimdall:
image: alexphillips/heimdalljs
container_name: heimdall
environment:
- PUID=1000
- PGID=1000
- TZ=America/Detroit
volumes:
- /docker/heimdalljs:/config
ports:
- 3000:3000
restart: unless-stopped

Here is the log output, see attachment.

_heimdall_logs.txt

@memphisdj
Copy link
Contributor

Hi, don't use the alex-philips docker image. It is no longer updated. Use this instead https://github.com/linuxserver/docker-heimdall/pkgs/container/heimdall

@ItsNoted
Copy link
Author

Hi, don't use the alex-philips docker image. It is no longer updated. Use this instead https://github.com/linuxserver/docker-heimdall/pkgs/container/heimdall

I wanted to test V3 not run the latest stable release. That is why I am here and not there :p

@memphisdj
Copy link
Contributor

Hi, look for the js tag in versions: https://github.com/linuxserver/docker-heimdall/pkgs/container/heimdall/versions

image

That is the latest V3 version.

@michaelkrieger
Copy link

As a note for this, if you don't set the DB_TYPE, DB_STORAGE, and UPLOAD_DIR manually in your environment/docker-compose, it will default to /app/heimdall/config and thus not be able to login, trying to find a MySQL database that doesn't exist or, with just the DB_TYPE of sqlite, citing a read-only SQLite database. It will also throw an error that the uploads folder is not writable.

It seems that it doesn't fall back to sane defaults of /config without additional configuration. Be sure to set the environment to include those three or you will get to the user creation and it will silently fail (a 500 return on the POST to /users with a hidden error [SQLITE_READONLY: attempt to write a readonly database] that the database is read-only that isn't displayed anywhere)

      - DB_TYPE=sqlite
      - DB_STORAGE=/config/app.db
      - UPLOAD_DIR=/config/uploads

Full docker-compose line:

  heimdalljs:
    container_name: heimdalljs
    image: lscr.io/linuxserver/heimdall:js
    restart: unless-stopped
    volumes:
      - /srv/heimdalljs:/config
    #expose:
    #  - 3000
    ports:
      - 3000:3000
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Toronto
      - DB_TYPE=sqlite
      - DB_STORAGE=/config/app.db
      - UPLOAD_DIR=/config/uploads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants