Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: [28: No space left on device] #937

Closed
ghost opened this issue Oct 1, 2020 · 2 comments
Closed

ERROR: [28: No space left on device] #937

ghost opened this issue Oct 1, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 1, 2020

Package versions:

    "react-native": "0.63.2",
    "react-native-fs": "^2.16.6",

Device info:

  • iPad Pro
  • iPadOS 14.0.0

My device has 40GB+ of free space but after ~2GB of downloads from my CDN in the app update section, the device returns Error [28: No space left on device]. I'm using RNFS.downloadFile(obj) one at a time and writing them to RNFS.DocumentDirectoryPath + '/assets'. I thought this was an OS version, but I've tried running my app on an iPad running OS 13.6.0 and I'm getting the same error. Using RNFS.getFSInfo() shows me the available space is what I expect (~40GB). This doesn't happen on the simulator so I'm wondering if there's an issue with this library or react-native. Has anyone else experienced it?

@ghost
Copy link
Author

ghost commented Oct 2, 2020

Also want to leave my full error log from XCode here too

2020-10-02 11:34:44.793027+0100 RichardMilleInStoreApp[1206:362483] [] nw_path_evaluator_create_flow_inner NECP_CLIENT_ACTION_ADD_FLOW 7139A7A4-E1D6-43EF-9418-7F8C23338357 [28: No space left on device]
2020-10-02 11:34:44.793129+0100 RichardMilleInStoreApp[1206:362483] [connection] nw_endpoint_flow_setup_channel [C535.1 143.204.175.170:443 in_progress channel-flow (satisfied (Path is satisfied), interface: en0, ipv4, dns)] failed to request add nexus flow
2020-10-02 11:34:44.793891+0100 RichardMilleInStoreApp[1206:362483] [] nw_path_evaluator_create_flow_inner NECP_CLIENT_ACTION_ADD_FLOW 17BB2D0F-8BD2-4BFC-A4B8-74A2464E8E4F [28: No space left on device]
2020-10-02 11:34:44.793968+0100 RichardMilleInStoreApp[1206:362483] [connection] nw_endpoint_flow_setup_channel [C535.2 143.204.175.215:443 in_progress channel-flow (satisfied (Path is satisfied), interface: en0, ipv4, dns)] failed to request add nexus flow
2020-10-02 11:34:44.794703+0100 RichardMilleInStoreApp[1206:362483] [] nw_path_evaluator_create_flow_inner NECP_CLIENT_ACTION_ADD_FLOW D9ACC323-0075-45E9-803A-A725D4AF683F [28: No space left on device]
2020-10-02 11:34:44.794779+0100 RichardMilleInStoreApp[1206:362483] [connection] nw_endpoint_flow_setup_channel [C535.3 143.204.175.166:443 in_progress channel-flow (satisfied (Path is satisfied), interface: en0, ipv4, dns)] failed to request add nexus flow
2020-10-02 11:34:44.795485+0100 RichardMilleInStoreApp[1206:362483] [] nw_path_evaluator_create_flow_inner NECP_CLIENT_ACTION_ADD_FLOW B8F9DFDD-16D7-42B7-9554-B7C5311EF46E [28: No space left on device]
2020-10-02 11:34:44.795561+0100 RichardMilleInStoreApp[1206:362483] [connection] nw_endpoint_flow_setup_channel [C535.4 143.204.175.145:443 in_progress channel-flow (satisfied (Path is satisfied), interface: en0, ipv4, dns)] failed to request add nexus flow
2020-10-02 11:34:44.796176+0100 RichardMilleInStoreApp[1206:362483] Connection 535: received failure notification
2020-10-02 11:34:44.796264+0100 RichardMilleInStoreApp[1206:362483] Connection 535: failed to connect 1:28, reason -1
2020-10-02 11:34:44.796313+0100 RichardMilleInStoreApp[1206:362483] Connection 535: encountered error(1:28)
2020-10-02 11:34:44.798776+0100 RichardMilleInStoreApp[1206:362483] Task <0328EBE3-C4DA-4F59-B42A-B1AEE460A950>.<1> HTTP load failed, 0/0 bytes (error code: 28 [1:28])
2020-10-02 11:34:44.800583+0100 RichardMilleInStoreApp[1206:362482] Task <0328EBE3-C4DA-4F59-B42A-B1AEE460A950>.<1> finished with error [28] Error Domain=NSPOSIXErrorDomain Code=28 "No space left on device" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask <0328EBE3-C4DA-4F59-B42A-B1AEE460A950>.<1>, _kCFStreamErrorDomainKey=1, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDownloadTask <0328EBE3-C4DA-4F59-B42A-B1AEE460A950>.<1>"
), _kCFStreamErrorCodeKey=28}
2020-10-02 11:34:44.923 [warn][tid:com.facebook.react.JavaScript] Possible Unhandled Promise Rejection (id: 0):
TypeError: arguments[0].indexOf is not a function. (In 'arguments[0].indexOf('Requiring module \'NativeModules\' by name')', 'arguments[0].indexOf' is undefined)
/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:100598:47
/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:68065:28
initUpdating$@/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:116593:25
tryCatch@/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:30763:23
invoke@/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:30938:32
tryCatch@/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:30763:23
invoke@/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:30839:30
/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:30851:21
tryCallOne@/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:5745:16
/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:5846:27
_callTimer@/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:31437:17
_callImmediatesPass@/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:31473:19
callImmediates@/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:31692:33
callImmediates@[native code]
__callImmediates@/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:5155:35
/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:4932:34
__guard@/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:5138:15
flushedQueue@/private/var/containers/Bundle/Application/65EA22B8-7948-4654-8A68-9A8DE59DE356/RichardMilleInStoreApp.app/main.jsbundle:4931:21
flushedQueue@[native code]
invokeCallbackAndReturnFlushedQueue@[native code]

@ghost
Copy link
Author

ghost commented Oct 5, 2020

We've made a PR to solve this issue. Anyone finding themselves with this issue in the meantime should refer to the PR and changes we've done.

@ghost ghost closed this as completed Oct 5, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants