I have been using Meteor for years and have version 1.1 on my Mac. I have created a new directory, typed meteor update and checked that meteor --version gives Meteor 1.5.
Following the tutorial, I typed meteor create simple-todos, cd into it, and typed meteor.
But meteor crashes - see the error below. How can I get the tutorial running? I'd still like to be able to run my older Meteor 1.1 app too.
=> Started proxy.
=> Started MongoDB.
W20170605-21:34:04.700(10)? (STDERR) /Users/.../.meteor/packages/meteor-tool/.1.5.0.3kmr7i++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20170605-21:34:04.801(10)? (STDERR) throw(ex);
W20170605-21:34:04.801(10)? (STDERR) ^
W20170605-21:34:04.803(10)? (STDERR)
W20170605-21:34:04.803(10)? (STDERR) TypeError: Cannot read property 'sanitizeForInObject' of undefined
W20170605-21:34:04.804(10)? (STDERR) at [object Object].LocalCollection.insert (packages/minimongo/minimongo.js:569:3)
W20170605-21:34:04.805(10)? (STDERR) at [object Object].insert (packages/mongo/collection.js:524:37)
W20170605-21:34:04.805(10)? (STDERR) at updateVersions (packages/autoupdate.js:133:20)
W20170605-21:34:04.806(10)? (STDERR) at packages/autoupdate.js:197:3
W20170605-21:34:04.806(10)? (STDERR) at Function.time (/Users/.../Javascript/meteor/simple-todos/.meteor/local/build/programs/server/profile.js:309:28)
W20170605-21:34:04.807(10)? (STDERR) at /Users/.../Javascript/meteor/simple-todos/.meteor/local/build/programs/server/boot.js:347:13
W20170605-21:34:04.807(10)? (STDERR) at /Users/.../Javascript/meteor/simple-todos/.meteor/local/build/programs/server/boot.js:388:5
W20170605-21:34:04.808(10)? (STDERR) at Function.run (/Users/.../Javascript/meteor/simple-todos/.meteor/local/build/programs/server/profile.js:510:12)
W20170605-21:34:04.809(10)? (STDERR) at /Users/.../Javascript/meteor/simple-todos/.meteor/local/build/programs/server/boot.js:386:11
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.
I just had to re-install Meteor as described on https://www.meteor.com/install, and then it all worked fine. I could even run Meteor version 1.1 in one directory and version 1.6 in another.
Related
I have an existing Meteor app that appears to have crashed today. I re-ran meteor in terminal and it proceeds to run meteor but it’s not picking up correct db we are using in mongodb. When I run
MONGO_URL=mongodb://dbuser:dbpass#127.0.0.1/db meteor run it proceeds to build the application but then exits with a code:8. Then it just loops back to creating the application again and selecting package versions. Then when I visit our URL in the browser for the site, I’m getting the following error:
“It looks like you are trying to access MongoDB over HTTP on the native driver port.”
Not sure how to get this app back up and running so any help/suggestions would be appreciated. So short story is we had this running yesterday but then it crashed and now I can’t get the app running again. The db is intact and the collection we use is present in the db. The app code for meteor is all in place. I’m just having problems starting up the app again. The app is hosted in AWS CentOS server running Apache.
Detailed error that I'm seeing when trying to run the app:
/dev_bundle/server-lib/node_modules/fibers/future.js:245
W20171114-03:34:08.618(0)? (STDERR) throw(ex);
W20171114-03:34:08.618(0)? (STDERR) ^
W20171114-03:34:08.618(0)? (STDERR) TypeError: Object #<Object> has no method 'describe'
W20171114-03:34:08.618(0)? (STDERR) at app/server/packages/npm-container/package.js:4:9
W20171114-03:34:08.619(0)? (STDERR) at app/server/packages/npm-container/package.js:25:3
W20171114-03:34:08.619(0)? (STDERR) at /var/www/mongo-parcc-user/parcc-meteor/.meteor/local/build/programs/server/boot.js:222:10
W20171114-03:34:08.619(0)? (STDERR) at Array.forEach (native)
W20171114-03:34:08.619(0)? (STDERR) at Function._.each._.forEach (/root/.meteor/packages/meteor-tool/.1.1.3.115udz9++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20171114-03:34:08.619(0)? (STDERR) at /var/www/mongo-parcc-user/parcc-meteor/.meteor/local/build/programs/server/boot.js:117:5
=> Exited with code: 8
I'm using the momentjs:moment package in my meteor project. Client side the moment(new Date()) call works great. If I do the same call on the server side or if I wrap the same call in console.log(moment(new Date())); I get the error at the bottom of this question.
If I run meteor shell and then moment(new Date()); I also get an error (moment is not defined). But if, from the shell, I wrap this in a console.log(moment(new Date())); it works fine and prints out to the console.
Any idea what I'm forgetting or what I'm not doing right here?
W20150318-19:55:45.885(-5)? (STDERR) TypeError: Property 'moment' of object #<Object> is not a function
W20150318-19:55:45.885(-5)? (STDERR) at Object._.extend.send_donation_email (app/server/methods/mandrill.js:37:25)
W20150318-19:55:45.885(-5)? (STDERR) at Object.Stripe_Events.charge.succeeded (app/server/lib/stripe_events.js:55:23)
W20150318-19:55:45.885(-5)? (STDERR) at [object Object].Router.route.where (app/both/router/router.js:238:48)
W20150318-19:55:45.885(-5)? (STDERR) at boundNext (packages/iron:middleware-stack/lib/middleware_stack.js:251:1)
W20150318-19:55:45.885(-5)? (STDERR) at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)
W20150318-19:55:45.885(-5)? (STDERR) at packages/meteor/dynamics_nodejs.js:121:1
W20150318-19:55:45.885(-5)? (STDERR) at [object Object].urlencodedParser (/Users/Bechard/.meteor/packages/iron_router/.1.0.7.1oysnq2++os+web.browser+web.cordova/npm/node_modules/body-parser/lib/types/urlencoded.js:69:27)
W20150318-19:55:45.885(-5)? (STDERR) at packages/iron:router/lib/router.js:277:1
W20150318-19:55:45.885(-5)? (STDERR) at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
W20150318-19:55:45.885(-5)? (STDERR) at [object Object].hookWithOptions (packages/iron:router/lib/router.js:276:1)
W20150318-19:55:45.885(-5)? (STDERR) at boundNext (packages/iron:middleware-stack/lib/middleware_stack.js:251:1)
W20150318-19:55:45.885(-5)? (STDERR) at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)
**Update: Meteor 1.1 still having this issue. **
I have narrowed in on the reason it seems to work, then stop working. If I get my app to run into an error, without catching it then moment will stop working.
To test this I started Meteor, then the Meteor Shell and moment(), it worked. I then got my app to make a call to a non-existent function, which always throws something like the below error. Then I ran moment() from the Meteor Shell again and this time moment() doesn't work. Event if I restart Meteor it still doesn't work. I have restarted the computer and still, it doesn't work.
(STDERR) TypeError: Property 'customer.source.updated' of object #<Object> is not a function
W20150401-13:46:11.812(-5)? (STDERR) at [object Object].Router.route.where (app/both/router/router.js:254:48)
W20150401-13:46:11.812(-5)? (STDERR) at boundNext (packages/iron:middleware-stack/lib/middleware_stack.js:251:1)
W20150401-13:46:11.812(-5)? (STDERR) at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)
W20150401-13:46:11.812(-5)? (STDERR) at packages/meteor/dynamics_nodejs.js:121:1
W20150401-13:46:11.812(-5)? (STDERR) at [object Object].urlencodedParser (/Users/Bechard/.meteor/packages/iron_router/.1.0.7.1oysnq2++os+web.browser+web.cordova/npm/node_modules/body-parser/lib/types/urlencoded.js:69:27)
W20150401-13:46:11.812(-5)? (STDERR) at packages/iron:router/lib/router.js:277:1
W20150401-13:46:11.812(-5)? (STDERR) at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
W20150401-13:46:11.812(-5)? (STDERR) at [object Object].hookWithOptions (packages/iron:router/lib/router.js:276:1)
W20150401-13:46:11.812(-5)? (STDERR) at boundNext (packages/iron:middleware-stack/lib/middleware_stack.js:251:1)
W20150401-13:46:11.813(-5)? (STDERR) at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)
I spent way too long working this exact issue today. I had just updated to Meteor 1.0.4.1 when I got stuck with this issue (although for me, the problem was that moment-range couldn't find moment in order to extend it). Try reverting back to Meteor 1.0.3.2 and see if the problem still persists.
UPDATE:
I just upgraded Meteor to 1.0.5, and the issue may have gone away for me. If you try upgrading your own apps, please post below if it resolves the issue for you as well. Thanks!
This problem was a bug in the way that Meteor was reloading itself in the shell environment and is fixed in Meteor 1.2. For the relevant bug fix information, you can Git Commit 2e43a9 and ae8395 or Meteor Issue #4010 or #4109.
MomentJS Issue 2285 tracked this issue.
I have created a meteor app and cloned houston. I run meteor from the path app/houston, the following error appears.
TypeError: Object #<Object> has no method 'describe'
W20150316-16:02:33.273(5.5)? (STDERR) at app/houston/package.js:3:9
W20150316-16:02:33.273(5.5)? (STDERR) at app/houston/package.js:76:3
W20150316-16:02:33.273(5.5)? (STDERR) at /home/garima.wadhera/houston_app/.meteor/local/build/programs/server/boot.js:205:10
W20150316-16:02:33.273(5.5)? (STDERR) at Array.forEach (native)
W20150316-16:02:33.274(5.5)? (STDERR) at Function._.each._.forEach (/home/admin/.meteor/packages/meteor-tool/.1.0.41.yumiah++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150316-16:02:33.274(5.5)? (STDERR) at /home/garima.wadhera/houston_app/.meteor/local/build/programs/server/boot.js:116:5
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.
Where Am I making a mistake? Please guide.
For reference: houston code
The houston package at https://github.com/gterrono/houston is a meteor package not a meteor project. It runs if you add it as a package in an existing meteor project.
You have to add the package to another meteor project.
meteor create project
cd project
meteor add houston:admin
Then you can load it up at /admin on your web browser.
If you want to edit the code create a directory called packages clone the package into that and meteor remove houston:admin (if you added it above) and add it back with meteor add houston:admin (will add the local one)
I have downloaded flat-ui from official website. Then I copy pased dist folder in root directory of the application.
I have created basic meteor app using meteor create app_name
I am trying to implement the login form given on demo page of flat-ui.
http://designmodo.github.io/Flat-UI/
Login page is at the end of the page.
As far as know meteor can iterate through all the folder in the root directory and add css files.(correct me if I am wrong). Also I get error like
W20150210-01:58:23.516(5.5)? (STDERR)
W20150210-01:58:23.519(5.5)? (STDERR) /home/ajinkya/.meteor/packages/meteor-tool/.1.0.38.ieqxkv++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:173
W20150210-01:58:23.519(5.5)? (STDERR) throw(ex);
W20150210-01:58:23.520(5.5)? (STDERR) ^
W20150210-01:58:23.520(5.5)? (STDERR) ReferenceError: document is not defined
W20150210-01:58:23.521(5.5)? (STDERR) at app/dist/js/vendor/html5shiv.js:322:9
W20150210-01:58:23.521(5.5)? (STDERR) at app/dist/js/vendor/html5shiv.js:324:3
W20150210-01:58:23.521(5.5)? (STDERR) at /home/ajinkya/projects/umang/.meteor/local/build/programs/server/boot.js:175:10
W20150210-01:58:23.522(5.5)? (STDERR) at Array.forEach (native)
W20150210-01:58:23.522(5.5)? (STDERR) at Function._.each._.forEach (/home/ajinkya/.meteor/packages/meteor-tool/.1.0.38.ieqxkv++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20150210-01:58:23.522(5.5)? (STDERR) at /home/ajinkya/projects/umang/.meteor/local/build/programs/server/boot.js:86:5
=> Exited with code: 8
So I tried removing js folder. After that error went but when I tried that login form example there was no icons in input box.
Please help me with this. I think its maybe folder structure that is causing the issue.
I want to use Box2D-Web with Meteorjs on both client and server side. I used this in nodejs. There was a small configuration that exports Box2D variable, and it was working with nodejs. The additional configuration was
exports.Box2D = Box2D;
at the bottom of the libary.
But I couldn't load it in meteor. I put the Box2D-web under lib directory in my project. But it gives an error and I still don't see what the problem is.
Here is what meteor saying;
W20140106-00:15:03.627(2)? (STDERR) /Users/ahmetdal/workspace/realhaxtmp/.meteor/local/build/programs/server/boot.js:186
W20140106-00:15:03.692(2)? (STDERR) }).run();
W20140106-00:15:03.692(2)? (STDERR) ^
W20140106-00:15:03.692(2)? (STDERR) TypeError: Cannot call method 'write' of undefined
W20140106-00:15:03.693(2)? (STDERR) at Console.log (console.js:53:16)
W20140106-00:15:03.694(2)? (STDERR) at Object.Meteor._debug (packages/meteor/debug.js:41)
W20140106-00:15:03.694(2)? (STDERR) at _.extend.publish (packages/livedata/livedata_server.js:1166)
W20140106-00:15:03.694(2)? (STDERR) at app/server/publications.js:7:12
W20140106-00:15:03.694(2)? (STDERR) at /Users/ahmetdal/workspace/realhaxtmp/.meteor/local/build/programs/server/boot.js:159:61
W20140106-00:15:03.694(2)? (STDERR) at Array.forEach (native)
W20140106-00:15:03.694(2)? (STDERR) at Function._.each._.forEach (/Users/ahmetdal/.meteor/tools/09b63f1ed5/lib/node_modules/underscore/underscore.js:79:11)
W20140106-00:15:03.695(2)? (STDERR) at /Users/ahmetdal/workspace/realhaxtmp/.meteor/local/build/programs/server/boot.js:159:5
There is not error about the Box2D-Web library. I tried to find any alternative meaning for the error but, I could not find anything either.
This error is being occurred when I put the library under lib folder under project root.
I did not put all code of library here. Because it really consists of too many lines of codes.
What additional configration in library can I do to apply it to Meteorjs?
Thank you!
Placing Javascript files like the Box2D-Web library in the lib folder in the root of your project will cause the code to be run on both the client and the server. The error occurs when the library gets run on the server.
To fix this, just place the library file into /client/lib/.