【问题标题】:Meteor Up - Error: connect ECONNREFUSED 192.168.100.12:Meteor Up - 错误:连接 ECONNREFUSED 192.168.100.12:
【发布时间】:2023-03-16 18:45:01
【问题描述】:

我有一个基于 Angular 1.3 + Meteor 1.5.2.2 的 Meteor 应用程序。 我正在使用 Ubuntu 17。 我试图先在本地机器上部署我的 Meteor 应用程序,然后再使用 Meteor Up 进行实时服务器。 但是我在运行mup setup 命令时遇到了这个问题

martinihenry@martinihenry:~/mytestapp-prod/.deploy$ mup setup

Started TaskList: Setup Docker
[192.168.100.12] - Setup Docker
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 192.168.100.12:22
    at Object.exports._errnoException (util.js:907:11)
    at exports._exceptionWithHostPort (util.js:930:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1078:14)

这是我的 mup.json:

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

  app: {
    // TODO: change app name and path
    name: 'mytestapp-prod',
    path: '../',

    servers: {
      one: {},
    },

    buildOptions: {
      serverOnly: true,
    },

    env: {
      // TODO: Change to your app's url
      // If you are using ssl, it needs to start with https://
      ROOT_URL: '192.168.100.12:3000',
      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 'kadirahq/meteord' if your app is using Meteor 1.3 or older
      image: 'abernix/meteord:base',
    },

    // Show progress bar while uploading bundle to server
    // You might need to disable it on CI servers
    enableUploadProgressBar: true
  },

  mongo: {
    version: '3.4.1',
    servers: {
      one: {}
    }
  }
};

这里有什么问题?

【问题讨论】:

    标签: meteor meteor-up mup


    【解决方案1】:

    您的机器上似乎没有运行 sshd,或者您没有为 root 启用远程 ssh 访问。

    您需要编辑/etc/ssh/sshd_config,并注释掉以下行:

    PermitRootLogin without-password
    

    在其下方,添加以下行:

    PermitRootLogin yes
    

    然后重启SSH:

    service ssh restart
    

    【讨论】:

    • service ssh restart 说:Failed to add /run/systemd/ask-password to directory watch: No space left on device
    • 216 GB/251 GB 可用
    • 分区呢?其中之一是否已满df -h
    • 没有分区,单个磁盘和驱动器
    • 磁盘空间仍有可能耗尽。例如,如果您有很多小文件,它可能会用完 inode。详情看这篇文章ivankuznetsov.com/2010/02/…
    【解决方案2】:

    我知道这已经晚了,但这是一个已知且可重现的错误,由 inotfiy-watch 使用所有可用的手表插槽导致,虽然非常具有误导性,但它实际上与磁盘空间完全无关。

    简单的解决方法?增加观看时段:

    sudo -i
    echo 1048576 > /proc/sys/fs/inotify/max_user_watches
    exit
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-04-15
      • 1970-01-01
      • 1970-01-01
      • 2019-08-07
      • 2019-03-15
      • 2015-07-27
      • 2014-05-20
      相关资源
      最近更新 更多