正在尝试部署Meteor应用程序--mup设置错误

Trying to deploy a Meteor app -- mup setup error

本文关键字:应用程序 --mup 设置 错误 Meteor 部署      更新时间:2023-09-26

有人知道我这里缺少什么吗?我在Windows机器上。这种情况发生在我自己创建的应用程序上。我在Meteor的hello world应用程序上也遇到了同样的错误。提前谢谢。

mup-init工作正常,但当我尝试运行mup-setup时,我收到了这个错误消息。

  • 正在安装Node.jsevents.js:141投掷者;//未处理的"错误"事件^错误:所有配置的身份验证方法都失败在tryNextAuth(C:''Users''Justin''AppData''Roaming''npm''node_modules''mup''node_models''nodemiral''node_mdules''sh2''lib''client.js:290:17)在SSH2Stream.o_USERAUTH_FAILURE(C:''Users''Justin''AppData''Roaming''npm''node_modules''mup''node_modeles''nodemiral''node_mdules''sh2''lib''client.js:469:5)在emitTwo(events.js:87:13)位于SSH2Stream.emit(events.js:172:7)在parsePacket(C:''Users''Justin''AppData''Roaming''npm''node_modules''mup''node_modeles''nodemiral''node_modules''sh2'' node_modules ''sh2-streams''lib''ssh.js:3652:10)在SSH2Stream_transform(C:''Users''Justin''AppData''Roaming''npm''node_modules''mup''node_modeles''nodemiral'' node_modules ''sh2'' node_models''ssh2 streams''lib''ssh.js:5555:13)位于SSH2Stream.Transform.read(_stream_Transform.js:167:10)在SSH2Stream_read(C:''Users''Justin''AppData''Roaming''npm''node_modules''mup''node_modeles''nodemiral'' node_modules ''sh2'' node_models''ssh2 streams''lib''ssh.js:213:15)位于SSH2Stream.Transform.write(_stream_Transform.js:155:12)在doWrite(_stream_writable.js:292:12)

//---------------以下是我的mup.json文件---------------中的信息

{
  // Server authentication info
  "servers": [
    {
      "host": "xxx.xxx.xxx.xx",
      "username": "xxxxxx",
      "password": "xxxxxx"
      // or pem file (ssh based authentication)
      //"pem": "~/.ssh/id_rsa"
    }
  ],
  // Install MongoDB in the server, does not destroy local MongoDB on future setup
  "setupMongo": false,
  // WARNING: Node.js is required! Only skip if you already have Node.js installed on server.
  "setupNode": true,
  // WARNING: If nodeVersion omitted will setup 0.10.36 by default. Do not use v, only version number.
  "nodeVersion": "0.10.40",
  // Install PhantomJS in the server
  "setupPhantom": true,
  // Show a progress bar during the upload of the bundle to the server.
  // Might cause an error in some rare cases if set to true, for instance in Shippable CI
  "enableUploadProgressBar": true,
  // Application name (No spaces)
  "appName": "alp-new",
  // Location of app (local directory)
  "app": ".",
  // Configure environment
  "env": {
    "ROOT_URL": "http://xxxx.xxxx.com/",
    "MONGO_URL": "mongodb://xxxxxx:xxxxxx@candidate.55.mongolayer.com:10503,candidate.16.mongolayer.com:11209/alp-telescope?replicaSet=set-5634fd304bed0503ed000ade"
  },
  // Meteor Up checks if the app comes online just after the deployment
  // before mup checks that, it will wait for no. of seconds configured below
  "deployCheckWaitTime": 30
}

Perhttps://github.com/arunoda/meteor-up#ssh-基于sudo的身份验证,您需要确保密钥文件不受密码短语的保护。不确定您是否正在部署到Digital Ocean,但无论如何,本文仍然可以作为一个很好的参考:

http://meteortips.com/deployment-tutorial/digitalocean-part-1/