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

Upgrade script fails if mattermost-docker is used with .env #31

Closed
lu40 opened this issue Aug 31, 2021 · 1 comment
Closed

Upgrade script fails if mattermost-docker is used with .env #31

lu40 opened this issue Aug 31, 2021 · 1 comment

Comments

@lu40
Copy link

lu40 commented Aug 31, 2021

While migrating to the new PostgreSQL and Mattermost versions using the upgrade-from-mattermost-docker.sh script, we encountered a problem with the parsed environment variables. The docker command to upgrade the db at L179-L186 of the script fails with the following message:

initdb: option requires an argument -- 'U'

This is only an assumption as we haven't been reproducing this error, but we guess that the problem lies in having used variables from .env with mattermost-docker like this:

environment:
  - POSTGRES_USER=${POSTGRES_USER}
  - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
  - POSTGRES_DB=${POSTGRES_DB}

So when exporting the variables in the shell the docker command worked as expected.

Thanks a lot for the great work you put into restructuring the docker setup for mattermost.

@mrckndt
Copy link
Member

mrckndt commented Sep 1, 2021

@lu40 thank you for reporting. Because there are efforts in improving the upgrade i'm closing this in favor of #25.

@mrckndt mrckndt closed this as completed Sep 1, 2021
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

2 participants