![]() |
#1 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2016
Device: Paperwhite 2
|
USBNetwork failed to start sshd
Hello,
My KPW 2 came with the 5.4.3.2 firmware. I JB'd it, and then upgraded to 5.4.5. After the upgrade, I installed usbnet 0.21N. I can access the Kindle only through Telnet, but not with SSH ("connection refused"). When I type ;un into the search box, it gives a "failed to start sshd" message. What should I do? |
![]() |
![]() |
![]() |
#2 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 416
Karma: 765432
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
What reports usbnet status?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Use the packages from:
https://www.mobileread.com/forums/sho...d.php?t=225030 Install KUAL Install MrPI Then use MrPI to install USBnetworking (from the above link) Then use KUAL/USbnet menu to enable/disable and report status of USBnet After that - Follow the directions included with USBnet on setting up ssh/sshd Get it working over the USB cable before trying to make it work over WiFi. Report back on progress - Include the address at both ends of the cable and the hardware/OS/OS version of the non-Kindle end of the connection. |
![]() |
![]() |
![]() |
#4 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
And don't forget that it won't switch properly if the device is plugged in to a computer.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2016
Device: Paperwhite 2
|
I proceeded as follows:
1. Uninstalled usbnet using the uninstaller image from the same place where I had gotten it (http://www.mobileread.mobi/forums/sh...d.php?t=186645). It completed successfully, but all usbnet files remained in the device. 2. Installed KUAL and MRPI from the link you provided. 3. I noticed in KUAL that the usbnetwork entry was there, so it probably wasn't uninstalled. 3. Anyway, tried to install usbnet snapshot from the link you provided using MRPI, but it said "Hush, little baby" and then "No MR packages found". So I went the usual route (Settings -> Update your Kindle) and got Error 006. 4. After the reboot, I tried to enable usbnetwork in the KUAL entry and got the same error from before. USBNetwork status doesn't give anything. I use Debian 8 Thank you! |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@odifinaro:
1. Perfectly normal, that's to prevent wiping user content (settings, in this instance). 3. Byproduct of 1. Also still there, but of course won't work properly, given that it might be looking for uninstalled stuff. 3b.: You need to drop the package in the mrpackages folder, not the root. Hence both errors. 4. No chance that it'd work, given 3b ![]() |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2016
Device: Paperwhite 2
|
Ok, such a stupid mistake. So I dropped the package in mrpackages, and then at 7 / 100 progress, it said "package script failed (1), moving on..." and restarted. I tried to enable usbnetwork in KUAL and got the same sshd error.
Thank you |
![]() |
![]() |
![]() |
#8 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
You can check the logs (extensions/mrinstaller/log/mrinstaller.log), but that looks like a failure to update the userstore...
Make sure you have enough free space in there (MRPI should have warned about that, so that seems unlikely). Last time someone hit that, a reboot fixed it (?!). Barring that, you can try: * Uninstalling USBNet * Removing the usbnet folder manually * Installing USBNet afresh |
![]() |
![]() |
![]() |
#9 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
My PW3 SSHD was failing to start (so I had to use telnet), but (as recommended) reinstalling it (via MRPI) made it "all better" (just this morning, in fact).
|
![]() |
![]() |
![]() |
#10 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2016
Device: Paperwhite 2
|
Here is the log:
Quote:
Thanks! |
|
![]() |
![]() |
![]() |
#11 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I'm going to go out on a limb by saying that cp returning a bunch of I/O errors in a row cannot be a good thing, but, hey
![]() Is this a new device? How much space left do you have in the USB partition? Can you check the system logs to see if fsck complains about anything on boot? |
![]() |
![]() |
![]() |
#12 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Some people create a very huge file in user storage, in the hopes it will prevent OTA updates.
Check for that if you have very little free space in USB mass storage. |
![]() |
![]() |
![]() |
#13 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2016
Device: Paperwhite 2
|
Over 2GB of free space and nothing about fsck in the logs.
I guess the whole thing was a permissions or file-in-use issue. I remember that I also got some I/O error when I was trying to edit the config files in the usbnet folder through Telnet. I guess sshd couldn't start because it couldn't write to the usbnet folder, probably because I had switched with the Kindle plugged in. |
![]() |
![]() |
![]() |
#14 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
USB storage is unavailable to the internals while the cable is plugged in. Runtime USB networking is protected against that case of PEBKAC, evidently the install/un-install is not. A useful finding - NiLuJe's summer school assignment is making changes to the USBnetworking package, so that can be one more thing to consider changing. |
|
![]() |
![]() |
![]() |
#15 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
It should be safe for only ONE side to have rw access and the other side ro access though, but even then the ro side might not see recent changes done in the rw side. Part of the problem is that you can force disk flushes on the rw side, but it is a bit more difficult to force disk cache voids on the ro side. Simpler and easier to do as kindle did and just disallow access to one side or the other. If you really need file system access by multiple processors, that's what NFS was designed for (and with usbnet, SCP does a good job too). If you REALLY want to mount the filesystem from both sides, then AT LEAST turn off write caching (which defaults to ON for the kindles on a windoze PC), and do lots of "sync" commands on the kindles side --- and of course keep recent backup copies. One way I though of to get data both ways over a shared kindle drive is to pre-allocate fixed-sized files, one for input and one for output, then use a program to mmap them, and then confine all writes to the proper file. In essence, one file becomes an input channel and the other an output channel. As long as no new disk clusters get allocated you should be (relatively) safe. But Windows sometimes writes crap to freshly plugged in drives (to test if it is fast enough for "readyboost"), and the kindle somethimes writes log files and whatnot to the drive as well (such as what page you last read in a book). Just remember that bending the rules is not without risk... Last edited by geekmaster; 05-22-2016 at 08:54 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
sshd will not start in usbnetwork mode | alethiophile | Kindle Developer's Corner | 9 | 01-25-2014 10:36 AM |
K4B USBNetwork failed | piahoo | Kindle Developer's Corner | 2 | 11-14-2012 05:43 PM |
Start usbNetwork with launchpad? | giorgio130 | Kindle Developer's Corner | 5 | 12-03-2011 10:19 AM |
iLiad Semi-Standalone sshd? | grayfox | iRex Developer's Corner | 9 | 02-09-2008 02:50 PM |
iLiad starting sshd over wireless? | thetechnobear | iRex Developer's Corner | 5 | 11-28-2007 01:49 PM |