fastboot-aws icon indicating copy to clipboard operation
fastboot-aws copied to clipboard

Error: ENOENT: no such file or directory, uv_cwd

Open thomaswelton opened this issue 8 years ago • 0 comments

I'm getting this error quite often which is causing the server to stop responding. I think it might be happening when the downloader downloads an archive with the same name as the current version. I'm assuming the script deletes the old directory and and then tries to cd into the the new directory that it's just deleted.

[2017-04-04T21:16:02.035Z][m9833] reloading server
[2017-04-04T21:16:02.035Z][m9833] downloading app
[2017-04-04T21:16:02.035Z][m9833] fetching current app version from cdn.gindex.it/fastboot-dist.json
[2017-04-04T21:16:02.104Z][m9833] got config { bucket: 'cdn.gindex.it',
  key: 'deploy-dist-54216ed51e2197d533b18adf7ac89395.zip' }
[2017-04-04T21:16:02.104Z][m9833] removing deploy-dist
[2017-04-04T21:16:02.158Z][m9833] saving S3 object cdn.gindex.it/deploy-dist-54216ed51e2197d533b18adf7ac89395.zip to deploy-dist-54216ed51e2197d533b18adf7ac89395.zip
[2017-04-04T21:16:02.938Z][m9833] unzipped deploy-dist-54216ed51e2197d533b18adf7ac89395.zip
[2017-04-04T21:16:05.180Z][m9833] config modified; old=Tue Apr 04 2017 20:56:10 GMT+0000 (UTC); new=Tue Apr 04 2017 20:56:10 GMT+0000 (UTC)
[2017-04-04T21:16:05.180Z][m9833] reloading server
[2017-04-04T21:16:05.180Z][m9833] downloading app
[2017-04-04T21:16:05.180Z][m9833] fetching current app version from cdn.gindex.it/fastboot-dist.json
[2017-04-04T21:16:05.446Z][m9833] installed npm dependencies
[2017-04-04T21:16:05.460Z][m9833] got config { bucket: 'cdn.gindex.it',
  key: 'deploy-dist-54216ed51e2197d533b18adf7ac89395.zip' }
[2017-04-04T21:16:05.460Z][m9833] removing deploy-dist
[2017-04-04T21:16:05.494Z][m9833] saving S3 object cdn.gindex.it/deploy-dist-54216ed51e2197d533b18adf7ac89395.zip to deploy-dist-54216ed51e2197d533b18adf7ac89395.zip
[2017-04-04T21:16:05.786Z][m9833] installed npm dependencies
[2017-04-04T21:16:05.827Z][m9833] error running command cd deploy-dist && npm install
[2017-04-04T21:16:05.827Z][m9833] path.js:1142
          cwd = process.cwd();
                        ^

Error: ENOENT: no such file or directory, uv_cwd
    at Error (native)
    at Object.resolve (path.js:1142:25)
    at Function.Module._resolveLookupPaths (module.js:390:17)
    at Function.Module._resolveFilename (module.js:460:31)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at /opt/elasticbeanstalk/node-install/node-v6.10.0-linux-x64/lib/node_modules/npm/bin/npm-cli.js:25:13
    at Object.<anonymous> (/opt/elasticbeanstalk/node-install/node-v6.10.0-linux-x64/lib/node_modules/npm/bin/npm-cli.js:75:3)
    at Module._compile (module.js:570:32)

[2017-04-04T21:16:05.827Z][m9833] unable to install npm dependencies
fs.js:640
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/var/app/current/deploy-dist/fastboot/gindex-frontend-25be99e45b407a43809857bfe40184a2.js'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Object.fs.readFileSync (fs.js:508:33)
    at /var/app/current/node_modules/fastboot/src/ember-app.js:148:24
    at Array.forEach (native)
    at EmberApp.loadAppFiles (/var/app/current/node_modules/fastboot/src/ember-app.js:146:18)
    at EmberApp.retrieveSandboxedApp (/var/app/current/node_modules/fastboot/src/ember-app.js:187:10)
    at new EmberApp (/var/app/current/node_modules/fastboot/src/ember-app.js:50:21)
    at FastBoot._buildEmberApp (/var/app/current/node_modules/fastboot/src/index.js:114:17)
    at FastBoot.reload (/var/app/current/node_modules/fastboot/src/index.js:95:10)
[2017-04-04T21:16:06.015Z][m9833] worker exited with error code: 1
[2017-04-04T21:16:06.017Z][m9833] forked worker 14336

thomaswelton avatar Apr 04 '17 21:04 thomaswelton