sshd not starting

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

sshd not starting

Postby chadr » Mon Jun 03, 2013 12:56 am

I also did a pacman -Syu this evening and now I can't ssh to my server. I entered this script as suggested, but no luck.

http://archlinuxarm.org/forum/viewtopic.php?f=18&t=5605

My server httpd is working fine so it is booting fully. In the rc.conf there is daemons = httpd sshd (and many others). What are the steps I should follow to get sshd working again?
chadr
 
Posts: 24
Joined: Mon Aug 01, 2011 10:08 pm

Re: sshd not starting

Postby tomcheng76 » Mon Jun 03, 2013 1:34 am

Hope you found useful,
viewtopic.php?f=18&t=5649

Also delete sshd from rc.conf, try to migrate everything to systemd and delete rc.conf
you may check the systemd archlinux wiki
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

Re: sshd not starting

Postby chadr » Mon Jun 03, 2013 4:14 am

I thought maybe that I could enter "systemctl enable sshd.service" in rc.local and it would work, but I rebooted twice after entering this command and that didn't work.

So if chroot via boot cd/dvd is the only way is there a certain one to use? I've used knoppix in the past. Will this work or do I need to get a boot cd/dvd specific to arch?

I think the easy way out will be to restore from backup and not update again :)
chadr
 
Posts: 24
Joined: Mon Aug 01, 2011 10:08 pm

Re: sshd not starting

Postby tomcheng76 » Mon Jun 03, 2013 6:17 am

The OS which you run chroot should also be arm architecture

If you found difficulty to find a os that is running arm architecture, you may try the following symlink instead of systemctl,
let say you mount your drive to a linux PC, mount point /mnt/sdb1

$this->bbcode_second_pass_code('', 'cd /mnt/sdb1
ln -sf /usr/lib/systemd/system/sshd.service etc/systemd/system/multi-user.target.wants/sshd.service')
tomcheng76
 
Posts: 130
Joined: Mon Dec 13, 2010 11:24 am

Re: sshd not starting

Postby calzon65 » Tue Jun 04, 2013 2:52 am

I experienced the exact same problem after a pacman -Syu a few days ago. Fortunately I had a system backup and just "bit the bullet" and reloaded everything from scratch; it all works perfectly now. At least it forced me to finally embrace systemd.
calzon65
 
Posts: 80
Joined: Wed May 25, 2011 9:06 pm

Re: sshd not starting

Postby chadr » Wed Jun 05, 2013 3:46 am

I've restored from backup and can now access my server just fine. The backup copy of the server had pacman -Syu last run on March 28 2013 so it isn't too many months old.

Should I wait a few months and try pacman -Syu again? Perhaps the bugs will have been worked out? Or should I plan to read up on systemd to understand which package updates are causing the breakage?
chadr
 
Posts: 24
Joined: Mon Aug 01, 2011 10:08 pm

Re: sshd not starting

Postby moonman » Wed Jun 05, 2013 4:35 am

These are not bugs, SysV init is not supported anymore AT ALL, few month later you will have only more problems with it. You likely will have more problems now that they moved everything to /usr/bin or /usr/sbin and did not update all the init scripts that rely on the older structure.Soon, if not now, the only way for you to get up to do date will be a complete reinstall.
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: sshd not starting

Postby chadr » Wed Jun 05, 2013 7:13 am

I converted to systemd by following this guide :

http://www.pontikis.net/blog/migration- ... -archlinux

It booted fine and started sshd and the other services as expected.
chadr
 
Posts: 24
Joined: Mon Aug 01, 2011 10:08 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 2 guests