Skip to content

The MiG-users.db database is only created if the $USERNAME and $PASSWORD is set during the run of docker-entry.shΒ #89

@rasmunk

Description

@rasmunk

When the docker-migrid stack is launched from scratch, the underlying `~/state/user_db_home/MiG-users.db' is only created
when the $USERNAME and $PASSWORD variables are non-empty during the run of the docker-entry.sh launch script.

If these are not set, the following command is not executed, which ensures that this database is created.

su - "$USER" -c "${MIG_ROOT}/mig/server/migrateusers.py"

This causes the deployment to not being able to signup/login users because the lookup for the expected database will fail.

Potential steps to resolves this could be.

  • Move the current initialise call is always run as part of the docker-entry.sh execution.
  • Potentially introduce a specific inituserdb.py script as suggested by @jonasbardino that handles this database initialisation such that we don't have to rely on leveraging the migrateusers.py script for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions