Unexplained shutdown of unrealircd 4.2.4

If your UnrealIRCd is up and running but you have a question about it, then use this forum.
(NOT for installation or connecting issues! Use the other forum instead.)

Moderator: Supporters

Locked
Suratka
Posts: 72
Joined: Thu Nov 14, 2019 12:32 am
Contact:

Unexplained shutdown of unrealircd 4.2.4

Post by Suratka »

Hi, I hope it's the right place for my problem.
I have three unrealircd 4.2.4 servers linked on three different vps. The first central server where it is connected with Anope services, occasionally stops. Lately it happens to me often and I can't understand why. When I restart it via ssh, I am not shown any suspicious shutdown warning and it does not give me the opportunity to send a report in order to identify the problem. Can I know how do I send the report or identify the error and then send it in the traditional way ???
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Unexplained shutdown of unrealircd 4.2.4

Post by Syzop »

In some cases no core dump is created. These are rare cases though, such as: out of memory or other limits imposed by the system administrator.

Often the kernel will log such a fatal signal, so you can still see some message about unrealircd in /var/log/messages or /var/log/messages.1
k4be
UnrealIRCd coder
Posts: 49
Joined: Sun Jan 09, 2005 12:19 pm
Location: Poland

Re: Unexplained shutdown of unrealircd 4.2.4

Post by k4be »

Also the "./unrealircd backtrace" can give information even when the automatic report is not triggered (but it needs the core file to be created). If it's not, you can use the gdb program directly on your process. This would need certain skills however.
Suratka
Posts: 72
Joined: Thu Nov 14, 2019 12:32 am
Contact:

Re: Unexplained shutdown of unrealircd 4.2.4

Post by Suratka »

there is not "message" or "message1" file in the var / log folder.

Code: Select all

server@vps738288:~/unrealircd$ ./unrealircd backtrace
Core files available:
ls: cannot access '*core*': No such file or directory
No core files found... Nothing to do

If you are sure UnrealIRCd crashed, then verify that unreal
has permission to dump core (type "ulimit -c unlimited" and see
if you get permission denied errors). Also verify that you did
not run out of quota.
If all that is ok, then it might be that UnrealIRCd did not crash but
got killed by the OS (eg: cpu/mem resource limits), the syadmin,
or an automated process.
server@vps738288:~/unrealircd$ If you are sure UnrealIRCd crashed, then verify that unreal
server@vps738288:~/unrealircd$ ulimit -c unlimited
server@vps738288:~/unrealircd$
Lord255
Posts: 95
Joined: Sat Feb 29, 2020 12:58 am
Location: offline

Re: Unexplained shutdown of unrealircd 4.2.4

Post by Lord255 »

hi.
syzop said /var/log/messages, not message.
but this depends on your system, you should just look around in /var/log/

logs can be like:
syslog
messages
dmesg

try to search something there.

one more thing to add:
try: https://www.unrealircd.org/docs/Snomasks
add +ej for yourself (/mode <yournick> +s +ej)) and you might see more stuff. (make sure you connected to the affected server)

in the mean time: usually 3rd party modules causing such things, try to disable them all and enable them one by one, so you are narrowing down the things. :)
also a note: unreal5 is out for a longer time now, did you plan to upgrade?

gl
Suratka
Posts: 72
Joined: Thu Nov 14, 2019 12:32 am
Contact:

Re: Unexplained shutdown of unrealircd 4.2.4

Post by Suratka »

recently I started to understand unrealircd4 and pssare at 5 would be a trauma for me that I am not an expert, but I do things mechanically. But I think it's an obligation to post at 5, given that support is suspended in December.
Locked