Koozali.org: home of the SME Server

HTTP not working

Offline AaronG

  • ****
  • 90
  • +0/-0
    • http://www.healthinc.com.au
HTTP not working
« on: November 06, 2006, 04:31:05 AM »
Hi All,

Before I log this as an error in the bug tracker I would like to do some troubleshooting steps.

In the last couple of days I have been unable to access my webmail and/or server-manager.

I used to be able to access the webmail via any IP address using some Port forwarding on my router.

How can I stop/start the HTTP service?

What troubleshooting shoudl I do?

regards
Aaron
...

Offline AaronG

  • ****
  • 90
  • +0/-0
    • http://www.healthinc.com.au
HTTP not working
« Reply #1 on: November 06, 2006, 04:41:46 AM »
I should have said I have tried the following things:

1. Run signal-event post-upgrade  &  signal-event reboot
2. I CAN access the Server-Manager using an SSH session and accessing it via the Server Console. But is this HTTP?

Thanks in Advance!
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: HTTP not working
« Reply #2 on: November 06, 2006, 05:41:38 AM »
AaronG

>..unable to access my webmail and/or server-manager.
> I used to be able to access the webmail via any IP address
> using some Port forwarding on my router.

Is port 443 still forwarded ie https: ?
...

Offline AaronG

  • ****
  • 90
  • +0/-0
    • http://www.healthinc.com.au
HTTP not working
« Reply #3 on: November 06, 2006, 05:55:17 AM »
Quote
Is port 443 still forwarded ie https: ?


Yes I believe this is working ok.

I also can not access HTTP from the LAN.

[/quote]
...

Offline raem

  • *
  • 3,972
  • +4/-0
HTTP not working
« Reply #4 on: November 06, 2006, 07:56:54 AM »
AaronG

> I CAN access the Server-Manager using an SSH session and accessing
> it via the Server Console. But is this HTTP?

Yes it is.
Check services with these

/etc/init.d/squid status

/etc/init.d/httpd-e-smith status

/etc/init.d/httpd-admin status
...

Offline AaronG

  • ****
  • 90
  • +0/-0
    • http://www.healthinc.com.au
HTTP not working
« Reply #5 on: November 06, 2006, 08:24:12 AM »
Quote
Check services with these

/etc/init.d/squid status

/etc/init.d/httpd-e-smith status

/etc/init.d/httpd-admin status


I don't know if it makes any difference but I am running SME v7 (Latest Build)

Code: [Select]
Squid Status:
/etc/init.d/squid status squid (pid 3337) is running...

e-Smith Status
/service/httpd-e-smith: down 0 seconds, want up

Admin Status
/service/httpd-admin: run (pid 3246) 15639 seconds, normally down


I take it e-smith Status is my problem?? But how can I further troubleshoot this?

I tried to start the service by using: /etc/init.d/httpd-e-smith status

But I still get the same status. It says OK when i try to start but when i view the status it still says "want up" etc

Thanks for your help so far. It is greatly appreciated!
...

Offline raem

  • *
  • 3,972
  • +4/-0
HTTP not working
« Reply #6 on: November 06, 2006, 08:36:04 AM »
AaronG

> /service/httpd-e-smith: down 0 seconds, want up

I believe that is a supervised service, so it should have restarted automatically in the event that it somehow stopped.
Did you do anything to deliberately stop it eg install sme7admin panel & stop web services ?
Is the service status enabled or disabled at start up ?

config show httpd-e-smith
httpd-e-smith=service
    TCPPort=80
    access=public
    status=enabled


> I take it e-smith Status is my problem??

Seems to be.

/etc/init.d/httpd-e-smith restart
or more correctly
/etc/rc.d/rc7.d/S86httpd-e-smith restart

Restarting httpd-e-smith                                   [  OK  ]
...

Offline AaronG

  • ****
  • 90
  • +0/-0
    • http://www.healthinc.com.au
HTTP not working
« Reply #7 on: November 06, 2006, 08:41:54 AM »
config show httpd-e-smith
httpd-e-smith=service
TCPPort=80
access=public
status=enabled

is what I get. So it appears enabled.

I DO have sme7admin panel installed but I dont believe I ever stopped the service or did anything to disable it.

I tried to restart the service as you suggested but when I check the status it tells me the same.

Cheers
Aaron
...

Offline raem

  • *
  • 3,972
  • +4/-0
HTTP not working
« Reply #8 on: November 06, 2006, 08:54:52 AM »
AaronG

> I tried to restart the service as you suggested
>> Did you get any message, if so what ?

Try to restart the service and then also look in
/var/log/messages
log file for errors
...

Offline AaronG

  • ****
  • 90
  • +0/-0
    • http://www.healthinc.com.au
HTTP not working
« Reply #9 on: November 06, 2006, 09:03:09 AM »
Quote from: "RayMitchell"


> I tried to restart the service as you suggested

Did you get any message, if so what ?


Code: [Select]
Restarting httpd-e-smith                                   [  OK  ]


I can't even find an entry in the sme7admin panel for httpd-e-smith.

 System services (Click on a service name for details) :
   Web services State Nb process Action
   httpd-admin Started 1 stop
   squid Started 1 stop

I have admin but no http

I ran a HTTP test using sme7admin... it returned the following error:

   Execution  of  'http@'  (should  return  html  source code of server's
   homepage):
   tcpclient: unable to connect to 127.0.0.1 port 80: connection refused

Ideas?
...

Offline raem

  • *
  • 3,972
  • +4/-0
HTTP not working
« Reply #10 on: November 06, 2006, 09:13:37 AM »
AaronG

> Restarting httpd-e-smith                                   [  OK  ]

That's good, that's what you want to see.


> I can't even find an entry in the sme7admin panel for httpd-e-smith.

httpd-e-smith is web server

httpd-admin is server manager


> tcpclient: unable to connect to 127.0.0.1 port 80: connection refused

Is port 80 forwarded from your router.
Perhaps you should restart your router and/or modem and also reboot your sme server while you are at it.

Check all the settings in your router carefully.
...

Offline AaronG

  • ****
  • 90
  • +0/-0
    • http://www.healthinc.com.au
HTTP not working
« Reply #11 on: November 06, 2006, 09:29:27 AM »
Quote

> I can't even find an entry in the sme7admin panel for httpd-e-smith.

httpd-e-smith is web server

httpd-admin is server manager



Problem is there doesn't seem to a "Service" listed in sme7admin panel that says httpd-e-smith.



Quote
Is port 80 forwarded from your router.
Perhaps you should restart your router and/or modem and also reboot your sme server while you are at it.

Check all the settings in your router carefully.


This is definately not a problem. this has worked for over 2 years and the problem occurs on the LAN as well when there is no PAT (Port Address Translation) interferering with it.

Do I need to log an error in the bug tracker?
...

Offline raem

  • *
  • 3,972
  • +4/-0
HTTP not working
« Reply #12 on: November 06, 2006, 09:39:09 AM »
AaronG

>...this has worked for over 2 years

Is this an sme7 upgraded from sme6. If so did http work after the upgrade ?

> In the last couple of days I have been unable to access my webmail and/or server-manager.

What did you do to your system just before the problem started.
...

Offline AaronG

  • ****
  • 90
  • +0/-0
    • http://www.healthinc.com.au
HTTP not working
« Reply #13 on: November 06, 2006, 09:47:32 AM »
It was an upgrade at first... but this was done a very long time ago. but I have done a full clean install since.

I *think* it happened in the past few days. I only really noticed today. But I remember that the last thing that I did before I think it probably stuffed up was a YUM UPDATE which updated user-panel and user-vacation... both contribs by DUNGOG.

Naturally after I installed these updates i ran the Signal-event post-upgrade and signal-event reboot command.
...

Offline raem

  • *
  • 3,972
  • +4/-0
HTTP not working
« Reply #14 on: November 06, 2006, 10:01:17 AM »
AaronG

> YUM UPDATE which updated user-panel and user-vacation

There was a bug in a recent version of user-panel, don't know if that is related to your problem, but possibly it is.
http://forums.contribs.org/index.php?topic=34354.msg147912#msg147912

Try upgrading to the latest version
smeserver-userpanel-0.9-8.noarch.rpm
...