question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Verifying Deployment: FAILED, Too much time spent restarting

See original GitHub issue

Mup version (mup --version): 1.4.3

Mup config (Use mup validate --show --scrub to remove most of the sensitive information)

{
  "servers": {
    "one": {
      "host": "1.2.3.4",
      "username": "username"
    }
  },
  "app": {
    "name": "my-app",
    "path": "../",
    "servers": {
      "one": {}
    },
    "buildOptions": {
      "serverOnly": true
    },
    "env": {
      "ROOT_URL": "https://subdomain.host.com",
    },
    "docker": {
      "image": "abernix/meteord:node-8.4.0-base",
    },
    "enableUploadProgressBar": true,
    "deployCheckWaitTime": 120,
    "type": "meteor"
  }
}

Output of command (use the --verbose option. Remember to remove sensitive information)

[x.x.x.x] - Start Meteor: SUCCESS
[x.x.x.x] - Verifying Deployment
Container has no IP Address, likely from it restarting.
Container has no IP Address, likely from it restarting.
Container has no IP Address, likely from it restarting.
Container has no IP Address, likely from it restarting.
Container has no IP Address, likely from it restarting.
Container has no IP Address, likely from it restarting.
Container has no IP Address, likely from it restarting.
Container has no IP Address, likely from it restarting.
Container has no IP Address, likely from it restarting.
Container has no IP Address, likely from it restarting.
Too much time spent restarting.
=> Container status:
restarted: 0 times {"Bridge":"","SandboxID":"87813fd3f9a892e2cf669886672ae86bb4e0a45dea7d25a0f5d36974335f0eff","HairpinMode":false,"LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"Ports":{"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"3001"}]},"SandboxKey":"/var/run/docker/netns/87813fd3f9a8","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null,"EndpointID":"","Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","MacAddress":"","Networks":{"services":{"IPAMConfig":null,"Links":null,"Aliases":["14090afa0adb"],"NetworkID":"8239e1def5abf3c891166ee979b5c5709f9088599b2f79eea957089599912400","EndpointID":"33074af4c5651621f237ca4558ecc85d7acebead47b624cd6c135906d935e590","Gateway":"172.20.0.1","IPAddress":"172.20.0.5","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:14:00:05","DriverOpts":null}}} {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":22295,"ExitCode":0,"Error":"","StartedAt":"2018-03-13T09:13:09.476686298Z","FinishedAt":"0001-01-01T00:00:00Z"}
=> Logs:
=> Starting meteor app on port:80

To see more logs type 'mup logs --tail=200'

 
=> Redeploying previous version of the app
 
[46.101.227.244] x Verifying Deployment: FAILED
	
	      ------------------------------------STDERR------------------------------------
	      Too much time spent restarting.
	=> Starting meteor app on port:80
	 
	=> Redeploying previous version of the app
	 
	
	      ------------------------------------STDOUT------------------------------------
	      Container has no IP Address, likely from it restarting.
	Container has no IP Address, likely from it restarting.
	Container has no IP Address, likely from it restarting.
	Container has no IP Address, likely from it restarting.
	Container has no IP Address, likely from it restarting.
	Container has no IP Address, likely from it restarting.
	Container has no IP Address, likely from it restarting.
	Container has no IP Address, likely from it restarting.
	Container has no IP Address, likely from it restarting.
	Container has no IP Address, likely from it restarting.
	=> Container status:
	restarted: 0 times {"Bridge":"","SandboxID":"87813fd3f9a892e2cf669886672ae86bb4e0a45dea7d25a0f5d36974335f0eff","HairpinMode":false,"LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"Ports":{"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"3001"}]},"SandboxKey":"/var/run/docker/netns/87813fd3f9a8","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null,"EndpointID":"","Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"IPAddress":"","IPPrefixLen":0,"IPv6Gateway":"","MacAddress":"","Networks":{"services":{"IPAMConfig":null,"Links":null,"Aliases":["14090afa0adb"],"NetworkID":"8239e1def5abf3c891166ee979b5c5709f9088599b2f79eea957089599912400","EndpointID":"33074af4c5651621f237ca4558ecc85d7acebead47b624cd6c135906d935e590","Gateway":"172.20.0.1","IPAddress":"172.20.0.5","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:14:00:05","DriverOpts":null}}} {"Status":"running","Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"Dead":false,"Pid":22295,"ExitCode":0,"Error":"","StartedAt":"2018-03-13T09:13:09.476686298Z","FinishedAt":"0001-01-01T00:00:00Z"}
	=> Logs:
	
	To see more logs type 'mup logs --tail=200'
	
	
	      ------------------------------------------------------------------------------

Output of mup status (Only if using mup 1.4 or newer).

=> Servers
  - 46.101.227.244: Ubuntu 16.04

=> Docker Status
 - 46.101.227.244: 17.12.1-ce Running

=> Meteor Status
 - x.x.x.x: running 
    Created at 2018-03-13T09:20:33.500412468Z
    Restarted 0 times
    ENV: 
     - ROOT_URL=https://xxxx
     - MONGO_URL=mongodb://mongodb:27017/xxxx
     - MONGO_OPLOG_URL=mongodb://mongodb:27017/local
     - PORT=80
     - NODE_ENV=production
     - METEOR_SETTINGS={"public":{}}
     - PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
     - METEORD_DIR=/opt/meteord
     - NODE_VERSION=8.4.0
    Published Ports:
     - 80/tcp => 3001
    App running at http://x.x.x.x:80
     - Available in app's docker container: true
     - Available on server: true
     - Available on local computer: false

Seems like the issue is the ip check in src/plugins/meteor/assets/meteor-deploy-check.sh

if [ "$noIPCount" "==" "$MAX_NO_IP_COUNT" ]; then
      echo "Too much time spent restarting." 1>&2
      revert_app
      exit 1
    fi

If I delete the container and images on the server before doing mup deploy so there is nothing to revert to when we hit MAX_NO_IP_COUNT I still get Verifying Deployment: FAILED but the application is deployed.

/André

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
akkerdcommented, Apr 13, 2018

@andrelillvede the solution that @zodern gave worked for me. It seems to be the same problem with the docker version in your configuration file. As you are using Meteor 1.4, change your docker version to: "docker": { "image": "abernix/meteord:base", }, or to automatically detects the needed node version use: "docker": { "image": "zodern/meteor:root", }, Then run: mup reconfig mup deploy

1reaction
andrelillvedecommented, Apr 3, 2018

Any updates on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Verifying Deployment: FAILED using MUP for my meteor app
I have a problem deploying my app on my VPS. Know that i tried to do it many time on different versions of...
Read more >
Troubleshoot EC2/On-Premises deployment issues
The causes of many deployment failures can be identified by reviewing the log files created during the deployment process. For simplicity, we recommend ......
Read more >
Kubernetes CrashLoopBackOff Error: What It Is and How to Fix It
1. Check for “Back Off Restarting Failed Container” · 2. Check Logs From Previous Container Instance · 3. Check Deployment Logs.
Read more >
Troubleshoot pipeline runs - Azure DevOps - Microsoft Learn
A pipeline may run for a long time and then fail due to job time-out. Job timeout closely depends on the agent being...
Read more >
Quick Tips to Troubleshoot Common SmartDeploy Errors
If it's absolutely dead, then you may have to open the ports required by SmartDeploy. You may also need to check that any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found