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

Fresh clone + install + ember serve fails. #106

Closed
cibernox opened this issue Mar 15, 2018 · 9 comments · Fixed by #120
Closed

Fresh clone + install + ember serve fails. #106

cibernox opened this issue Mar 15, 2018 · 9 comments · Fixed by #120
Labels

Comments

@cibernox
Copy link
Contributor

I'm getting a pretty bad error by just cloning the repo and running ember s on it.

$ ember s
DEPRECATION: An addon is trying to access project.nodeModulesPath. This is not a reliable way to discover npm modules. Instead, consider doing: require("resolve").sync(something, { basedir: project.root }). Accessed from:   new NPMDependencyVersionChecker (/Users/miguelcamba/code/forks/ember-cli-addon-docs/node_modules/liquid-tether/node_modules/ember-cli-version-checker/src/npm-dependency-version-checker.js:11:33)
Could not start watchman
Visit https://ember-cli.com/user-guide/#watchman for more info.
DEPRECATION: An addon is trying to access project.nodeModulesPath. This is not a reliable way to discover npm modules. Instead, consider doing: require("resolve").sync(something, { basedir: project.root }). Accessed from:   new NPMDependencyVersionChecker (/Users/miguelcamba/code/forks/ember-cli-addon-docs/node_modules/liquid-tether/node_modules/ember-cli-version-checker/src/npm-dependency-version-checker.js:11:33)
WARNING:  addon/components/api/x-params/component.js:9: Missing item type
Params shouldn't be displayed when there are no descriptions and no subparams,
because the information is already displayed in the type signature and redundant
WARNING:  addon/helpers/type-signature.js:31: Missing item type
WARNING:  addon/transitions/fade-and-drop.js:3: Missing item type
WARNING:  addon/utils/computed.js:4: Missing item type
WARNING:  addon/utils/computed.js:51: Missing item type
WARNING:  addon/utils/computed.js:99: Missing item type
2018-03-15 15:32 ember[6911] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2018-03-15 15:32 ember[6911] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2018-03-15 15:32 ember[6911] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2018-03-15 15:32 ember[6911] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
Error watching file for changes: EMFILE


Stack Trace and Error Report: /var/folders/bt/62lj_mr106zbk82m8kl772b00000gn/T/error.dump.52242946c50ce71a3b5b45006a09da57.log
2018-03-15 15:32 ember[6911] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
Error watching file for changes: EMFILE


Stack Trace and Error Report: /var/folders/bt/62lj_mr106zbk82m8kl772b00000gn/T/error.dump.0d8fe701793cde031f4806f928a00a09.log
2018-03-15 15:32 ember[6911] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
Error watching file for changes: EMFILE


Stack Trace and Error Report: /var/folders/bt/62lj_mr106zbk82m8kl772b00000gn/T/error.dump.a5a5bfba0651b18f7a97ddb3fc6d5af9.log
2018-03-15 15:32 ember[6911] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
Error watching file for changes: EMFILE


Stack Trace and Error Report: /var/folders/bt/62lj_mr106zbk82m8kl772b00000gn/T/error.dump.3b0ff8262d8ef71924f355a4833de4e8.log
2018-03-15 15:32 ember[6911] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
Error watching file for changes: EMFILE

The error repeats and repeats forever and it cannot be cancelled not even with ctrl + C.

My environment:

$ node -v
v8.10.0
~/code/forks/ember-cli-addon-docs [master|√]
$ npm -v
5.6.0
~/code/forks/ember-cli-addon-docs [master|√]
$ yarn -v
1.5.1
~/code/forks/ember-cli-addon-docs [master|√]
$ ember -v
DEPRECATION: An addon is trying to access project.nodeModulesPath. This is not a reliable way to discover npm modules. Instead, consider doing: require("resolve").sync(something, { basedir: project.root }). Accessed from:   new NPMDependencyVersionChecker (/Users/miguelcamba/code/forks/ember-cli-addon-docs/node_modules/liquid-tether/node_modules/ember-cli-version-checker/src/npm-dependency-version-checker.js:11:33)
ember-cli: 2.18.2
node: 8.10.0
os: darwin x64
$ watchman -v
-bash: watchman: command not found
@pzuraq
Copy link
Contributor

pzuraq commented Mar 15, 2018

I've seen this failure fairly regularly recently on latest Macs with the new APFS file system. It's also been causing Watchman to freeze up, and the only fix I've found is brew uninstall watchman && brew install watchman. Unsure this is related specifically to this addon

@cibernox
Copy link
Contributor Author

cibernox commented Mar 15, 2018

The weirdest part is that I don't have watchman and it doesn't happen to me in other repos

@pzuraq
Copy link
Contributor

pzuraq commented Mar 15, 2018

Yeah, I started by uninstalling watchman when it started freezing up, and then I started getting these errors from Node FileWatcher so I had to reinstall watchman 😕

@ro0gr
Copy link
Contributor

ro0gr commented Mar 15, 2018

The same issue on win10. So it doesn't seem like a watchman related thing...

@dfreeman
Copy link
Contributor

@ro0gr You're seeing all that FSEvents.framework stuff on Windows? I'm pretty sure that's specifically a macOS API, and node uses something else entirely on Windows.

@dfreeman
Copy link
Contributor

@cibernox FWIW, I've run into that error when doing non-Watchman file watching in other projects since switching to APFS, which seems to have reset (and lowered the hard cap on) the limit for open file descriptors. What do you get for ulimit -n?

@cibernox
Copy link
Contributor Author

ulimit -n => 4864
I checked and it works with watchman, but fails without it

@Dhaulagiri
Copy link
Contributor

I saw the same issue trying to use this addon in another addon. I was only able to get it working by installing watchman.

@ro0gr
Copy link
Contributor

ro0gr commented Mar 16, 2018

@dfreeman you are right. I have a different error. However in my opinion these issues are pretty similar. Build errors recurrently repeat somewhere in tmp/ and it's difficult to stop.

Here is my npm start output:

Build Error (DocsGenerator)

Cannot read property 'push' of undefined


Stack Trace and Error Report: C:\Users\kudgo\AppData\Local\Temp/error.dump.c5baf14fda76f05db0477fbf39589732.log
file added tmp\docs_generator-output_path-VlZqdJPb.tmp
Build Error (Filter)

EPERM: operation not permitted, mkdir 'C:\Users\kudgo\workspace\ember-cli-addon-docs\tmp\filter-tmp_dest_dir-xsAJAKRN.tmp'


Stack Trace and Error Report: C:\Users\kudgo\AppData\Local\Temp/error.dump.641944643fbe2931a30fbdd7d1b63cb5.log
EPERM: operation not permitted, lstat 'C:\Users\kudgo\workspace\ember-cli-addon-docs\tmp\filter-tmp_dest_dir-xsAJAKRN.tmp\ember-fetch.js'


Stack Trace and Error Report: C:\Users\kudgo\AppData\Local\Temp/error.dump.d33ba39a61f49c4fb73043365ce27edf.log
EPERM: operation not permitted, lstat 'C:\Users\kudgo\workspace\ember-cli-addon-docs\tmp\filter-tmp_dest_dir-xsAJAKRN.tmp'


Stack Trace and Error Report: C:\Users\kudgo\AppData\Local\Temp/error.dump.b9341a49d06d0b8f81b1a380c8364eb4.log
file deleted tmp\filter-tmp_dest_dir-xsAJAKRN.tmp
Build Error (Filter)

Maybe we should detect such cases and stop the server? or it should be handled by ember-cli...

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

Successfully merging a pull request may close this issue.

6 participants