When I do a “rake migrate” in my rails app’s directory, I get a rather weird authentication error:
=> rake aborted!
=> Access denied for user ‘tlpc’@‘22.214.171.124/255.255.240.0’ to database ‘TLPC_production’
- that isn’t a host
- if I change my database.yml so that the password is incorrect, I get a more sensible message: Access denied for user ‘tlpc’@‘guilder.dreamhost.com’ (using password: YES)
- where’s the “using password”?
- I can login to the database no problem using those exact credentials from the same folder
It’s as if the authentication succeeds, then the request is somehow rerouted with a weird hostname, and THAT fails.
I did try adding that mask-like “hostname” to the allowable hosts for “tlpc” to no avail. And I’ve only seen this happen on my Dreamhost server. And it was happening before the Rails upgrade (only moments before, it turns out).
Weird. Look familiar to anyone?