Can't ssh into Pogo after Holidays

This forum is for all other ARMv5 devices

Can't ssh into Pogo after Holidays

Postby hilikustue » Sun Jun 24, 2012 4:35 pm

Hi there,

At June 10th I went into my holidays. The day before I made pacman upgrades I think and then shut it down.
Now when I plug the Plug in, the green LED flashes and then goes off. When I try to ssh into it, I get "Connection refused".
The File System is clean and I am pretty sure it is not the problem with the initscripts, since I already had that here viewtopic.php?f=29&t=2824

Now there is a new sticky marked important having something to do with the kernel but to be honest, I have no clue if this could be the problem and how would I fix this, when I cannot ssh into my Pogo. I could boot it from a VM again I guess but what then?

cheers guys
hilikustue
 
Posts: 30
Joined: Thu Sep 22, 2011 10:51 am

Re: Can't ssh into Pogo after Holidays

Postby hilikustue » Mon Jun 25, 2012 5:03 pm

Hi again.

So I thought to myself: "I'll sort this out, no problem" and got the rootfs from the important thread above to a different USB Stick, booted it up and ran the update script that is pinned at the top under the category "important". Went through with no problem.

When i plug in my original rootfs thumb drive, it goes solid green after flashing (hurray) but unfortunately I cannot ping nor ssh into it. My router says the device is offline.

Could I cheat my Pogo to boot up properly with my original thumb drive again?

Thanks
hilikustue
 
Posts: 30
Joined: Thu Sep 22, 2011 10:51 am

Re: Can't ssh into Pogo after Holidays

Postby Philoo » Mon Jun 25, 2012 5:30 pm

if you ran the update-oxnas.sh script and you can boot your spare usb key after a pacman -Syu then you are almost there.

boot on your spare. connect the original usb drive (if it was rigged on sata, use a usb enclosure). mount the original rootfs, chroot to it and upgrade your chrooted archlinux.

from there you should be able to boot from the original drive.

Note: you may (or not) need to:
- copy the /lib folder from the spare drive to the original (or rerun the update-oxnas.sh from within the chroot. Since it flashes the backported kernel in NAND, please use that as a last resort)
- mount /proc and /dev to something sensible within the chroot. I had several such situations where pacman could not proceed with the install because it was missing /proc and /dev .
Philoo
 
Posts: 102
Joined: Wed Aug 10, 2011 9:20 pm

Re: Can't ssh into Pogo after Holidays

Postby hilikustue » Mon Jun 25, 2012 7:05 pm

Ok, I went through this wiki here https://wiki.archlinux.de/title/Chroot to see what the heck chroot means. I followed the steps via c&p and did pacman -Syu two times to be sure.

It updated many things but I still cannot get my original Stick to boot up. The LED flashes, turns to green but the Plug is still not reachable and doesn't get an IP Address.

there were some warnings during the updates, maybe it has something to do with those?

$this->bbcode_second_pass_code('', 'warning: could not get filesystem information for /media/hd-sdb1: No such file or directory
(36/36) checking available disk space [##########################################################################] 100%
( 1/36) upgrading e2fsprogs [##########################################################################] 100%
( 2/36) upgrading libldap [##########################################################################] 100%
( 3/36) upgrading krb5 [##########################################################################] 100%
( 4/36) upgrading libwbclient [##########################################################################] 100%
( 5/36) upgrading cifs-utils [##########################################################################] 100%
( 6/36) installing pambase [##########################################################################] 100%
( 7/36) upgrading pam [##########################################################################] 100%
( 8/36) upgrading cronie [##########################################################################] 100%
( 9/36) upgrading filesystem [##########################################################################] 100%
warning: /etc/gshadow installed as /etc/gshadow.pacnew
warning: /etc/group installed as /etc/group.pacnew
warning: directory permissions differ on sys/
filesystem: 755 package: 555
(10/36) installing libsystemd [##########################################################################] 100%
(11/36) upgrading dbus-core [##########################################################################] 100%
(12/36) upgrading dbus [##########################################################################] 100%
(13/36) upgrading kmod [##########################################################################] 100%
(14/36) upgrading hwids [##########################################################################] 100%
(15/36) upgrading systemd-tools [##########################################################################] 100%
(16/36) upgrading device-mapper [##########################################################################] 100%
(17/36) upgrading gnutls [##########################################################################] 100%
(18/36) upgrading gzip [##########################################################################] 100%
(19/36) upgrading iproute2 [##########################################################################] 100%
(20/36) upgrading libtiff [##########################################################################] 100%
(21/36) upgrading libpng [##########################################################################] 100%
(22/36) upgrading libcups [##########################################################################] 100%
(23/36) upgrading libidn [##########################################################################] 100%
(24/36) upgrading linux-api-headers [##########################################################################] 100%
(25/36) upgrading lm_sensors [##########################################################################] 100%
(26/36) upgrading logrotate [##########################################################################] 100%
(27/36) upgrading lvm2 [##########################################################################] 100%
(28/36) upgrading man-db [##########################################################################] 100%
(29/36) upgrading mkinitcpio [##########################################################################] 100%
(30/36) upgrading openntpd [##########################################################################] 100%
(31/36) upgrading openssh [##########################################################################] 100%
warning: /etc/ssh/sshd_config installed as /etc/ssh/sshd_config.pacnew
New optional dependencies for openssh
x11-ssh-askpass: input passphrase in X
xorg-xauth: X11 forwarding
')
hilikustue
 
Posts: 30
Joined: Thu Sep 22, 2011 10:51 am

Re: Can't ssh into Pogo after Holidays

Postby Philoo » Mon Jun 25, 2012 9:10 pm

Okay, the led goes steady green it means the kernel does not crash (check)

the initial warning in your copy/paste comes from the umounted /proc and /dev . pacman did proceed though so that is not really a concern. (check)

back when it worked did you make changes in your ssh server settings (/etc/ssh/sshd_config) ? the warning about sshd_config.pacnew means that the update of ssh comes with a different default config and that it did not replace the previous one b/c it was changed (presumably you customized it)

from what I see in the package changelog
https://projects.archlinux.org/svntogit/packages.git/log/trunk?h=packages/openssh you need to integrate the new configuration file. I would :
$this->bbcode_second_pass_code('', 'diff /etc/ssh/sshd_conf /etc/ssh/sshd_config.pacnew')

take note of the differences I made in sshd_config that are not in sshd_config.pacnew
add them manually as needed.
then
$this->bbcode_second_pass_code('', 'mv /etc/ssh/sshd_config /etc/sshd_config.old
cp /etc/ssh/sshd_config.pacnew /etc/ssh/ssh_config')

reboot.

Since there ARE changes in the server config file I think it's best not to post the diffs on the public forum.

if you want more instant gratification save the old config file, copy the *.pacnew as sshd_config, reboot and see what breaks (freenx would or some service using ssh as transport for encryption, as well some users account may not be allowed anymore depends on your original setup)
Philoo
 
Posts: 102
Joined: Wed Aug 10, 2011 9:20 pm

Re: Can't ssh into Pogo after Holidays

Postby hilikustue » Tue Jun 26, 2012 6:10 am

I just tried your last two lines of code succesfully because I wanted to see if that is the problem.
But unfortunately the LEd still goes to a solid green but it doesn't get an IP Address from my Router and so I still cannot ssh into it.

What else could I check?
hilikustue
 
Posts: 30
Joined: Thu Sep 22, 2011 10:51 am


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 46 guests