These are chat archives for reactioncommerce/reaction

27th
Jun 2017
Peterberwind
@peterberwind
Jun 27 2017 04:09
when i run reaction im getting stuck on => Started MongoDB.
Brent Hoover
@zenweasel
Jun 27 2017 04:36
@peterberwind is this your first time starting?
Peterberwind
@peterberwind
Jun 27 2017 04:36
yeah! new macbook...
I had tested it our a few month back, but giving it another whirl.
Brent Hoover
@zenweasel
Jun 27 2017 04:37
it’s still stuck?
Peterberwind
@peterberwind
Jun 27 2017 04:37
i canceled it buty i think its an xcode issue maybe?
I didnt have it installed and am now installing it
Brent Hoover
@zenweasel
Jun 27 2017 04:37
Oh yeah, you need Xcode for sure
Peterberwind
@peterberwind
Jun 27 2017 04:37
ahh, cool thx :)
waiting on that nice little package to download :/
Brent Hoover
@zenweasel
Jun 27 2017 04:38
sometimes it can stall on first start because it’s downloading all the dependencies
Peterberwind
@peterberwind
Jun 27 2017 04:38
i tried running both meteor and reaction which had about the same effect
Brent Hoover
@zenweasel
Jun 27 2017 04:39
meteor definitely won’t work
you might want to try running meteor npm install and make sure that completes without error
Peterberwind
@peterberwind
Jun 27 2017 04:39
ah ok, wasnt sure if reaction was some alias script to meteor or something
will try that out, and finish setting up xcode
on that note @zenweasel - seems the docs are down? Is there an eta for those to come back online?
Peterberwind
@peterberwind
Jun 27 2017 04:46
so finally errored out:
      throw error;
      ^

Error: EMFILE: too many open files, scandir '/Users/peterberwind/code/reaction/packages/gridfs'
    at Error (native)
    at Object.fs.readdirSync (fs.js:808:18)
    at Object.wrapper (/tools/fs/files.js:1586:35)
    at readDirectory (/Users/peterberwind/.meteor/packages/meteor-tool/.1.5.0.edxpxb++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/fs/watch.js:338:26)
    at Watcher._fireIfDirectoryChanged (/Users/peterberwind/.meteor/packages/meteor-tool/.1.5.0.edxpxb++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/fs/watch.js:490:23)
    at /Users/peterberwind/.meteor/packages/meteor-tool/.1.5.0.edxpxb++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/fs/watch.js:747:12
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/peterberwind/.meteor/packages/meteor-tool/.1.5.0.edxpxb++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
    at Watcher._checkDirectories (/Users/peterberwind/.meteor/packages/meteor-tool/.1.5.0.edxpxb++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/fs/watch.js:736:7)
    at new Watcher (/Users/peterberwind/.meteor/packages/meteor-tool/.1.5.0.edxpxb++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/fs/watch.js:435:10)
    at setupClientWatcher (/tools/runners/run-app.js:800:23)
    at [object Object]._.extend._runOnce (/tools/runners/run-app.js:811:7)
    at [object Object]._.extend._fiber (/tools/runners/run-app.js:890:28)
    at /tools/runners/run-app.js:417:12
Brent Hoover
@zenweasel
Jun 27 2017 04:56
Hmmm, yeah you need to up your open file limit
Peterberwind
@peterberwind
Jun 27 2017 04:57
ah ha - do u know what number is safe for meteor?
Brent Hoover
@zenweasel
Jun 27 2017 04:57

File Limits

The Meteor development environment requires significantly more available files than are configured in macOS by default.

Without updating the available file limits you may see an error.

Error: ENFILE: too many open files, scandir '/Users/you/Documents/reaction/xxxx'
    at Error (native)
    at Object.fs.readdirSync (fs.js:808:18)
    at Object.wrapper (/tools/fs/files.js:1586:35)
    at readDirectory

See: http://stackoverflow.com/a/27982223

Increase your file limits with these terminal commands.

echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf
sudo sysctl -w kern.maxfiles=65536
sudo sysctl -w kern.maxfilesperproc=65536
ulimit -n 65536 65536
Peterberwind
@peterberwind
Jun 27 2017 04:57
amazing thanks.
Brent Hoover
@zenweasel
Jun 27 2017 04:59
You will probably also need to add something to your .bashrc
v3yr0n
@v3yr0n
Jun 27 2017 14:33
hello hello! :)
quick question: is there a way to create a "custom product" where my customer can personalize that product with an image and some dropboxes?
I think I can do that by overriding the product template(s)
but i'm not sure if that's the right path to go
Sophie He
@sophiehe
Jun 27 2017 18:08
Hi all. The next Reaction Action livestream will take place on July 18 at 10am PDT. This month, we will be joined by special on-air guests Richard Moot, Developer Evangelist at Shippo, and Daniel Honig ( @dhonig ), CEO of Boomer Digital! RSVP here: https://www.crowdcast.io/e/reaction-action-july