Freecodecamp: 登录后,我在地图上发现500个错误

创建于 2016-04-28  ·  47评论  ·  资料来源: freeCodeCamp/freeCodeCamp

你好

登录后尝试访问任何页面时出现回环错误。这是在本地环境中的VM中发生的。 奇怪的是,我能够在本地使用该网站修复一个晚上没有问题的错误,第二天早晨我回来解决另一个问题时,我开始看到了这一点。

有没有其他人遇到过这种情况,如果可以的话,解决方案是什么?

我进行了搜索,发现了Beta中的旧问题:
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/971

但是,增加超时对我没有任何帮助。

loopback_error

所有47条评论

当服务器无法连接到数据库时,通常会发生这种情况。 您可以验证mongo是否已启动并正在运行,并且可以报告新连接吗?

那是我检查的第一件事:
mongoconnection

它是32位VM的事实是否与此有关?

那里的最后一行指示它正在等待连接。 但是没有迹象表明服务器已连接。 您应该会看到以下内容:
1__mongod

您可能想要尝试并再次检查mongodb uri是否在您的环境变量中正确设置。

参见: https :

会的,谢谢@BerkeleyTrue

是的,我的.env文件中的设置正确。 让我发布一些mongo日志。

您能在这里发布您对mongo uri的确切信息吗?

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

mongo是否在与服务器相同的VM中运行?

它可以运行一个晚上,因此信息必须正确才能进行初始连接和正常工作。 我在想上一届会议上的mongo锁定。

是的,它在同一台VM中运行。

吞咽的结果:

vagrant @ precise32 :/ vagrant $
[17:56:13]使用gulpfile /vagrant/gulpfile.js
[17:56:13]开始“少” ...
[17:56:13]开始“ js” ...
[17:56:13]开始“收看” ...
[17:56:14]开始“建立清单监视” ...
[17:56:20]在6.4秒后完成“生成清单观察”
[17:56:24] 11秒后完成“较少”
[17:56:34] 21秒后完成了“ js”
[17:56:34]开始“依赖” ...
[17:57:15]版本:webpack 1.13.0
资产规模块名称
bundle.js 8.75 MB 0 [散发]主要
fcc: gulp webpack初始化完成+ 0ms
[17:57:15]在1.03分钟后完成“打包观看”
[17:57:15]开始“打包观看清单” ...
[17:57:15] Webpack正在关注变化
[17:57:20] 46 s后完成“依赖项”
[17:57:20]在4.88秒后完成“打包观看清单”
[17:57:20]开始“生成清单” ...
[17:57:20] 53毫秒后完成“生成清单”
[17:57:20]开始“发球” ...
[17:57:20] [nodemon] 1.9.1
[17:57:20] [nodemon]随时重新启动,输入rs
[17:57:20] [nodemon]观看:_._
[17:57:20] [nodemon]开始/vagrant/node_modules/.bin/babel-node ./server/server.js
[17:57:21]在1.26秒后完成“投放”
[17:57:21]开始“同步” ...
[17:57:22]在1.18秒后完成“同步”
[17:57:22]开始“观看” ...
[17:57:25] 2.8秒后完成“观看”
[17:57:25]开始“默认” ...
[17:57:25]在7.35μs后完成“默认”
[BS]代理: http:// localhost :3000
[BS]访问URL:


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

      UI: http://localhost:3002

外部用户界面: http ://10.0.2.15:3002


[BS]正在观看文件...
无需包装原始功能链
fcc:user :远程设置用户挂钩+ 0ms
数据源准备就绪
浏览您的REST API,网址
FreeCodeCamp服务器在开发中监听端口3000
https重定向监听端口1337
MongoError:与本地主机的连接0
在Function.MongoError.create(/home/vagrant/vagrant_node_modules/node_modules/mongodb-core/lib/error.js:29:11)
在套接字。(/home/vagrant/vagrant_node_modules/node_modules/mongodb-core/lib/connection/connection.js:161:20)
在Socket.g(events.js:273:16)
在emitNone(events.js:80:13)
在Socket.emit(events.js:179:7)
在Socket._onTimeout(net.js:332:8)
在tryOnTimeout(timers.js:224:11)
在Timer.listOnTimeout(timers.js:198:5)

“数据源就绪”行只是我添加的一些调试代码。

和mongo的输出:

vagrant @ precise32 :〜$ mongod
mongod --help提供帮助和启动选项
2016-04-28T17:52:35.870 + 0000
2016-04-28T17:52:35.875 + 0000警告:默认情况下,32位服务器未启用日记功能。 如果需要耐用性,请使用--journal。
2016-04-28T17:52:35.876 + 0000
2016-04-28T17:52:35.938 + 0000 [initandlisten] MongoDB开始:pid = 1847端口= 27017 dbpath = / data / db 32位主机= precise32
2016-04-28T17:52:35.938 + 0000 [initandlisten]
2016-04-28T17:52:35.938 + 0000 [initandlisten] **注意:这是32位MongoDB二进制文件。
2016-04-28T17:52:35.938 + 0000 [initandlisten] ** 32位版本限制为少于2GB的数据(或--journal则更少)。
2016-04-28T17:52:35.938 + 0000 [initandlisten] **请注意,日记功能默认为32位关闭,当前为关闭状态。
2016-04-28T17:52:35.938 + 0000 [initandlisten] **请参阅http://dochub.mongodb.org/core/32bit
2016-04-28T17:52:35.938 + 0000 [initandlisten]
2016-04-28T17:52:35.938 + 0000 [initandlisten]数据库版本v2.6.12
2016-04-28T17:52:35.938 + 0000 [initandlisten] git版本:d73c92b1c85703828b55c2916a5dd4ad46535f6a
2016-04-28T17:52:35.939 + 0000 [initandlisten]生成信息: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]分配器:系统
2016-04-28T17:52:35.939 + 0000 [initandlisten]选项:{}
2016-04-28T17:52:36.151 + 0000 [initandlisten]等待端口27017上的连接
2016-04-28T17:53:36.158 + 0000 [clientcursormon] mem(MB) res:60 virt:284
2016-04-28T17:53:36.158 + 0000 [clientcursormon]映射:160
2016-04-28T17:53:36.158 + 0000 [clientcursormon]连接:0
2016-04-28T17:55:36.287 + 0000 [TTLMonitor]查询freecodecamp.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 nscanned :5 nscann edObjects:5 k eyUpdates :0 numYields:0 locks(micros)r:134030 nreturned :1 reslen:129 134ms
2016-04-28T17:57:36.294 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner花费了:19ms
2016-04-28T17:57:36.402 + 0000 [PeriodicTaskRunner]任务:WriteBackManager :: cleaner花费了:59ms
2016-04-28T17:57:39.348 + 0000 [TTLMonitor]查询freecodecamp.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 nscanned :5 nscann edObjects:5 k eyUpdates :0 numYields:0 locks(micros)r:857003 nreturned :1 reslen:129 857ms
2016-04-28T17:57:40.773 + 0000 [TTLMonitor]查询local.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 nscanned :1 nscann edObjects:1 k eyUpdates :0 numYields:0 locks(micros)r:582655 nreturned :0 reslen:20 582ms
2016-04-28T17:58:37.044 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner花费了:84ms
2016-04-28T17:58:38.946 + 0000 [PeriodicTaskRunner]任务:WriteBackManager :: cleaner花费了:160ms
2016-04-28T17:58:39.057 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner花费了:9ms
2016-04-28T17:58:43.805 + 0000 [TTLMonitor]查询admin.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:EOF ntoreturn:0 ntoskip :0 nscanned edObjects:0 k eyUpdates :0 numYields:0 locks(micros)r:1850273 nreturned :0 reslen:20 1369ms
2016-04-28T17:58:45.352 + 0000 [TTLMonitor]查询freecodecamp.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 nscanned :5 nscann edObjects:5 k eyUpdates :0 numYields:0 locks(micros)r:810851 nreturned :1 reslen:129 788ms
2016-04-28T17:58:45.825 + 0000 [TTLMonitor]查询local.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 nscanned :1 nscann edObjects:1 k eyUpdates :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]映射:160
2016-04-28T17:58:57.764 + 0000 [clientcursormon]连接:0
2016-04-28T17:59:40.119 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner花费了:367ms
2016-04-28T17:59:40.791 + 0000 [PeriodicTaskRunner]任务:WriteBackManager :: cleaner花费了:18ms
2016-04-28T17:59:40.848 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner花费了:37ms
2016-04-28T17:59:48.593 + 0000 [TTLMonitor]查询admin.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:EOF ntoreturn:0 ntoskip :0 nscanned edObjects:0 k eyUpdates :0 numYields:0 locks(micros)r:1349076 nreturned :0 reslen:20 1139ms
2016-04-28T17:59:53.434 + 0000 [TTLMonitor]查询freecodecamp.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 nscanned :5 nscann edObjects:5 k eyUpdates :0 numYields:0 locks(micros)r:2772163 nreturned :1 reslen:129 2796ms
2016-04-28T18:00:01.726 + 0000 [TTLMonitor]查询local.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 nscanned :1 nscann edObjects:1 k eyUpdates :0 numYields:0 locks(micros)r:2770600 nreturned :0 reslen:20 2555ms
2016-04-28T18:00:41.234 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner花费了:96ms
2016-04-28T18:00:41.939 + 0000 [PeriodicTaskRunner]任务:WriteBackManager :: cleaner花费了:29ms
2016-04-28T18:00:42.190 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner花费了:45ms
2016-04-28T18:01:06.041 + 0000 [TTLMonitor]查询admin.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:EOF ntoreturn:0 ntoskip :0 nscanned edObjects:0 k eyUpdates :0 numYields:0 locks(micros)r:784935 nreturned :0 reslen:20 815ms
2016-04-28T18:01:11.587 + 0000 [TTLMonitor]查询freecodecamp.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 nscanned :5 nscann edObjects:5 k eyUpdates :0 numYields:0 locks(micros)r:4139336 nreturned :1 reslen:129 4160ms
2016-04-28T18:01:16.434 + 0000 [TTLMonitor]查询local.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 nscanned :1 nscann edObjects:1 k eyUpdates :0 numYields:1个locks(micros)r:2009378 nreturned :0 reslen:20 1410ms
2016-04-28T18:01:42.738 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner花费了:106ms
2016-04-28T18:01:43.686 + 0000 [PeriodicTaskRunner]任务:WriteBackManager :: cleaner耗时:50ms
2016-04-28T18:01:43.873 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner花费了:26ms
2016-04-28T18:02:18.230 + 0000 [TTLMonitor]查询admin.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:EOF ntoreturn:0 ntoskip :0 nscanned edObjects:0 k eyUpdates :0 numYields:0 locks(micros)r:425988 nreturned :0 reslen:20 368ms
2016-04-28T18:02:20.878 + 0000 [TTLMonitor]查询freecodecamp.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 nscanned :5 nscann edObjects:5 k eyUpdates :0 numYields:0 locks(micros)r:1093363 nreturned :1 reslen:129 1000ms
2016-04-28T18:02:24.441 + 0000 [TTLMonitor]查询local.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 nscanned :1 nscann edObjects:1 k eyUpdates :0 numYields:1个锁(micros)r:2250763 nreturned :0 reslen:20 962ms
2016-04-28T18:02:44.228 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner花费了:42ms
2016-04-28T18:02:45.293 + 0000 [PeriodicTaskRunner]任务:WriteBackManager :: cleaner花费了:13ms
2016-04-28T18:02:46.0​​12 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner花费了:101ms

因此,建立连接肯定存在问题:

MongoError:与本地主机的连接0
在Function.MongoError.create(/home/vagrant/vagrant_node_modules/node_modules/mongodb-core/lib/error.js:29:11)

您正在VM中运行哪个版本的node / npm?

无需包装原始功能链

这告诉我有一些旧版本的模块正在运行。 您可能要再次擦除node_modules和npm install

现在将尝试。

仅将此虚拟机用于此站点,因此所有内容均为最新的稳定版本:
vagrant @ precise32 :〜$节点-v
v5.11.0
vagrant @ precise32 :〜$ npm -v
3.8.7

再说一遍,它运行良好。 因此,如果有任何不兼容的地方,那将不会正确运行?

现在重新安装节点模块,希望可以解决该问题。

重新安装了节点模块,并且得到相同的结果。 我将尝试拆除mongo和所有数据并重新设定种子。

我重新播种并再次大吃一口,超时错误消失了,但是,链消息没有:
无需包装原始功能链


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

      UI: http://localhost:3002

外部用户界面: http ://10.0.2.15:3002


[BS]正在观看文件...
无需包装原始功能链
fcc:user :远程设置用户挂钩+ 0ms
浏览您的REST API,网址
FreeCodeCamp服务器在开发中监听端口3000
https重定向监听端口1337

现在,该站点将做出应有的响应。 但是,当我注册时出现此错误:

timedout

如果我返回首页并尝试访问其他任何页面,我都会回到该超时循环中:

map_error

FreeCodeCamp服务器在开发中监听端口3000
https重定向监听端口1337
304 GET 26166.008 ms-/
301 GET 8104.394 ms-/登录
404 GET 22920.000毫秒-/ api / flyers / findOne?filter%5Border%5D = id + DESC
304 GET 17127.156 ms-/登录
404 GET 3901.238毫秒-/ api / flyers / findOne?filter%5Border%5D = id + DESC
304 GET 10324.801毫秒-/电子邮件注册
fcc:user :远程检查是否存在+ 5m
fcc:user :remote,其中+ 60ms {电子邮件:'dweber。 [email protected] '}
404 GET 8756.846毫秒-/ api / flyers / findOne?filter%5Border%5D = id + DESC
fcc:user :远程用户创建,发送电子邮件+8秒
fcc:user :远程发送欢迎电子邮件+ 86ms
500 POST 17528.131毫秒-/ api / users
304 GET 3851.423毫秒-/
404 GET 169.129毫秒-/ api / flyers / findOne?filter%5Border%5D = id + DESC
301 GET 39.106 ms-/登录
304 GET 950.838 ms-/登录
404 GET 165.353毫秒-/ api / flyers / findOne?filter%5Border%5D = id + DESC
304 GET 1074.357毫秒-/电子邮件登录
404 GET 1388.679 ms-/ api / flyers / findOne?filter%5Border%5D = id + DESC
fcc:user :远程设置Cookie + 2m
fcc:user :远程用户登录+ 116ms
302个POST 3306.162毫秒-/ api / users / login
304 GET 4508.902 ms-/
404 GET 1341.159 ms-/ api / flyers / findOne?filter%5Border%5D = id + DESC
错误:20000毫秒后连接超时
在超时时._onTimeout(/home/vagrant/vagrant_node_modules/node_modules/loopback-datasource-juggler/lib/datasource.js:2135:10)
在tryOnTimeout(timers.js:224:11)
在Timer.listOnTimeout(timers.js:198:5)
500 GET 2371.159毫秒-/ map-aside
错误:20000毫秒后连接超时
在超时时._onTimeout(/home/vagrant/vagrant_node_modules/node_modules/loopback-datasource-juggler/lib/datasource.js:2135:10)
在tryOnTimeout(timers.js:224:11)
在Timer.listOnTimeout(timers.js:198:5)
500 GET 1217.055毫秒-/约

我收到超时时的Mongo日志:

2016-04-28T18:56:50.774 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner花费了:9ms
2016-04-28T18:56:50.790 + 0000 [PeriodicTaskRunner]任务:WriteBackManager :: cleaner花费了:16ms
2016-04-28T18:57:25.381 + 0000 [TTLMonitor]查询freecodecamp.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 k eyUpdates:0 numYields:0 locks( micros)r:113538 nreturned :1 reslen:129 113ms
2016-04-28T18:57:50.930 + 0000 [PeriodicTaskRunner]任务:DBConnectionPool-cleaner用了:69ms
2016-04-28T18:57:50.958 + 0000 [PeriodicTaskRunner]任务:WriteBackManager :: cleaner花费了:27ms
2016-04-28T18:58:07.749 + 0000 [conn29]查询freecodecamp.sessions查询:{_id:“ 4gbPret1xw4xC50C8oU86Ea6P1tJDZa0”,$或:[{过期:{$ exists:false}},{过期:{$ gt:new日期(1461869887345)}}}} planSummary:IXSCAN {_id:1} ntoskip:0 nscanned: 1 nscann edObjects:1 k eyUpdates:0 numYields:0 locks(micros)r:369348 nreturned :1 reslen:246 369ms
2016-04-28T18:58:08.126 + 0000 [conn24]查询freecodecamp.AccessToken查询:{的OrderBy:{_id:1},$查询:{_id: “lKGhksQqVJO6hcsDnlEKadmZ1O4AuP2Vl8DKiSqyetdOxNADzzrQzv2B0SsC75wX”}} planSummary:IDHACK ntoreturn:1个ntoskip:0 nscanned :1 nscann edObjects:1 idhack:1 k eyUpdates:0 numYields:0 locks(micros)r: 134863 nreturned: 1 reslen:145 134ms
2016-04-28T18:58:08.849 + 0000 [conn29]更新freecodecamp.sessions查询:{_id:“ 4gbPret1xw4xC50C8oU86Ea6P1tJDZa0”}更新:{_id:“ 4gbPret1xw4xC50C8oU86Ea6” 1“:”“” cookie“:”“ ,“ expires”:“ 2018-10-15T18:58:08.415Z”,“ httpOnly”:true,“ path”:“ /”},“ passport”:{},“ flash”:{},“ returnTo” :“ / map”}“,到期:new Date(1539629888415)} nscanned :1 nscann edObjects:1 nMatched:1 nModified:1 k eyUpdates:1 numYields:0 locks(micros)w:116522 145ms
2016-04-28T18:58:08.858 + 0000 [conn29]命令freecodecamp。$ cmd命令:更新{更新:“会话”,更新:[{q:{_id:“ 4gbPret1xw4xC50C8oU86Ea6P1tJDZa0”},u:{_id:“ 4gbPret1C6X6 ”,会话:“ {” cookie”:{“ originalMaxAge”:77759999953,“ expires”:“ 2018-10-15T18:58:08.415Z”,“ httpOnly”:true,“ path”:“ /”},“护照”:{},“闪光灯”:{},“返回”:“ /地图”}”,到期时间:新日期(1539629888415)},更新:true,multi:false}],命令:true}更新: 0 numYields:0 reslen:55 206ms
2016-04-28T18:58:25.738 + 0000 [TTLMonitor]查询freecodecamp.system.indexes查询:{expireAfterSeconds:{$ exists:true}} planSummary:COLLSCAN ntoreturn:0 ntoskip:0 k eyUpdates:0 numYields:0 locks( micros)r:101268 nreturned :1 reslen:129 101ms
2016-04-28T18:58:32.782 + 0000 [clientcursormon] mem(MB) res:2病毒:296
2016-04-28T18:58:32.782 + 0000 [clientcursormon]映射:160
2016-04-28T18:58:32.782 + 0000 [clientcursormon]连接:12

我仍然可以四处浏览。 似乎在About页面和map页面上给出了回送超时:

profile

about_fail

map_fail

我确定您很忙,所以我将尝试自行解决。 如果我这样做会更新。

我刚刚设置了一个新的VM,它是ubuntu 14 64位。 最后一个是Ubuntu 12 32位。 我还更改了mongo数据文件夹的权限,使其具有与共享文件夹相同的组和所有者(无用)。

现在一切正常,所以我想这与在32位模式下运行mongodb有关。

很高兴您整理了一下

我也是! 谢谢你的帮助!

现在一切正常,所以我想这与在32位模式下运行mongodb有关。

在mongodb 32位计算机上出现了相同的错误。 迁移到x64。

我有64位安装,但出现相同的错误。 重建node_modules和播种也无济于事。

重新构建后的日志-

吞咽-

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

蒙哥-

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)

根据要求重新开放

更新:将所有节点模型更新为最新版本,并通过gulp任务完美地加入了localhost
更新:默认更好的mongod ini实例queryng连接。

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)

x32 linux debian jessie的"git": "2.11", "node": "7.2", "npm": "3.10"错误

/ map上仍然有500错误

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

降级至6.8.0

“ git”:“ 2.11”,“ node”:“ 7.2”,“ npm”:“ 3.10”

节点版本为6(例如,我在macOS上使用6.8.0),可以尝试使用https://nodejs.org上的最新LTS

有人可以发布实际的错误,而不仅仅是状态码吗? 是否存在相同的超时错误? 状态代码不会给我们任何信息,只是发生了错误。

在我测试过的所有运行中,我没有在日志中看到实际的Error 。 以下是最新测试运行中gulpmongod的日志。 在此步骤之前,我做了mongod --repair ,然后进行搜索以确定(并杀死)任何正在运行的nodemongod实例,其中-- px ax | grep nodepx ax | grep mongod ,请确保。

吞咽-

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

蒙古-

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

这是“地图”屏幕-

screenshot 2016-12-14 17 13 45

@ Manish-Giri我想伯克利正在寻找的错误是,如果您浏览到返回浏览器中返回500错误的路径( /services/map;lang=en?_csrf=[TOKEN]&returnMeta=true ),如此注释的第一个屏幕截图中
我也无法重现此问题。

@systimotic好的,谢谢让我知道! 我将进行调查并报告。

我也有这个问题。 当我导航到/services/map;lang=en?_csrf=[TOKEN]&returnMeta=true ,浏览器返回:

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

我将https://github.com/FreeCodeCamp/FreeCodeCamp/blob/staging/server/utils/map.js#L91更改为

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

然后生成工作图和#12006中指定的警告

{“ output”:{“ message”:“无法读取未定义的属性'order'”},“ meta”:{}}

听起来好像数据库的种子不正确。

@systimotic我按照您的指示在浏览器中访问了该URL,这就是我得到的-

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

更新:我将FCC仓库克隆到另一台计算机(Ubuntu 16.04,64位)上,安装了MongoDB,完成了所有必要步骤,直到npm run only-oncegulp 。 但是,我遇到了与其他机器相同的Map错误。 只有在浏览器中生成的错误消息有所不同-

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

这与@augmt今天
因为即使在新安装mongo的新机器上,我也按照步骤进行操作。

另外,在我的情况下,更改map.js 91行没有任何作用。

@BerkeleyTrue @ Manish-Giri另外,我通过将normalizr从2.3.0降级到2.2.1来解决我的问题。

如果可以采取任何措施来验证数据库的完整性,请告诉我。

@augmt那也可能是原因

由于该错误与OP无关。 结束于#12103

map.js Chaning Line 91解决了我的挑战...

manifiedt-rev.json的目的是什么?

@fizzvr请继续#12103

此页面是否有帮助?
0 / 5 - 0 等级