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

2020-01-15 Thread Aldo
Hi there,

same error on the sympa instance of lists.fs.lmu.de/sympa, for us the error
occurred every time someone tried to open Support->Documentation in the header
menu of the main page, also they would see an error there instead of the main
documentation page. Sub-pages (e.g. $DOMAIN/sympa/help/introduction) did work,
though, and after a bit of looking around I found out that the page that would
be shown at /help is also reachable at /help/index, so the issue (broken help
page and log error) can be avoided by adding the following line to our nginx
config before the URL is forwarded to fastcgi:

rewrite sympa/help$ /sympa/help/index redirect;

To answer a question previously asked in this bug thread: in our case, the
global config does not contain any wwsympa_url entry, but the robot configs in
question have an entry of the form "wwsympa_url   https://DOMAIN.TLD/sympa;.

Kind regards,
Aldo



signature.asc
Description: OpenPGP digital signature


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

2019-05-18 Thread Stefan Hornburg (Racke)
On 5/18/19 1:21 PM, Tobias Frost wrote:
> On Sat, 18 May 2019 12:32:08 +0200 Tobias Frost 
> wrote:
> 
>> Mai 18 12:06:45  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: , request: "GET /wws/
> HTTP/2.0", upstream: "fastcgi://unix:/run/fcgiwrap.socket:", 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
Description: OpenPGP digital signature


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

2019-05-18 Thread Tobias Frost
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)



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

2019-05-18 Thread Tobias Frost
On Sat, 18 May 2019 12:32:08 +0200 Tobias Frost 
wrote:

> Mai 18 12:06:45  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: , request: "GET /wws/
HTTP/2.0", upstream: "fastcgi://unix:/run/fcgiwrap.socket:", host:
""

--
tobi



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

2019-05-18 Thread Tobias Frost
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  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-awesome5.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-perl4.40-1
ii  libclass-singleton-perl   1.5-1
ii  libcrypt-eksblowfish-perl 0.009-2+b5
ii  libcrypt-openssl-x509-perl1.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-perl3.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-perl2.111-3
ii  libjs-jquery  3.3.1~dfsg-3
ii  libjs-jquery-migrate-11.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-perl1.24-3
ii  libmime-tools-perl5.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-perl2.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 
pn  default-mysql-server | postgresql  
ii  doc-base   0.10.8
pn  libapache2-mod-fcgid   
pn  libcrypt-ciphersaber-perl  
ii  libio-socket-ssl-perl  2.060-3
ii  locales2.28-10
ii  logrotate  3.14.0-4

Versions of packages sympa suggests:
pn  libauthcas-perl 
pn  libdbd-odbc-perl
pn  libdbd-oracle-perl  
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: 
  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: /sympa
  sympa/install-error: abort
* sympa/db/app-user: sympa@localhost
* sympa/language: de
  sympa/pgsql/changeconf: false
  sympa/pgsql/authmethod-admin: