Koozali.org: home of the SME Server

502 bad gateway, whenever using server-manager through https

Offline csj_84

  • *
  • 13
  • +0/-0
502 bad gateway, whenever using server-manager through https
« on: April 07, 2007, 10:52:13 AM »
with the topic suggested, i tried to restart the apache server

Code: [Select]
/etc/init.d/httpd restart

but only to get

Code: [Select]
Stopping httpd:                                            [  OK  ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address
 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]


so, what will be the solution?

it happened after i installed smeserver-userpanel through:

Code: [Select]
yum --enablerepo=smedev install smeserver-userpanel
given in http://forums.contribs.org/index.php?topic=35530.0

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: 502 bad gateway, whenever using server-manager through h
« Reply #1 on: April 07, 2007, 11:32:26 AM »
Quote from: "csj_84"
with the topic suggested, i tried to restart the apache server

Code: [Select]
/etc/init.d/httpd restart

but only to get

Code: [Select]
Stopping httpd:                                            [  OK  ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address
 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]


so, what will be the solution?

it happened after i installed smeserver-userpanel through:

Code: [Select]
yum --enablerepo=smedev install smeserver-userpanel
given in http://forums.contribs.org/index.php?topic=35530.0
It seems you have some problem with the httpd daemon. A reboot should fix this the easiest way I think as to me it seems to be a problem with lock files. There has been a script in the forums, bugtracker or wiki but I think a reboot should also fix this.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline raem

  • *
  • 3,972
  • +4/-0
Re: 502 bad gateway, whenever using server-manager through h
« Reply #2 on: April 07, 2007, 03:39:49 PM »
csj_84

> /etc/init.d/httpd restart

wrong command, try
/etc/rc7.d/S86httpd-e-smith restart
/etc/rc7.d/S86httpd-admin restart
...

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: 502 bad gateway, whenever using server-manager through h
« Reply #3 on: April 08, 2007, 05:07:44 AM »
Quote from: "cactus"
There has been a script in the forums, bugtracker or wiki but I think a reboot should also fix this.


http://forums.contribs.org/index.php?topic=33171.0
Regards,
William

IF I give advise.. It's only if it was me....

Offline csj_84

  • *
  • 13
  • +0/-0
502 bad gateway, whenever using server-manager through https
« Reply #4 on: April 08, 2007, 08:42:20 AM »
i've tried restarting the server, with:
Code: [Select]
signal-event post-upgrade; signal-event reboot
it still produces the same result - 443 port used (even though port numbers changed to 60000, 1024, and 10001)
does it have to do with upgrading the smeserver-userpanel (from smedev) and the removal of e-smith-userpanel?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
502 bad gateway, whenever using server-manager through https
« Reply #5 on: April 08, 2007, 09:54:49 AM »
Quote from: "csj_84"
i've tried restarting the server, with:
Code: [Select]
signal-event post-upgrade; signal-event reboot
it still produces the same result - 443 port used (even though port numbers changed to 60000, 1024, and 10001)
does it have to do with upgrading the smeserver-userpanel (from smedev) and the removal of e-smith-userpanel?
It could be... I think you should file it as a bug in the bugtracker against the smeserver-userpanel contrib. Perhaps the author of the contrib can help.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
502 bad gateway, whenever using server-manager through https
« Reply #6 on: April 08, 2007, 10:46:58 AM »
Can someone explain this ?

Quote
(even though port numbers changed to 60000, 1024, and 10001)
Regards,
William

IF I give advise.. It's only if it was me....

Offline csj_84

  • *
  • 13
  • +0/-0
502 bad gateway, whenever using server-manager through https
« Reply #7 on: April 08, 2007, 11:35:29 AM »
Quote from: "william_syd"
Can someone explain this ?

Quote
(even though port numbers changed to 60000, 1024, and 10001)


i tried to change the listening port number for ssl from 0.0.0.0:443 to 0.0.0.0:60000, 0.0.0.0:1024, and 0.0.0.0:10001 then restart httpd every time changes took place.

and yet, these numbers are occupied, which puzzled me

Code: [Select]
Stopping httpd:                                            [  OK  ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address
 0.0.0.0:60000
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]



Code: [Select]
Stopping httpd:                                            [  OK  ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address
 0.0.0.0:10001
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]



Code: [Select]
Stopping httpd:                                            [  OK  ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address
 0.0.0.0:1024
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
502 bad gateway, whenever using server-manager through https
« Reply #8 on: April 08, 2007, 01:35:00 PM »
Quote
Unable to open logs


Did you check out what Cactus  said before and the link I posted?

Do they apply in any way?
Regards,
William

IF I give advise.. It's only if it was me....

Offline csj_84

  • *
  • 13
  • +0/-0
502 bad gateway, whenever using server-manager through https
« Reply #9 on: April 09, 2007, 03:52:18 AM »
william_syd, cactus, i have both smeserver-userpanel and smeserver-userpanels installed.

I suspect both might caused conflict to the server, which returns 502 error.

So i've tried remove smeserver-userpanel, and it prompt me to key in username & password, then return 500 error (Internal Server Error).

so, guys, what's your opinion?

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
502 bad gateway, whenever using server-manager through https
« Reply #10 on: April 09, 2007, 04:02:47 AM »
Check your httpd logs ?
Remove both and see if server-manager works ?
Regards,
William

IF I give advise.. It's only if it was me....

Offline csj_84

  • *
  • 13
  • +0/-0
502 bad gateway, whenever using server-manager through https
« Reply #11 on: April 09, 2007, 04:22:35 AM »
where is the httpd server log?

btw, both smeserver-userpanel & smeserver-userpanels i'd removed, but still error 500 continue to appear.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
502 bad gateway, whenever using server-manager through https
« Reply #12 on: April 09, 2007, 05:10:53 AM »
Quote from: "csj_84"
where is the httpd server log?



/var/log/httpd
Regards,
William

IF I give advise.. It's only if it was me....

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
502 bad gateway, whenever using server-manager through https
« Reply #13 on: April 09, 2007, 09:40:19 AM »
Quote from: "csj_84"
btw, both smeserver-userpanel & smeserver-userpanels i'd removed, but still error 500 continue to appear.
Look in the /var/log/messages file at the time the 500 error occured. See what information is in there and if you can not understand post the snippet here so we can help you.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline csj_84

  • *
  • 13
  • +0/-0
502 bad gateway, whenever using server-manager through https
« Reply #14 on: April 09, 2007, 09:58:05 AM »
I installed smeserver-phpmyadmin (a contrib by dmay), contrary to server-manager, it can be accessed (with SSL).

server-manager is still giving error 500 message