Skip to content

op-deployer fails with "failed to ensure cache directory: mkdir : no such file or directory" even when cache directory exists #825

Description

@Sujal-Choudhary-CDN

I am encountering a persistent error when running op-deployer apply with the --workdir flag set to the absolute path of my .deployer directory. The error message is:

Application failed: failed to download L1 artifacts: failed to download artifacts: failed to download artifacts: failed to download: failed to ensure cache directory: mkdir : no such file or directory

Steps to reproduce:

  1. Create the .deployer and .deployer/cache directories with correct permissions.

  2. Place a valid intent.toml in .deployer.

  3. Run the following command (with full absolute path):
    ./op-deployer apply --workdir /home/sujalchoudhary/Documents/New_L2/op-deployer-0.3.0-rc.6-linux-amd64/.deployer --l1-rpc-url https://ethereum-sepolia-rpc.publicnode.com --private-key <private-key>

Expected:
The deployer should use the provided cache directory and proceed with artifact download.

Actual:
Fails with the above error, even though the cache directory exists and is writable.

Below is the content of intent.toml in the .deployer folder.

deploymentStrategy = "testnet"
configType = "standard-overrides"
l1ChainID = 11155111
fundDevAccounts = true
useInterop = false
l1ContractsLocator = "tag://op-contracts/v3.0.0-rc.2"
l2ContractsLocator = "tag://op-contracts/v3.0.0-rc.2"

[superchainRoles]
proxyAdminOwner = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"
protocolVersionsOwner = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"
guardian = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"

[[chains]]
id = "0x000000000000000000000000000000000000000000000000000000000000a455"
baseFeeVaultRecipient = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"
l1FeeVaultRecipient = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"
sequencerFeeVaultRecipient = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"
eip1559DenominatorCanyon = 250
eip1559Denominator = 50
eip1559Elasticity = 6
operatorFeeScalar = 0
operatorFeeConstant = 0

[chains.roles]
l1ProxyAdminOwner = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"
l2ProxyAdminOwner = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"
systemConfigOwner = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"
unsafeBlockSigner = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"
batcher = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"
proposer = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"
challenger = "0x5Bc9E9518D9b97F5Ede9D97cF06fFD96bF986f5A"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions