503 error

costas1

Member
Messages
146
Reaction score
4
Points
18
Trying to access a certain MediaWiki's PHP file has as a result a 503 error.

Here is the relative section of the error log:

2024-12-27 08:54:35.444809 [INFO] [3476326] [T0] [127.0.0.1:51888#APVH_www.driverspedia.org:443] connection to [uds://usr/local/lsws/extapp-sock/APVH_username_Suphp.sock] on request #0, confirmed, 1, associated process: 3484514, running: 1, error: Connection reset by peer!
2024-12-27 08:54:35.913063 [INFO] [3476326] [T0] [127.0.0.1:51888#APVH_www.driverspedia.org:443] connection to [uds://usr/local/lsws/extapp-sock/APVH_username_Suphp.sock] on request #0, confirmed, 1, associated process: 3484532, running: 1, error: Connection reset by peer!
2024-12-27 08:54:36.381287 [INFO] [3476326] [T0] [127.0.0.1:51888#APVH_www.driverspedia.org:443] connection to [uds://usr/local/lsws/extapp-sock/APVH_username_Suphp.sock] on request #0, confirmed, 1, associated process: 3484542, running: 1, error: Connection reset by peer!
2024-12-27 08:54:36.381352 [NOTICE] [3476326] [T0] [127.0.0.1:51888#APVH_www.driverspedia.org:443] Max retries has been reached, 503!
2024-12-27 08:54:36.381373 [NOTICE] [3476326] [T0] [127.0.0.1:51888#APVH_www.driverspedia.org:443] oops! 503 Service Unavailable
2024-12-27 08:54:36.381377 [NOTICE] [3476326] [T0] [127.0.0.1:51888#APVH_www.driverspedia.org:443] Content len: 0, Request line: 'GET /mw-config/index.php HTTP/1.1'
2024-12-27 08:54:36.381380 [INFO] [3476326] [T0] [127.0.0.1:51888#APVH_www.driverspedia.org:443] Cookie len: 47, mw_installer_session=5r3n3eg1p226gts4guh8nt5ga6
2024-12-27 08:54:36.381535 [INFO] [3476326] [T0] [127.0.0.1:51888#APVH_www.driverspedia.org:443] abort request..., code: 4

I have tried 3 different PHP versions 8.3, 8.2 and 8.1, which is the oldest compatible with the latest version of MediaWiki. Of course that made no difference.

What's going on with LiteSpeed server? Any ideas?
 

Eric S

Administrator
Staff member
Messages
1,116
Reaction score
158
Points
63
Your domain : driverspedia.org is giving a database error. This may be related to a PHP module needing enabled or a configuration on the setup.

I would suggest reviewing the requirements for mediawiki in which modules need to be enabled and make sure they are enabled on the service
 

costas1

Member
Messages
146
Reaction score
4
Points
18
Your domain : driverspedia.org is giving a database error. This may be related to a PHP module needing enabled or a configuration on the setup.

I would suggest reviewing the requirements for mediawiki in which modules need to be enabled and make sure they are enabled on the service

The domain is giving a database error because after updating to the latest version of MediaWiki software there is an incompatibility with the database, because a new table has been added.

In order to update the database I have to run update.php, but I'm unable to do so because when I visit the relative URL and start the process, after entering the upgrade key and hitting the button to move to the next step of the procedure I always get a 503 error.

Some times the error happens at the start of the process, when visiting the update URL, especially after happening at the aforementioned step, then revisiting the URL gives the error from the first step.
 

fusio

Member
Messages
64
Reaction score
5
Points
8
Check out this post in the litespeedtech community
I hope it helps you
 

costas1

Member
Messages
146
Reaction score
4
Points
18
In my case the connection is denied on request #0!

Anyway, should LSAPI appear in the control panel as a PHP module? Nothing relevant seems to be listed there.

Furthermore, if that's the issue how do I change the threshold?
 
Last edited:

costas1

Member
Messages
146
Reaction score
4
Points
18
In your control panel it should appear to configure the PHP version
What do you mean? Is it listed somewhere in the control panel?

By the way, what I experimented with is the "max_execution_time" and "max_input_time", both of which can be found in the "Options" tab of the "PHP Selector". I increased their default values significantly, but it made no difference. I again got the 503 error immediately.
 

fusio

Member
Messages
64
Reaction score
5
Points
8
What do you mean? Is it listed somewhere in the control panel?

By the way, what I experimented with is the "max_execution_time" and "max_input_time", both of which can be found in the "Options" tab of the "PHP Selector". I increased their default values significantly, but it made no difference. I again got the 503 error immediately.
Yes, of course in your hosting control panel you can choose the version of PHP you want your sites to run with.
is that the 503 error is that it cannot find something... for example, path problems, some misspelled file or some important file is missing from your application... things like that because the 503 error does not give details
 

costas1

Member
Messages
146
Reaction score
4
Points
18
Yes, of course in your hosting control panel you can choose the version of PHP you want your sites to run with.
is that the 503 error is that it cannot find something... for example, path problems, some misspelled file or some important file is missing from your application... things like that because the 503 error does not give details
The 503 error does not give details by itself, but I have posted the relative lines from the error log in my first post. The connection is reset directly at the first try. The question is why and how that can be solved.
 

costas1

Member
Messages
146
Reaction score
4
Points
18
Last edited:

fusio

Member
Messages
64
Reaction score
5
Points
8
I'm very sure that it is because, when updating to the latest version, some file is missing or it has another name, I don't know, but that must be the case...
 

costas1

Member
Messages
146
Reaction score
4
Points
18
I'm very sure that it is because, when updating to the latest version, some file is missing or it has another name, I don't know, but that must be the case...

I don't think so. That would give a specific error. Furthermore, I have uploaded and unpacked the files multiple times. If that was the case one of those times the problem would have been solved.

Also, if they had forgotten to include a file in their release that would have caused problems to thousands users of MediaWiki and someone would have mention it already.
 

fusio

Member
Messages
64
Reaction score
5
Points
8
Very right in what you say.
Did you verify what the administrator told you?
Check the PHP modules in your Cpanel
 

Eric S

Administrator
Staff member
Messages
1,116
Reaction score
158
Points
63
I would make sure to check the requirements for mediawiki to run. Its possible something either is not enabled or our free services are not suitable for that type of software install.
 

costas1

Member
Messages
146
Reaction score
4
Points
18
I would make sure to check the requirements for mediawiki to run. Its possible something either is not enabled or our free services are not suitable for that type of software install.

Here you go: https://www.mediawiki.org/wiki/Manual:Installation_requirements#PHP
As far as I can see the requirements are met.

Also I never had any problems for a couple of years now, about 4 to be more precise, with hosting MediaWiki on X10hosting's free servers.
 
Last edited:

Eric S

Administrator
Staff member
Messages
1,116
Reaction score
158
Points
63
I can see your disk space is over the limit

> 534.6 MB/512 MB

This may also be the root cause as no more files can be loaded including tmp ones maybe required for the upgrade.

I have increased this for you. Can you re-attempt your upgrade / changes.
 

costas1

Member
Messages
146
Reaction score
4
Points
18
Thanks, but unfortunately no luck. If nothing works I may roll back to a previous version.

By the way, I see that I have 2 messages on DirectAdmin, but when I click "Messages" from the menu, I get the following warning:
Feature Disabled

This feature has been disabled. Please, contact your administrator.
 

costas1

Member
Messages
146
Reaction score
4
Points
18
Well, I reverted back to a version of the MediaWiki that supports both PHP 7 and 8.

Using PHP 8 was leading to the 503 error. I switched to PHP 7 from the control panel and the update script run without an issue!

I'm not sure why the error is thrown, as the latest version of the MediaWiki supports PHP 8.1+ and has dropped support for older versions, but anyway for now I will keep the version that works.
 
Top