[Koha-bugs] [Bug 26559] New: koha-create fails to upgrade database

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 29 10:23:18 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26559

            Bug ID: 26559
           Summary: koha-create fails to upgrade database
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Packaging
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: magnus at libriotech.no
        QA Contact: testopia at bugs.koha-community.org
                CC: mtj at kohaaloha.com

When I run koha-create, with DEFAULTSQL set to the path of an existing database
dump, I get an error when it tries to upgrade the database:

$ sudo koha-create --create-db --letsencrypt --configfile student.conf mykoha
staff user password is '***' but keep that secret
Upgrading database schema for mykoha
DBI connect('database=koha_mykoha;host=localhost;port=3306','koha_mykoha',...)
failed: Access denied for user 'koha_mykoha'@'localhost' (using password: YES)
at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1517.
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: Access denied
for user 'koha_mykoha'@'localhost' (using password: YES) at
/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1520. at
/usr/share/koha/lib/Koha/Database.pm line 116

After this, the Apache config file is created at
/etc/apache2/sites-available/mykoha.conf, but the symlink at
/etc/apache2/sites-enabled/mykoha.conf is not created. 

I can run koha-mysql and get access to the database, where the data from
DEFAULTSQL has been loaded. 

If I comment out line 734 of koha-create:

 koha-upgrade-schema "$name"

things run as expected, and the Apache config symlink is created.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list