Discuss Can't connect to AFP or OpenSSH any more at the General - Hackint0sh.org; All of a sudden I can't connect to AFP (get "Connection Failed" in Finder) or ...
Can't connect to AFP or OpenSSH any more
All of a sudden I can't connect to AFP (get "Connection Failed" in Finder) or SSH (connection refused). This seems to have happened since a manual install of TaskbarNotifier 0.9, though I have manually uninstalled and it's still not working.
I just uninstalled and reinstalled AFP and that's working again, but when I try to uninstall OpenSSH I get an error saying "Main script execution failed".
This is on an iPhone was was 1.1.2 OTB, downgraded to 1.1.1, Jailbroken, upgraded to 1.1.2, then more recently iTunes restored to 1.1.3 and Jailbroken with ZiPhone.
Ok fixed. AFPed in and edited /var/mobile/Library/Installer/LocalPackages.plist. Removed the whole section for OpenSSH. Went back in to Installer.app and installed OpenSSH. Working again
Think I know what caused this. When I did the manual install of TaskbarNotifier, I dragged the whole LaunchDaemons folder to /Library on the iPhone. When I looked while OpenSSH wasn't working, there was nothing in there to launch OpenSSH, so it must have overwritten the WHOLE FOLDER, rather than adding the files to the existing one and leaving the existing file alone. This would explain why it didn't work, and might also explain why the uninstall failed (it was trying to delete a non-existent file).
Would somebody mind posting the directory listing of a 1.1.3 /Library/LaunchDaemons for me please? Although AFP and SSH are now working, I'm a bit worried that something else might be missing.
Can confirm that the above explanation is in fact what happened. Just did a test:
1. On iPhone:
a. Created folder /var/mobile/test
b. Created text file /var/mobile/test/foo
2. On Mac:
a. Created folder ~/Desktop/test
b. Created text file ~/Desktop/test/bar
3. Copied test folder from Mac to iPhone
4. Test folder on iPhone now contains bar, but not foo
How stupid is that! (though it does warn you - I didn't read the error properly and thought it was just warning about the possibility of existing files being overwritten. Didn't think it would overwrite the whole directory!)
By inkee in forum iOS 4.x (iPhone OS 4.x)
Last Post: 07-13-2010, 10:26 PM
By riicky in forum Free Toolchain Software
Last Post: 07-08-2008, 12:13 PM
By Alperovich in forum Free Toolchain Software
Last Post: 07-04-2008, 08:41 AM
By bob616 in forum Free Toolchain Software
Last Post: 05-12-2008, 12:08 AM
By Bigweezy911 in forum General
Last Post: 02-06-2008, 07:19 AM