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). Thanks for maintaining OTRS. Cheers, Simon -- System Information: Debian Release: 7.0 APT prefers testing APT policy: (650, 'testing'), (50, 'experimental'), (50, 'unstable'), (50, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 armel Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages otrs2 depends on: ii adduser 3.113+nmu3 ii apache2-mpm-worker [httpd-cgi] 2.2.22-12 ii dbconfig-common 1.8.47+nmu1 ii debconf [debconf-2.0] 1.5.49 ii libauthen-sasl-perl 2.1500-1 ii libcrypt-passwdmd5-perl 1.3-10 ii libcss-minifier-perl 0.01-1 ii libdate-pcalc-perl 6.1-1+b2 ii libdbd-mysql-perl 4.021-1+b1 ii libdbi-perl 1.622-1 ii libemail-valid-perl 0.190-1 ii libgd-graph-perl 1.44-6 ii libgd-text-perl 0.86-8 ii libio-stringy-perl 2.110-5 ii libjavascript-minifier-perl 1.05-1 ii libjs-jquery 1.7.2+dfsg-1 ii libjs-jquery-ui 1.8.ooops.21+dfsg-2 ii libjs-prototype 1.7.0-2 ii libjs-yui 2.9.0.dfsg.0.1-0.1 ii libjson-perl 2.53-1 ii libmail-imapclient-perl 3.31-2 ii libmail-pop3client-perl 2.17-1 ii libmailtools-perl 2.09-1 ii libmime-tools-perl 5.503-1 ii libnet-imap-simple-perl 1.2030-1 ii libnet-imap-simple-ssl-perl 1.3-3 ii libnet-smtp-ssl-perl 1.01-3 ii libpdf-api2-perl 2.019-1 ii libsoap-lite-perl 0.714-1 ii libtext-csv-perl 1.21-1 ii libtext-diff-perl 1.41-1 ii libxml-feedpp-perl 0.43-1 ii libxml-parser-perl 2.41-1+b1 ii libyaml-perl 0.81-1 ii perl [libdigest-sha-perl] 5.14.2-18 ii ttf-dejavu-core 2.33-3 ii ttf-dejavu-extra 2.33-3 ii ucf 3.0025+nmu3 Versions of packages otrs2 recommends: ii aspell 0.60.7~20110707-1 pn libapache-dbi-perl <none> pn postgresql | mysql-server <none> pn procmail | maildrop <none> Versions of packages otrs2 suggests: pn libencode-hanextra-perl <none> ii libjson-xs-perl 2.320-1+b1 pn libnet-ldap-perl <none> pn libnet-smtp-tls-butmaintained-perl <none> pn libtext-csv-xs-perl <none> pn otrs2-doc-en | otrs2-doc-de <none> -- debconf information: otrs2/install-error: abort otrs2/remove-error: abort otrs2/pgsql/authmethod-admin: ident otrs2/pgsql/method: unix socket otrs2/db/app-user: otrs otrs2/pgsql/changeconf: false otrs2/pgsql/authmethod-user: ident otrs2/internal/skip-preseed: true otrs2/remote/port: otrs2/upgrade-backup: true otrs2/db/dbname: otrs2 otrs2/pgsql/admin-user: postgres otrs2/dbconfig-reinstall: false otrs2/db/basepath: * otrs2/dbconfig-install: false otrs2/pgsql/manualconf: otrs2/mysql/method: unix socket otrs2/dbconfig-remove: otrs2/upgrade-error: abort otrs2/remote/newhost: otrs2/internal/reconfiguring: false otrs2/purge: false * otrs2/database-type: mysql otrs2/pgsql/no-empty-passwords: otrs2/dbconfig-upgrade: true otrs2/passwords-do-not-match: otrs2/remote/host: otrs2/missing-db-package-error: abort otrs2/mysql/admin-user: root -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org