Skip to content
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

TypeError: Cannot read property 'R_OK' of undefined #712

Closed
pimterry opened this issue Nov 11, 2017 · 1 comment
Closed

TypeError: Cannot read property 'R_OK' of undefined #712

pimterry opened this issue Nov 11, 2017 · 1 comment
Assignees
Labels

Comments

@pimterry
Copy link
Contributor

https://sentry.io/resinio/cli/issues/401243646/

TypeError: Cannot read property 'R_OK' of undefined
  File "/opt/circleci/nodejs/v6.1.0/lib/node_modules/resin-cli/build/utils/docker.js", line 332, in ensureDockerSeemsAccessible
    return fs.access(options.socketPath, fs.constants.R_OK | fs.constants.W_OK)["return"](true)["catch"](function(err) {
  File "/opt/circleci/nodejs/v6.1.0/lib/node_modules/resin-cli/build/utils/docker.js", line 276, in null.<anonymous>
    return ensureDockerSeemsAccessible(connectOpts);
  File "/opt/circleci/nodejs/v6.1.0/lib/node_modules/resin-cli/node_modules/bluebird/js/release/finally.js", line 57, in PassThroughHandlerContext.finallyHandler
    : handler.call(promise._boundValue(), reasonOrValue);
  File "/opt/circleci/nodejs/v6.1.0/lib/node_modules/resin-cli/node_modules/bluebird/js/release/util.js", line 16, in PassThroughHandlerContext.tryCatcher
    return target.apply(this, arguments);
  File "/opt/circleci/nodejs/v6.1.0/lib/node_modules/resin-cli/node_modules/bluebird/js/release/promise.js", line 512, in Promise._settlePromiseFromHandler
    x = tryCatch(handler).call(receiver, value);
...
(7 additional frame(s) were not displayed)

TypeError: Cannot read property 'R_OK' of undefined

This is on Node 6.1.0 - it seems that fs.constants exists only from 6.3.0, not 6+ (see https://github.com/nodejs/node/pull/12690/files).

@pimterry
Copy link
Contributor Author

Fixed in 6.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant