Bug#929157: sympa: wwsympa stops working after upgrade: Can't locate object method "host_port" via package "URI::_generic"

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#929157: sympa: wwsympa stops working after upgrade: Can't locate object method "host_port" via package "URI::_generic"

Tobias Frost-3
Package: sympa
Version: 6.2.40~dfsg-1
Severity: important

Dear maintainers,

I've upgraded sympa from
6.2.32~dfsg-2 to 6.2.40~dfsg-1

After the upgrade, fcgiwrap's log contains:

Mai 18 12:06:45 <server> wwsympa[16168]: err main::#1489 > Sympa::WWW::Tools::get_my_url#223 > Sympa::get_url#762 DIED: Can't locate object method "host_port" via package "URI::_generic" at /usr/share/sympa/lib/Sympa.pm line 762.

Please let me know if can provide additional information.

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

Kernel: Linux 4.9.0-8-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sympa depends on:
ii  adduser                           3.118
ii  ca-certificates                   20190110
ii  dbconfig-common                   2.0.11
ii  debconf [debconf-2.0]             1.5.71
ii  fonts-font-awesome                5.0.10+really4.7.0~dfsg-1
ii  libarchive-zip-perl               1.64-1
ii  libc6                             2.28-10
ii  libcgi-fast-perl                  1:2.13-1
ii  libcgi-pm-perl                    4.40-1
ii  libclass-singleton-perl           1.5-1
ii  libcrypt-eksblowfish-perl         0.009-2+b5
ii  libcrypt-openssl-x509-perl        1.8.12-1
ii  libcrypt-smime-perl               0.25-1+b1
ii  libdatetime-format-mail-perl      0.4030-1
ii  libdbd-csv-perl                   0.5300-1
ii  libdbd-mysql-perl                 4.050-2
ii  libdbd-pg-perl                    3.7.4-3
ii  libdbd-sqlite3-perl               1.62-3
ii  libdbi-perl                       1.642-1+b1
ii  libfcgi-perl                      0.78-2+b3
ii  libfile-copy-recursive-perl       0.44-1
ii  libfile-nfslock-perl              1.29-1
ii  libhtml-format-perl               2.12-1
ii  libhtml-stripscripts-parser-perl  1.03-2
ii  libhtml-tree-perl                 5.07-2
ii  libintl-perl                      1.26-2
ii  libio-stringy-perl                2.111-3
ii  libjs-jquery                      3.3.1~dfsg-3
ii  libjs-jquery-migrate-1            1.4.1-1
ii  libjs-jquery-minicolors           2.2.6+dfsg-3
ii  libjs-jquery-ui                   1.12.1+dfsg-5
ii  libmail-dkim-perl                 0.54-1
ii  libmailtools-perl                 2.18-1
ii  libmime-charset-perl              1.012.2-1
ii  libmime-encwords-perl             1.014.3-2
ii  libmime-lite-html-perl            1.24-3
ii  libmime-tools-perl                5.509-1
ii  libnet-cidr-perl                  0.19-1
ii  libnet-dns-perl                   1.19-1
ii  libnet-ldap-perl                  1:0.6500+dfsg-1
ii  libnet-netmask-perl               1.9104-1
ii  libregexp-common-perl             2017060201-1
ii  libsoap-lite-perl                 1.27-1
ii  libtemplate-perl                  2.27-1+b1
ii  libterm-progressbar-perl          2.22-1
ii  libunicode-linebreak-perl         0.0.20190101-1
ii  libxml-libxml-perl                2.0134+dfsg-1
ii  lsb-base                          10.2019031300
ii  mhonarc                           2.6.19-2
ii  perl                              5.28.1-6
ii  postfix [mail-transport-agent]    3.4.5-1
ii  rsyslog [system-log-daemon]       8.1901.0-1
ii  sqlite3                           3.27.2-2

Versions of packages sympa recommends:
pn  apache2-suexec                     <none>
pn  default-mysql-server | postgresql  <none>
ii  doc-base                           0.10.8
pn  libapache2-mod-fcgid               <none>
pn  libcrypt-ciphersaber-perl          <none>
ii  libio-socket-ssl-perl              2.060-3
ii  locales                            2.28-10
ii  logrotate                          3.14.0-4

Versions of packages sympa suggests:
pn  libauthcas-perl         <none>
pn  libdbd-odbc-perl        <none>
pn  libdbd-oracle-perl      <none>
ii  nginx-full [httpd-cgi]  1.14.2-2

-- debconf information:
  sympa/pgsql/app-pass: (password omitted)
  sympa/app-password-confirm: (password omitted)
  sympa/password-confirm: (password omitted)
  sympa/pgsql/admin-pass: (password omitted)
  sympa/mysql/admin-pass: (password omitted)
  sympa/mysql/app-pass: (password omitted)
* wwsympa/fastcgi: true
* sympa/dbconfig-reinstall: true
* sympa/hostname: <hostname>
  sympa/remote/host: localhost
  sympa/dbconfig-remove: true
  sympa/pgsql/admin-user: postgres
  sympa/upgrade-backup: true
  sympa/pgsql/method: TCP/IP
* sympa/database-type: mysql
  sympa/internal/reconfiguring: false
  sympa/remote/newhost:
  sympa/pgsql/no-empty-passwords:
  sympa/pgsql/manualconf:
* wwsympa/remove_spool: false
  sympa/purge: false
  sympa/remove_spool: false
  sympa/db/basepath:
  sympa/upgrade-error: abort
  sympa/internal/skip-preseed: false
* wwsympa/wwsympa_url: <hostname>/sympa
  sympa/install-error: abort
* sympa/db/app-user: sympa@localhost
* sympa/language: de
  sympa/pgsql/changeconf: false
  sympa/pgsql/authmethod-admin: ident
* sympa/dbconfig-install: true
* sympa/use_soap: false
* wwsympa/webserver_type: Other
  sympa/remove-error: abort
* sympa/mysql/admin-user: root
* sympa/listmaster: <removed-for-privacy>
  sympa/passwords-do-not-match:
  sympa/dbconfig-upgrade: true
  sympa/missing-db-package-error: abort
* sympa/db/dbname: sympa
* sympa/mysql/method: Unix socket
  sympa/remote/port:
  sympa/pgsql/authmethod-user: password

Reply | Threaded
Open this post in threaded view
|

Bug#929157: sympa: wwsympa stops working after upgrade: Can't locate object method "host_port" via package "URI::_generic"

Tobias Frost-3
On Sat, 18 May 2019 12:32:08 +0200 Tobias Frost <[hidden email]>
wrote:

> Mai 18 12:06:45 <server> wwsympa[16168]: err main::#1489 >
Sympa::WWW::Tools::get_my_url#223 > Sympa::get_url#762 DIED: Can't
locate object method "host_port" via package "URI::_generic" at
/usr/share/sympa/lib/Sympa.pm line 762.

Additional information: I've commented that line and at least wwsympa
does not bark as loud as before and I get a web interface showing in
the browser (I did not test functionality yet)

With that, there is another hint in nginx's error log:

2019/05/18 13:20:22 [error] 21610#21610: *150 FastCGI sent in stderr:
"[Sat May 18 13:20:22 2019] wwsympa.fcgi: Use of uninitialized value in
string eq at /usr/share/sympa/lib/Sympa.pm line 759" while reading
upstream, client: 87.166.233.22, server: <host>, request: "GET /wws/
HTTP/2.0", upstream: "fastcgi://unix:/run/fcgiwrap.socket:", host:
"<host>"

--
tobi

Reply | Threaded
Open this post in threaded view
|

Bug#929157: sympa: wwsympa stops working after upgrade: Can't locate object method "host_port" via package "URI::_generic"

Stefan Hornburg (Racke)
On 5/18/19 1:21 PM, Tobias Frost wrote:

> On Sat, 18 May 2019 12:32:08 +0200 Tobias Frost <[hidden email]>
> wrote:
>
>> Mai 18 12:06:45 <server> wwsympa[16168]: err main::#1489 >
> Sympa::WWW::Tools::get_my_url#223 > Sympa::get_url#762 DIED: Can't
> locate object method "host_port" via package "URI::_generic" at
> /usr/share/sympa/lib/Sympa.pm line 762.
>
> Additional information: I've commented that line and at least wwsympa
> does not bark as loud as before and I get a web interface showing in
> the browser (I did not test functionality yet)
>
> With that, there is another hint in nginx's error log:
>
> 2019/05/18 13:20:22 [error] 21610#21610: *150 FastCGI sent in stderr:
> "[Sat May 18 13:20:22 2019] wwsympa.fcgi: Use of uninitialized value in
> string eq at /usr/share/sympa/lib/Sympa.pm line 759" while reading
> upstream, client: 87.166.233.22, server: <host>, request: "GET /wws/
> HTTP/2.0", upstream: "fastcgi://unix:/run/fcgiwrap.socket:", host:
> "<host>"
That's odd - the URI module itself certainly supports ->host_port.
What is the configuration value of wwsympa_url (global and/or robot setting).

Regards
         Racke


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#929157: sympa: wwsympa stops working after upgrade: Can't locate object method "host_port" via package "URI::_generic"

Tobias Frost-3
In reply to this post by Tobias Frost-3
Control: severity -1 normal

PS: I've found the reason:

wwsympa_url did not contain the scheme, after adding https:// to it, it
works again.

I'm reducing the severity; Please close the bug if you think this is
not an regression. (as it worked earlier with the exact same settings)