hackg

Q: “POSIX error: Invalid argument” (NSPOSIXErrorDomain:22) help!

I get no internet access, after airport logs into WiFi network just fine. No network access in safari, none in firefox, and even the system can't get access (tried to update the OS, check for updates - failed saying network error)

 

I log into the same network with same login settings, on 2 other macs just fine. Something is blocking net access and I cant find what it is

 

 

Trying to trash the safari cache file did not help either, as this previous post mentioned with success

https://discussions.apple.com/message/3598455#3598455

 

 

I have checked the hosts file, and do not see any evidence that netnanny or antivirus was installed on this computer. If so, I'm not sure which files to search for as there are no apps registered as such

iMac, Mac OS X (10.6.3)

Posted on Feb 18, 2014 6:01 PM

Close

Q: “POSIX error: Invalid argument” (NSPOSIXErrorDomain:22) help!

  • All replies
  • Helpful answers

  • by Linc Davis,

    Linc Davis Linc Davis Feb 18, 2014 6:48 PM in response to hackg
    Level 10 (208,037 points)
    Applications
    Feb 18, 2014 6:48 PM in response to hackg

    Please read this whole message before doing anything.

    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.

    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.

    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.

    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.

    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.

    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.

    Test while in safe mode. Same problem?

    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • by hackg,

    hackg hackg Feb 19, 2014 7:00 AM in response to Linc Davis
    Level 1 (0 points)
    Feb 19, 2014 7:00 AM in response to Linc Davis


    Safe mode, the net works fine - so some launch daemon or process is starting at launch, which is blocking it. There is no evidence I can see of antivirus, netnanny or similar. (as others have found this was blocking net acess on startup)

     

    Filevault, firewall and any OSX protections like parental control that could limit net access is all turned off or set as it should (I'm not an OSX beginner and tried safe mode already).

     

    All startup apps in user pref pane are removed, so I'm not sure how to see other startup processes that should or shouldnt be starting at login (this is where my skill level is hitting its limits)


    It seems at the OS level, it can connect, otherwise it wouldnt be reporting to the network pref pane that the wifi is connected, and the wifi icon wouldnt show successful connect. But as soon as itunes, browsers or even mac osx update feature tries to request access, it gets denied

     

    I was curious if I can even ping, as I wanted to try that next to confirm the OS and terminal can access the net (not at computer currently), but more so just for curiosity sake. I will be giving up and reinstalling OSX soon

     

    I'm guessing some previous owner (bought used) had some antivirus, netnanny or firewall protection blocking access at the ports or application level, and they probably tried to uninstall or remove it, without getting all the files. Apps like AppDelete that find all associated files to be removed with an app, have been known to leave behind some critical files regarding antivirus or firewall apps, as I've read many others who've had similar issues and this was the root of them. I have confirmed write permissions to the safari cache folder and tried removing all caches as well

     

     

    thank you for the suggestions, and I also tried unplugging any add-on peripherals, no luck

  • by Linc Davis,

    Linc Davis Linc Davis Feb 19, 2014 7:30 AM in response to hackg
    Level 10 (208,037 points)
    Applications
    Feb 19, 2014 7:30 AM in response to hackg

    The first thing to do with a second-hand computer is to erase the internal drive and install a clean copy of OS X. You — not the previous owner — must do that. How you do it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.

    1. You don't own another Mac.

    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller — not from eBay or anything of the kind. If the machine has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.

    If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for some MacBook Air models. For early MBA models, you may need a USB optical drive or Remote Disc. You should have received the media from the previous owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.

    To boot from an optical disc or a flash drive, insert it, then reboot and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.

    If the machine shipped with OS X 10.7 or later, you don't need media. It should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.

    2. You do own another Mac.

    If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to create a bootable USB device and boot the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can boot from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.

    Once booted in Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.

    After partitioning, quit Disk Utility and run the OS X Installer. You will need the Apple ID and password that you used to upgrade. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.

    Then run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.

    If the previous owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Mac App Store Customer Service has sometimes issued redemption codes for these apps to second owners who asked.

    If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to  authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support.

  • by hackg,

    hackg hackg Feb 19, 2014 7:55 AM in response to Linc Davis
    Level 1 (0 points)
    Feb 19, 2014 7:55 AM in response to Linc Davis

    thanks - I know how to wipe and reinstall, and have 10.6 install disc that came with the iMac. After few more ideas I will throw in the towel and wipe it to reinstall

     

    hopefully this helps someone else, dead-end searching for a solution to similar problem