zodern / meteor-up

Production Quality Meteor Deployment to Anywhere
http://meteor-up.com/
MIT License
1.27k stars 281 forks source link

Verifying Deployment fails, connection refused #1220

Open DjoleJ opened 3 years ago

DjoleJ commented 3 years ago

Mup version (mup --version): 1.5.3

Mup config

{
  "servers": {
    "one": {
      "host": "1.2.3.4",
      "username": "root"
    }
  },
  "app": {
    "name": "my-app",
    "path": "../",
    "servers": {
      "one": {}
    },
    "buildOptions": {
      "serverOnly": true,
      "cleanAfterBuild": true
    },
    "env": {
      "DISABLE_WEBSOCKETS": true,
      "ROOT_URL": "https://subdomain.host.com",
      "MONGO_URL": "mongodb://user:pass@subdomain.subdomain.host.com/database?autoReconnect=true&connectTimeout=60000&authSource=admin",
      "PORT": 4000
    },
    "docker": {
      "image": "abernix/meteord:node-12.20.0-base",
      "stopAppDuringPrepareBundle": true,
      "imagePort": 3000
    },
    "deployCheckWaitTime": 300,
    "enableUploadProgressBar": true,
    "type": "meteor"
  }
}

Output of command

using image
removing last
Image mup-trader-app:latest
Volume
Removing docker containers. Errors about nonexistent endpoints and containers are normal.
Trader-App
Error response from daemon: endpoint Trader-App not found
Error: No such container: Trader-App-frontend
Error response from daemon: endpoint Trader-App-frontend not found
Error: No such container: Trader-App-nginx-letsencrypt
Error response from daemon: endpoint Trader-App-nginx-letsencrypt not found
Error: No such container: Trader-App-nginx-proxy
Error response from daemon: endpoint Trader-App-nginx-proxy not found
Finished removing docker containers
ed2eea3c723db0ffef6fe639e9730e5e764837d598c3aa2a78a656aa799cd39b
Ran abernix/meteord:node-12.20.0-base
[app.coinpaymentprocessor.org] - Start Meteor: SUCCESS
[app.coinpaymentprocessor.org] - Verifying Deployment
IP: 172.17.0.2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
IP: 172.17.0.2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 172.17.0.2 port 3000: Connection refused
=> Container status:
restarted: 0 times {"Bridge":"","SandboxID":"08ecc068994f43a689ea41c5a09201a447e495d90354ae0ab0dc582e02bca22c","HairpinMode":false,"LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"Ports":{"3000/tcp":[{"HostIp":"0.0.0.0","HostPort":"4000"}],"80/tcp":null},"SandboxKey":"/var/run/docker/netns/08ecc068994f","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null,"EndpointID":"b8c2f89e2a2c453eef714374104afd74a44fa32eba988ca9fdcbf5fbcfd633f0","Gateway":"172.17.0.1","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"172.17.0.2","IPPrefixLen":16,"IPv6Gateway":"","MacAddress":"02:42:ac:11:00:02","Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"ad29fe7ec6e92b29b0cf50f2175c2faf13475e966873ed90c24e592e3f7faeb7","EndpointID":"b8c2f89e2a2c453eef714374104afd74a44fa32eba988ca9fdcbf5fbcfd633f0","Gateway":"172.17.0.1","IPAddress":"172.17.0.2","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:02","DriverOpts":null}}} {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":22620,"ExitCode":0,"Error":"","StartedAt":"2021-01-15T14:29:13.800512919Z","FinishedAt":"0001-01-01T00:00:00Z"}
=> Logs:
=> Starting meteor app on port:3000
jirikrepl commented 3 years ago

I started to see the same issue today. Strangely I used some older mup 1.4.6 and had the same error as you. Then I updated to to 1.5.3 and still see the same error

EDIT: for me it seems to be fixed when I increased deployCheckWaitTime: 120 but I see you already set it to 300s http://meteor-up.com/docs.html#verifying-deployment-failed