【问题标题】:meteor is not starting流星没有开始
【发布时间】:2013-06-01 22:11:35
【问题描述】:

我在启动 Meteor 示例时遇到问题。 这就是我在应用程序文件夹中输入meteor 时得到的结果

    [[[[[ ~/parties ]]]]]

    Unexpected mongo exit code 100. Restarting.
    Unexpected mongo exit code 100. Restarting.
    Unexpected mongo exit code 100. Restarting.
    Can't start mongod

    MongoDB had an unspecified uncaught exception.
    Check to make sure that MongoDB is able to write to its database directory.

我已经尝试过 meteor reset 并删除 .meteor/local/db/mongo.lock - 没有任何变化

我试着输入mongod

    mongod --help for help and startup options
    Sun Jun  2 00:00:39.080 [initandlisten] MongoDB starting : pid=1962 port=27017                                                   dbpath=/data/db/ 64-bit host=orion
    Sun Jun  2 00:00:39.081 [initandlisten] db version v2.4.3
    Sun Jun  2 00:00:39.081 [initandlisten] git version: fe1743177a5ea03e91e0052fb5e2cb2945f6d95f
    Sun Jun  2 00:00:39.081 [initandlisten] build info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49
    Sun Jun  2 00:00:39.081 [initandlisten] allocator: tcmalloc
    Sun Jun  2 00:00:39.081 [initandlisten] options: {}
    Sun Jun  2 00:00:39.083 [initandlisten] exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid, terminating
    Sun Jun  2 00:00:39.083 dbexit: 
    Sun Jun  2 00:00:39.083 [initandlisten] shutdown: going to close listening sockets...
    Sun Jun  2 00:00:39.083 [initandlisten] shutdown: going to flush diaglog...
    Sun Jun  2 00:00:39.083 [initandlisten] shutdown: going to close sockets...
    Sun Jun  2 00:00:39.083 [initandlisten] shutdown: waiting for fs preallocator...
    Sun Jun  2 00:00:39.083 [initandlisten] shutdown: lock for final commit...
    Sun Jun  2 00:00:39.083 [initandlisten] shutdown: final commit...
    Sun Jun  2 00:00:39.083 [initandlisten] shutdown: closing all files...
    Sun Jun  2 00:00:39.083 [initandlisten] closeAllFiles() finished
    Sun Jun  2 00:00:39.083 [initandlisten] shutdown: removing fs lock...
    Sun Jun  2 00:00:39.084 dbexit: really exiting now

但是,当我使用 sudo service mongodb stop 或 start 时,一切正常,我可以查询数据库

    MongoDB shell version: 2.4.3
    connecting to: test
    > db.test.save( { a: 1 } )
    > db.test.find()
    { "_id" : ObjectId("51aa70cc07bf3387b90934ce"), "a" : 1 }

如果重要的话,我使用的是 Ubuntu 12.04 (VPS)

【问题讨论】:

  • 您是否使用 sudo 创建了流星应用程序?也许该文件夹的权限错误。输入 ls -la 。并检查当前文件夹是否等于您的用户(whoami)
  • @gabrielhpugliese 我刚刚用 sudo 创建了一个新应用程序。我现在需要使用sudo meteor 启动流星,否则会显示错误Error: EACCES, permission denied '/home/alexander/permissiontest/.meteor/local'。但即使我使用 sudo - 也没有任何变化。我仍然收到Unexpected mongo exit code 100. Restarting.
  • 好吧,根据您的日志,mongod 无法启动的原因是错误的 LC_ALL 语言环境值。在启动 mongod 之前尝试执行“export LC_ALL=C”。相关问题in bugtracker.
  • @4pcbr 你应该把它写成答案——它工作得很好!非常感谢!

标签: mongodb meteor


【解决方案1】:

根据您的日志,mongod 无法启动的原因是错误的 LC_ALL 语言环境值。在启动 mongod 之前尝试执行“export LC_ALL=C”。相关问题in bugtracker

【讨论】:

  • 这有帮助。谢谢。你能解释一下它的作用吗?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-09-03
  • 1970-01-01
  • 1970-01-01
  • 2023-04-03
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多