Postgres Password with special characters

Hello! The auto-generated postgres password includes specialc charaters which is causing errors on boot for my Ruby on Rails project. How can I update the password?
Solution:
- remove the active postgres deployment from its 3 dot menu - generate a new 32 length password with this string abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~ - update the POSTGRES_PASSWORD variable with the new password - wipe the volume - redeploy the database with this tool https://bookmarklets.up.railway.app/service-redeploy/...
Jump to solution
13 Replies
Percy
Percy11mo ago
Project ID: 2e342c70-1e30-4a74-9347-cade6a6e2d7b
adamevers
adameversOP11mo ago
2e342c70-1e30-4a74-9347-cade6a6e2d7b
Brody
Brody11mo ago
how did you deploy postgres?
adamevers
adameversOP11mo ago
GitHub
GitHub - railwayapp-templates/ruby-rails
Contribute to railwayapp-templates/ruby-rails development by creating an account on GitHub.
Brody
Brody11mo ago
the asterisk right?
adamevers
adameversOP11mo ago
Yup
Brody
Brody11mo ago
interesting, rfc 3986 section 2.3. was referenced when putting together the available character string for the password, so i dont know how the asterisk slipped in. this is the current string abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_!~* let me test if you are able to change the password after the database was deployed
Solution
Brody
Brody11mo ago
- remove the active postgres deployment from its 3 dot menu - generate a new 32 length password with this string abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~ - update the POSTGRES_PASSWORD variable with the new password - wipe the volume - redeploy the database with this tool https://bookmarklets.up.railway.app/service-redeploy/
adamevers
adameversOP11mo ago
Thanks @Brody !
Brody
Brody11mo ago
does that mean those steps worked for you?
adamevers
adameversOP11mo ago
@Brody - yea looks like that worked. Now I have to figure out why my web app isn't auto deploying from github pushes
Brody
Brody11mo ago
do you have a branch selected
adamevers
adameversOP11mo ago
yup
Want results from more Discord servers?
Add your server