Dan Cropp
2019-Aug-14 16:12 UTC
[asterisk-users] Anyone ever experienced a crash where Asterisk debug output a line with all nulls
> Did I get it correctly: the last line in the log before asterisk starts again after the reboot is the [nul]-line? If so, are you probably using ext4 or maybe reiserfs? I know of this problem if the machine crashes, open files can end up like described. AFAIK it's a file system bug!Yes, the last line in in the log before asterisk starts again after the reboot is the [nul]-line. I believe you are right about the system using ext4 and the [nul]-line problem> Maybe because the machine is performing a file system check on some other partitions in parallel and it's slowed down therefore?Wouldn't /var/log/syslog show something like this if it's happening in parallel? syslog has items before asterisk is starting, but once the Asterisk log files show it's starting to completed, /var/log/syslog has nothing. Syslog has nothing for about 10 minutes after that. The strange thing is the customer did a manual restart of Ubuntu 20 minutes later and the same slow startup time happened.
Michael Maier
2019-Aug-14 18:46 UTC
[asterisk-users] Anyone ever experienced a crash where Asterisk debug output a line with all nulls
On 14.08.19 at 18:12 Dan Cropp wrote:> >> Maybe because the machine is performing a file system check on some other partitions in parallel and it's slowed down therefore? > > Wouldn't /var/log/syslog show something like this if it's happening in parallel?Well, it was just speculation. Is it even now reproducible after the 3. or even later reboot? I would try to log in via ssh as fast as possible (or directly via a shell) and try to find the responsible process. Try to examine the IO.> syslog has items before asterisk is starting, but once the Asterisk log files show it's starting to completed, /var/log/syslog has nothing. > Syslog has nothing for about 10 minutes after that. > > The strange thing is the customer did a manual restart of Ubuntu 20 minutes later and the same slow startup time happened.If the machine is shut down manually, did it perform a correct shutdown (= all file systems have been correctly unmounted and all processes have been stopped before unmounting)? Is the startup slow even if it's done w/o reboot before? Regards Michael
Dan Cropp
2019-Aug-14 19:22 UTC
[asterisk-users] Anyone ever experienced a crash where Asterisk debug output a line with all nulls
I have been told they went to an earlier snapshot of the VM and are running on that one now so we no longer have access to the VM from the state it was in. The startup on their old snapshot VM is taking about 2 seconds for asterisk to load the configuration files. Someone finally admitted to me the VM that crashed was missing over 200 package updates. At this point, that's what we are chalking it up to. Have a great day! Dan -----Original Message----- From: asterisk-users <asterisk-users-bounces at lists.digium.com> On Behalf Of Michael Maier Sent: Wednesday, August 14, 2019 1:46 PM To: asterisk-users at lists.digium.com Subject: Re: [asterisk-users] Anyone ever experienced a crash where Asterisk debug output a line with all nulls On 14.08.19 at 18:12 Dan Cropp wrote:> >> Maybe because the machine is performing a file system check on some other partitions in parallel and it's slowed down therefore? > > Wouldn't /var/log/syslog show something like this if it's happening in parallel?Well, it was just speculation. Is it even now reproducible after the 3. or even later reboot? I would try to log in via ssh as fast as possible (or directly via a shell) and try to find the responsible process. Try to examine the IO.> syslog has items before asterisk is starting, but once the Asterisk log files show it's starting to completed, /var/log/syslog has nothing. > Syslog has nothing for about 10 minutes after that. > > The strange thing is the customer did a manual restart of Ubuntu 20 minutes later and the same slow startup time happened.If the machine is shut down manually, did it perform a correct shutdown (= all file systems have been correctly unmounted and all processes have been stopped before unmounting)? Is the startup slow even if it's done w/o reboot before? Regards Michael -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users