Package: postfixadmin
Version: 4.0.5+ds-1
Severity: grave
Justification: renders package unusable

Postfixadmin dies at the start, because autoloader configuration generated by php-composer is not found. Instead of tha login page, httpd returns only this:

vendor/autoload.php is missing. Please run 'install.sh' or follow the instructions in INSTALL.TXT

This was already reporter as but 1135837, but closed with upload of a new upstream version 4.0.4+ds and archived. What exactly was the new upstream version supposed to fix here? The bug is still reproducible with 4.0.5+ds-1.

I believe the problem is here: postfixadmin commits suicide at the startup, because ./vendor/autoload.php does not exist.

/usr/share/postfixadmin/common.php:
------
<?php

if (!is_file(dirname(__FILE__) . '/vendor/autoload.php')) {
    die("vendor/autoload.php is missing. Please run 'install.sh' or follow the instructions in INSTALL.TXT");
}
require_once(dirname(__FILE__) . '/vendor/autoload.php');
------

Upstream uses php-composer to manage php dependencies. When packaged to debian, I guess this is not the case but dependencies are handled the Debian way, as they should. Thus we do not have the composer-generated autoloader configuration.

Or am I missing something?


-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 7.2.8+deb14-cloud-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages postfixadmin depends on:
ii  apache2 [httpd]                          2.4.69-1
ii  dbconfig-common                          2.1.0
ii  debconf [debconf-2.0]                    1.5.92
ii  libjs-bootstrap                          3.4.1+dfsg-7
ii  libjs-eonasdan-bootstrap-datetimepicker  4.17.47-6
ii  libjs-jquery                             3.7.1+dfsg+~3.5.33-1
ii  libjs-moment                             2.31.0+ds1-1
ii  mariadb-client                           1:11.8.9+ds-2
ii  php-fpm                                  2:8.4+99
ii  php-mbstring                             2:8.4+99
ii  php-mysql                                2:8.4+99
ii  php8.4 [php]                             8.4.24-1
ii  php8.4-fpm [php-fpm]                     8.4.24-1
ii  php8.4-mbstring [php-mbstring]           8.4.24-1
ii  php8.4-mysql [php-mysqlnd]               8.4.24-1
ii  smarty4                                  4.5.5-1
ii  wwwconfig-common                         0.3.0.1

Versions of packages postfixadmin recommends:
ii  apache2 [httpd]       2.4.69-1
ii  dovecot-core          1:2.4.5+dfsg1-2
ii  php8.4-cli [php-cli]  8.4.24-1

Versions of packages postfixadmin suggests:
ii  mariadb-server [virtual-mysql-server]  1:11.8.9+ds-2
pn  postfix-mysql | postfix-pgsql          <none>
ii  sqlite3                                3.53.4-2

-- debconf information:
  postfixadmin/internal/reconfiguring: false
  postfixadmin/purge: false
  postfixadmin/dbconfig-reinstall: false
  postfixadmin/mysql/method: Unix socket
  postfixadmin/remote/newhost:
  postfixadmin/upgrade-error: abort
  postfixadmin/remote/host: localhost
  postfixadmin/mysql/authplugin: default
  postfixadmin/upgrade-backup: true
  postfixadmin/db/app-user: postfixadmin@localhost
  postfixadmin/missing-db-package-error: abort
  postfixadmin/mysql/admin-user: root
  postfixadmin/dbconfig-remove: true
  postfixadmin/dbconfig-upgrade: true
  postfixadmin/passwords-do-not-match:
  postfixadmin/install-error: abort
  postfixadmin/remote/port:
  postfixadmin/internal/skip-preseed: false
* postfixadmin/database-type: mysql
  postfixadmin/remove-error: abort
  postfixadmin/db/dbname: postfixadmin
* postfixadmin/dbconfig-install: true
+root@deb:~#

--
Samuli Suonpää

Reply via email to