Applicable to:
- Plesk Obsidian for Linux
Symptoms
-
Websites show the following error:
CONFIG_TEXT: AH10292: Invalid proxy UDS filename (proxy:unix:///var/www/vhosts/system/example.com/php-fpm.sock|fcgi://127.0.0.1:9000/var/www/vhosts/example.com/httpdocs/public/index.php)
CONFIG_TEXT: Internal Server Error
-
Apache has been updated to a new version recently:
Ubuntu 20.04:
# grep 'status installed' /var/log/dpkg.log | grep apache2:amd64
2021-09-27 12:46:57 status installed apache2:amd64 2.4.41-4ubuntu3.5Ubuntu 18.04:
# grep 'status installed' /var/log/dpkg.log | grep apache2:amd64
2021-09-28 06:25:55 status installed apache2:amd64 2.4.29-1ubuntu4.17
Cause
This is an Apache bug which arose with Ubuntu packages update and later fixed in the following versions:
- Apache for Ubuntu 20 version 2.4.41-4ubuntu3.6.
- Apache for Ubuntu 18 version 2.4.29-1ubuntu4.18.
Plesk uses Apache packages from OS repositories and does not control their version updates.
Resolution
Update Apache packages to fix the issue:
-
Go to Tools & Settings > Server Management > System Updates and click Recheck now.
-
Once updates are detected, click Update all.
The issue should be fixed, verify that websites are back online.
-
Connect to the server using SSH.
-
Execute below command:
# sudo apt-mark unhold apache2
-
Apply steps 2-3 from the resolution.
Comments
318 comments
I can't solve this problem. whenever I try this solution I get the following message "The System Updates tool is already installing updates in automatic mode. Please try later."
Please advise. thank you
Thank you for the fix. Perhaps you can send out a mailing next time. If you can send me a notice that my monthly cost is going up, you can also notify me when sites are broken.
Is NOT working to us. We have an Ubuntu 20 on Lightsail (Amazon)... We can see 9 new packages, but Plesk doesnt let us to install them... very sad. Our clients are very angry.... This was a very disaster to us
Is not working to us. Plesk said:
Error de actualización.
Nur fehlermeldungen ... nischt geht ... sch******
Andrés Villarroel Rojas it seems like there are some pending/broken updates. Please login to the server SSH console and execute "dpkg --configure -a" as suggested.
When i follow the guide from the OP, and hit Recheck, it doesn't find any updates.
this is the latest according to the panel: apache2-bin 2.4.29-1ubuntu4.17
However this article says apache2-bin 2.4.29-1ubuntu4.18 is the latest version.
I do not get that version though, or is the version being deployed later in the EU ?
Same here, German server @ Strato.
Downgraded eralier this morning, now followed the instructions for the update. Nothing works. Downgraded again and waiting for a new fix.
Edit: changing the repos helped, see further down below.
Server 500 error
apt-mark unhold apache2
apache2 was already not hold.
went to Plesk system updates : no updates ALL sites still offline for 12 hours
Can any one please help!
Netdata1
You can as a work around setup the websites to use FastCGI for the time being.
It will resolve the issues temporary, i have that setup for now. Until Strato deploys the correct Apache versions.
Johannes Reitter and LyfeRadio and Netdata1
Also using Strato.
To update to 2.4.29-1ubuntu4.18 you have to use official ubuntu repositories.
Here you can simply generate one by yourself: https://repogen.simplylinux.ch/generate.php
afterwards just paste in /etc/apt/sources.list and comment out the Strato ones. This one works for me
Paste the following for Ubuntu 18.04:
and on Ubuntu 20.04:
Hope I could help!
maxr2011 Cheers mate! That did the trick.
@Anton Maslov
Thanks. In my case I did:
That fixed my problem
Then, with less pression, I ran "dpkg --configure -a" as a Root, and Plesk let me aply the new packages
This day was terrible. Thanks for all the info share for us, but.... Plesk guys, please, check the new realeases before to update! .... please
There is no need to change the Strato-Repositorie. You can fix it with this solution and than you can wait for the new update:
1. Replace the updated version of PhysicalHosting.php
2. Rebuild webserver config
I'm on Ubuntu 18.04.6 and it says "up to date" near every apache2 2.4.29 element. I assume this is the latest update, right? But nothing changed. Do I need to restart everything? My websites still display Error 500, unless I use PHP FastCGI.
Luca Brezzi
https://support.plesk.com/hc/en-us/articles/4407366133906/comments/4407419074834
I'll just wait for Strato to release the update, this stuff is giving me a headache. Plus my sites work fine at the moment, so its all good.
What a fright it gave me! Thank you for this easy-to-apply fix. And thank you Google for leading me to this page.
I would suggest you to not use the official archive.ubuntu.com repository at that moment, as it is extremely slow (300KB/s) right now, use de.archive.ubuntu.com for example as provided above.
LyfeRadio Same here. Did the fix and was down again because of the Strato Repository. Got the site running again and will now wait to for strato to update the good files.
LyfeRadio
I wondered why they still did not release new versions. Previously I thought maybe the strato apt repository is just a proxy to the official ubuntu - for security purposes, but it seems they have their own apt repository set up with own versions.
Not sure which one is better to use atm
did the fast-cgi work around, and it worked for the site... but clients cant log in to wordpress? Logs show [crit] 1998899#0: *10786407 connect() to unix:///var/www/vhosts/system/sitename/php-fpm.sock failed (2: No such file or directory) while connecting to upstream.
I get that there is a new fix, but nervous to apply during the day... seasoned Windows Server admin pretending to know Ubuntu makes me nervous.
Hi thanks for the swift response on this.
I did the version 1 fix (downgrade apache2 to 2.4.41-4ubuntu3) and redid the final fix per released by apache launch, now the service is running however when I checked the running version of apache2, it shows:
httpd -version: 2.4.41-4ubuntu3.4
My understanding is that we have now updated to
2.4.41-4ubuntu3.5
right? What happened here?
=====
Did a refresh in the Plesk backend now after a few hours, seeing 2.4.41-4ubuntu3.6
I did have executed a reboot of my server after patching this morning. Any way glad to see this is finally fixed. Thank you for you guys' greatest effort on this.
OH thank you so much! My apache2 was already unhold, so I updated and upgraded the system and it worked for me. Thank God!
Thanks
Thank You
Same errors for all my websites, it's been 5 days
My way to fix for my Strato dedicated root servers with Ubuntu 18.04 LTS
1. login to your SSH console, then type in:
2. copy /etc/apt/sources.list to /etc/sources.list.strato to save the original Strato sources list
3. copy the posted sources.list for Ubuntu 18.04 LTS from here, certain posts above:
and paste them to a clear new sources.list file at /etc/apt/ directory.
Hint: you can use also the Midnight Commander (simply type "mc" and Enter at your SSH console). Just copy at next step here the new sources.list from step 3, open now the old sources.list at your Ubuntu server with MCEdit by hitting F4 after seleting the old sources.list file at Midnight Commander, clear it complete and then press Shift + Insert to paste the former copied text from your Windows clipboard in your new sources.list file. Hit F10 and yes to save the file.
4. run now the apt update and upgrade:
5. revert back your former saved original strato sources.list.strato to sources.list
Easy with MC - just copy (F5) the marked /etc/apt/sources.list strato file to /etc/apt/sources.list and overwrite the former changed file this way.
Now you should up to date and have set back your original Strato sources.list file.
Plesk inform you that you at your Plesk control panel you now uses up to date apache2-bin 2.4.29-1ubuntu4.18 (Ubuntu for bionic-updates by Ubuntu)
6. If all worked fine now, you should cleanup a little bit to save some space at your servers hdd by cleaning from unused older packages:
Thats all - this way you should be up to date and without the ERROR 500 message. ;-)
Greetings
Thanks.. yesterday had an error and today is fine by itself :)
I'm using Plesk with AWS Lightsail, how and where exactly can apply this updates?
I don't see the 'Tools & Settings...' that you are referring to.
Thank you in advance for your help.
R
Please sign in to leave a comment.