Continuing the discussion from Problem during initialization:
OK, here's the background. I wanted to change some words in the client.en.yml file. So I edited that file and the changes didn't appear on my site. Then I read that rebooting the server (VPS) would help show changes so I rebooted my Digital Ocean VPS with "sudo reboot". In retrospect this was very dumb.
After the server reboot, I reloaded nginx and reloaded bluepill per the instructions in the official ubuntu install guide. This has worked for me in the past when I took a snapshot of my Digital Ocean droplet, which involves shutting down server. However, it did not work for me this time. That is, my 502 Bad Gateway error page remained even after reloaded nginx and typing the commands to reboot bluepill.
I did some investigating. My nginx error log showed "no live upstreams while connecting to upstream". My tmp/sockets directory was empty; I think it should have had some files like thin.0.sock.
So I decided to fix my problems by doing the update process described in the Ubuntu install guide. I checkout the master branch, stash my local changes (client.en.yml, discourse.conf, database.yml), git pull, then "git stash pop" to get my local changes back. Then I enter this command:
RUBY_GC_MALLOC_LIMIT=90000000 RAILS_ENV=production bundle exec rake db:migrate
And I get the "fe_sendauth: no password supplied" error message.
"No problem," I'm thinking because I got this message upon this command before when upgrading from 9.7.9. Back then, I fixed the problem by resetting psql 'discourse' user password and editing config/discourse.conf to look like:
# username accessing database
db_username = discourse
# password used to access the db
db_password = my_password
Also I had changed etc/postgresql/9.1/main/pg_hba.conf so that "all" users use md5 method instead of peer, like so:
local all all md5
I had known this approach was working because the error message from running rake changed to FATAL: password authentication failed for user "discourse"
.
Back to my present problem. In the updating process, when I run the rake:db migrate command, I always get the "fe_sendauth: no password supplied" error message, no matter what I do. My database.yml is stock/default. My config/discourse.conf has the db_username and db_password lines uncommented and properly filled out, as shown above. I tried with and without quotation marks around the password. I tried editing the pg_hba.conf file so that "all" users have "trust" method. I even tried editing production.rb to override global default user_name and password settings.
Nothing works, and I'm stuck with "fe_sendauth: no password supplied" error message upon trying to rake:db migrate
.
Any help would be greatly appreciated