【问题标题】:Deploy Meteor Digital Ocean Ubuntu - No such container error部署 Meteor Digital Ocean Ubuntu - 没有这样的容器错误
【发布时间】:2017-11-30 19:03:06
【问题描述】:

通过将 Meteor 应用程序部署到 Digital Ocean Ubuntu 16.04,我遇到了一个问题。我的 Meteor 版本是 METEOR@1.5.2.2

mup 设置完美运行。 mup deploy 引发错误。 我用谷歌搜索了这个错误,但我找不到解决方案

    Started TaskList: Pushing Meteor App
   - Pushing Meteor App Bundle to the Server
   - Pushing Meteor App Bundle to the Server: SUCCESS
   - Prepare Bundle
   x Prepare Bundle: FAILED

    -----------------------------------STDERR-----------------------------------
    Error response from daemon: No such container: CoachingDB
    The command '/bin/sh -c cd  /built_app/programs/server &&     npm install --unsafe-perm' returned a non-zero code: 137
    Error response from daemon: No such container: CoachingDB
    Error: failed to start containers: CoachingDB
    -----------------------------------STDOUT-----------------------------------
    de-sass@4.5.2 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2017-11-29T08_58_50_441Z-debug.log
    npm WARN meteor-dev-bundle@0.0.0 No description
    npm WARN meteor-dev-bundle@0.0.0 No repository field.
    npm WARN meteor-dev-bundle@0.0.0 No license field.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 137
    npm ERR! meteor-dev-bundle@0.0.0 install: `node npm-rebuild.js`
    npm ERR! Exit status 137
    npm ERR! 
    npm ERR! Failed at the meteor-dev-bundle@0.0.0 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2017-11-29T08_58_50_609Z-debug.log

    ----------------------------------------------------------------------------

在这里你可以看到我的 mup.js 配置。我希望我配置正确

  module.exports = {
servers: {
    one: {
        // TODO: set host address, username, and authentication method
        host: 'xxx.xxx.xxx.xxx',
        username: 'root',
        // pem: './path/to/pem'
        password: 'xxx'
        // or neither for authenticate from ssh-agent
    }
},

app: {

    name: 'CoachingDB',
    path: '../',

    servers: {
        one: {},
    },

    buildOptions: {
        serverOnly: true,
    },
    env: {
        ROOT_URL: 'http://xxx.xxx.xxx.xxx/',
        MONGO_URL: 'mongodb://localhost/meteor',
    },

    // ssl: { // (optional)
    //   // Enables let's encrypt (optional)
    //   autogenerate: {
    //     email: 'email.address@domain.com',
    //     // comma separated list of domains
    //     domains: 'website.com,www.website.com'
    //   }
    // },

    docker: {
        // change to 'abernix/meteord:base' if your app is using Meteor 1.4 - 1.5
        image: 'abernix/meteord:base',
    },

    enableUploadProgressBar: true,
    deployCheckWaitTime: 180,

},

mongo: {
    version: '3.4.1',
    port: 27017,
    oplog: true,
    servers: {
        one: {}
    }
}
};

有人知道如何解决这个问题吗?

【问题讨论】:

    标签: docker meteor digital-ocean mup


    【解决方案1】:

    您可以尝试在您的情况下对我有帮助的解决方法。 我描述了它here

    【讨论】:

    • 谢谢。现在我通过将我的 Droplet 从 512MB 升级到 1GB Ram 解决了这个问题。
    猜你喜欢
    • 2016-02-02
    • 1970-01-01
    • 2020-03-25
    • 1970-01-01
    • 1970-01-01
    • 2021-02-28
    • 1970-01-01
    • 2020-10-02
    • 1970-01-01
    相关资源
    最近更新 更多