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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/