Am 18.02.2013 22:50, schrieb Simon Elsbrock:
Package: otrs2
Version: 3.1.7+dfsg1-6
Severity: normal
Dear Maintainer,
when installing OTRS and choosing to not have dpkg automatically
configure the database setup, the installation fails with the following
error:
Setting up libxml-feedpp-perl (0.43-1) ...
Setting up libgd-gd2-perl (1:2.46-3+b1) ...
Setting up libgd-text-perl (0.86-8) ...
Setting up libgd-graph-perl (1.44-6) ...
Setting up otrs2 (3.1.7+dfsg1-6) ...
dbconfig-common: writing config to /etc/dbconfig-common/otrs2.conf
Creating config file /etc/dbconfig-common/otrs2.conf with new version
Creating config file /etc/otrs/database.pm with new version
Creating config file /etc/otrs/Kernel/Config.pm with new version
Creating config file /etc/otrs/Kernel/Config/GenericAgent.pm with new version
Creating config file /etc/otrs/maintenance.html with new version
Creating config file /etc/otrs/cron with new version
Creating config file /etc/otrs/fetchmailrc with new version
Creating config file /etc/apache2/conf.d/otrs2 with new version
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
[ ok ] Reloading apache2 configuration (via systemctl): apache2.service.
DBI connect('database=otrs;host=localhost;port=3306;','otrs',...) failed: Can't
connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
at /usr/share/otrs/Kernel/System/DB.pm line 256
ERROR: OTRS-otrs.RebuildConfig.pl-10 Perl: 5.14.2 OS: linux Time: Mon Feb 18
22:23:50 2013
Message: Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)
Traceback (28745):
Module: Kernel::System::DB::new (v1.144.2.1) Line: 227
Module: ./bin/otrs.RebuildConfig.pl (v1.14) Line: 55
Got no DBObject! at /usr/share/otrs/Kernel/System/SysConfig.pm line 103.
dpkg: error processing otrs2 (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
otrs2
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is because the postinst script enables the OTRS configuration in Apache,
which in turn tries to instantiate OTRS without a configured database. I think
the installer should not install an Apache config at all (nor should it
activate it), but instead just supply and point the user to a sample config
(similar to e.g. what the mediawiki package does).
I do not think that I will and can change this. otrs heavy depends on a
working database, also the cronjobs etc. So it requires a working database!
--
/*
Mit freundlichem Gruß / With kind regards,
Patrick Matthäi
GNU/Linux Debian Developer
Blog: http://www.linux-dev.org/
E-Mail: pmatth...@debian.org
patr...@linux-dev.org
*/
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org