Ember-cli: ERROR: f2d_register_rpc()

Created on 4 Jul 2014  路  30Comments  路  Source: ember-cli/ember-cli

I am running osx 10.9.3 and this error just started popping up when starting ember cli:

2014-07-03 20:01 ember48381 FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)

I was running node version v0.10.28 and after discovering this thread https://github.com/joyent/node/issues/5463 I upgraded to v0.10.29 but it did not fix the issue.

Is there a fix for this? Is this cli specific?

Most helpful comment

AND SOLVED! :dart: :D FUCKING AWESOME! THANKS A BUNCH GRANTEAGON!

(i added these folders to my exclusionlist in the myprojectname.sublime-project file)

{
    "folders":
    [
        {
            "folder_exclude_patterns": [
                "tmp",
                "node_modules",
                "bower_components"
            ]
        }
    ]
}

All 30 comments

never seen this specific error...

do you have steps to reproduce?

Also which version of ember-cli?

I just crank up ember server and I am running ember-cli: 0.0.36

=> I noticed we are running .37 now, let me try to upgrade and see if that fixes it.

0.0.38 will hopefully drop tonight, so if you can replicate and provide steps to reproduce maybe we can squeeze in a fix for you

coolio, I will let you know. I am hoping upgrading to37 will fix it. Processing that now. Do not let this hold up 38 :smile_cat:

bummer.. that did not work and now I am getting another odd error. here is my brocfile:

var pickFiles = require('broccoli-static-compiler');
var mergeTrees = require('broccoli-merge-trees');
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var assetRev = require('broccoli-asset-rev');

var app = new EmberApp({
  name: require('./package.json').name,
  minifyCSS: {
    enabled: true,
    options: {}
  },
  getEnvJSON: require('./config/environment')
});

// Merge vendor font files into the build using broccolo
var fontTree = pickFiles('vendor/fontawesome/fonts', {
  srcDir: '/',
  files: ['fontawesome-webfont.eot','fontawesome-webfont.ttf','fontawesome-webfont.svg','fontawesome-webfont.woff'],
  destDir: '/assets/fonts'
});

var assetRevTree = assetRev(mergeTrees([app.toTree(), fontTree]), {
  fingerprintExtensions: ['js', 'css', 'png', 'jpg', 'gif', 'ico'],
  replaceExtensions: ['html', 'js', 'css']
});

// Use this to add additional libraries to the generated output files.
// This uses the broccoli powered pipeline and imports all of these vendor files
// app.import('vendor/ember-data/ember-data.js');
app.import('vendor/modernizr/modernizr.js', { exports: { ember: ['default'] } });
app.import('vendor/jquery-ui/ui/minified/jquery-ui.min.js', { exports: { ember: ['default'] } });
app.import('vendor/foundation/js/foundation/foundation.js', { exports: { ember: ['default'] } });
app.import('vendor/foundation/js/foundation/foundation.topbar.js', { exports: { ember: ['default'] } });
app.import('vendor/matchHeight/jquery.matchHeight-min.js', { exports: { ember: ['default'] } });
app.import('vendor/spin.js/spin.js', { exports: { ember: ['default'] } });
app.import('vendor/spin.js/jquery.spin.js', { exports: { ember: ['default'] } });
app.import('vendor/outside-broccoli/jquery.flexverticalcenter.js', { exports: { ember: ['default'] } });
app.import('vendor/parsleyjs/dist/parsley.min.js', { exports: { ember: ['default'] } });

// app.import('vendor/foundation/js/foundation/foundation.accordion.js');
// app.import('vendor/foundation/js/foundation/foundation.alert.js');
// app.import('vendor/foundation/js/foundation/foundation.clearing.js');
// app.import('vendor/foundation/js/foundation/foundation.dropdown.js');
// app.import('vendor/foundation/js/foundation/foundation.interchange.js');
// app.import('vendor/foundation/js/foundation/foundation.joyride.js');
// app.import('vendor/foundation/js/foundation/foundation.magellan.js');
// app.import('vendor/foundation/js/foundation/foundation.offcanvas.js');
// app.import('vendor/foundation/js/foundation/foundation.orbit.js');
// app.import('vendor/foundation/js/foundation/foundation.reveal.js');
// app.import('vendor/foundation/js/foundation/foundation.tab.js');
// app.import('vendor/foundation/js/foundation/foundation.tooltip.js');
// app.import('vendor/parsleyjs/dist/parsley.min.js');

// If the library that you are including contains AMD or ES6 modules that
// you would like to import into your application please specify an
// object with the list of modules as keys along with the exports of each
// module as its value.
// app.import('vendor/ic-ajax/dist/named-amd/main.js', {
//   'ic-ajax': [
//     'default',
//     'defineFixture',
//     'lookupFixture',
//     'raw',
//     'request',
//   ]
// });

if (app.env === 'production') {
  module.exports = assetRevTree;
}
else{
  module.exports = mergeTrees([app.toTree(), fontTree]);
}

error message:

version: 0.0.37
app.import(vendor/ember-data/ember-data.js) - Passing modules object is deprecated. Please pass an option object with modules as export key (see http://git.io/H1GsPw for more info).
Livereload server on port 35729
Serving on http://0.0.0.0:4200

2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-07-03 20:42 ember[59067] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)

Build successful - 6300ms.
... Reload LiveReload files ...

Slowest Trees                  | Total
-------------------------------+----------------
TreeMerger (stylesAndVendor)   | 1378ms
TreeMerger (vendor)            | 1135ms
TreeMerger (appAndDependencies) | 682ms
ES3SafeFilter                  | 587ms
StaticCompiler                 | 479ms
ES6Concatenator                | 351ms

I commented out the import for ember-data and ic-ajax b/c I noticed they were not in the upgrade. Odd. If you are pushing .38 tonight, I can hold off and give that a try.

try intalling a fresh node used something like github.com/isaacs/nave

seems to indicate to many FS watchers may be attached, or you have more then 1 watcher running on the same graph.

We plan to work better with sane, but introducing a project root and allow sane to handle nest directories better. I suspect 0.0.38 will help, as it again reduces the amount of nested dirs watched.

odd, I closed down, restarted and the issue went away. I can close this for now, and I will let you know if it happens on .38. I rolled back to .36 for now.

This happens to me periodically as well, I think when breaking out of a running ember serve at the wrong time and things don't get cleaned up.

started having this same issue on version 0.1.1

Same here when updating from 0.0.44 to 0.1.1

Didn't happen during the first few hours of working with 0.1.1 but the next day it started to show up.

apparently updating to node 0.11 does the trick

Updating to 0.11.13 is working for me so far.

v0.10.32 is the latest Mac installer from http://nodejs.org. I picked up from http://mazharahmed.me/upgrade-node-js-version-in-mac/ that you can use the npm package n to easily install multiple versions of node.

googling around similar issues seem to come from watching too many files -- did a recent change in ember-cli increase the number of files that would get watched? any chance it's accumulating temp files, since people are seeing the issue creep up over time and go away with a reboot?

The issue also usually goes away if I switch between node versions with n. Sometimes I have to switch a few times for it to work. Still faster than logging out and back in, which has worked for me instead of a full reboot.

I've been switching between 0.10.32 and 0.11.14.

Actually, no, switching versions of node isn't doing the trick anymore either.

Switching to 0.11.14 worked for me. Thank you @jeffcressman for the very helpful article.

I'm having the same issue. I had this with grunt on a previous project. It was from watching too many files.

$: ember --version
version: 0.1.2
node: 0.10.33
npm: 2.1.3

Over at grunt-contrib-watch they had a few suggestions. I tried both solutions unsuccessfully. The ember project I'm running is not a large one (only bootstrap and font-awesome installed with a few ember files). This seems like a significant problem.

Hoping that https://github.com/stefanpenner/ember-cli/pull/2458 fixed this, in ember-cli 0.1.3

@aceofspades using n (suggested by @jeffcressman) and 0.11.14 fixed this for me, but I'm not confident it's a permanent solution. I hope #2458 fixes it too.

I'm running ember cli 0.1.4, node 0.11.14 (installed with nvm 0.12.1)

I've had this problem, with increasing frequency, my solution of restarting is becoming troublesome since i have to do it every 30 minutes or so now. I trigger the error when i restart the server.

So I'd say nothing has fixed this so far, ive got before and after upgrade of node, and before and after upgrade of ember-cli from 0.1.3.

RESPONSE TO WRITING "ember s" in the project directory:

version: 0.1.4
Could not find watchman, falling back to NodeWatcher for file system events
2014-12-18 21:03 ember[4304] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
Livereload server on port 35729
2014-12-18 21:03 ember[4304] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
Serving on http://0.0.0.0:4200/
2014-12-18 21:03 ember[4304] (CarbonCore.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: watch EMFILE
    at exports._errnoException (util.js:742:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1059:26)

@consideRatio if you are using sublime, make sure you are ignoring files sublime doesn't need to watch.

AND SOLVED! :dart: :D FUCKING AWESOME! THANKS A BUNCH GRANTEAGON!

(i added these folders to my exclusionlist in the myprojectname.sublime-project file)

{
    "folders":
    [
        {
            "folder_exclude_patterns": [
                "tmp",
                "node_modules",
                "bower_components"
            ]
        }
    ]
}

:thumbsup:

:+1:

:+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

devinus picture devinus  路  43Comments

calvinmetcalf picture calvinmetcalf  路  45Comments

ssured picture ssured  路  47Comments

HeroicEric picture HeroicEric  路  63Comments

stefanpenner picture stefanpenner  路  66Comments