The following error was retrieved from the Web server: Faile

General discussion forum for the Zend Server
elkolonel
Posts: 7
Joined: Fri Mar 20, 2009 4:48 pm

The following error was retrieved from the Web server: Faile

Post by elkolonel » Wed Nov 18, 2009 12:55 am

Good evening,

I am running Mac OSX 10.6 and am trying to install Zend Server Community Edition. When I start ZendServer.app I have the following message:
"Failed to access web server. Please make sure that the Web server is running and listening to the proper port"

So after reading some posts on the forum, I saw that it could be a configuration error in the file: zend-server.ini. I try to look on my mac file zwas.ini but without success.
So in this file zend-server.ini I changed the line:

url = http://127.0.0.1:10083/ZendServer

by

url = http://127.0.0.1:10081/ZendServer

This now gives the following error:
"The following error was retrieved from the Web server: Failed to parse response"
Can you tell me what I must do to run my server correctly?

Sincerely,

Frédéric Blanc

shahar
Posts: 244
Joined: Mon Oct 06, 2008 12:37 pm
Location: Israel
Contact:

Re: The following error was retrieved from the Web server: Faile

Post by shahar » Wed Nov 18, 2009 10:50 am

Hi,

The change you've made is not required and in fact won't work, you should revert it.

It is possible that for some reason the Apache web server did not start. Please do the following:
- Open a Terminal window
- Run the following command:

Code: Select all

sudo /usr/local/zend/bin/zendctl.sh restart
This should restart all of the Zend Server processes, and hopefully start Apache up.

Let me know if this helps or not.

Shahar.
Shahar Evron <shahar.e@zend.com>
Product Manager, Zend Technologies

elkolonel
Posts: 7
Joined: Fri Mar 20, 2009 4:48 pm

Re: The following error was retrieved from the Web server: Faile

Post by elkolonel » Wed Nov 18, 2009 11:51 am

Thanks Shahar,

I will check this evening at home. But yesterday, I already made this operation without success. But, I will try again.
I will inform you of the result

Bests regards,

Fred Blanc

shahar
Posts: 244
Joined: Mon Oct 06, 2008 12:37 pm
Location: Israel
Contact:

Re: The following error was retrieved from the Web server: Faile

Post by shahar » Wed Nov 18, 2009 1:22 pm

Hi Fred,

If this doesn't work, please paste the output of the command, and check if you have any messages in your Apache error log at /usr/local/zend/var/log/error.log

Thanks,

Shahar.
Shahar Evron <shahar.e@zend.com>
Product Manager, Zend Technologies

mjstelly
Posts: 23
Joined: Wed Nov 18, 2009 6:10 pm

Re: The following error was retrieved from the Web server: Faile

Post by mjstelly » Wed Nov 18, 2009 9:47 pm

shahar wrote: It is possible that for some reason the Apache web server did not start. Please do the following:
- Open a Terminal window
- Run the following command:

Code: Select all

sudo /usr/local/zend/bin/zendctl.sh restart
This should restart all of the Zend Server processes, and hopefully start Apache up.

Let me know if this helps or not.

Shahar.
bada-bing! worked like a charm. damn, why is the answer always found in the last place you look. ;-) Could've saved me two hours of drowning in a sea of near-miss information.
Thanks Shahar!

elkolonel
Posts: 7
Joined: Fri Mar 20, 2009 4:48 pm

Re: The following error was retrieved from the Web server: Faile

Post by elkolonel » Wed Nov 18, 2009 11:13 pm

So, when I :

I have this result in my terminal :

sudo /usr/local/zend/bin/zendctl.sh restart
httpd (no pid file) not running
/usr/local/zend/bin/apachectl stop [OK]
(48)Address already in use: make_sock: could not bind to address [::]:10088
/usr/local/zend/bin/apachectl start [OK]
Stopping Zend Server GUI [Lighttpd] [OK]
spawn-fcgi: child spawned successfully: PID: 15480
Starting Zend Server GUI [Lighttpd] [OK]
Stopping Java bridge [OK]
Starting Java bridge [OK]
Shutting down MySQL
. SUCCESS!
Starting MySQL
. SUCCESS!

It seems than Apache are already starts ?

I have only one line in /usr/local/zend/var/log/error.log :
[Wed Nov 18 22:33:04 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]

What do you mean about this ?

Bests Regards,

Fred

jess04
Posts: 628
Joined: Thu Jan 15, 2009 3:37 pm

Re: The following error was retrieved from the Web server: Faile

Post by jess04 » Thu Nov 19, 2009 8:30 am

Hello,

It seems as though your Apache takes a little longer to close sockets and hence, when the start command is issued [following stop] it says:
"(48)Address already in use: make_sock: could not bind to address [::]:10088"
Which basically means the port is still taken, you could try:

Code: Select all

# sudo /usr/local/zend/bin/zendctl.sh stop
And then:

Code: Select all

# sudo /usr/local/zend/bin/zendctl.sh start
Which would allow some more time to pass between the Apache stop and start commands.
May the source be with you,

Jess Portnoy

elkolonel
Posts: 7
Joined: Fri Mar 20, 2009 4:48 pm

Re: The following error was retrieved from the Web server: Faile

Post by elkolonel » Thu Nov 19, 2009 9:27 am

Thanks Jess, I will try this evening at home.

Have a nice day.

Bests Regards,

Fred

jess04
Posts: 628
Joined: Thu Jan 15, 2009 3:37 pm

Re: The following error was retrieved from the Web server: Faile

Post by jess04 » Thu Nov 19, 2009 10:37 am

Hi Fred,

You're most welcome.
Let me know if you require further assistance or have questions,

P.S
While its not a big deal, please post MAC related issues under the "Zend Server - Community edition" forum.
Thanks,
May the source be with you,

Jess Portnoy

hisaltesse
Posts: 2
Joined: Fri Nov 20, 2009 5:38 am

Re: The following error was retrieved from the Web server: Faile

Post by hisaltesse » Fri Nov 20, 2009 5:42 am

I am having the same issue.

I managed to install Zend Server CE on Mac OS X server 10.6. It worked fine. Then suddenly it gives me this error:
Failed to access Web server. Please make sure that the Web server is running and listening to the correct port
I have followed the advice above but my issue is still not resolved.

The apache error log gives me:

Code: Select all

[Thu Nov 19 23:34:16 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
Restarting zend gives me the following:
baracuda$ sudo /usr/local/zend/bin/zendctl.sh stop
Stopping Zend Server 4.0.6 ..

httpd (no pid file) not running
/usr/local/zend/bin/apachectl stop [OK]
lighttpd is not running
ERROR! MySQL manager or server PID file could not be found!
java_daemon is not running

Zend Server stopped.
baracuda:~ baracuda$ sudo /usr/local/zend/bin/zendctl.sh start
Starting Zend Server 4.0.6 ..

/usr/local/zend/bin/apachectl start [OK]
spawn-fcgi: child spawned successfully: PID: 8621
Starting Zend Server GUI [Lighttpd] [OK]
[19.11.2009 23:37:22 SYSTEM] watchdog for lighttpd is running.
[19.11.2009 23:37:22 SYSTEM] lighttpd is not running.
Starting MySQL
. ERROR! Manager of pid-file quit without updating file.
Starting Java bridge [OK]
[19.11.2009 23:37:23 SYSTEM] watchdog for java_daemon is running.
[19.11.2009 23:37:23 SYSTEM] java_daemon is running.

Zend Server started...
Any help would be greatly appreciated. This is a nightmare. Do we have to stop the Mac OS X web server first? Do they conflict?

Post Reply