Skip to content

[cache] repair fails with "No source of cryptographically secure random numbers available" #4585

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

Open
AlexV525 opened this issue May 23, 2025 · 5 comments · May be fixed by #4586
Open

[cache] repair fails with "No source of cryptographically secure random numbers available" #4585

AlexV525 opened this issue May 23, 2025 · 5 comments · May be fixed by #4586
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@AlexV525
Copy link
Contributor

AlexV525 commented May 23, 2025

Environment

Dart: 3.8.0
Flutter: 3.32.0

Problem

When running flutter pub cache repair, after a while of resetting, the process starts to throw:

  • No source of cryptographically secure random numbers available (not always)
  • OS Error: Too many open files, errno = 24

Expected behavior

Repairing should proceed without exceptions. Try adding a mutex lock when repairing a batch of packages.

Logs

> flutter pub cache repair 

Resetting Git repository for agent_dart 1.0.0-dev.22...
Resetting Git repository for agent_dart 1.0.0-dev.22...
Resetting Git repository for agent_dart 1.0.0-dev.22...
Resetting Git repository for agent_dart 1.0.0-dev.22...
Resetting Git repository for agent_dart 1.0.0-dev.23...
Resetting Git repository for agent_dart 1.0.0-dev.23...
Resetting Git repository for agent_dart_ffi 1.0.0...
Resetting Git repository for amap_flutter_location 3.0.0...
Resetting Git repository for amap_map 1.0.12...
Resetting Git repository for amap_map 1.0.12...
Resetting Git repository for amap_map 1.0.12...
Resetting Git repository for astrox_build 1.1.0...
Resetting Git repository for astrox_build 1.1.1...
Resetting Git repository for astrox_build 1.1.1...
Resetting Git repository for astrox_build 1.1.1...
Resetting Git repository for astrox_build 1.1.1...
Resetting Git repository for astrox_build 1.1.1...
Resetting Git repository for bdk_dart 1.0.0...
Resetting Git repository for bdk_dart_base 1.0.0...
Resetting Git repository for bdk_dart_base 1.0.0...
Resetting Git repository for bdk_dart_ffi 1.0.0...
Resetting Git repository for bdk_dart_ffi 1.0.0...
Resetting Git repository for bdk_dart_ffi 1.0.0...
Resetting Git repository for bdk_dart_ffi 1.0.0...
Resetting Git repository for better_player_plus 1.0.6...
Resetting Git repository for env2dart 0.3.7...
Resetting Git repository for esc_pos_utils 1.1.0...
Resetting Git repository for extended_image 8.3.0...
Resetting Git repository for extended_image 8.3.0...
Resetting Git repository for extended_image 8.3.0...
Resetting Git repository for extended_image 8.3.0...
Resetting Git repository for flutter_background 1.3.0+1...
Resetting Git repository for flutter_bdface_collect 1.1.0-oldsdk...
Resetting Git repository for flutter_bluetooth_serial 0.4.0...
Resetting Git repository for flutter_inappwebview 6.0.0-beta.25...
Resetting Git repository for flutter_inappwebview 6.0.0-beta.25...
Resetting Git repository for flutter_inappwebview 6.1.5...
Resetting Git repository for flutter_inappwebview_android 1.0.13...
Resetting Git repository for flutter_inappwebview_windows 0.7.0...
Resetting Git repository for flutter_svg 2.0.10+1...
Resetting Git repository for fvp 0.27.0...
Resetting Git repository for kyc_client_dart 1.0.0...
Resetting Git repository for kyc_client_dart 1.0.1...
Resetting Git repository for me_constants 0.0.1...
Resetting Git repository for me_constants 0.0.1...
Resetting Git repository for me_constants 0.0.1...
Resetting Git repository for me_constants 0.0.1...
Resetting Git repository for me_extensions 0.0.1...
Resetting Git repository for me_fonts 0.0.1...
Resetting Git repository for me_l10n 0.0.1...
Resetting Git repository for me_ui 0.0.1...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for me_utils 0.0.0...
Resetting Git repository for mlkit_scan_plugin 1.0.0...
Resetting Git repository for opentelemetry 0.18.2...
Resetting Git repository for path_provider_ohos 2.2.1...
Resetting Git repository for reown_core 1.0.2...
Resetting Git repository for reown_core 1.1.0-beta02...
Resetting Git repository for reown_core 1.1.0-beta02...
Resetting Git repository for reown_core 1.1.0-beta02...
Resetting Git repository for reown_walletkit 1.0.2...
Resetting Git repository for solana 0.31.1+1...
Resetting Git repository for solana 0.31.2...
Resetting Git repository for solana 0.31.2...
Resetting Git repository for tencent_cloud_chat 2.1.0...
Resetting Git repository for tencent_cloud_chat_message_reaction 2.1.0...
Resetting Git repository for tencent_cloud_chat_message_reaction 2.1.0...
Resetting Git repository for tencent_cloud_chat_message_reaction 2.1.0...
Resetting Git repository for test_flutter_amap_base 0.0.1...
Resetting Git repository for video_player 2.7.1...
Resetting Git repository for walletconnect_dart 0.0.11...
Resetting Git repository for walletconnect_dart 0.0.11...
Resetting Git repository for walletconnect_flutter_v2 2.1.4...
Resetting Git repository for walletconnect_flutter_v2 2.1.4...
Resetting Git repository for webf 0.16.2...
Resetting Git repository for webf 0.16.2...
Resetting Git repository for webf 0.16.2...
Resetting Git repository for webf_navigator 1.0.0...
Resetting Git repository for wechat_assets_picker 9.4.1...
Resetting Git repository for x_amap_base 1.0.3...
Failed to repair process_run 1.2.4. Error:
Pub failed to run subprocess `chmod`: ProcessException: Too many open files
  Command: chmod 755 /Users/alex/dev/.pub-cache/_temp/dirvDX4j1/example/prompt.dart
Failed to repair flutterfire_cli 1.2.0. Error:
Pub failed to run subprocess `chmod`: ProcessException: Too many open files
  Command: chmod 755 /Users/alex/dev/.pub-cache/_temp/dirhdx0af/bin/flutterfire.dart
Failed to repair posix 6.0.2. Error:
FileSystemException: Deletion failed, path = '/Users/alex/dev/.pub-cache/_temp/dirszvwxy' (OS Error: Too many open files, errno = 24)
Failed to repair dio_web_adapter 2.1.1. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/dio_web_adapter-2.1.1.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair dio_web_adapter 2.1.0. Error:
FileSystemException: Cannot open file, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_Jsg4fP/dio_web_adapter-2.1.0.tar.gz' (OS Error: Too many open files, errno = 24)
Failed to repair dio_cache_interceptor 3.5.1. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/dio_cache_interceptor-3.5.1.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair dwds 24.3.10. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/dwds-24.3.10.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair dolumns 2.0.1. Error:
FileSystemException: Deletion failed, path = '/Users/alex/dev/.pub-cache/_temp/dirmghoIz' (OS Error: Too many open files, errno = 24)
Failed to repair native_assets_cli 0.13.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_taXuga' (OS Error: Too many open files, errno = 24)
Failed to repair meta 1.17.0. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/meta-1.17.0.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair dio 5.8.0+1. Error:
FileSystemException: Cannot open file, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_yomPfT/dio-5.8.0+1.tar.gz' (OS Error: Too many open files, errno = 24)
Failed to repair dio 5.5.0+1. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_VKYFHk' (OS Error: Too many open files, errno = 24)
Failed to repair dfunc 0.10.0. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/dfunc-0.10.0.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair devtools_shared 11.2.0. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/devtools_shared-11.2.0.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair device_info_plus_platform_interface 7.0.1. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/device_info_plus_platform_interface-7.0.1.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair desktop_webview_auth 0.0.15. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_C8KiRB' (OS Error: Too many open files, errno = 24)
Failed to repair desktop_drop_for_t 0.4.6. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/desktop_drop_for_t-0.4.6.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair env2dart 0.5.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_ezDoyM' (OS Error: Too many open files, errno = 24)
Failed to repair deep_pick 1.1.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_xQcHlN' (OS Error: Too many open files, errno = 24)
Failed to repair dependency_validator 3.2.3. Error:
FileSystemException: Cannot open file, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_0RZfjD/dependency_validator-3.2.3.tar.gz' (OS Error: Too many open files, errno = 24)
Failed to repair decimal 3.0.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_2zjxiv' (OS Error: Too many open files, errno = 24)
Failed to repair dds_service_extensions 2.0.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_Z9lhgQ' (OS Error: Too many open files, errno = 24)
Failed to repair dart_style 2.3.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_briXGI' (OS Error: Too many open files, errno = 24)
Failed to repair dart_style 2.3.8. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_LKMqOa' (OS Error: Too many open files, errno = 24)
Failed to repair dds 5.0.0. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/dds-5.0.0.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair dart_mappable 4.5.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_2GeVIt' (OS Error: Too many open files, errno = 24)
Failed to repair dart_jsonwebtoken 2.17.0. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/dart_jsonwebtoken-2.17.0.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair dio 5.4.3+1. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_jCSyea' (OS Error: Too many open files, errno = 24)
Failed to repair dart_console 1.2.0. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/dart_console-1.2.0.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair dap 1.4.0. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/dap-1.4.0.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair copy_with_extension 6.0.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_agy5DG' (OS Error: Too many open files, errno = 24)
Failed to repair coordtransform 1.0.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_HmkL8q' (OS Error: Too many open files, errno = 24)
Failed to repair conventional_commit 0.6.1. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_cvxUAX' (OS Error: Too many open files, errno = 24)
Failed to repair convert 3.1.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_GymQTz' (OS Error: Too many open files, errno = 24)
Failed to repair devtools_shared 10.0.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_8dKblw' (OS Error: Too many open files, errno = 24)
Failed to repair csslib 1.0.2. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/csslib-1.0.2.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair device_info_plus 11.3.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_PzECRF' (OS Error: Too many open files, errno = 24)
Failed to repair connectycube_flutter_call_kit 2.8.0. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/connectycube_flutter_call_kit-2.8.0.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair connectivity_plus 6.1.4. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_GeZekD' (OS Error: Too many open files, errno = 24)
Failed to repair completion 1.0.1. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/completion-1.0.1.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair copy_with_extension_gen 6.0.0. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/copy_with_extension_gen-6.0.0.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair cli_launcher 0.3.1. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/cli_launcher-0.3.1.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair ci 0.1.0. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/ci-0.1.0.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair checked_yaml 2.0.3. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/checked_yaml-2.0.3.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair crypto 3.0.6. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_OM27QR' (OS Error: Too many open files, errno = 24)
Failed to repair cbor 6.3.7. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/cbor-6.3.7.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair camera_platform_interface 2.8.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_RwOOiN' (OS Error: Too many open files, errno = 24)
Failed to repair candid_dart 1.1.5. Error:
FileSystemException: Cannot open file, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_ITEvmF/candid_dart-1.1.5.tar.gz' (OS Error: Too many open files, errno = 24)
Failed to repair build_runner_core 7.3.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_QcxbBo' (OS Error: Too many open files, errno = 24)
Failed to repair build_config 1.1.1. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_mhpR1l' (OS Error: Too many open files, errno = 24)
Failed to repair better_player_plus 1.0.5. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_jgiloZ' (OS Error: Too many open files, errno = 24)
Failed to repair cli_config 0.2.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_eawUaO' (OS Error: Too many open files, errno = 24)
Failed to repair args 2.5.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_Sv8Dco' (OS Error: Too many open files, errno = 24)
Failed to repair camera_avfoundation 0.9.17+5. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_y3fTPG' (OS Error: Too many open files, errno = 24)
Failed to repair hex 0.2.0. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/hex-0.2.0.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair camera_platform_interface 2.10.0. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/camera_platform_interface-2.10.0.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair camera_android 0.10.10. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_qOMn3j' (OS Error: Too many open files, errno = 24)
Failed to repair camera_avfoundation 0.9.17+4. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_RYJ9fO' (OS Error: Too many open files, errno = 24)
Failed to repair animations 2.0.11. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_kqVdLU' (OS Error: Too many open files, errno = 24)
Failed to repair animated_text_kit 4.2.3. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_14XNbo' (OS Error: Too many open files, errno = 24)
Failed to repair animated_text_kit 4.2.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_s3qz2n' (OS Error: Too many open files, errno = 24)
Failed to repair candid_dart_core 1.2.1. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_9KHQx6' (OS Error: Too many open files, errno = 24)
Failed to repair analyzer_plugin 0.11.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_cktI5G' (OS Error: Too many open files, errno = 24)
Failed to repair camera_android_camerax 0.6.16. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_N40JSi' (OS Error: Too many open files, errno = 24)
Failed to repair analyzer_plugin 0.12.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_qyehoJ' (OS Error: Too many open files, errno = 24)
Failed to repair cached_network_image_platform_interface 4.0.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_T7I9AT' (OS Error: Too many open files, errno = 24)
Failed to repair camera_avfoundation 0.9.18+8. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_AJlB4E' (OS Error: Too many open files, errno = 24)
Failed to repair code_builder 4.10.1. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_KiasxA' (OS Error: Too many open files, errno = 24)
Failed to repair camera_avfoundation 0.9.17+3. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_ZBSPYG' (OS Error: Too many open files, errno = 24)
Failed to repair build_runner 2.4.9. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_Jd2zeH' (OS Error: Too many open files, errno = 24)
Failed to repair built_value 8.9.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_c5jQNU' (OS Error: Too many open files, errno = 24)
Failed to repair analyzer 6.4.1. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_9VzEth' (OS Error: Too many open files, errno = 24)
Failed to repair analyzer 6.11.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_6zGP0i' (OS Error: Too many open files, errno = 24)
Failed to repair analyzer 5.13.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_4yGchG' (OS Error: Too many open files, errno = 24)
Failed to repair analyzer 7.4.4. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_Fbe94i' (OS Error: Too many open files, errno = 24)
Failed to repair agora_rtc_engine 6.5.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_jucd6I' (OS Error: Too many open files, errno = 24)
Failed to repair analyzer 7.3.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_kAjyw8' (OS Error: Too many open files, errno = 24)
Failed to repair agent_dart_ffi 1.0.0-dev.29. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_vh0U2Y' (OS Error: Too many open files, errno = 24)
Failed to repair camera_avfoundation 0.9.18+1. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_PAsaDl' (OS Error: Too many open files, errno = 24)
Failed to repair agent_dart_ffi 1.0.0-dev.30. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_39QfOy' (OS Error: Too many open files, errno = 24)
Failed to repair camera_android 0.10.9+16. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_54nEtK' (OS Error: Too many open files, errno = 24)
Failed to repair agent_dart_ffi 1.0.0-dev.35. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_oPU9nn' (OS Error: Too many open files, errno = 24)
Failed to repair camera_avfoundation 0.9.18. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_RlZ1Np' (OS Error: Too many open files, errno = 24)
Failed to repair agent_dart_ffi 1.0.0-dev.34. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_PO4Y5y' (OS Error: Too many open files, errno = 24)
Failed to repair agent_dart_ffi 1.0.0-dev.33. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_by8CpG' (OS Error: Too many open files, errno = 24)
Failed to repair built_value 8.9.3. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_m27oLW' (OS Error: Too many open files, errno = 24)
Failed to repair build_runner_core 8.0.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_EXzaZg' (OS Error: Too many open files, errno = 24)
Failed to repair build_cli_annotations 2.1.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_h5pw0L' (OS Error: Too many open files, errno = 24)
Failed to repair build_test 2.2.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_JOQj8h' (OS Error: Too many open files, errno = 24)
Failed to repair built_collection 5.1.1. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_3IbY1m' (OS Error: Too many open files, errno = 24)
Failed to repair camera_web 0.3.5. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_qh31PD' (OS Error: Too many open files, errno = 24)
Failed to repair agent_dart_base 1.0.0-dev.29. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_nBhAEo' (OS Error: Too many open files, errno = 24)
Failed to repair agent_dart_base 1.0.0-dev.32. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_2tw9hx' (OS Error: Too many open files, errno = 24)
Failed to repair cached_network_image_web 1.3.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_hENrpI' (OS Error: Too many open files, errno = 24)
Failed to repair another_transformer_page_view 2.0.1. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/another_transformer_page_view-2.0.1.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair build_runner 2.4.13. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_jkB01v' (OS Error: Too many open files, errno = 24)
Failed to repair agent_dart 1.0.0-dev.30. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_DbgKaT' (OS Error: Too many open files, errno = 24)
Failed to repair agent_dart 1.0.0-dev.33. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_RxNLhF' (OS Error: Too many open files, errno = 24)
Failed to repair agent_dart 1.0.0-dev.34. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_XXYeMc' (OS Error: Too many open files, errno = 24)
Failed to repair _fe_analyzer_shared 82.0.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_OWUdMF' (OS Error: Too many open files, errno = 24)
Failed to repair _fe_analyzer_shared 80.0.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_mfvKHa' (OS Error: Too many open files, errno = 24)
Failed to repair _fe_analyzer_shared 61.0.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_Nt1bhv' (OS Error: Too many open files, errno = 24)
Failed to repair _fe_analyzer_shared 76.0.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_slUKut' (OS Error: Too many open files, errno = 24)
Failed to repair agent_dart 1.0.0-dev.29. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/agent_dart-1.0.0-dev.29.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair built_value 8.9.4. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_rk5wkO' (OS Error: Too many open files, errno = 24)
Failed to repair analyzer 7.4.5. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_3QEla8' (OS Error: Too many open files, errno = 24)
Failed to repair built_value 8.9.5. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/built_value-8.9.5.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair buffer 1.2.3. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/buffer-1.2.3.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair build_daemon 4.0.1. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_eqG1wI' (OS Error: Too many open files, errno = 24)
Failed to repair bubble_box 0.5.3. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_A1El3a' (OS Error: Too many open files, errno = 24)
Failed to repair antlr4 4.13.2. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_da7yeg' (OS Error: Too many open files, errno = 24)
Failed to repair auto_size_text 3.0.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_DdS5Fq' (OS Error: Too many open files, errno = 24)
Failed to repair bitsdojo_window_macos 0.1.4. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_pQ8FGA' (OS Error: Too many open files, errno = 24)
Failed to repair dart_style 3.1.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_J3s4xK' (OS Error: Too many open files, errno = 24)
Failed to repair candid_dart_core 1.1.14. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_VwtYLs' (OS Error: Too many open files, errno = 24)
Failed to repair console 4.1.0. Error:
FileSystemException: Deletion failed, path = '/private/var/folders/x0/5_28h17n67d7ddv_41gy4znr0000gn/T/pub_xZw7sC' (OS Error: Too many open files, errno = 24)
Failed to repair camera_avfoundation 0.9.19. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/camera_avfoundation-0.9.19.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair audio_session 0.1.21. Error:
FileSystemException: Cannot open file, path = '/Users/alex/dev/.pub-cache/hosted-hashes/pub.flutter-io.cn/audio_session-0.1.21.sha256' (OS Error: Too many open files, errno = 24)
Failed to repair app_links 6.3.2. Error:
Pub failed to run subprocess `chmod`: ProcessException: Too many open files
  Command: chmod 755 /Users/alex/dev/.pub-cache/_temp/dirbHPJHx/example/android/gradlew.bat
Reinstalled 454 packages.
Failed to reinstall 119 packages:
- _fe_analyzer_shared 61.0.0
- _fe_analyzer_shared 76.0.0
- _fe_analyzer_shared 80.0.0
- _fe_analyzer_shared 82.0.0
- agent_dart 1.0.0-dev.29
- agent_dart 1.0.0-dev.30
- agent_dart 1.0.0-dev.33
- agent_dart 1.0.0-dev.34
- agent_dart_base 1.0.0-dev.29
- agent_dart_base 1.0.0-dev.32
- agent_dart_ffi 1.0.0-dev.29
- agent_dart_ffi 1.0.0-dev.30
- agent_dart_ffi 1.0.0-dev.33
- agent_dart_ffi 1.0.0-dev.34
- agent_dart_ffi 1.0.0-dev.35
- agora_rtc_engine 6.5.2
- analyzer 5.13.0
- analyzer 6.4.1
- analyzer 6.11.0
- analyzer 7.3.0
- analyzer 7.4.4
- analyzer 7.4.5
- analyzer_plugin 0.11.2
- analyzer_plugin 0.12.0
- animated_text_kit 4.2.2
- animated_text_kit 4.2.3
- animations 2.0.11
- another_transformer_page_view 2.0.1
- antlr4 4.13.2
- app_links 6.3.2
- args 2.5.0
- audio_session 0.1.21
- auto_size_text 3.0.0
- better_player_plus 1.0.5
- bitsdojo_window_macos 0.1.4
- bubble_box 0.5.3
- buffer 1.2.3
- build_cli_annotations 2.1.0
- build_config 1.1.1
- build_daemon 4.0.1
- build_runner 2.4.9
- build_runner 2.4.13
- build_runner_core 7.3.2
- build_runner_core 8.0.0
- build_test 2.2.2
- built_collection 5.1.1
- built_value 8.9.2
- built_value 8.9.3
- built_value 8.9.4
- built_value 8.9.5
- cached_network_image_platform_interface 4.0.0
- cached_network_image_web 1.3.0
- camera_android 0.10.9+16
- camera_android 0.10.10
- camera_android_camerax 0.6.16
- camera_avfoundation 0.9.17+3
- camera_avfoundation 0.9.17+4
- camera_avfoundation 0.9.17+5
- camera_avfoundation 0.9.18
- camera_avfoundation 0.9.18+1
- camera_avfoundation 0.9.18+8
- camera_avfoundation 0.9.19
- camera_platform_interface 2.8.0
- camera_platform_interface 2.10.0
- camera_web 0.3.5
- candid_dart 1.1.5
- candid_dart_core 1.1.14
- candid_dart_core 1.2.1
- cbor 6.3.7
- checked_yaml 2.0.3
- ci 0.1.0
- cli_config 0.2.0
- cli_launcher 0.3.1
- code_builder 4.10.1
- completion 1.0.1
- connectivity_plus 6.1.4
- connectycube_flutter_call_kit 2.8.0
- console 4.1.0
- conventional_commit 0.6.1
- convert 3.1.2
- coordtransform 1.0.2
- copy_with_extension 6.0.0
- copy_with_extension_gen 6.0.0
- crypto 3.0.6
- csslib 1.0.2
- dap 1.4.0
- dart_console 1.2.0
- dart_jsonwebtoken 2.17.0
- dart_mappable 4.5.0
- dart_style 2.3.2
- dart_style 2.3.8
- dart_style 3.1.0
- dds 5.0.0
- dds_service_extensions 2.0.0
- decimal 3.0.2
- deep_pick 1.1.0
- dependency_validator 3.2.3
- desktop_drop_for_t 0.4.6
- desktop_webview_auth 0.0.15
- device_info_plus 11.3.0
- device_info_plus_platform_interface 7.0.1
- devtools_shared 10.0.2
- devtools_shared 11.2.0
- dfunc 0.10.0
- dio 5.4.3+1
- dio 5.5.0+1
- dio 5.8.0+1
- dio_cache_interceptor 3.5.1
- dio_web_adapter 2.1.0
- dio_web_adapter 2.1.1
- dolumns 2.0.1
- dwds 24.3.10
- env2dart 0.5.2
- flutterfire_cli 1.2.0
- hex 0.2.0
- meta 1.17.0
- native_assets_cli 0.13.0
- posix 6.0.2
- process_run 1.2.4
Reactivating env2dart 0.5.2...
Downloading packages... (4.0s)
Building package executables... (1.8s)
Built env2dart:env2dart.
Installed executable env2dart.
Reactivating serverpod_cli 2.7.0...
Downloading packages... (1.9s)
Building package executables... (2.3s)
Built serverpod_cli:serverpod_cli.
Installed executable serverpod.
Reactivating flutterfire_cli 1.2.0...
Downloading packages... 
Building package executables... (1.4s)
Built flutterfire_cli:flutterfire.
Installed executable flutterfire.
Reactivating ff_annotation_route 10.1.0...
Downloading packages... 
Building package executables... (1.5s)
Built ff_annotation_route:main.
Installed executable ff_route.
Reactivating wol_cli 2.0.0...
Downloading packages... 
Building package executables... 
Built wol_cli:wol.
Installed executable wol.
Reactivating astrox_build 1.1.1...
Downloading packages... 
Building package executables... (1.9s)
Built astrox_build:astrox_build.
Installed executable astrox_build.
Reactivating melos 6.3.2...
Downloading packages... 
Building package executables... 
Built melos:melos.
Installed executable melos.
Reactivated 7 packages.
@AlexV525
Copy link
Contributor Author

A valid log with the exact issue is previously reported in another issue: #4584

@sigurdm
Copy link
Contributor

sigurdm commented May 23, 2025

Thanks for reporting.

I guess we could limit the amount of packages we repair concurrently around:

return (await Future.wait(

But in the bigger picture I think we should deprecate/remove cache repair. To me it doesn't really seem like a valid approach given the unbounded size of the cache.

A command that would instead re-download all package-versions of the "current pubspec.lock" that would make a lot of sense.

@jonasfj WDYT?

@sigurdm sigurdm added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label May 23, 2025
@sigurdm
Copy link
Contributor

sigurdm commented May 23, 2025

As a workaround I think the best approach currently is to do dart pub cache clean and run dart pub get in each project folder.

@AlexV525
Copy link
Contributor Author

But in the bigger picture I think we should deprecate/remove cache repair. To me it doesn't really seem like a valid approach given the unbounded size of the cache.

A command that would instead re-download all package-versions of the "current pubspec.lock" that would make a lot of sense.

Repairing packages under specific projects sounds meaningful.

The repair command also repairs the globally activated bin, which might be required after Dart upgrades. It's a part of my reason for running this command after every upgrade.

@sigurdm
Copy link
Contributor

sigurdm commented May 23, 2025

Good point. We should also have a specific command for that. (Or find a better way of handling globally installed packages: #4313)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants