Koozali.org: home of the SME Server

Server manager cannot access

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Server manager cannot access
« on: October 24, 2016, 03:30:30 PM »
Recently we update root certificate as per the discussion of following link
https://forums.contribs.org/index.php/topic,52674.msg271443.html#msg271443

Now i cannot access the server-manager via remote computer. Open Vpn bridge works better perfectly, but server-manager doesn't.

Do i have to update something also to work the server-manager?

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Server manager cannot access
« Reply #1 on: October 24, 2016, 04:10:28 PM »
please define "remote computer" (do you mean from WAN side? or from remote pcs connected via VPN?) and "I cannot access" (what error? anything in the related logs?)

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Server manager cannot access
« Reply #2 on: October 24, 2016, 04:13:57 PM »
yes a computer connected via openvpn bridge.
which log do i have to refer?

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Server manager cannot access
« Reply #3 on: October 24, 2016, 05:37:31 PM »
so a computer on a different subnet, right?

if so, Server-manager -> security -> remote  access -> Remote Management

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Server manager cannot access
« Reply #4 on: October 24, 2016, 06:04:30 PM »
If the computer is connected on the VPN, it should be seen as being local (the same subnet as the local network). You should explain what you mean by "cannot access"
C'est la fin du monde !!! :lol:

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Server manager cannot access
« Reply #5 on: October 24, 2016, 06:27:10 PM »
I have used this computer for connect from my home to office all the time. But today i found this error
Cannot access= Seems this address not exists!


Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Server manager cannot access
« Reply #6 on: October 24, 2016, 06:28:30 PM »
Please tell us exactly the error message you have
C'est la fin du monde !!! :lol:

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Server manager cannot access
« Reply #7 on: October 24, 2016, 06:52:25 PM »
Unable to connect

Firefox can’t establish a connection to the server at 192.168.XXX.XXX.

    .The site could be temporarily unavailable or too busy. Try again in a few moments.
    .If you are unable to load any pages, check your computer’s network connection.
    .If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Server manager cannot access
« Reply #8 on: October 24, 2016, 07:00:01 PM »
So either your VPN is not working correctly (can you ping the private IP of your server ?). This can be for example a mismatch of the cipher configured, or of the copression settings between the client and the server. Or the httpd daemon is not running (can you access the server-manager from the lan ?)
C'est la fin du monde !!! :lol:

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Server manager cannot access
« Reply #9 on: October 24, 2016, 07:00:40 PM »
Also check your proxy settings on your Firefox
C'est la fin du monde !!! :lol:

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Server manager cannot access
« Reply #10 on: October 24, 2016, 07:20:36 PM »
my vpn is working properly. I can access ibays, account server web-gui, and printers.
I also cannot access webmail to view admin emails. (same error appears)
the question i cannot answer is "(can you access the server-manager from the lan ?)". Because these days i am in leave.
I didn't change any settings on firefox.
I can ping the server's private ip.
I can access command through putty.
I tried to login as admin and access server manager, but it gave me error;

     Unable to retrieve http://localhost/server-manager:
                  connection rifused

I think the big clue is "Or the httpd daemon is not running" to find our problem. But i don't know how to track it.

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Server manager cannot access
« Reply #11 on: October 24, 2016, 07:21:51 PM »
So, your web erver is not running most likely. Have you changed anything recently ? Check:

Code: [Select]
sv s /service/httpd-e-smith
httpd -t
C'est la fin du monde !!! :lol:

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Server manager cannot access
« Reply #12 on: October 24, 2016, 08:48:38 PM »
nothing changed. Only thing was renewed openvpn license as per linked i had added above.

sv s /service/httpd-e-smith  =   down: /service/httpd-e-smith: 1s, want up

httpd -t    =  Syntax error on line 136 of /etc/httpd/conf/httpd.conf:
SSLCertificateFile: file '/home/e-smith/ssl.crt/hostname.domain.it.crt' does not exist or is empty


Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Server manager cannot access
« Reply #13 on: October 24, 2016, 08:54:02 PM »
Then you found your problemi
Search here and the wiki for solution

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Server manager cannot access
« Reply #14 on: October 24, 2016, 08:58:42 PM »
good clue. Why this type of problem occurs?

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Server manager cannot access
« Reply #15 on: October 24, 2016, 09:55:55 PM »
ohh. good exercise for me. thanks for bringing me to the track.
https://forums.contribs.org/index.php/topic,50154.msg251731.html#msg251731


Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Server manager cannot access
« Reply #16 on: October 25, 2016, 02:51:39 AM »
...or you could set up Let's Encrypt using John Crisp's contrib (see https://wiki.contribs.org/Letsencrypt#Install_with_John_Crisp_contrib), and you'll have a valid, trusted cert that will renew itself automatically pretty much forever.
......

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Server manager cannot access
« Reply #17 on: November 02, 2016, 11:33:07 AM »
Hi friends here i am again on same post,
without doing "Let's Encrypt using John Crisp's contrib", do i have to update certificates eventually? Because today i found that again the certificates are expired on server and httpd was not working. thanks

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Server manager cannot access
« Reply #18 on: November 02, 2016, 11:42:09 AM »
if you're not using any external certificate (IOW you're using self signed ones) the certificate renewal is automagically managed by SME

if something isn't working as expected out of the box (and this is the case), you'd open a bug giving us all the details to understand what's wrong

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Server manager cannot access
« Reply #19 on: November 02, 2016, 12:00:03 PM »
...or at least give some indication of what you are doing.  Are you using Let's Encrypt at all?  If so, how?  If not, what have you done for a TLS certificate?  What changes have you made to your system?
......

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Server manager cannot access
« Reply #20 on: November 02, 2016, 12:13:24 PM »
Dear DanB35,
I am not using Let's Encrypt. I have no idea of TLS certificate.
only thing i done recently to the server is https://forums.contribs.org/index.php/topic,52674.msg271443.html#msg271443.

i ran httpd -t
Syntax error on line 136 of /etc/httpd/conf/httpd.conf:
SSLCertificateFile: file '/home/e-smith/ssl.crt/mech.mechdesing.it.crt' does not exist or is empty.

then i followed https://forums.contribs.org/index.php/topic,50154.msg251731.html#msg251731 link to re-enable the certificate, but today i saw that httpd -t is giving me same error.

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Server manager cannot access
« Reply #21 on: November 02, 2016, 12:21:51 PM »
A TLS certificate is what you're having trouble with.  You need one, even if it's only one you made yourself (a self-signed one), to enable HTTPS communications.  What's the output of 'config show modSSL'?

Edit:  After you did 'signal-event domain-modify', did /home/e-smith/ssl.crt.mech.mechdesing.it.crt exist?
......

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Server manager cannot access
« Reply #22 on: November 02, 2016, 12:31:57 PM »
config show modSSL:
modSSL=service
    CipherSuite=ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
    TCPPort=443
    access=public
    status=enabled

"After you did 'signal-event domain-modify', did /home/e-smith/ssl.crt.mech.mechdesing.it.crt exist?" YES
(and when the httpd -t gives an error, i checked the /home/e-smith/ssl.crt.mech.mechdesing.it.crt, it existed but 0bytes in size.)

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Server manager cannot access
« Reply #23 on: November 02, 2016, 12:40:32 PM »
assuming you did not modify your server and you're not using some kind of customization, this seems a bug, then please go to bugzilla, thank you

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Server manager cannot access
« Reply #24 on: November 02, 2016, 12:47:12 PM »
Strange, there should be something in that file.  What's the output of '/sbin/e-smith/audittools/templates'?
......

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Server manager cannot access
« Reply #25 on: November 02, 2016, 02:16:22 PM »
Strange but after i ran following commands, there are some codes in it.

cd /home/e-smith
rm -f ssl.key/*.key
rm -f ssl.pem/*.pem
rm -f ssl.crt/*.crt
signal-event domain-modify



output of /sbin/e-smith/audittools/templates------
/etc/e-smith/templates-custom/etc/dhcpd.conf/25LeaseTimeDefault: OWNED_BY_RPM, OVERRIDE
/etc/e-smith/templates-custom/etc/dhcpd.conf/25Routers: OWNED_BY_RPM, OVERRIDE
/etc/e-smith/templates-custom/etc/dhcpd.conf/25DomainNameServers: OWNED_BY_RPM, OVERRIDE
/etc/e-smith/templates-custom/etc/dhcpd.conf/25LeaseTimeMax: OWNED_BY_RPM, OVERRIDE
/etc/e-smith/templates/home/e-smith/openvpn/www/serial: MANUALLY_ADDED
/etc/e-smith/templates/home/e-smith/openvpn/www/server.key: MANUALLY_ADDED
/etc/e-smith/templates/home/e-smith/openvpn/www/index.txt: MANUALLY_ADDED
/etc/e-smith/templates/var/service/dnscache.forwarder/root/servers/@: MODIFIED e-smith-dnscache-2.2.0-2.el5.sme

Offline smnirosh

  • ****
  • 329
  • +0/-0
  • Learning never ends
Re: Server manager cannot access
« Reply #26 on: November 07, 2016, 09:47:11 AM »
this time I also restarted the server using signal-event reboot command as per another forum.
Let's wait couple of days then get back to the same forum again.