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
This instructions assumes we all know how to use SSH...
Can you give us clear instructions to manage this?
thanks
Thank you Lev Iurev - your solution works on AWS!
I tried only adding sudo in front of the command. But I see now why this is not working. So for everyone out there with similar issues with the following response:
Then please follow Lev's solution and start by doing this first:
tried several things but get an error Could not open lock file /var/lib/dpkg/lock-frontend -open (13: Permission denied) on 2 servers.
must be missing something; for now I flipped the sites to Fast-CGI and it seems to have worked... fingers crossed
-Tim
You can try my walkaround above.
Follow the steps :)
Have fun!
Hi there,
i did the fix but now i have
I am running 3 machines with plesk on Lightsail
one is working now but the other 2 gives me the following error as soon as I run the downgrading command from sudo:
sudo: export: command not found
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '' for 'apache2' was not found
E: Version '' for 'apache2-utils' was not found
E: Version '' for 'apache2-data' was not found
E: Version '' for 'apache2-bin' was not found
please help
Tsviel and Tim, follow Lev's solution and add the following before doing the other commands:
There are some plesk updates I dont dare to update after today's incident. Stress quota for the month is already over.
Nipuna Maduranga this works for me Thank you very much.
Is this a temporary fix?
Do we need to go back to previous setting at one point?
thanks
@Tsviel Zaikman
I think export is a bash built-in, not sure why that won't work for you. But you can omit the export command by adding the version to the apt command manually like so:
Hi guys! Is there anyway someone can post a screen-cast of how to run this fix Ubuntu 18.04?
I an unfortunately all alone with this without any developer help and just don't have any idea where to start :(
My site is down and i am truly stuck. If someone can kindly post a step by step video i would be eternally grateful, you just wouldn't know how much this would help...
Fingers crossed.
Fitz
Tim posted this - tried several things but get an error Could not open lock file /var/lib/dpkg/lock-frontend -open (13: Permission denied) on 2 servers.
Make sure you are running the commands as root.
Okay, the workaround is working for me also. Websites back online.
But how is this even possible... ?
Thank you very much, now my server is up. Just a simple step. Thank you for the information.
Yeah, the walkarounds works and everything gets back up as usual, but if you have worfence security installed and 2FA ON, you wont be able to login, you will get this
but dont worry, after the Plesk team pushes a fix, you can revert those settings back to what they were and apply what the Plesk team tell you to do and everything should be back to normal as usual, hopefully :)
Our best bet is to be patient until the official fix comes out from the Plesk team.
Until then, have a great day ahead y'all. :)
Reading package lists... Done
Building dependency tree
I get this error
Reading state information... Done
E: Version '2.4.41-4ubuntu3' for 'apache2' was not found
E: Version '2.4.41-4ubuntu3' for 'apache2-utils' was not found
E: Version '2.4.41-4ubuntu3' for 'apache2-data' was not found
E: Version '2.4.41-4ubuntu3' for 'apache2-bin' was not found
I really do not know what I am supposed to be doing to fix this problem. I am not a developer and do not know where to start
can anyone help please
Yo, you guys, if you are not familiar with SSH, dont try to mess around cause it could cause problems in the future if you get anything wrong, so be carefull, just a headsup for all the people who doesnt know about SSH :)
Oh thank God, 25 sites were down in my server. Thanks for the workaround, but waiting for the permanent fix. Thanks!
@symon Horton Yes I can help you if you need
The command asks at the end Do you want to continue [J/n] ABort (Möchten Sie fortfahren? [J/n] Abbruch.)
After Typing "J" nothing happens.
What shall I do?
@Peter Hader Input J and press Enter then it will continue.
Great, it worked. Will there be any manual changes to be made in the future for apache to keep updating correctly?
Can someone help me?
I tried but nothing change
TechTheBoy is there any chance you can explain the steps of the 'Now, Click on Hosting and DNS' stage of the fix? as i cant seem to find this anywhere in Plesk... if you could make a short screen cast of applying the fit it would be even better!
Fitz
@Alessio Pellegrini I had the same "error"
It worked when I tried "Downgrade Apache to previous version" (the command) multiple times, after the 2nd try it worked :)
If there's "Abort." it won't work.
@Fitz Click on Hosting and DNS on the top menu bar
You are a good i love you !!!!! tnx you very much i have fix the problem !!!!!!!
Alessio Pellegrini don't type "y" press "enter"
@Prasad Madusanka Mahabage Are you sure you are using the solution for the right version? I've seen that message when I tried the version 20.04 solution on Ubuntu 18.04
Please sign in to leave a comment.