renovatebot / app-support

Discussion/support issues for the hosted Renovate App
0 stars 0 forks source link

ERROR: Disk space error - skipping #108

Closed roni-frantchi closed 3 years ago

roni-frantchi commented 3 years ago

What Renovate type, platform and version are you using?

GitHub

Describe the bug

Our scheduled Renovate doesn't run.
Looking at the logs we're seeing:

ERROR: Disk space error - skipping

Relevant debug logs

DEBUG: Executing command(branch="renovate/lodash-4.x")
{
  "command": "docker run --rm --name=renovate_node --label=renovate_child -v \"/mnt/renovate/gh/env0/env0\":\"/mnt/renovate/gh/env0/env0\" -v \"/tmp/renovate-cache\":\"/tmp/renovate-cache\" -v \"/home/ubuntu/.npmrc\":\"/home/ubuntu/.npmrc\" -e NPM_CONFIG_CACHE -e npm_config_store -e CI -w \"/mnt/renovate/gh/env0/env0/e2e/api-tests\" docker.io/renovate/node bash -l -c \"npm i -g yarn && sed -i 's/ steps,/ steps.slice(0,1),/' /home/ubuntu/.npm-global/lib/node_modules/yarn/lib/cli.js && yarn install --ignore-engines --ignore-platform --network-timeout 100000 --ignore-scripts\""
}
DEBUG: lock file error(branch="renovate/lodash-4.x")
{
  "err": {
    "killed": false,
    "code": 1,
    "signal": null,
    "cmd": "docker run --rm --name=renovate_node --label=renovate_child -v \"/mnt/renovate/gh/env0/env0\":\"/mnt/renovate/gh/env0/env0\" -v \"/tmp/renovate-cache\":\"/tmp/renovate-cache\" -v \"/home/ubuntu/.npmrc\":\"/home/ubuntu/.npmrc\" -e NPM_CONFIG_CACHE -e npm_config_store -e CI -w \"/mnt/renovate/gh/env0/env0/e2e/api-tests\" docker.io/renovate/node bash -l -c \"npm i -g yarn && sed -i 's/ steps,/ steps.slice(0,1),/' /home/ubuntu/.npm-global/lib/node_modules/yarn/lib/cli.js && yarn install --ignore-engines --ignore-platform --network-timeout 100000 --ignore-scripts\"",
    "stdout": "\n> yarn@1.22.10 preinstall /home/ubuntu/.npm-global/lib/node_modules/yarn\n> :; (node ./preinstall.js > /dev/null 2>&1 || true)\n\n/home/ubuntu/.npm-global/bin/yarn -> /home/ubuntu/.npm-global/lib/node_modules/yarn/bin/yarn.js\n/home/ubuntu/.npm-global/bin/yarnpkg -> /home/ubuntu/.npm-global/lib/node_modules/yarn/bin/yarn.js\n+ yarn@1.22.10\nadded 1 package in 1.4s\nyarn install v1.19.0\n[1/4] Resolving packages...\n[2/4] Fetching packages...\n[3/4] Linking dependencies...\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\n",
    "stderr": "error Could not write file \"/mnt/renovate/gh/env0/env0/e2e/api-tests/yarn-error.log\": \"ENOSPC: no space left on device, open '/mnt/renovate/gh/env0/env0/e2e/api-tests/yarn-error.log'\"\nerror An unexpected error occurred: \"ENOSPC: no space left on device, copyfile '/home/ubuntu/.cache/yarn/v5/npm-util-deprecate-1.0.2-450d4dc9fa70de732762fbd2d4a28981419a0ccf/node_modules/util-deprecate/browser.js' -> '/mnt/renovate/gh/env0/env0/e2e/api-tests/node_modules/util-deprecate/browser.js'\".\n",
    "message": "Command failed: docker run --rm --name=renovate_node --label=renovate_child -v \"/mnt/renovate/gh/env0/env0\":\"/mnt/renovate/gh/env0/env0\" -v \"/tmp/renovate-cache\":\"/tmp/renovate-cache\" -v \"/home/ubuntu/.npmrc\":\"/home/ubuntu/.npmrc\" -e NPM_CONFIG_CACHE -e npm_config_store -e CI -w \"/mnt/renovate/gh/env0/env0/e2e/api-tests\" docker.io/renovate/node bash -l -c \"npm i -g yarn && sed -i 's/ steps,/ steps.slice(0,1),/' /home/ubuntu/.npm-global/lib/node_modules/yarn/lib/cli.js && yarn install --ignore-engines --ignore-platform --network-timeout 100000 --ignore-scripts\"\nerror Could not write file \"/mnt/renovate/gh/env0/env0/e2e/api-tests/yarn-error.log\": \"ENOSPC: no space left on device, open '/mnt/renovate/gh/env0/env0/e2e/api-tests/yarn-error.log'\"\nerror An unexpected error occurred: \"ENOSPC: no space left on device, copyfile '/home/ubuntu/.cache/yarn/v5/npm-util-deprecate-1.0.2-450d4dc9fa70de732762fbd2d4a28981419a0ccf/node_modules/util-deprecate/browser.js' -> '/mnt/renovate/gh/env0/env0/e2e/api-tests/node_modules/util-deprecate/browser.js'\".\n",
    "stack": "Error: Command failed: docker run --rm --name=renovate_node --label=renovate_child -v \"/mnt/renovate/gh/env0/env0\":\"/mnt/renovate/gh/env0/env0\" -v \"/tmp/renovate-cache\":\"/tmp/renovate-cache\" -v \"/home/ubuntu/.npmrc\":\"/home/ubuntu/.npmrc\" -e NPM_CONFIG_CACHE -e npm_config_store -e CI -w \"/mnt/renovate/gh/env0/env0/e2e/api-tests\" docker.io/renovate/node bash -l -c \"npm i -g yarn && sed -i 's/ steps,/ steps.slice(0,1),/' /home/ubuntu/.npm-global/lib/node_modules/yarn/lib/cli.js && yarn install --ignore-engines --ignore-platform --network-timeout 100000 --ignore-scripts\"\nerror Could not write file \"/mnt/renovate/gh/env0/env0/e2e/api-tests/yarn-error.log\": \"ENOSPC: no space left on device, open '/mnt/renovate/gh/env0/env0/e2e/api-tests/yarn-error.log'\"\nerror An unexpected error occurred: \"ENOSPC: no space left on device, copyfile '/home/ubuntu/.cache/yarn/v5/npm-util-deprecate-1.0.2-450d4dc9fa70de732762fbd2d4a28981419a0ccf/node_modules/util-deprecate/browser.js' -> '/mnt/renovate/gh/env0/env0/e2e/api-tests/node_modules/util-deprecate/browser.js'\".\n\n    at ChildProcess.exithandler (child_process.js:308:12)\n    at ChildProcess.emit (events.js:314:20)\n    at ChildProcess.EventEmitter.emit (domain.js:483:12)\n    at maybeClose (internal/child_process.js:1021:16)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)"
  },
  "type": "yarn"
}
DEBUG: Passing disk-space error up(branch="renovate/lodash-4.x")
ERROR: Disk space error - skipping

See full log here

Have you created a minimal reproduction repository?

Please read the minimal reproductions documentation to learn how to make a good minimal reproduction repository.

Additional context

rarkins commented 3 years ago

What's the full size of this repo on disk once it's cloned?

roni-frantchi commented 3 years ago

What's the full size of this repo on disk once it's cloned?

@rarkins Full size once cloned is:

➜ du -sh .
106M    

But I'm guessing there's more to it - once we yarn install:

➜ du -sh .
2.0G    .

And there's of course yarn's cache perhaps and what-not.

This is a monorepo, of course.

rarkins commented 3 years ago

I've added a rule to the app to clone this repo to EBS storage instead of SSD, where much more space is available. Should take effect on the next run.

roni-frantchi commented 3 years ago

Awesome thanks @rarkins .
I'll post the status on the next run here tomorrow

roni-frantchi commented 3 years ago

Looks like that helped.
Thanks @rarkins