Bad File Descriptor

Hi, I got suddenly a question mark and every time i rebooted it cames back. so I have fully formatted my disk in the cmd R session. Even with the cmd R my disk is not always there. And when it’s there, I get an error if I try to reinstall MacOS Sierra on it. The error is Bad file descriptor. MacBook Pro 15’ 2017 1TB SSD

Replies

The phrase bad file descriptor is often associated with file system issues, but is not amongst the strings in fsck_hfs or fsck_apfs.


You'll find the phrase in /source/xnu/xnu-3789.51.2/bsd/sys/errno.h in open source for Mac OS X 10.12.4.


Consider the possibility of an underlying issue with the drive.

More details here


It appears to be when the download or writing the file is failing, its every time at the same "Chunk" :


Jul 2 08:07:27 MacBook-Pro osinstallersetupd[611]: Got chunk 217 of 477

Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=22 "Invalid argument"

Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...

Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"

Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...

Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"

Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...

Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"

Jul 2 08:07:59 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrying...

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=5 "Input/output error"

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Chunk download failed, retrys exhausted, failing.

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Retrying http-chunked://osrecovery.apple.com/::://oscdn.apple.com/content/downloads/20/05/2Z694-07454/unptmwf48tw0g1mhanrszg8smzep11azdn/OSInstaller/InstallESD.chunklist::://oscdn.apple.com/content/downloads/20/05/2Z694-07454/unptmwf48tw0g1mhanrszg8smzep11azdn/OSInstaller/InstallESD.dmg after 1 failure(s)

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Failed to allocate edge cache locator.

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Connection did fail with error: Error Domain=NSPOSIXErrorDomain Code=9 "Bad file descriptor"

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Chunklist download failed with error: Error Domain=NSPOSIXErrorDomain Code=9 "Bad file descriptor"

Jul 2 08:08:00 MacBook-Pro osinstallersetupd[611]: Retrying...

Thanks.


At a glance, I don't know whether to treat those I/O errors as symptomatic of a local problem.


> … Failed to allocate edge cache locator.


– that's thought-provoking. Can anyone else comment?