#Change typesense api key and db password.

1 messages · Page 1 of 1 (latest)

serene valve
#

Is there a way to change the TYPESENSE_API_KEY DB_PASSWORD on a operational system?

sudden cipherBOT
#

:wave: Hey @serene valve,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: I have read applicable release notes.
  3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
  4. :ballot_box_with_check: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command.
  7. :ballot_box_with_check: I have tried an incognito window, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

exotic cliff
#

Typesense is going away in the next release so I would not worry about that one.
Postgres password can be changed. I think you would want to bring everything down except the database, then run ALTER USER postgres PASSWORD '<new password>'; or using psql run the \password postgres command. Before you bring immich back up, you would need to update the environment variable to use the new password.

serene valve
#

ok I'll make a backup and give it a try

#

ty'

#

So I exec into the postgress container and try to run ALTER but it says that it doesnt exsist

#

When I try to run psql I get psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: role "root" does not exist

#

had to do a su - postgress 😄