Content
Unable to 'Use existing Database' at install
Added by Joel Small over 9 years ago
I’ve been able to set up OP on Amazon AWS using both the bitnami loader and by using the package-ce installer.
Both work correctly after first install, however I can’t seem to get them to an existing database not on localhost. Instead of connecting to my mysql server on a different machine, The application attempts to connect to localhost via my network address.
I’m using the automated installer, and have also set the environment variable for DATABASE_URL. Neither have helped.
Has anyone attempted this before and come up with a solution?
EG, my database url is:
DATABASE_URL=mysql2://user:password@mysql1.region.rds.amazonaws.com:3306/openproject_ce
and the error i get is:
Mysql2::Error: Access denied for user ‘user’@‘172.xxx.xxx.xxx’ (using password: YES)
How do i force the connection to use the database as I have specified?
Replies (5)
Hello,
I am running into the same issue with the latest build. Is there any guidence on how to setup OpenProject on AWS using an RDS server as the database server?
Regards,
Ron
I admit I haven’t tried again since. Instead i used a local mysql install. Not ideal, but I wasn’t getting any more info from the forums here :(.
How are you running up your app? I was doing it on a ubuntu image.
Success!
There was a bug for setting up SMTP email where the password was not being encoded and some characters did not work at all. I did a reconfigure and tried encoding the password. This solved my problem.
I am also using an Ubuntu image, version 14.04.
In case it helps, you can also see the full list of environment variables currently used by doing a
openproject config
, and you can also get a specific env variable by running e.g.openproject config:get DATABASE_URL
. This way you can check whether your config is correct. Also, remember toservice openproject restart
if you manually update the configuration.Hi @Cyril Rohr:
IS there any documentation where we can get the whole set of env vars we can use?
It would be awesome to perform full install based upon all options at once, explained (here it's a bit messy).
Regards,
-- moutonjr