Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sympa 6.2.66 web interface returns "400 bad request" after upgrading to apache 2.4.52-1ubuntu4.10 #1863

Closed
albsol opened this issue Jul 10, 2024 · 7 comments
Labels
packaging On source distribution and derived packages question

Comments

@albsol
Copy link

albsol commented Jul 10, 2024

We have an Ubuntu 22.04 server with Sympa "6.2.66" and apache2 "2.4.52-1ubuntu4.9" installed.

After an automatic packages update, apache packages with "2.4.52-1ubuntu4.10" new version has been installed and it seems this new version has broken sympa web interface that returned an error like this:

Bad Request
Your browser sent a request that this server could not understand.
Apache/2.4.52 (Ubuntu) Server at huapacha.upc.edu Port 443

Version

sympa 6.2.66~dfsg-2
apache 2.4.52-1ubuntu4.10
ubuntu 22.04

Installation method

https://www.sympa.community/manual/install/install-sympa-distribution-debian.html
https://www.sympa.community/manual/install/configure-http-server-systemdsocket.html

Expected behavior

Sympa web interface would have to work after ubuntu apache packages upgrading

Actual behavior

Sympa web interface URL
https://server/wws

returns an 400 error like this:

Bad Request
Your browser sent a request that this server could not understand.
Apache/2.4.52 (Ubuntu) Server at huapacha.upc.edu Port 443

Steps to reproduce

  1. Update apache packages to "2.4.52-1ubuntu4.10" (last version right now):
    apt-get install apache2 apache2-bin apache2-data apache2-utils

Additional information

No issues after automatic upgrades to these ubuntu apache versions:

2.4.52-1ubuntu4.4
2.4.52-1ubuntu4.6
2.4.52-1ubuntu4.7
2.4.52-1ubuntu4.9

Apache access.log shows this:

10.84.127.35 - - [10/Jul/2024:10:32:51 +0200] "GET /wws HTTP/1.1" 400 7860 "-" "centreon::plugins::backend::http::useragent"
10.84.127.35 - - [10/Jul/2024:10:37:51 +0200] "GET /wws HTTP/1.1" 400 7860 "-" "centreon::plugins::backend::http::useragent"

Apache error.log shows errors like this:

[Wed Jul 10 10:32:51.700126 2024] [proxy_fcgi:error] [pid 52983] [client 10.84.127.35:55804] AH01059: error parsing URL //: Invalid host/port
[Wed Jul 10 10:37:51.686241 2024] [proxy_fcgi:error] [pid 53056] [client 10.84.127.35:60354] AH01059: error parsing URL //: Invalid host/port

  • File /etc/apache2/conf-enabled/sympa.conf
#
# Apache >> 2.4 configuration for Sympa
#

<IfModule mod_proxy_fcgi.c>
    Alias /static-sympa /usr/share/sympa/static_content
    <Directory /usr/share/sympa/static_content>
        Require all granted
    </Directory>

    Alias /css-sympa /var/lib/sympa/css
    <Directory /var/lib/sympa/css>
        Require all granted
    </Directory>

    Alias /pictures-sympa /var/lib/sympa/pictures
    <Directory /var/lib/sympa/pictures>
        Require all granted
    </Directory>

    <Location /wws>
       SetHandler "proxy:unix:/run/sympa/wwsympa.socket|fcgi://"
       Require all granted
    </Location>
</IfModule>

@albsol albsol added the bug label Jul 10, 2024
@ikedas
Copy link
Member

ikedas commented Jul 10, 2024

@albsol
Copy link
Author

albsol commented Jul 10, 2024

Thank you very much, this discussion gave the solution, modifying these files
/etc/apache2/conf-available/sympa.conf
/etc/apache2/conf-available/sympa-soap.conf

and adding localhost in this line:
SetHandler "proxy:unix:/run/sympa/wwsympa.socket|fcgi://localhost"

after reloading apache sympa web interface is working again.

@ikedas ikedas added question and removed bug labels Jul 10, 2024
@ikedas ikedas closed this as completed Jul 11, 2024
@jmvjmv57
Copy link

Thanks, this solution works for me too. Apache 2.4.52-1ubuntu4.11, Sympa 6.2.66~dfsg-2 on Ubuntu 22.04.4 LTS

@sebix
Copy link

sebix commented Jul 13, 2024

The same happened on Debian 12 bookworm. The workaround works too.

@racke
Copy link
Contributor

racke commented Jul 15, 2024

Fixed in Debian package 6.2.72~dfsg-1.

@ikedas ikedas added the packaging On source distribution and derived packages label Jul 15, 2024
@ikedas
Copy link
Member

ikedas commented Jul 19, 2024

I saw Ubuntu oracular also followed.

@paulmenzel
Copy link

Thank you. This saved me some time. /var/log/apache2/error.log contained:

AH01059: error parsing URL //: Invalid host/port

Upgrade happened back in July. :/

/var/log/dpkg.log.2.gz:2024-07-13 06:01:02 upgrade apache2-bin:amd64 2.4.59-1~deb12u1 2.4.61-1~deb12u1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packaging On source distribution and derived packages question
Projects
None yet
Development

No branches or pull requests

6 participants