Comments (5)
Sounds like the app can't connect to mongodb. In the development env, the app will attempt to connect to mongodb on localhost:27015 with default settings - you can check it's available by connecting to it yourself with mongo
in your terminal
If it's not running, you can start the db with mongod
from sws_gathers.
Forgot to mention, if you intend on running this locally for dev I suggest running the following commands in parallel
npm run watch
- watches frontend js and recompiles if any changes have been made
npm run dev
- runs the app and watches for changes
from sws_gathers.
Ah. Gotchya. Always the databases with me.
Started mongo with mongod --dbpath db
. Idk if it's happy or not though.
Andrews-iMac:sws_gathers andrewkrigline$ mongod --dbpath db
2015-09-20T00:16:26.098-0400 I JOURNAL [initandlisten] journal dir=db/journal
2015-09-20T00:16:26.098-0400 I JOURNAL [initandlisten] recover : no journal files present, no recovery needed
2015-09-20T00:16:26.121-0400 I JOURNAL [durability] Durability thread started
2015-09-20T00:16:26.121-0400 I JOURNAL [journal writer] Journal writer thread started
2015-09-20T00:16:26.121-0400 I CONTROL [initandlisten] MongoDB starting : pid=9222 port=27017 dbpath=db 64-bit host=Andrews-iMac.local
2015-09-20T00:16:26.121-0400 I CONTROL [initandlisten]
2015-09-20T00:16:26.122-0400 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
2015-09-20T00:16:26.122-0400 I CONTROL [initandlisten] db version v3.0.6
2015-09-20T00:16:26.122-0400 I CONTROL [initandlisten] git version: nogitversion
2015-09-20T00:16:26.122-0400 I CONTROL [initandlisten] build info: Darwin yosemitevm.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64 BOOST_LIB_VERSION=1_49
2015-09-20T00:16:26.122-0400 I CONTROL [initandlisten] allocator: system
2015-09-20T00:16:26.122-0400 I CONTROL [initandlisten] options: { storage: { dbPath: "db" } }
2015-09-20T00:16:26.122-0400 I INDEX [initandlisten] allocating new ns file db/local.ns, filling with zeroes...
2015-09-20T00:16:26.301-0400 I STORAGE [FileAllocator] allocating new datafile db/local.0, filling with zeroes...
2015-09-20T00:16:26.302-0400 I STORAGE [FileAllocator] creating directory db/_tmp
2015-09-20T00:16:26.917-0400 I STORAGE [FileAllocator] done allocating datafile db/local.0, size: 64MB, took 0.615 secs
2015-09-20T00:16:27.156-0400 I NETWORK [initandlisten] waiting for connections on port 27017
2015-09-20T00:16:51.584-0400 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60005 #1 (1 connection now open)
2015-09-20T00:17:11.903-0400 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60006 #2 (2 connections now open)
Tried to run npm start
again and new Errors:
Andrews-iMac:sws_gathers andrewkrigline$ npm start
> [email protected] start /Users/andrewkrigline/Projects/02.Self/11.NS2/sws_gathers
> npm run compile && node --harmony index.js
> [email protected] compile /Users/andrewkrigline/Projects/02.Self/11.NS2/sws_gathers
> node_modules/gulp/bin/gulp.js
[00:17:27] Using gulpfile ~/Projects/02.Self/11.NS2/sws_gathers/gulpfile.js
[00:17:27] Starting 'compile'...
[00:17:28] Finished 'compile' after 742 ms
[00:17:28] Starting 'default'...
[00:17:28] Finished 'default' after 6.07 μs
/Users/andrewkrigline/Projects/02.Self/11.NS2/sws_gathers/db/models/message.js:21
messageSchema.methods.toJson = () => {
^
SyntaxError: Unexpected token )
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/andrewkrigline/Projects/02.Self/11.NS2/sws_gathers/db/index.js:10:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/andrewkrigline/Projects/02.Self/11.NS2/sws_gathers/index.js:13:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
npm ERR! [email protected] start: `npm run compile && node --harmony index.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the sws_gathers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run compile && node --harmony index.js
npm ERR! You can get their info via:
npm ERR! npm owner ls sws_gathers
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.5.0
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /Users/andrewkrigline/Projects/02.Self/11.NS2/sws_gathers
npm ERR! node -v v0.10.29
npm ERR! npm -v 2.0.0-alpha-5
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/andrewkrigline/Projects/02.Self/11.NS2/sws_gathers/npm-debug.log
npm ERR! not ok code 0
Running mongo
shows this:
Andrews-iMac:sws_gathers andrewkrigline$ mongo
MongoDB shell version: 3.0.6
connecting to: test
Server has startup warnings:
2015-09-20T00:16:26.121-0400 I CONTROL [initandlisten]
2015-09-20T00:16:26.122-0400 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
I'm guessing I need to do some config work for Mongo?
from sws_gathers.
Also, after this does start, where is it? localhost:27015?
from sws_gathers.
Yes localhost:27015, MongoDB is working fine.
Issue here is you're running Node 0.12 npm ERR! node -v v0.10.29
If you have 0.12, you may have to update the symlink to your system node
Otherwise you can use nvm to manage node versions. Once it's installed it's a matter of nvm install 0.12
and nvm use 0.12
when you want to switch into 0.12
from sws_gathers.
Related Issues (20)
- Replace the "vote regather" with "revote captains"
- On 1 Player leaving 1 Joining no Captain votetime ?
- Make the Gatherpage Visible without loging in.
- The Gatherchat needs a Badword filter+Spamblocker HOT 1
- Enable gather mods to fix teams in case of captains not picking proper teams
- MongoDB will go away in Nov 2020
- Node Internal Module Errors
- 'npm audit' is not working and provides generic error message
- Create Fixup branch for stale and active Synk branches HOT 1
- Handle update of javascript-state-machine package
- Offset Join and Leave gather button in case of double click HOT 1
- Profile Pictures dont update HOT 2
- Custom Gather Music HOT 2
- Multiple instances of gather music play
- izo
- Add gather type to archived gathers model + report
- Make gather menu more informative
- Point to hive2
- Gather music dont play on smartphones ?
- Random? Gather Resets !
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sws_gathers.