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 change password #1028

Closed
iredmedia opened this issue Jun 20, 2017 · 6 comments
Closed

Cannot change password #1028

iredmedia opened this issue Jun 20, 2017 · 6 comments
Labels

Comments

@iredmedia
Copy link

iredmedia commented Jun 20, 2017

Info:

  • Docker version ($ docker --version): Docker version 17.03.1-ce, build c6d412e
  • Laradock commit ($ git rev-parse HEAD): 21f0a1034364a9224025604a6b2daab3fcf066df
  • System info (Mac, PC, Linux): Linux
  • System info disto/version: El Capitan 10.11.6 (15G31)

Issue:

What seems to be going wrong?

I'm unable to change passwords for prod-ready dbs. I've changed the .env and checked docker-compose config to validate.

I've removed all containers, volumes, images, to my knowledge docker stop $(docker ps -qa) docker rm $(docker ps -qa) docker volume rm $(docker volume ls -q)

docker-compose up -d postgres doesn't change anything for me, I'm not sure where it's finding the old values, but for some reason they still work.


Expected behavior:

What should be happening instead?

The test should be succeeding like it does when I use the old information. I am using the correct db, I'm running it on DigitalOcean.

being able to attempt to login directly might be helpful but i get the "root" disallowed error.


Reproduce:

How might we be able to reproduce the error?

Fails on second load only!

  1. cp env-example .env
  2. (IMPORTANT) docker-compose up -d postgres
  3. docker stop $(docker ps -qa) && docker rm $(docker ps -qa) && docker volume rm $(docker volume ls -q)
  4. Change password/username/dbname in .env for postgres
  5. docker-compose up -d postgres

Relevant Code:

@iredmedia
Copy link
Author

I updated my post, it fails on second-load so I must be missing something.

@bestlong
Copy link
Member

Hi @iredmedia by default, database container will storage to host os by .env config:

# .env file
DATA_SAVE_PATH=~/.laradock/data

so, you need delete ~/.laradock/data/postgres folder. but this action will lost all data.

@iredmedia
Copy link
Author

Okay, that makes a lot of sense. So the best way to change these values would be to execute commands to pgsql like normal?

@bestlong
Copy link
Member

bestlong commented Jul 1, 2017

@iredmedia Yes, use pgsql or pgadmin do password change without delete all database.

@stale
Copy link

stale bot commented Feb 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Feb 2, 2020
@stale
Copy link

stale bot commented Feb 23, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants