【问题标题】:Meteor: mongo exit code 48流星:mongo 退出代码 48
【发布时间】:2015-05-22 18:55:11
【问题描述】:

对我来说,在我们拥有的一台特定计算机上启动 Meteor 是不可能的。其他的都还好。它正在运行

Linux ip-10-2-103-74 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Meteor 1.0.4.1

我使用的端口上没有运行任何东西。端口已打开且可用。我每次(随机)都使用不同的端口来排除任何占用这些端口的僵尸东西。我已将所有内容更改为 777(并尝试使用 sudo 运行)以排除任何权限问题。

尝试 1:

$ meteor create fresh_project
$ cd fresh_project
$ meteor --port 3863

fresh_project: created.                       

To run your new app:                          
  cd fresh_project                            
  meteor                                      
[[[[[ ~/tests/fresh_project ]]]]]             

=> Started proxy.                             
Unexpected mongo exit code 48. Restarting.    
Unexpected mongo exit code 48. Restarting.    
Unexpected mongo exit code 48. Restarting.    
Can't start Mongo server.                     
MongoDB exited because its port was closed, or was already
taken by a previous instance of MongoDB

Check for other processes listening on port 3863
or other Meteor instances running in the same project.

单机的mongodb,顺便吐槽很多东西

$ tail -f /var/log/mongodb/mongodb.log
Thu Mar 19 14:01:25.257 [initandlisten] shutdown: waiting for fs preallocator...
Thu Mar 19 14:01:25.257 [initandlisten] shutdown: lock for final commit...
Thu Mar 19 14:01:25.257 [initandlisten] shutdown: final commit...
Thu Mar 19 14:01:25.259 [websvr] ERROR: listen(): bind() failed errno:99 Cannot assign requested address for socket: 127.0.0.1:28017
Thu Mar 19 14:01:25.264 [initandlisten] shutdown: closing all files...
Thu Mar 19 14:01:25.264 [initandlisten] closeAllFiles() finished
Thu Mar 19 14:01:25.264 [initandlisten] journalCleanup...
Thu Mar 19 14:01:25.264 [initandlisten] removeJournalFiles
Thu Mar 19 14:01:25.281 [initandlisten] shutdown: removing fs lock...
Thu Mar 19 14:01:25.281 dbexit: really exiting now

更改那里的端口也无济于事。完全杀死它 通过清除删除 mongodb,重新安装流星,创建一个新项目,这些都不起作用。我可能已经尝试了我能找到的每个错误报告中的每一步。

尝试 2:

~/myapp$ MONGO_URL=mongodb://localhost:27017/myapp meteor run --port 4243
$ ./run.sh 
[[[[[ ~/myapp ]]]]]                           

=> Started proxy.                             
W20150319-16:03:52.596(1)? (STDERR) Error: listen EADDRNOTAVAIL
W20150319-16:03:52.607(1)? (STDERR)     at errnoException (net.js:905:11)
W20150319-16:03:52.608(1)? (STDERR)     at Server._listen2 (net.js:1024:19)
W20150319-16:03:52.608(1)? (STDERR)     at listen (net.js:1065:10)
W20150319-16:03:52.608(1)? (STDERR)     at net.js:1147:9
W20150319-16:03:52.608(1)? (STDERR)     at dns.js:72:18
W20150319-16:03:52.608(1)? (STDERR)     at process._tickCallback (node.js:442:13)
=> Started your app.

=> App running at: http://localhost:4243/

但是,无论是从计算机本身还是从外部世界都无法访问该应用程序。

【问题讨论】:

  • 我知道这是旧的,但由于我有类似的错误,我想我会问你是否找到了解决方案。看来您的 mongodb.log 会询问 127.0.0.1:28017 上是否有任何内容,所以这可能是问题所在?谢谢。
  • @ChipCastle 已发布答案。 :)

标签: node.js mongodb meteor


【解决方案1】:

问题是环回接口没有启动。所以根本不能绑定任何端口。

【讨论】:

    猜你喜欢
    • 2013-03-14
    • 2015-12-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-09
    • 1970-01-01
    • 2017-06-08
    • 2015-07-15
    相关资源
    最近更新 更多