[Solved] Update breaks NTP and SSH

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[Solved] Update breaks NTP and SSH

Postby hydro » Thu Sep 27, 2012 8:43 am

I had a bad feeling when I updated my DockStar yesterday
$this->bbcode_second_pass_code('', '
[2012-09-26 18:46] upgraded coreutils (8.17-3 -> 8.19-1)
[2012-09-26 18:46] upgraded hwids (20120906-1 -> 20120922-1)
[2012-09-26 18:46] upgraded libarchive (3.0.4-1 -> 3.0.4-2)
[2012-09-26 18:46] upgraded postgresql-libs (9.1.4-1 -> 9.2.1-1)
[2012-09-26 18:47] upgraded procps-ng (3.3.3-3 -> 3.3.3-6)
[2012-09-26 18:48] upgraded util-linux (2.21.2-5 -> 2.22-6)
[2012-09-26 18:48] upgraded sysvinit-tools (2.88-7 -> 2.88-8)
[2012-09-26 18:48] upgraded sysvinit (2.88-7 -> 2.88-8)
')
so I rebooted immediately as long as I have physical access to the device to check if all still works well. I was able to login via SSH, but at first I didn't recognize that the time was not set from network. Later I restarted openntpd and it immediately switched from 1970 to now. I rebooted again and SSH access was gone, probably due to the time issue. I had to open the device and attach my CA-42 cable to communicate over serial connection. I restarted openntpd, but time was not adjusted. Same issue with ntpd. So I downgraded the packages mentioned above, rebooted and all was well again. While I was testing my rc.conf only contained these daemons
$this->bbcode_second_pass_code('', '
DAEMONS=(syslog-ng network openntpd sshd)
')
Currently I have no time to find out what's gone wrong and I need a working DockStar the next few weeks, so I'll keep the old packages for now. This is just some kind of warning.
Last edited by hydro on Tue Oct 09, 2012 12:50 pm, edited 1 time in total.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Update breaks NTP and SSH

Postby hydro » Tue Oct 09, 2012 12:50 pm

Today I ran the update again and I can no longer reproduce the issue. There were some more new packages, which may or may not have had an influence. SSH login is no longer affected, even when openNTP is not started in rc.conf.
$this->bbcode_second_pass_code('', '
[2012-10-09 13:33] upgraded coreutils (8.17-3 -> 8.19-1)
[2012-10-09 13:33] upgraded filesystem (2012.8-1 -> 2012.10-1)
[2012-10-09 13:33] upgraded hwids (20120906-1 -> 20120922-1)
[2012-10-09 13:33] upgraded util-linux (2.21.2-5 -> 2.22-7)
[2012-10-09 13:34] upgraded systemd (189-4 -> 194-1)
[2012-10-09 13:34] upgraded dbus-core (1.6.4-1 -> 1.6.8-1)
[2012-10-09 13:35] upgraded git (1.7.12.1-1 -> 1.7.12.2-1)
[2012-10-09 13:35] upgraded sysvinit-tools (2.88-7 -> 2.88-8)
[2012-10-09 13:35] upgraded initscripts (2012.08.3-2 -> 2012.09.2-2)
[2012-10-09 13:35] upgraded libarchive (3.0.4-1 -> 3.0.4-2)
[2012-10-09 13:36] upgraded libmysqlclient (5.5.27-4 -> 5.5.28-1)
[2012-10-09 13:36] upgraded libusbx (1.0.12-2 -> 1.0.14-1)
[2012-10-09 13:36] upgraded mercurial (2.3.1-1 -> 2.3.2-1)
[2012-10-09 13:36] upgraded mkinitcpio-busybox (1.20.1-1 -> 1.20.2-1)
[2012-10-09 13:36] upgraded ncdu (1.8-1 -> 1.9-1)
[2012-10-09 13:36] upgraded nfsidmap (0.24-3 -> 0.25-1)
[2012-10-09 13:36] upgraded patch (2.6.1-3 -> 2.7.1-1)
[2012-10-09 13:36] upgraded perl-authen-sasl (2.15-3 -> 2.16-1)
[2012-10-09 13:37] upgraded perl-net-ssleay (1.48-2 -> 1.49-1)
[2012-10-09 13:37] upgraded perl-yaml-syck (1.20-2 -> 1.21-1)
[2012-10-09 13:37] upgraded pkgfile (5-2 -> 6-1)
[2012-10-09 13:37] upgraded postgresql-libs (9.1.4-1 -> 9.2.1-1)
[2012-10-09 13:37] upgraded procps-ng (3.3.3-3 -> 3.3.3-6)
[2012-10-09 13:37] upgraded quota-tools (1:4.00-1 -> 1:4.01-1)
[2012-10-09 13:37] upgraded rp-pppoe (3.10-7 -> 3.11-1)
[2012-10-09 13:37] upgraded run-parts (4.3.2-1 -> 4.3.4-1)
[2012-10-09 13:37] upgraded sqlite (3.7.14-1 -> 3.7.14.1-1)
[2012-10-09 13:37] upgraded sysvinit (2.88-7 -> 2.88-8)
')
Btw. I forgot to mention that the initial update from Sep 27 broke ssh reproducably, but other network services were not affected (e.g. VDR Webinterface).
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: [Solved] Update breaks NTP and SSH

Postby moonman » Tue Oct 09, 2012 11:53 pm

never experinced this. I do updates every day
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [Solved] Update breaks NTP and SSH

Postby hydro » Wed Oct 10, 2012 8:03 am

I update once a week or so, and I certainly didn't mean to warn before updates in general. On the other hand I usually don't reboot except after kernel updates.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: [Solved] Update breaks NTP and SSH

Postby moonman » Wed Oct 10, 2012 10:17 am

Might have been a bad packages that was pulled couple of hours later. Maybe fs corruption? I recently experienced filesystem corruption with ext3 due to a power outage (after 2 years of no power outages) flexget would tell me that transmissinrpc is not a recognized plugin.Reinstalled flexge and pytransmissionrpc, still the same. After e2fsck fixed all errors, it would still do the same. Only another reinstall of flexget helped. Now I am wondering if anything else is broken. Thanks for the warning anyways!
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 291 guests

cron