Freecodecamp: I get 500 errors on map and about after logging in

Created on 28 Apr 2016  ·  47Comments  ·  Source: freeCodeCamp/freeCodeCamp

Hi,

I'm getting a loopback error when I try to access any page after I'm logged in. This is happening in a VM in my local environment. The odd part is I was able to use the site locally to fix a bug without a problem for one night and when I came back the next morning to tackle another I started seeing this.

Has anyone else experienced this and if so what was the solution?

I did a search and came across this old issue from beta:
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/971

However, increasing the timeout did nothing for me.

loopback_error

All 47 comments

This usually happens when the servers cannot connect to your database. Can you verify that you have mongo up and running and that it reports new connections?

That's the first thing I checked:
mongoconnection

Could the fact that it's a 32 bit VM have anything to do with it?

The last line there indicates that it waits for connections. But there is no indication that the server has connected. You should see something like this:
1__mongod

You might want to try and double check that the mongodb uri is correctly set in your environmental variables.

See: https://github.com/FreeCodeCamp/FreeCodeCamp/blob/staging/sample.env

Will do, thanks @BerkeleyTrue

Yes, that's set correctly in my .env file. Let me post some of my mongo log.

Can you post here exactly what you have for the mongo uri?

MONGOHQ_URL='mongodb://localhost:27017/freecodecamp'

Is mongo running within the same VM as the server?

It ran fine for one evening, so the info must be correct for it to make that initial connection and work. I'm thinking there is a lock on mongo from the previous session.

Yes, it's running in the same VM.

Results of gulp:

vagrant@precise32:/vagrant$ gulp
[17:56:13] Using gulpfile /vagrant/gulpfile.js
[17:56:13] Starting 'less'...
[17:56:13] Starting 'js'...
[17:56:13] Starting 'pack-watch'...
[17:56:14] Starting 'build-manifest-watch'...
[17:56:20] Finished 'build-manifest-watch' after 6.4 s
[17:56:24] Finished 'less' after 11 s
[17:56:34] Finished 'js' after 21 s
[17:56:34] Starting 'dependents'...
[17:57:15] Version: webpack 1.13.0
Asset Size Chunks Chunk Names
bundle.js 8.75 MB 0 [emitted] main
fcc:gulp webpack init completed +0ms
[17:57:15] Finished 'pack-watch' after 1.03 min
[17:57:15] Starting 'pack-watch-manifest'...
[17:57:15] webpack is watching for changes
[17:57:20] Finished 'dependents' after 46 s
[17:57:20] Finished 'pack-watch-manifest' after 4.88 s
[17:57:20] Starting 'build-manifest'...
[17:57:20] Finished 'build-manifest' after 53 ms
[17:57:20] Starting 'serve'...
[17:57:20] [nodemon] 1.9.1
[17:57:20] [nodemon] to restart at any time, enter rs
[17:57:20] [nodemon] watching: _._
[17:57:20] [nodemon] starting /vagrant/node_modules/.bin/babel-node ./server/server.js
[17:57:21] Finished 'serve' after 1.26 s
[17:57:21] Starting 'sync'...
[17:57:22] Finished 'sync' after 1.18 s
[17:57:22] Starting 'watch'...
[17:57:25] Finished 'watch' after 2.8 s
[17:57:25] Starting 'default'...
[17:57:25] Finished 'default' after 7.35 μs
[BS] Proxying: http://localhost:3000
[BS] Access URLs:


   Local: http://localhost:3001
External: http://10.0.2.15:3001

      UI: http://localhost:3002

UI External: http://10.0.2.15:3002


[BS] Watching files...
no original function chain to wrap
fcc:user:remote setting up user hooks +0ms
Data source ready..
Browse your REST API at http://127.0.0.1:3000/explorer
FreeCodeCamp server listening on port 3000 in development
https redirect listening on port 1337
MongoError: connection 0 to localhost:27017 timed out
at Function.MongoError.create (/home/vagrant/vagrant_node_modules/node_modules/mongodb-core/lib/error.js:29:11)
at Socket. (/home/vagrant/vagrant_node_modules/node_modules/mongodb-core/lib/connection/connection.js:161:20)
at Socket.g (events.js:273:16)
at emitNone (events.js:80:13)
at Socket.emit (events.js:179:7)
at Socket._onTimeout (net.js:332:8)
at tryOnTimeout (timers.js:224:11)
at Timer.listOnTimeout (timers.js:198:5)

The "Data source ready" line is just some debug code I added.

And mongo's output:

vagrant@precise32:~$ mongod
mongod --help for help and startup options
2016-04-28T17:52:35.870+0000
2016-04-28T17:52:35.875+0000 warning: 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability.
2016-04-28T17:52:35.876+0000
2016-04-28T17:52:35.938+0000 [initandlisten] MongoDB starting : pid=1847 port=27017 dbpath=/data/db 32-bit host=precise32
2016-04-28T17:52:35.938+0000 [initandlisten]
2016-04-28T17:52:35.938+0000 [initandlisten] ** NOTE: This is a 32 bit MongoDB binary.
2016-04-28T17:52:35.938+0000 [initandlisten] ** 32 bit builds are limited to less than 2GB of data (or less with --journal).
2016-04-28T17:52:35.938+0000 [initandlisten] ** Note that journaling defaults to off for 32 bit and is currently off.
2016-04-28T17:52:35.938+0000 [initandlisten] ** See http://dochub.mongodb.org/core/32bit
2016-04-28T17:52:35.938+0000 [initandlisten]
2016-04-28T17:52:35.938+0000 [initandlisten] db version v2.6.12
2016-04-28T17:52:35.938+0000 [initandlisten] git version: d73c92b1c85703828b55c2916a5dd4ad46535f6a
2016-04-28T17:52:35.939+0000 [initandlisten] build info: Linux ip-10-45-196-214 2.6.18-194.el5xen #1 SMP Tue Mar 16 22:08:06 EDT 2010 i686 BOOST_LIB_VERSION=1_49
2016-04-28T17:52:35.939+0000 [initandlisten] allocator: system
2016-04-28T17:52:35.939+0000 [initandlisten] options: {}
2016-04-28T17:52:36.151+0000 [initandlisten] waiting for connections on port 27017
2016-04-28T17:53:36.158+0000 [clientcursormon] mem (MB) res:60 virt:284
2016-04-28T17:53:36.158+0000 [clientcursormon] mapped:160
2016-04-28T17:53:36.158+0000 [clientcursormon] connections:0
2016-04-28T17:55:36.287+0000 [TTLMonitor] query freecodecamp.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:5 nscannedObjects:5 keyUpdates:0 numYields:0 locks(micros) r:134030 nreturned:1 reslen:129 134ms
2016-04-28T17:57:36.294+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 19ms
2016-04-28T17:57:36.402+0000 [PeriodicTaskRunner] task: WriteBackManager::cleaner took: 59ms
2016-04-28T17:57:39.348+0000 [TTLMonitor] query freecodecamp.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:5 nscannedObjects:5 keyUpdates:0 numYields:0 locks(micros) r:857003 nreturned:1 reslen:129 857ms
2016-04-28T17:57:40.773+0000 [TTLMonitor] query local.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:1 nscannedObjects:1 keyUpdates:0 numYields:0 locks(micros) r:582655 nreturned:0 reslen:20 582ms
2016-04-28T17:58:37.044+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 84ms
2016-04-28T17:58:38.946+0000 [PeriodicTaskRunner] task: WriteBackManager::cleaner took: 160ms
2016-04-28T17:58:39.057+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 9ms
2016-04-28T17:58:43.805+0000 [TTLMonitor] query admin.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: EOF ntoreturn:0 ntoskip:0 nscanned:0 nscannedObjects:0 keyUpdates:0 numYields:0 locks(micros) r:1850273 nreturned:0 reslen:20 1369ms
2016-04-28T17:58:45.352+0000 [TTLMonitor] query freecodecamp.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:5 nscannedObjects:5 keyUpdates:0 numYields:0 locks(micros) r:810851 nreturned:1 reslen:129 788ms
2016-04-28T17:58:45.825+0000 [TTLMonitor] query local.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:1 nscannedObjects:1 keyUpdates:0 numYields:0 locks(micros) r:169044 nreturned:0 reslen:20 169ms
2016-04-28T17:58:57.451+0000 [clientcursormon] mem (MB) res:0 virt:284
2016-04-28T17:58:57.763+0000 [clientcursormon] mapped:160
2016-04-28T17:58:57.764+0000 [clientcursormon] connections:0
2016-04-28T17:59:40.119+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 367ms
2016-04-28T17:59:40.791+0000 [PeriodicTaskRunner] task: WriteBackManager::cleaner took: 18ms
2016-04-28T17:59:40.848+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 37ms
2016-04-28T17:59:48.593+0000 [TTLMonitor] query admin.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: EOF ntoreturn:0 ntoskip:0 nscanned:0 nscannedObjects:0 keyUpdates:0 numYields:0 locks(micros) r:1349076 nreturned:0 reslen:20 1139ms
2016-04-28T17:59:53.434+0000 [TTLMonitor] query freecodecamp.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:5 nscannedObjects:5 keyUpdates:0 numYields:0 locks(micros) r:2772163 nreturned:1 reslen:129 2796ms
2016-04-28T18:00:01.726+0000 [TTLMonitor] query local.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:1 nscannedObjects:1 keyUpdates:0 numYields:0 locks(micros) r:2770600 nreturned:0 reslen:20 2555ms
2016-04-28T18:00:41.234+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 96ms
2016-04-28T18:00:41.939+0000 [PeriodicTaskRunner] task: WriteBackManager::cleaner took: 29ms
2016-04-28T18:00:42.190+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 45ms
2016-04-28T18:01:06.041+0000 [TTLMonitor] query admin.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: EOF ntoreturn:0 ntoskip:0 nscanned:0 nscannedObjects:0 keyUpdates:0 numYields:0 locks(micros) r:784935 nreturned:0 reslen:20 815ms
2016-04-28T18:01:11.587+0000 [TTLMonitor] query freecodecamp.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:5 nscannedObjects:5 keyUpdates:0 numYields:0 locks(micros) r:4139336 nreturned:1 reslen:129 4160ms
2016-04-28T18:01:16.434+0000 [TTLMonitor] query local.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:1 nscannedObjects:1 keyUpdates:0 numYields:1 locks(micros) r:2009378 nreturned:0 reslen:20 1410ms
2016-04-28T18:01:42.738+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 106ms
2016-04-28T18:01:43.686+0000 [PeriodicTaskRunner] task: WriteBackManager::cleaner took: 50ms
2016-04-28T18:01:43.873+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 26ms
2016-04-28T18:02:18.230+0000 [TTLMonitor] query admin.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: EOF ntoreturn:0 ntoskip:0 nscanned:0 nscannedObjects:0 keyUpdates:0 numYields:0 locks(micros) r:425988 nreturned:0 reslen:20 368ms
2016-04-28T18:02:20.878+0000 [TTLMonitor] query freecodecamp.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:5 nscannedObjects:5 keyUpdates:0 numYields:0 locks(micros) r:1093363 nreturned:1 reslen:129 1000ms
2016-04-28T18:02:24.441+0000 [TTLMonitor] query local.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 nscanned:1 nscannedObjects:1 keyUpdates:0 numYields:1 locks(micros) r:2250763 nreturned:0 reslen:20 962ms
2016-04-28T18:02:44.228+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 42ms
2016-04-28T18:02:45.293+0000 [PeriodicTaskRunner] task: WriteBackManager::cleaner took: 13ms
2016-04-28T18:02:46.012+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 101ms

So there is definitely an issue making the connection:

MongoError: connection 0 to localhost:27017 timed out
at Function.MongoError.create (/home/vagrant/vagrant_node_modules/node_modules/mongodb-core/lib/error.js:29:11)

Which version of node/npm are you running in the VM?

no original function chain to wrap

This tells me there is an old version of some module running. You may want to wipe your node_modules and npm install again

Will try that now.

Put together this VM just for this site, so everything is most recent stable release:
vagrant@precise32:~$ node -v
v5.11.0
vagrant@precise32:~$ npm -v
3.8.7

And again, it ran fine the first day. So if anything was incompatible it wouldn't have ran at all right?

Reinstalling node modules now, so hopefully that resolves the issue.

Reinstalled node modules and am getting the same result. I will try tearing down mongo and all the data and reseed.

I reseeded and ran gulp again and the timeout error went away, however, the chain message did not:
no original function chain to wrap


   Local: http://localhost:3001
External: http://10.0.2.15:3001

      UI: http://localhost:3002

UI External: http://10.0.2.15:3002


[BS] Watching files...
no original function chain to wrap
fcc:user:remote setting up user hooks +0ms
Browse your REST API at http://127.0.0.1:3000/explorer
FreeCodeCamp server listening on port 3000 in development
https redirect listening on port 1337

The site now responds as it should. However, when I sign up I get this error:

timedout

If I go back to the home page and try to visit any other page I fall right back into that timeout loop:

map_error

FreeCodeCamp server listening on port 3000 in development
https redirect listening on port 1337
304 GET 26166.008 ms - /
301 GET 8104.394 ms - /login
404 GET 22920.000 ms - /api/flyers/findOne?filter%5Border%5D=id+DESC
304 GET 17127.156 ms - /signin
404 GET 3901.238 ms - /api/flyers/findOne?filter%5Border%5D=id+DESC
304 GET 10324.801 ms - /email-signup
fcc:user:remote checking existence +5m
fcc:user:remote where +60ms { email: 'dweber.[email protected]' }
404 GET 8756.846 ms - /api/flyers/findOne?filter%5Border%5D=id+DESC
fcc:user:remote user created, sending email +8s
fcc:user:remote sending welcome email +86ms
500 POST 17528.131 ms - /api/users
304 GET 3851.423 ms - /
404 GET 169.129 ms - /api/flyers/findOne?filter%5Border%5D=id+DESC
301 GET 39.106 ms - /login
304 GET 950.838 ms - /signin
404 GET 165.353 ms - /api/flyers/findOne?filter%5Border%5D=id+DESC
304 GET 1074.357 ms - /email-signin
404 GET 1388.679 ms - /api/flyers/findOne?filter%5Border%5D=id+DESC
fcc:user:remote setting cookies +2m
fcc:user:remote user logged in +116ms
302 POST 3306.162 ms - /api/users/login
304 GET 4508.902 ms - /
404 GET 1341.159 ms - /api/flyers/findOne?filter%5Border%5D=id+DESC
Error: Timeout in connecting after 20000 ms
at Timeout._onTimeout (/home/vagrant/vagrant_node_modules/node_modules/loopback-datasource-juggler/lib/datasource.js:2135:10)
at tryOnTimeout (timers.js:224:11)
at Timer.listOnTimeout (timers.js:198:5)
500 GET 2371.159 ms - /map-aside
Error: Timeout in connecting after 20000 ms
at Timeout._onTimeout (/home/vagrant/vagrant_node_modules/node_modules/loopback-datasource-juggler/lib/datasource.js:2135:10)
at tryOnTimeout (timers.js:224:11)
at Timer.listOnTimeout (timers.js:198:5)
500 GET 1217.055 ms - /about

Mongo log when I got the timeout:

2016-04-28T18:56:50.774+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 9ms
2016-04-28T18:56:50.790+0000 [PeriodicTaskRunner] task: WriteBackManager::cleaner took: 16ms
2016-04-28T18:57:25.381+0000 [TTLMonitor] query freecodecamp.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 keyUpdates:0 numYields:0 locks(micros) r:113538 nreturned:1 reslen:129 113ms
2016-04-28T18:57:50.930+0000 [PeriodicTaskRunner] task: DBConnectionPool-cleaner took: 69ms
2016-04-28T18:57:50.958+0000 [PeriodicTaskRunner] task: WriteBackManager::cleaner took: 27ms
2016-04-28T18:58:07.749+0000 [conn29] query freecodecamp.sessions query: { _id: "4gbPret1xw4xC50C8oU86Ea6P1tJDZa0", $or: [ { expires: { $exists: false } }, { expires: { $gt: new Date(1461869887345) } } ] } planSummary: IXSCAN { _id: 1 } ntoskip:0 nscanned:1 nscannedObjects:1 keyUpdates:0 numYields:0 locks(micros) r:369348 nreturned:1 reslen:246 369ms
2016-04-28T18:58:08.126+0000 [conn24] query freecodecamp.AccessToken query: { orderby: { _id: 1 }, $query: { _id: "lKGhksQqVJO6hcsDnlEKadmZ1O4AuP2Vl8DKiSqyetdOxNADzzrQzv2B0SsC75wX" } } planSummary: IDHACK ntoreturn:1 ntoskip:0 nscanned:1 nscannedObjects:1 idhack:1 keyUpdates:0 numYields:0 locks(micros) r:134863 nreturned:1 reslen:145 134ms
2016-04-28T18:58:08.849+0000 [conn29] update freecodecamp.sessions query: { _id: "4gbPret1xw4xC50C8oU86Ea6P1tJDZa0" } update: { _id: "4gbPret1xw4xC50C8oU86Ea6P1tJDZa0", session: "{"cookie":{"originalMaxAge":77759999953,"expires":"2018-10-15T18:58:08.415Z","httpOnly":true,"path":"/"},"passport":{},"flash":{},"returnTo":"/map"}", expires: new Date(1539629888415) } nscanned:1 nscannedObjects:1 nMatched:1 nModified:1 keyUpdates:1 numYields:0 locks(micros) w:116522 145ms
2016-04-28T18:58:08.858+0000 [conn29] command freecodecamp.$cmd command: update { update: "sessions", updates: [ { q: { _id: "4gbPret1xw4xC50C8oU86Ea6P1tJDZa0" }, u: { _id: "4gbPret1xw4xC50C8oU86Ea6P1tJDZa0", session: "{"cookie":{"originalMaxAge":77759999953,"expires":"2018-10-15T18:58:08.415Z","httpOnly":true,"path":"/"},"passport":{},"flash":{},"returnTo":"/map"}", expires: new Date(1539629888415) }, upsert: true, multi: false } ], ordered: true } keyUpdates:0 numYields:0 reslen:55 206ms
2016-04-28T18:58:25.738+0000 [TTLMonitor] query freecodecamp.system.indexes query: { expireAfterSeconds: { $exists: true } } planSummary: COLLSCAN ntoreturn:0 ntoskip:0 keyUpdates:0 numYields:0 locks(micros) r:101268 nreturned:1 reslen:129 101ms
2016-04-28T18:58:32.782+0000 [clientcursormon] mem (MB) res:2 virt:296
2016-04-28T18:58:32.782+0000 [clientcursormon] mapped:160
2016-04-28T18:58:32.782+0000 [clientcursormon] connections:12

I can still navigate around. It just seems to give the loopback timeout on the about page and map page:

profile

about_fail

map_fail

I'm sure you are busy, so I'm going to try to figure this out on my own. Will update if I do so.

I just set up a new VM that is ubuntu 14 64 bit. Last one was Ubuntu 12 32 bit. I also changed the permissions of my mongo data folders to have same group and owner as my shared folder did (vagrant).

Everything is working now, so my guess is it was related to running mongodb in 32-bit mode.

Glad you sorted it out

Me too! Thanks for your help!

Everything is working now, so my guess is it was related to running mongodb in 32-bit mode.

Got the same error on a mongodb 32 bits machine. Migrating to x64.

I have a 64bit installation, but I get the same error. Rebuilding node_modules and seeding didn't help either.

Logs after rebuillding -

Gulp -

challenge seed completed
manish-mbp-13:FreeCodeCamp manishgiri$ gulp
[23:42:44] Using gulpfile ~/Github/FCC/FreeCodeCamp/gulpfile.js
[23:42:44] Starting 'less'...
[23:42:44] Starting 'serve'...
[23:42:45] Starting 'js'...
[23:42:45] [nodemon] 1.11.0
[23:42:45] [nodemon] to restart at any time, enter `rs`
[23:42:45] [nodemon] watching: *.*
[23:42:45] [nodemon] starting `/Users/manishgiri/Github/FCC/FreeCodeCamp/node_modules/.bin/babel-node ./server/server.js`
[23:42:45] Finished 'serve' after 1.07 s
  fcc:user:remote setting up user hooks +0ms
[23:42:51] Finished 'less' after 7.01 s
[23:42:52] Finished 'js' after 6.85 s
[23:42:52] Starting 'dev-server'...
[23:42:52] Finished 'dev-server' after 445 ms
[23:42:52] Starting 'watch'...
[23:42:52] Finished 'watch' after 177 ms
[23:42:52] Starting 'default'...
[23:42:52] Finished 'default' after 3.8 μs
[BS] Proxying: http://localhost:3001
[BS] Access URLs:
 --------------------------------------
       Local: http://localhost:3000
    External: http://10.39.248.153:3000
 --------------------------------------
          UI: http://localhost:3002
 UI External: http://10.39.248.153:3002
 --------------------------------------
[BS] Watching files...
strong-remoting deprecated The built-in CORS middleware provided by REST adapter was deprecated. See https://docs.strongloop.com/display/public/LB/Security+considerations for more details. node_modules/strong-remoting/lib/remote-objects.js:97:25
loopback-explorer deprecated The built-in CORS middleware provided by loopback-component-explorer was deprecated. See https://docs.strongloop.com/display/public/LB/Security+considerations for more details. server/boot/explorer.js:22:3
Browse your REST API at http://127.0.0.1:3001/explorer
FreeCodeCamp server listening on port 3001 in development
https redirect listening on port 1337
webpack built ae3f61b1f36b90fac17b in 30204ms

WARNING in ./~/babel-core/lib/transformation/file/options/option-manager.js
Critical dependencies:
174:19-37 the request of a dependency is an expression
302:16-34 the request of a dependency is an expression
 @ ./~/babel-core/lib/transformation/file/options/option-manager.js 174:19-37 302:16-34

WARNING in ./~/babel-core/lib/transformation/file/index.js
Critical dependencies:
510:24-39 the request of a dependency is an expression
709:16-34 the request of a dependency is an expression
 @ ./~/babel-core/lib/transformation/file/index.js 510:24-39 709:16-34
webpack: bundle is now VALID.
302 GET 82.157 ms - /js8fc32780208142da0847.hot-update.json
200 GET 2684.197 ms - /en/js8fc32780208142da0847.hot-update.json
302 GET 11.474 ms - /
200 GET 670.878 ms - /en/
302 GET 5.992 ms - /
200 GET 502.238 ms - /en/
loopback deprecated loopback#context middleware is deprecated. See https://docs.strongloop.com/display/APIC/Using%20current%20context for more details. node_modules/loopback/server/middleware/rest.js:60:32
404 GET 334.603 ms - /api/flyers/findOne?filter%5Border%5D=id+DESC
302 GET 5.881 ms - /map
  fcc:react-server render react markup and pre-fetch data +44s
  fcc:services:map en language requested +104ms
  fcc:services:map en language requested +15ms
  fcc:services:map en language requested +2ms
  fcc:react-server react markup rendered, data fetched +44ms
  fcc:react-server html rendered and ready to send +212ms
200 GET 563.737 ms - /en/map
200 GET 15.231 ms - /services/user?_csrf=ULtQiCxE-GXGbxiNeJEHwKcMSz0x3v2wHfog&returnMeta=true
  fcc:services:map en language requested +3s
500 GET 9.701 ms - /services/map;lang=en?_csrf=ULtQiCxE-GXGbxiNeJEHwKcMSz0x3v2wHfog&returnMeta=true
  fcc:services:map en language requested +148ms
500 GET 8.817 ms - /services/map;lang=en?_csrf=ULtQiCxE-GXGbxiNeJEHwKcMSz0x3v2wHfog&returnMeta=true
  fcc:services:map en language requested +29ms
500 GET 7.694 ms - /services/map;lang=en?_csrf=ULtQiCxE-GXGbxiNeJEHwKcMSz0x3v2wHfog&returnMeta=true
  fcc:services:map en language requested +7m

Mongo -

manish-mbp-13:FreeCodeCamp manishgiri$ mongod
2016-12-13T23:40:03.903-0500 I CONTROL  [initandlisten] MongoDB starting : pid=9497 port=27017 dbpath=/data/db 64-bit host=manish-mbp-13.engr.uc.edu
2016-12-13T23:40:03.903-0500 I CONTROL  [initandlisten] db version v3.4.0
2016-12-13T23:40:03.904-0500 I CONTROL  [initandlisten] git version: f4240c60f005be757399042dc12f6addbc3170c1
2016-12-13T23:40:03.904-0500 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016
2016-12-13T23:40:03.904-0500 I CONTROL  [initandlisten] allocator: system
2016-12-13T23:40:03.904-0500 I CONTROL  [initandlisten] modules: none
2016-12-13T23:40:03.904-0500 I CONTROL  [initandlisten] build environment:
2016-12-13T23:40:03.904-0500 I CONTROL  [initandlisten]     distarch: x86_64
2016-12-13T23:40:03.904-0500 I CONTROL  [initandlisten]     target_arch: x86_64
2016-12-13T23:40:03.904-0500 I CONTROL  [initandlisten] options: {}
2016-12-13T23:40:03.904-0500 W -        [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty.
2016-12-13T23:40:03.935-0500 I -        [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2016-12-13T23:40:03.936-0500 W STORAGE  [initandlisten] Recovering data from the last clean checkpoint.
2016-12-13T23:40:03.936-0500 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=3584M,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2016-12-13T23:40:09.237-0500 I CONTROL  [initandlisten] 
2016-12-13T23:40:09.237-0500 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2016-12-13T23:40:09.237-0500 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2016-12-13T23:40:09.237-0500 I CONTROL  [initandlisten] 
2016-12-13T23:40:09.237-0500 I CONTROL  [initandlisten] 
2016-12-13T23:40:09.237-0500 I CONTROL  [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
2016-12-13T23:40:09.707-0500 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2016-12-13T23:40:09.708-0500 I NETWORK  [thread1] waiting for connections on port 27017
2016-12-13T23:40:10.032-0500 I FTDC     [ftdc] Unclean full-time diagnostic data capture shutdown detected, found interim file, some metrics may have been lost. OK
2016-12-13T23:40:26.768-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:61540 #1 (1 connection now open)
2016-12-13T23:40:26.768-0500 I NETWORK  [conn1] received client metadata from 127.0.0.1:61540 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.0" }, os: { type: "Darwin", name: "Mac OS X", architecture: "x86_64", version: "16.1.0" } }
2016-12-13T23:41:43.240-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:61559 #2 (2 connections now open)
2016-12-13T23:41:43.241-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:61560 #3 (3 connections now open)
2016-12-13T23:41:43.254-0500 I NETWORK  [conn3] received client metadata from 127.0.0.1:61560 conn3: { driver: { name: "nodejs", version: "2.2.16" }, os: { type: "Darwin", name: "darwin", architecture: "x64", version: "16.1.0" }, platform: "Node.js v6.9.2, LE, mongodb-core: 2.1.2" }
2016-12-13T23:41:43.265-0500 I -        [conn2] end connection 127.0.0.1:61559 (3 connections now open)

reopening on request

Updated: Update all node modeles to recent versions and joined perfectly by gulp task to localhost
Updated: Better mongod ini instance by default queryng connections.

fizzvr@fizz-machine:~/disco/proyectosgithub/FreeCodeCamp$ mongod --journal
2016-12-15T14:56:33.093-0500 I CONTROL  [initandlisten] MongoDB starting : pid=2364 port=27017 dbpath=/data/db 32-bit host=fizz-machine
2016-12-15T14:56:33.093-0500 I CONTROL  [initandlisten] db version v3.2.11-33-g9d92066
2016-12-15T14:56:33.093-0500 I CONTROL  [initandlisten] git version: 9d920663421437e65706b0587077781895984e2d
2016-12-15T14:56:33.093-0500 I CONTROL  [initandlisten] allocator: tcmalloc
2016-12-15T14:56:33.093-0500 I CONTROL  [initandlisten] modules: none
2016-12-15T14:56:33.093-0500 I CONTROL  [initandlisten] build environment:
2016-12-15T14:56:33.093-0500 I CONTROL  [initandlisten]     distarch: i686
2016-12-15T14:56:33.093-0500 I CONTROL  [initandlisten]     target_arch: i386
2016-12-15T14:56:33.093-0500 I CONTROL  [initandlisten] options: { storage: { journal: { enabled: true } } }
2016-12-15T14:56:33.207-0500 I -        [initandlisten] Detected data files in /data/db created by the 'mmapv1' storage engine, so setting the active storage engine to 'mmapv1'.
2016-12-15T14:56:33.249-0500 I JOURNAL  [initandlisten] journal dir=/data/db/journal
2016-12-15T14:56:33.252-0500 I JOURNAL  [initandlisten] recover : no journal files present, no recovery needed
2016-12-15T14:56:33.321-0500 I JOURNAL  [durability] Durability thread started
2016-12-15T14:56:33.322-0500 I JOURNAL  [journal writer] Journal writer thread started
2016-12-15T14:56:33.368-0500 I CONTROL  [initandlisten] 
2016-12-15T14:56:33.368-0500 I CONTROL  [initandlisten] ** WARNING: This 32-bit MongoDB binary is deprecated
2016-12-15T14:56:33.368-0500 I CONTROL  [initandlisten] 
2016-12-15T14:56:33.368-0500 I CONTROL  [initandlisten] 
2016-12-15T14:56:33.368-0500 I CONTROL  [initandlisten] ** NOTE: This is a 32 bit MongoDB binary.
2016-12-15T14:56:33.368-0500 I CONTROL  [initandlisten] **       32 bit builds are limited to less than 2GB of data (or less with --journal).
2016-12-15T14:56:33.368-0500 I CONTROL  [initandlisten] **       See http://dochub.mongodb.org/core/32bit
2016-12-15T14:56:33.369-0500 I CONTROL  [initandlisten] 
2016-12-15T14:56:33.369-0500 I CONTROL  [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 11937 processes, 65536 files. Number of processes should be at least 32768 : 0.5 times number of files.
2016-12-15T14:56:33.369-0500 I CONTROL  [initandlisten] 
2016-12-15T14:56:33.416-0500 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2016-12-15T14:56:33.417-0500 I NETWORK  [initandlisten] waiting for connections on port 27017
2016-12-15T14:56:33.417-0500 I NETWORK  [HostnameCanonicalizationWorker] Starting hostname canonicalization worker
2016-12-15T14:59:32.381-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37722 #1 (1 connection now open)
2016-12-15T14:59:32.383-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37723 #2 (2 connections now open)
2016-12-15T14:59:32.516-0500 I NETWORK  [conn1] end connection 127.0.0.1:37722 (1 connection now open)
2016-12-15T14:59:32.728-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37724 #3 (2 connections now open)
2016-12-15T14:59:32.909-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37725 #4 (3 connections now open)
2016-12-15T14:59:33.079-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37726 #5 (4 connections now open)
2016-12-15T14:59:33.086-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37727 #6 (5 connections now open)
2016-12-15T14:59:33.089-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37728 #7 (6 connections now open)
2016-12-15T14:59:55.460-0500 I COMMAND  [conn2] command freecodecamp.$cmd command: update { update: "sessions", updates: [ { q: { _id: "qDgTLouZ5L9ocqcnYvCH40zQrn6W-YaN" }, u: { _id: "qDgTLouZ5L9ocqcnYvCH40zQrn6W-YaN", session: "{"cookie":{"originalMaxAge":77760000000,"expires":"2019-06-03T19:59:55.078Z","httpOnly":true,"path":"/"}}", expires: new Date(1559591995078) }, upsert: true, multi: false } ], ordered: true } keyUpdates:0 writeConflicts:0 numYields:0 reslen:131 locks:{ Global: { acquireCount: { r: 1, w: 1 } }, MMAPV1Journal: { acquireCount: { w: 2 }, acquireWaitCount: { w: 1 }, timeAcquiringMicros: { w: 54 } }, Database: { acquireCount: { w: 1 } }, Collection: { acquireCount: { W: 1 } } } protocol:op_query 106ms
2016-12-15T15:00:06.790-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37741 #8 (7 connections now open)
2016-12-15T15:00:06.792-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37742 #9 (8 connections now open)
2016-12-15T15:00:07.059-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37744 #10 (9 connections now open)
2016-12-15T15:00:07.060-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37745 #11 (10 connections now open)
2016-12-15T15:01:33.194-0500 I NETWORK  [conn4] end connection 127.0.0.1:37725 (9 connections now open)
2016-12-15T15:01:33.290-0500 I NETWORK  [conn3] end connection 127.0.0.1:37724 (8 connections now open)
2016-12-15T15:01:33.482-0500 I NETWORK  [conn5] end connection 127.0.0.1:37726 (7 connections now open)
2016-12-15T15:01:33.501-0500 I NETWORK  [conn6] end connection 127.0.0.1:37727 (6 connections now open)
2016-12-15T15:05:51.045-0500 I NETWORK  [conn11] end connection 127.0.0.1:37745 (5 connections now open)
2016-12-15T15:05:51.046-0500 I NETWORK  [conn10] end connection 127.0.0.1:37744 (4 connections now open)
2016-12-15T15:05:51.046-0500 I NETWORK  [conn9] end connection 127.0.0.1:37742 (3 connections now open)
2016-12-15T15:05:51.047-0500 I NETWORK  [conn8] end connection 127.0.0.1:37741 (2 connections now open)
2016-12-15T15:05:51.047-0500 I NETWORK  [conn2] end connection 127.0.0.1:37723 (1 connection now open)
2016-12-15T15:05:51.047-0500 I NETWORK  [conn7] end connection 127.0.0.1:37728 (1 connection now open)
2016-12-15T15:19:03.687-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37947 #12 (1 connection now open)
2016-12-15T15:19:03.689-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37948 #13 (2 connections now open)
2016-12-15T15:19:03.916-0500 I NETWORK  [conn12] end connection 127.0.0.1:37947 (1 connection now open)
2016-12-15T15:19:03.991-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37949 #14 (2 connections now open)
2016-12-15T15:19:04.067-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37950 #15 (3 connections now open)
2016-12-15T15:19:04.071-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37951 #16 (4 connections now open)
2016-12-15T15:19:04.075-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37952 #17 (5 connections now open)
2016-12-15T15:19:04.077-0500 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:37953 #18 (6 connections now open)
2016-12-15T15:19:04.176-0500 I COMMAND  [conn14] command freecodecamp.block command: find { find: "block", filter: {}, sort: { superOrder: 1, order: 1 } } planSummary: COLLSCAN keysExamined:0 docsExamined:52 hasSortStage:1 cursorExhausted:1 keyUpdates:0 writeConflicts:0 numYields:2 nreturned:52 reslen:12469 locks:{ Global: { acquireCount: { r: 6 } }, MMAPV1Journal: { acquireCount: { r: 3 } }, Database: { acquireCount: { r: 3 } }, Collection: { acquireCount: { R: 3 } } } protocol:op_query 113ms
2016-12-15T15:19:04.353-0500 I COMMAND  [conn16] command freecodecamp.challenge command: find { find: "challenge", filter: {}, sort: { _id: 1 }, projection: { dashedName: 1 } } planSummary: IXSCAN { _id: 1 } cursorid:30894092625 keysExamined:101 docsExamined:101 keyUpdates:0 writeConflicts:0 numYields:0 nreturned:101 reslen:7940 locks:{ Global: { acquireCount: { r: 2 } }, MMAPV1Journal: { acquireCount: { r: 1 } }, Database: { acquireCount: { r: 1 } }, Collection: { acquireCount: { R: 1 } } } protocol:op_query 238ms
2016-12-15T15:21:04.376-0500 I NETWORK  [conn15] end connection 127.0.0.1:37950 (5 connections now open)
2016-12-15T15:21:04.388-0500 I NETWORK  [conn17] end connection 127.0.0.1:37952 (4 connections now open)
2016-12-15T15:21:04.394-0500 I NETWORK  [conn18] end connection 127.0.0.1:37953 (3 connections now open)
2016-12-15T15:21:04.502-0500 I NETWORK  [conn16] end connection 127.0.0.1:37951 (2 connections now open)

Errors on "git": "2.11", "node": "7.2", "npm": "3.10" x32 linux debian jessie

Still 500 error on /map

302 GET 166.398 ms - /map
TypeError: _reduxForm.reducer.normalize is not a function
    at createReducer (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/common/app/create-reducer.js:19:23)
    at createApp (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/common/app/create-app.jsx:66:19)
    at serveReactApp (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/server/boot/react.js:49:5)
    at Layer.handle [as handle_request] (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/route.js:131:13)
    at Route.dispatch (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/layer.js:95:5)
    at /home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/index.js:277:22
    at Function.process_params (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/index.js:330:12)
    at next (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/index.js:271:10)
    at Function.handle (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/index.js:176:3)
    at router (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/index.js:46:12)
    at Layer.handle [as handle_request] (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/index.js:312:13)
    at /home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/index.js:280:7
    at param (/home/fizzvr/disco/proyectosgithub/FreeCodeCamp/node_modules/express/lib/router/index.js:349:14)
500 GET 83.962 ms - /en/map

Downgrade to 6.8.0

"git": "2.11", "node": "7.2", "npm": "3.10"

The node version is to be 6 (for instance I use 6.8.0, on macOS), can you try with the Latest LTS from https://nodejs.org.

Can someone post the actual error, not just the status code? Is it the same timeout error? A status code doesn't give us any information other than an error has occurred.

Of all the runs that I tested out this, I didn't see an actual Error in the logs. Here's the logs for gulp and mongod from the latest test runs. I did a mongod --repair before this step, and a search to determine (and kill) any running instances of node or mongod with - px ax | grep node and px ax | grep mongod, just to be sure.

gulp -

challenge seed completed
manish-mbp-13:FreeCodeCamp manishgiri$ gulp
[17:11:59] Using gulpfile ~/Github/FCC/FreeCodeCamp/gulpfile.js
[17:11:59] Starting 'less'...
[17:11:59] Starting 'serve'...
[17:12:03] Starting 'js'...
[17:12:03] [nodemon] 1.11.0
[17:12:03] [nodemon] to restart at any time, enter `rs`
[17:12:03] [nodemon] watching: *.*
[17:12:03] [nodemon] starting `/Users/manishgiri/Github/FCC/FreeCodeCamp/node_modules/.bin/babel-node ./server/server.js`
[17:12:03] Finished 'serve' after 4.26 s
[17:12:09] Finished 'less' after 9.77 s
[17:12:09] Finished 'js' after 6.41 s
[17:12:09] Starting 'dev-server'...
[17:12:10] Finished 'dev-server' after 987 ms
[17:12:10] Starting 'watch'...
[17:12:11] Finished 'watch' after 111 ms
[17:12:11] Starting 'default'...
[17:12:11] Finished 'default' after 4.09 μs
[BS] Proxying: http://localhost:3001
[BS] Access URLs:
 --------------------------------------
       Local: http://localhost:3000
    External: http://10.40.245.137:3000
 --------------------------------------
          UI: http://localhost:3002
 UI External: http://10.40.245.137:3002
 --------------------------------------
[BS] Watching files...
  fcc:user:remote setting up user hooks +0ms
strong-remoting deprecated The built-in CORS middleware provided by REST adapter was deprecated. See https://docs.strongloop.com/display/public/LB/Security+considerations for more details. node_modules/strong-remoting/lib/remote-objects.js:97:25
loopback-explorer deprecated The built-in CORS middleware provided by loopback-component-explorer was deprecated. See https://docs.strongloop.com/display/public/LB/Security+considerations for more details. server/boot/explorer.js:22:3
Browse your REST API at http://127.0.0.1:3001/explorer
FreeCodeCamp server listening on port 3001 in development
https redirect listening on port 1337
webpack built ae3f61b1f36b90fac17b in 29157ms

WARNING in ./~/babel-core/lib/transformation/file/options/option-manager.js
Critical dependencies:
174:19-37 the request of a dependency is an expression
302:16-34 the request of a dependency is an expression
 @ ./~/babel-core/lib/transformation/file/options/option-manager.js 174:19-37 302:16-34

WARNING in ./~/babel-core/lib/transformation/file/index.js
Critical dependencies:
510:24-39 the request of a dependency is an expression
709:16-34 the request of a dependency is an expression
 @ ./~/babel-core/lib/transformation/file/index.js 510:24-39 709:16-34
webpack: bundle is now VALID.
302 GET 867.826 ms - /
200 GET 9927.120 ms - /en/
loopback deprecated loopback#context middleware is deprecated. See https://docs.strongloop.com/display/APIC/Using%20current%20context for more details. node_modules/loopback/server/middleware/rest.js:60:32
404 GET 361.882 ms - /api/flyers/findOne?filter%5Border%5D=id+DESC
302 GET 6.446 ms - /map
  fcc:react-server render react markup and pre-fetch data +1m
  fcc:services:map en language requested +105ms
  fcc:services:map en language requested +12ms
  fcc:services:map en language requested +2ms
  fcc:react-server react markup rendered, data fetched +53ms
  fcc:react-server html rendered and ready to send +280ms
200 GET 622.898 ms - /en/map
200 GET 10.070 ms - /services/user?_csrf=KD2z9amM-JtWBLa3om3zGbEtSpzbd7Ljr3dM&returnMeta=true
  fcc:services:map en language requested +3s
500 GET 9.197 ms - /services/map;lang=en?_csrf=KD2z9amM-JtWBLa3om3zGbEtSpzbd7Ljr3dM&returnMeta=true
  fcc:services:map en language requested +545ms
500 GET 12.824 ms - /services/map;lang=en?_csrf=KD2z9amM-JtWBLa3om3zGbEtSpzbd7Ljr3dM&returnMeta=true
  fcc:services:map en language requested +58ms
500 GET 10.135 ms - /services/map;lang=en?_csrf=KD2z9amM-JtWBLa3om3zGbEtSpzbd7Ljr3dM&returnMeta=true

mongod -

Last login: Wed Dec 14 17:07:36 on ttys001
manish-mbp-13:FreeCodeCamp manishgiri$ mongod
2016-12-14T17:08:04.726-0500 I CONTROL  [initandlisten] MongoDB starting : pid=767 port=27017 dbpath=/data/db 64-bit host=manish-mbp-13.lang.uc.edu
2016-12-14T17:08:04.727-0500 I CONTROL  [initandlisten] db version v3.4.0
2016-12-14T17:08:04.727-0500 I CONTROL  [initandlisten] git version: f4240c60f005be757399042dc12f6addbc3170c1
2016-12-14T17:08:04.727-0500 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016
2016-12-14T17:08:04.727-0500 I CONTROL  [initandlisten] allocator: system
2016-12-14T17:08:04.727-0500 I CONTROL  [initandlisten] modules: none
2016-12-14T17:08:04.727-0500 I CONTROL  [initandlisten] build environment:
2016-12-14T17:08:04.727-0500 I CONTROL  [initandlisten]     distarch: x86_64
2016-12-14T17:08:04.727-0500 I CONTROL  [initandlisten]     target_arch: x86_64
2016-12-14T17:08:04.727-0500 I CONTROL  [initandlisten] options: {}
2016-12-14T17:08:04.767-0500 I -        [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2016-12-14T17:08:04.767-0500 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=3584M,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2016-12-14T17:08:22.845-0500 I CONTROL  [initandlisten] 
2016-12-14T17:08:22.845-0500 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2016-12-14T17:08:22.845-0500 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2016-12-14T17:08:22.845-0500 I CONTROL  [initandlisten] 
2016-12-14T17:08:22.845-0500 I CONTROL  [initandlisten] 
2016-12-14T17:08:22.845-0500 I CONTROL  [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
2016-12-14T17:08:23.976-0500 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2016-12-14T17:08:23.977-0500 I NETWORK  [thread1] waiting for connections on port 27017
2016-12-14T17:08:57.315-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49238 #1 (1 connection now open)
2016-12-14T17:08:57.315-0500 I NETWORK  [conn1] received client metadata from 127.0.0.1:49238 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.0" }, os: { type: "Darwin", name: "Mac OS X", architecture: "x86_64", version: "16.1.0" } }
2016-12-14T17:10:55.767-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49239 #2 (2 connections now open)
2016-12-14T17:10:55.767-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49240 #3 (3 connections now open)
2016-12-14T17:10:55.789-0500 I NETWORK  [conn3] received client metadata from 127.0.0.1:49240 conn3: { driver: { name: "nodejs", version: "2.2.16" }, os: { type: "Darwin", name: "darwin", architecture: "x64", version: "16.1.0" }, platform: "Node.js v6.9.2, LE, mongodb-core: 2.1.2" }
2016-12-14T17:10:55.806-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49241 #4 (4 connections now open)
2016-12-14T17:10:55.863-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49242 #5 (5 connections now open)
2016-12-14T17:10:55.871-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49243 #6 (6 connections now open)
2016-12-14T17:10:55.872-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49244 #7 (7 connections now open)
2016-12-14T17:10:55.873-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49245 #8 (8 connections now open)
2016-12-14T17:10:55.876-0500 I -        [conn2] end connection 127.0.0.1:49239 (8 connections now open)
2016-12-14T17:10:56.220-0500 I -        [conn8] end connection 127.0.0.1:49245 (7 connections now open)
2016-12-14T17:10:56.220-0500 I -        [conn7] end connection 127.0.0.1:49244 (7 connections now open)
2016-12-14T17:10:56.220-0500 I -        [conn6] end connection 127.0.0.1:49243 (7 connections now open)
2016-12-14T17:10:56.220-0500 I -        [conn5] end connection 127.0.0.1:49242 (7 connections now open)
2016-12-14T17:10:56.220-0500 I -        [conn4] end connection 127.0.0.1:49241 (6 connections now open)
2016-12-14T17:10:56.220-0500 I -        [conn3] end connection 127.0.0.1:49240 (6 connections now open)
2016-12-14T17:12:16.269-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49254 #9 (2 connections now open)
2016-12-14T17:12:16.269-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49255 #10 (3 connections now open)
2016-12-14T17:12:16.282-0500 I NETWORK  [conn10] received client metadata from 127.0.0.1:49255 conn10: { driver: { name: "nodejs", version: "2.2.16" }, os: { type: "Darwin", name: "darwin", architecture: "x64", version: "16.1.0" }, platform: "Node.js v6.9.2, LE, mongodb-core: 2.1.2" }
2016-12-14T17:12:16.292-0500 I -        [conn9] end connection 127.0.0.1:49254 (3 connections now open)
2016-12-14T17:12:16.299-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49256 #11 (3 connections now open)
2016-12-14T17:12:16.357-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49257 #12 (4 connections now open)
2016-12-14T17:12:16.364-0500 I NETWORK  [thread1] connection accepted from 127.0.0.1:49258 #13 (5 connections now open)
2016-12-14T17:13:05.986-0500 I COMMAND  [conn10] command freecodecamp.sessions command: find { find: "sessions", filter: { _id: "GpfExTJVaoOT11M6LO6E0AEJgxAwI0rW", $or: [ { expires: { $exists: false } }, { expires: { $gt: new Date(1481753585251) } } ] }, limit: 1, batchSize: 1, singleBatch: true } planSummary: IXSCAN { _id: 1 } keysExamined:1 docsExamined:1 cursorExhausted:1 numYields:0 nreturned:1 reslen:338 locks:{ Global: { acquireCount: { r: 2 } }, Database: { acquireCount: { r: 1 } }, Collection: { acquireCount: { r: 1 } } } protocol:op_query 670ms
2016-12-14T17:13:06.981-0500 I WRITE    [conn10] update freecodecamp.sessions query: { _id: "GpfExTJVaoOT11M6LO6E0AEJgxAwI0rW" } planSummary: IDHACK update: { _id: "GpfExTJVaoOT11M6LO6E0AEJgxAwI0rW", session: "{"cookie":{"originalMaxAge":77759999996,"expires":"2019-06-02T22:13:06.104Z","httpOnly":true,"path":"/"},"passport":{},"flash":{},"returnTo":"/map"}", expires: new Date(1559513586104) } keysExamined:1 docsExamined:1 nMatched:1 nModified:1 keysInserted:1 keysDeleted:1 numYields:1 locks:{ Global: { acquireCount: { r: 2, w: 2 } }, Database: { acquireCount: { w: 2 } }, Collection: { acquireCount: { w: 2 } } } 795ms
2016-12-14T17:13:06.981-0500 I COMMAND  [conn10] command freecodecamp.$cmd command: update { update: "sessions", updates: [ { q: { _id: "GpfExTJVaoOT11M6LO6E0AEJgxAwI0rW" }, u: { _id: "GpfExTJVaoOT11M6LO6E0AEJgxAwI0rW", session: "{"cookie":{"originalMaxAge":77759999996,"expires":"2019-06-02T22:13:06.104Z","httpOnly":true,"path":"/"},"passport":{},"flash":{},"returnTo":"/map"}", expires: new Date(1559513586104) }, upsert: true, multi: false } ], ordered: true } numYields:0 reslen:59 locks:{ Global: { acquireCount: { r: 2, w: 2 } }, Database: { acquireCount: { w: 2 } }, Collection: { acquireCount: { w: 2 } } } protocol:op_query 859ms
2016-12-14T17:14:16.366-0500 I -        [conn13] end connection 127.0.0.1:49258 (5 connections now open)
2016-12-14T17:14:16.368-0500 I -        [conn11] end connection 127.0.0.1:49256 (4 connections now open)
^C2016-12-14T17:14:26.487-0500 I CONTROL  [signalProcessingThread] got signal 2 (Interrupt: 2), will terminate after current cmd ends
2016-12-14T17:14:26.487-0500 I NETWORK  [signalProcessingThread] shutdown: going to close listening sockets...
2016-12-14T17:14:26.487-0500 I NETWORK  [signalProcessingThread] closing listening socket: 6
2016-12-14T17:14:26.487-0500 I NETWORK  [signalProcessingThread] closing listening socket: 7
2016-12-14T17:14:26.488-0500 I NETWORK  [signalProcessingThread] removing socket file: /tmp/mongodb-27017.sock
2016-12-14T17:14:26.488-0500 I NETWORK  [signalProcessingThread] shutdown: going to flush diaglog...
2016-12-14T17:14:26.501-0500 I FTDC     [signalProcessingThread] Shutting down full-time diagnostic data capture
2016-12-14T17:14:26.549-0500 I STORAGE  [signalProcessingThread] WiredTigerKVEngine shutting down
2016-12-14T17:14:28.948-0500 I STORAGE  [signalProcessingThread] shutdown: removing fs lock...
2016-12-14T17:14:28.953-0500 I CONTROL  [signalProcessingThread] now exiting
2016-12-14T17:14:28.953-0500 I CONTROL  [signalProcessingThread] shutting down with code:0

And this is the "map" screen -

screenshot 2016-12-14 17 13 45

@Manish-Giri I think what Berkeley is looking for is the error that is returned if you browse to the path that returns the 500 error in the browser (/services/map;lang=en?_csrf=[TOKEN]&returnMeta=true) like in the first screenshot in this comment.
I can not reproduce this issue either.

@systimotic Okay, thanks for letting me know! I'll investigate and report.

I also have this issue. When I navigate to /services/map;lang=en?_csrf=[TOKEN]&returnMeta=true the browser returns:

{"output":{"message":"Cannot read property 'order' of undefined"},"meta":{}}

I fix this on my end by changing https://github.com/FreeCodeCamp/FreeCodeCamp/blob/staging/server/utils/map.js#L91 to

const result = map.result.reduce((result, supName) => {

This then results in a working map and the warning specified in #12006

{"output":{"message":"Cannot read property 'order' of undefined"},"meta":{}}

Sounds like the database isn't seeded correctly.

@systimotic I followed your instructions and visited that URL in the browser, this is what I get -

{"output":{"message":"Cannot convert undefined or null to object"},"meta":{}}

Update: I cloned the FCC repo to a different machine (Ubuntu 16.04, 64 bit), installed MongoDB, went through the all the necessary steps, upto npm run only-once and gulp. Yet, I came across the same Map error as in my other machine. Only the error message generated in the browser was different -

{"output":{"message":"Cannot read property 'order' of undefined"},"meta":{}}

which is the same as what @augmt reported earlier today. I'm not so sure now if this is a seed problem,
because I followed the steps to the dot, even on a new machine with a fresh mongo install.

Also, chaning line 91 in map.js didn't do anything in my case.

@BerkeleyTrue @Manish-Giri Alternatively I fixed my issue by just downgrading normalizr from 2.3.0 to 2.2.1.

If there's anything I can do to verify the integrity of the database, please let me know.

@augmt That could also be a possible cause

Since the bug has nothing to do with OP. closing in favor of #12103

Chaning line 91 in map.js fix my challenges...

What's the purpose of manifiest-rev.json?

@fizzvr please continue on #12103

Was this page helpful?
0 / 5 - 0 ratings