pants: "Permission denied" while creating sandbox with immutable inputs
Seen in CI in the lint job:
Engine traceback:
323
in select
324
in pants.core.goals.check.check
325
in pants.backend.scala.goals.check.scalac_check
326
in pants.engine.internals.graph.coarsened_targets
327
in pants.engine.internals.graph.transitive_dependency_mapping
328
in pants.engine.internals.graph.resolve_unexpanded_targets (testprojects/src/jvm/org/pantsbuild/example/app/ExampleApp.scala)
329
in pants.engine.internals.graph.resolve_dependencies (testprojects/src/jvm/org/pantsbuild/example/app/ExampleApp.scala)
330
in pants.backend.scala.dependency_inference.rules.infer_scala_dependencies_via_source_analysis (testprojects/src/jvm/org/pantsbuild/example/app/ExampleApp.scala)
331
in pants.jvm.dependency_inference.symbol_mapper.merge_first_party_module_mappings
332
in pants.backend.scala.dependency_inference.symbol_mapper.map_first_party_scala_targets_to_symbols
333
in pants.backend.scala.dependency_inference.scala_parser.resolve_fallible_result_to_analysis
334
in pants.backend.scala.dependency_inference.scala_parser.analyze_scala_source_dependencies
335
in pants.jvm.jdk_rules.setup_jdk
336
in process
337
Traceback (no traceback):
338
<pants native internals>
339
Exception: Error opening file /tmp/.tmpKR6VWC/b1e85defcb8b440ef412d75b327d3c03dfa1731616bbf7ca5e39ffd45cea246c/coursier_wrapper_script.sh for writing: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (15 by maintainers)
Commits related to this issue
- Fix immutable inputs DCL bug. Previously we used the double-checked-cell-async crate (See: https://github.com/chrislearn/double-checked-cell-async/blob/46cd3b04eddddbe279282143fe8a936d5854588c/src/li... — committed to jsirois/pants by jsirois 3 years ago
- Fix immutable inputs DCL bug. Previously we used the double-checked-cell-async crate (See: https://github.com/chrislearn/double-checked-cell-async/blob/46cd3b04eddddbe279282143fe8a936d5854588c/src/li... — committed to jsirois/pants by jsirois 3 years ago
- Fix immutable inputs DCL bug. Previously we used the double-checked-cell-async crate (See: https://github.com/chrislearn/double-checked-cell-async/blob/46cd3b04eddddbe279282143fe8a936d5854588c/src/li... — committed to jsirois/pants by jsirois 3 years ago
- Fix immutable inputs DCL bug. (#14016) Previously we used the double-checked-cell-async crate (See: https://github.com/chrislearn/double-checked-cell-async/blob/46cd3b04eddddbe279282143fe8a936d585458... — committed to pantsbuild/pants by jsirois 2 years ago
- Prevent collisions between attempts to materialize an immutable input digest. (#15652) Fixes #13899. [ci skip-build-wheels] — committed to pantsbuild/pants by stuhood 2 years ago
- Prevent collisions between attempts to materialize an immutable input digest. (#15652) Fixes #13899. [ci skip-build-wheels] — committed to stuhood/pants by stuhood 2 years ago
- Prevent collisions between attempts to materialize an immutable input digest. (#15652) Fixes #13899. [ci skip-build-wheels] — committed to stuhood/pants by stuhood 2 years ago
- Prevent collisions between attempts to materialize an immutable input digest. (Cherry-pick of #15652) (#15680) Fixes #13899. [ci skip-build-wheels] — committed to pantsbuild/pants by stuhood 2 years ago
- Prevent collisions between attempts to materialize an immutable input digest. (Cherry-pick of #15652) (#15679) Fixes #13899. [ci skip-build-wheels] — committed to pantsbuild/pants by stuhood 2 years ago
Oh! Thanks @jyggen for that hint about remote caching! Notably Pants and Toolchain both use remote caching. Pantsbuild/pants sees this error quite frequently
also seeing this w/ the golang backend enabled:
This is most likely related to #13848: it’s possible that we have overlapping immutable input digests somewhere.