Koozali.org: home of the SME Server

Contribs.org Forums => Koozali SME Server 10.x => Topic started by: groyk on July 14, 2023, 08:48:27 AM

Title: Server broken after update!
Post by: groyk on July 14, 2023, 08:48:27 AM
Yesterday i updated my sme box because of the domain login issue "did not check the forum first 😐"

Now i can't connect to my server. Seems like mail. Httpd ssh ect. Is down.

However i am able to ping local ip adresses from the server console.

Edit: also successfully pinging external ip's. But can't resolve url on yum.

I have tried almost everything including loading backup from the day before with no luck.

Any suggestions?
Title: Re: Server broken after update!
Post by: groyk on July 14, 2023, 09:37:33 AM
Edit: also successfully pinging external ip's. But can't resolve url on yum.
Title: Re: Server broken after update!
Post by: Jean-Philippe Pialasse on July 14, 2023, 07:52:48 PM
we need a little help to help you.
what is the server mode? I only assume gateway as you soeak of internal and external ip
how did your updated ? via manager or cli?
any power outage?
did you issue a signal-event post-upgrade and reboot?

have you given a try on the server keyboard/ monitor to try a
signal-event post-upgrade; signal-event reboot
Title: Re: Server broken after update!
Post by: groyk on July 14, 2023, 10:02:58 PM
Sorry for the missing information.

SME is "server only" behind firewall.
Updated via webmanager

Firewall is ok and i can ping both internal and external ip' but can't ping hostnames

Just tried
signal-event post-upgrade;

I seems like server hangs. Waited for around 120 min. and still running.
Title: Re: Server broken after update!
Post by: Jean-Philippe Pialasse on July 15, 2023, 12:38:25 AM
any contribs?
any template-custom?

are you able to open another terminal and check with htop what is running under this envent using the tree view (t key)
Title: Re: Server broken after update!
Post by: groyk on July 15, 2023, 07:47:23 AM
Contribs
- fail2ban
- tw-logonscript
- whitelist blacklist
And a few more not network related.

Sorry no can't connect via ssh
Title: Re: Server broken after update!
Post by: Jean-Philippe Pialasse on July 15, 2023, 03:28:39 PM
Accessing a TTY
Ctrl+Alt+F1: Opens TTY 1.
Ctrl+Alt+F2: Opens TTY 2.
Ctrl+Alt+F3: Opens TTY 3.
Ctrl+Alt+F4: Opens TTY 4.
Ctrl+Alt+F5: Opens TTY 5.
Ctrl+Alt+F6: Opens TTY 6.

https://www.howtogeek.com/428174/what-is-a-tty-on-linux-and-how-to-use-the-tty-command/amp/
Title: Re: Server broken after update!
Post by: groyk on July 15, 2023, 06:24:22 PM
Only access is through novnc in proxmox 😐
Title: Re: Server broken after update!
Post by: groyk on July 15, 2023, 08:25:41 PM
If i select earlier state on booting sme.

Would i then suffer dataloss?
Or only "installstate"?
Title: Re: Server broken after update!
Post by: Jean-Philippe Pialasse on July 16, 2023, 06:42:53 AM
so another info the server is a vm on proxmox.

use the ctrl / alt button of the novnc interface


not sure of what you mean about installstate.

if you refer to a snapshot used by proxmox, i would say yes to data loss.
Title: Re: Server broken after update!
Post by: groyk on July 16, 2023, 08:35:30 AM
I am thinking of selecting earlier version when booting smeserver. It boots with a menu where i can select earlier version. "Not proxmox snapshot"

I will try your suggestion when i have access to an pc again. Right now i only have my phone because i am on vacation.

Thank you for your help so far.
Title: Re: Server broken after update!
Post by: ReetP on July 16, 2023, 10:39:08 AM
I am thinking of selecting earlier version when booting smeserver. It boots with a menu where i can select earlier version. "Not proxmox snapshot"

That's an earlier kernel version.

Won't change the data.

Quote
Yesterday i updated my sme box because of the domain login

That won't affect your domain logon issue as it is a Windows update that caused it, not a SME update.

You can test with a Windows pc without a domain logon.

There is no fix for SME currently. We are waiting for upstream. The only solution is in the other thread - remove the updates.

Quote
Now i can't connect to my server. Seems like mail. Httpd ssh ect. Is down.

I not sure those services would be affected by the domain issue?

First test with a pc without a domain logon.

Then have a look in your server logs for errors.

https://wiki.koozali.org/How_to_report_a_problem#History
Title: Re: Server broken after update!
Post by: groyk on July 16, 2023, 11:22:24 AM
Tried to uninstall fail2ban😀

Now everything is running😀
Title: Re: Server broken after update!
Post by: ReetP on July 16, 2023, 02:32:50 PM
Tried to uninstall fail2ban😀

Now everything is running😀

Ahhhhh..... Explains a lot!
Title: Re: Server broken after update!
Post by: Jean-Philippe Pialasse on July 16, 2023, 03:50:08 PM
what would help there is to check what rule has trigger the shutdown of network access. 
long event is also explained as during that event fail2ban will update and check the blacklist created and could take times with hundreds of entries (been there)
Title: Re: Server broken after update!
Post by: groyk on July 16, 2023, 04:41:27 PM
Tried to read Fail2ban log

fail2ban-client status

Command not working after uninstall

Title: Re: Server broken after update!
Post by: Jean-Philippe Pialasse on July 16, 2023, 05:58:36 PM
messages log should keep logs of entry added /removed in the fail2ban e-smith db.
Title: Re: Server broken after update!
Post by: groyk on July 16, 2023, 06:38:56 PM
I will try to look there.

Thank you for all your help.