YunoHost-Apps / kbin_ynh

Kbin is a decentralized content aggregator and microblogging platform running on the Fediverse network.
GNU Affero General Public License v3.0
6 stars 1 forks source link

KBIN Database fails to deploy #3

Open adcura opened 1 year ago

adcura commented 1 year ago

Describe the bug

When run the install script fails to create a database:

I'm wondering if the problem is that the manifest.toml already creates a database called kbin and grants a kbin user privileges: Provisionning database... 2023-07-19 20:13:33,664: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_database" 7>&1']' It seems that the name of the database is "kbin" here

Then the doctrine:database:create also tries to create a database with the same name, which is when the 42501 inssuficient privilege error occurs - would changing the name of the database that the manifest resources.database section creates allow the other database create to run?

Context

Steps to reproduce

sudo yunohost app install https://github.com/YunoHost-Apps/kbin_ynh/tree/testing --debug

Logs

https://[paste.yunohost.org/raw/ozovuyewuc](https://paste.yunohost.org/raw/ozovuyewuc)