All configured authentication methods failed in MUP

I have problem on new app hosting (but old hosting, it work fine).
I base on

  • Mac M1 12.5
  • Mup 1.5.9
  • Meteor 1.4
Error: All configured authentication methods failed
    at doNextAuth (/opt/homebrew/lib/node_modules/mup/node_modules/ssh2-classic/lib/client.js:413:17)
    at tryNextAuth (/opt/homebrew/lib/node_modules/mup/node_modules/ssh2-classic/lib/client.js:484:5)
    at SSH2Stream.onUSERAUTH_FAILURE (/opt/homebrew/lib/node_modules/mup/node_modules/ssh2-classic/lib/client.js:597:5)
    at SSH2Stream.emit (events.js:400:28)
    at parsePacket (/opt/homebrew/lib/node_modules/mup/node_modules/ssh2-streams/lib/ssh.js:3682:10)
    at SSH2Stream._transform (/opt/homebrew/lib/node_modules/mup/node_modules/ssh2-streams/lib/ssh.js:701:13)
    at SSH2Stream.Transform._read (internal/streams/transform.js:205:10)
    at SSH2Stream._read (/opt/homebrew/lib/node_modules/mup/node_modules/ssh2-streams/lib/ssh.js:253:15)

But I can login server with ssh root@x.x.x.x :+1:

module.exports = {
  servers: {
      one: {
          // TODO: set host address, username, and authentication method
          host: "x.x.x.",
          username: "root",
          pem: "~/.ssh/id_rsa"
          // password: ""
          // or neither for authenticate from ssh-agent
      }
  },

Now I could fixed

Mup sucks and is overkill for what is literally a few lines…

To build and deploy you do the following:

  • Build your app: meteor build ../build --architecture os.linux.x86_64
  • Deploy it: scp ../build/app.tar.gz user@server:~/
    • (Optional Backup to instant rollback): sudo cp -R bundle bundle-backup/
  • Unpack it on server: tar -zxf app.tar.gz
  • cd into bundle directory and run install: (cd programs/server && npm install)
  • Run: node main.js (do this inside a screen and dettach ctrl+a d it so it runs in the background with screen and doesn’t close)

Important: For first time configuration, you just tell nginx to run localhost:your-port as the upstream and export shell variables:

  $ export MONGO_URL='mongodb://user:password@host:port/databasename'
  $ export ROOT_URL='http://example.com'
  $ export MAIL_URL='smtp://user:password@mailhost:port/'

Enjoy

Thanks for your reply.
Now deploying is OK, but don’t work on browser.

Did the db connection work? Did you whitelist your droplet’s public ip?

It have problem on PORT: 556.
It work fine when I changed this PORT.
I don’t understand :joy: