503 Backend fetch failed

Status
Not open for further replies.

exiresql

New Member
Messages
2
Reaction score
0
Points
1
When attempting to load http://exiresql.x10host.com/database/retrieve.php I get a screen looking like so:

Error 503 Backend fetch failed
Backend fetch failed

Guru Meditation:
XID: 47302306

Varnish cache server

It is 2 simple scripts for displaying a table, just an example before trying anything else but am stuck at this.
 

Dead-i

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

The 503 error message you are seeing means that your PHP script did not return a response in a certain amount of time. I manually ran your PHP script, and the following output was returned:
Error: Can't connect to MySQL server on 'MYSQL_ADDRESS' (4)

It appears that your script is literally attempting to connect to 'MYSQL_ADDRESS' rather than 'localhost', which is creating a timeout. I took a look at your app_config.php script, and it appears that your script is connecting to the constant "MYSQL_ADDRESS" rather than "DATABASE_ADDRESS". Please could you check your script? :)

Thank you,
 

exiresql

New Member
Messages
2
Reaction score
0
Points
1
Hi exiresql,

The 503 error message you are seeing means that your PHP script did not return a response in a certain amount of time. I manually ran your PHP script, and the following output was returned:


It appears that your script is literally attempting to connect to 'MYSQL_ADDRESS' rather than 'localhost', which is creating a timeout. I took a look at your app_config.php script, and it appears that your script is connecting to the constant "MYSQL_ADDRESS" rather than "DATABASE_ADDRESS". Please could you check your script? :)

Thank you,
Ahaa! That was the problems I was using MYSQL_ADDRESS when attempting to connect instead of the const. Thanks :)
 
Status
Not open for further replies.
Top