Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KBIN Database fails to deploy #3

Open
adcura opened this issue Jul 19, 2023 · 0 comments
Open

KBIN Database fails to deploy #3

adcura opened this issue Jul 19, 2023 · 0 comments

Comments

@adcura
Copy link

adcura commented Jul 19, 2023

Describe the bug

When run the install script fails to create a database:

  • sudo -u kbin php8.2 -d /var/www/kbin -d memory_limit=-1 /var/www/kbin/bin/console doctrine:database:create
    2023-07-19 20:15:35,298: DEBUG - Could not create database "kbin" for connection named default

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

  • Hardware: Helios64 rockchip, armbian bullseye
  • YunoHost version:11.2.1
  • I have access to my server: *Through SSH and through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: kbin_ynh/testing

Steps to reproduce

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

Logs

https://paste.yunohost.org/raw/ozovuyewuc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant