Open link in a new tab

Content

Expand project menu

Default password for MySQL database

Hi. I’m trying to do a reconfigure of openproject-ce as suggested to me to solve a problem in a different thread. However, I don’t recall ever being asked to provide a password for the database during the packaged installation. In order to reconfigure, I need to provide a password.

Does anybody know what the default is? Also, how would I go about changing the default?

Thanks
Kendell

Message actions

I also had the same problem. I installed using the core packaged mode but didn’t put any password. MySQL was running on Ubuntu and I was able to find the username and password on /etc/MySQL/debian.cnf.

It work though even if I didn’t enter any password on the core packaged installation. I just need to put back my previous database from 4.0 and all seems working.

Message actions

Hi,

the database password is auto generated. You can find it and a lot of other variables in /etc/openproject-ce/install.dat. The folder etc/openproject-ce is generally used to store all configuration data for the OpenProject CE instance. So if you are looking for other configuration like email and so on you will find it there too.

If you have any further questions regarding this topic please feel free to ask.

Cheers,
Karsten

Message actions

Nice! do you happen to know where I can put also the attachments by default. I made an openproject backup and I have attachments on my previous openproject. I was restoring it and don’t know where to put the attachment folder.

Karsten Gallinowski wrote:

Hi,

the database password is auto generated. You can find it and a lot of other variables in /etc/openproject-ce/install.dat. The folder etc/openproject-ce is generally used to store all configuration data for the OpenProject CE instance. So if you are looking for other configuration like email and so on you will find it there too.

If you have any further questions regarding this topic please feel free to ask.

Cheers,
Karsten

Message actions

Oh I think I got it based on the installer.dat.

/var/db/openproject/files

Message actions

Hi Sonny,

please have a look at this documentation: https://www.openproject.org/open-source/packaged-installation/packaged-installation-community/. Under OpenProject command line tool you can read how to configure OpenProject CE. All configuration changes made via this tool will be stored in /etc/openproject-ce. There is also a backup mechanism included: openproject-ce run backup. Just if you are not aware of this feature ;-) …

Cheers,
Karsten

Message actions

Thanks Karsten.

Now I’m having trouble restoring the last file SVN. Not sure though why it is not getting it. I’ve set back the API key but still it gives me an internal error.

File paths seems correct. Am I missing to restore something for SVN?

Karsten Gallinowski wrote:

Hi Sonny,

please have a look at this documentation: https://www.openproject.org/open-source/packaged-installation/packaged-installation-community/. Under OpenProject command line tool you can read how to configure OpenProject CE. All configuration changes made via this tool will be stored in /etc/openproject-ce. There is also a backup mechanism included: openproject-ce run backup. Just if you are not aware of this feature ;-) …

Cheers,
Karsten

Message actions

Maybe a permissions issue? Can you paste some logs so we can figure it out together. Logs are located at /var/log/openproject-ce.

Message actions

Here are the last lines .

cron-create-svn-repositories.log
Unable to connect to http://127.0.0.1:6000: 757: unexpected token at ‘Access denied. Repository management WS is disabled or key is invalid.’

Message actions

Karsten Gallinowski wrote:

Maybe a permissions issue? Can you paste some logs so we can figure it out together. Logs are located at /var/log/openproject-ce.

Thanks for pointing me on the right direction Karsten.

I checked the production log instead and found out that the system is running low on memory.
I was able to make it work. It is running on low memory and need to change instance type on AWS for it to work.

Message actions

Besides the /etc/openproject/installer.dat also check the /etc/openproject/conf.d/database as it contains the database URL:
export DATABASE_URL="mysql2://<mydbuser>:<mydbpass>localhost:3306/openproject"@