Error Establishing Database Connection

Status
Not open for further replies.

norkette

New Member
Messages
2
Reaction score
0
Points
1
Hello,

I'm currently using the free hosting services as a sandbox environment to develop a website for a client. There isn't any traffic being directed to the website.

This morning I was updating an image and then I got the Error establishing a database connection on my site.

I added define('WP_ALLOW_REPAIR', true); to my wp-config.php file and ran the repair to see if that would resolve the issue.

The site is still not working but will oddly allow me to log in to wp-login.php intermittently. Once I try to open a page the site goes back down again.

In my cPanel I have noticed that x10 has limited my resources (possibly from sending too many request to update my site). How long will this limit last, who can I talk to remove the limit as I need to get back to work for my client.
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
Once I try to open a page the site goes back down again.
what error do you receive ?

How long will this limit last, who can I talk to remove the limit as I need to get back to work for my client.
if access is 'blocked' to your site - do to hitting [ High Resource Usage (HRU) ] limit - the block will be removed at the start of the next hour

IMO - x10hosting will NOT remove the [ High Resource Usage (HRU) ] limit from free-hosting accounts - it is there so that your account will not bring down the sever it is on - which would bring down all the other accounts (sites) on that server
 
Last edited:

norkette

New Member
Messages
2
Reaction score
0
Points
1
what error do you receive ?
Error 503 Backend fetch failed
Backend fetch failed

I didn't think I would use a lot of resources from editing the website without any traffic. I'm going to upload a robots.txt just in case to block out any unwanted bots.

Thanks for your help, I'll wait until the next hour.
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
Error 503 Backend fetch failed
that is NOT a [ High Resource Usage (HRU) ] limit error code

see the last post (#9) in this thread -> [ https://x10hosting.com/community/threads/abnormal-amount-of-backend-fetch-failed.196458/ ]

The error [ Error 503 Backend fetch failed ] - usually indicates that the web server is temporarily under more than normal load - OR your script did not produce a result within about thirty seconds (PHP time-out limit)

BTW - [ robots.txt ] will not stop 'bad' bots (which there are more of them - then 'good' bots)
 
Last edited:

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
In addition to what @bdistler said, bad bots would often ignore robots.txt, so you would have to take an other approach.
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

The database error was happening because your MySQL user had hit the maximum connection limit. This means that your website had made too many simultaneous connections to the MySQL database when you tried opening your website. This is fairly unusual, since MySQL connections are automatically closed once the page has loaded, and they should not stay alive. Perhaps you were receiving a high amount of traffic at the time, or a plugin is doing something strange? :)

Thank you,
 
Status
Not open for further replies.
Top