Uploaded image for project: 'OpenVZ'
  1. OpenVZ
  2. OVZ-5807

nginx fail to restart after suspend/restore container

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: OpenVZ-legacy
    • Component/s: Containers::Kernel
    • Security Level: Public
    • Environment:
      Operating System: RHEL/CentOS 6
      Platform: x86_64 (AMD64)

      Description

      Using CentOS 6 x86_64 container + official nginx repo:
      http://wiki.nginx.org/Install#Official_Red_Hat.2FCentOS_packages

      This also happens on Ubuntu containers

      ------------------------------------------------

      [root@host ~]# vzctl exec 5002 'uname -a; nginx -v; service nginx restart'
      Linux host5002 2.6.32-042stab079.6 #1 SMP Mon Aug 26 19:47:50 MSK 2013 x86_64 x86_64 x86_64 GNU/Linux
      nginx version: nginx/1.4.2
      Stopping nginx: [ OK ]
      Starting nginx: [ OK ]
      [root@dish1 ~]# vzctl suspend 5002
      Setting up checkpoint...
      suspend...
      dump...
      kill...
      Checkpointing completed successfully
      Unmounting file system at /vz/root/5002
      Unmounting device /dev/ploop25463
      Container is unmounted
      [root@host ~]# vzctl restore 5002
      Restoring container ...
      Opening delta /vz/private/5002/root.hdd/root.hdd
      Adding delta dev=/dev/ploop25463 img=/vz/private/5002/root.hdd/root.hdd (rw)
      /dev/ploop25463p1: clean, 22682/6553600 files, 629630/26213883 blocks
      Mounting /dev/ploop25463p1 at /vz/root/5002 fstype=ext4 data='balloon_ino=12,'
      Container is mounted
      undump...
      Adding IP address(es): 192.168.0.102
      Setting CPU units: 1000
      Setting CPUs: 8
      resume...
      Container start in progress...
      Restoring completed successfully
      [root@host ~]# vzctl exec 5002 'uname -a; nginx -v; service nginx restart'
      Linux ud2.tacodrive.mx 2.6.32-042stab079.6 #1 SMP Mon Aug 26 19:47:50 MSK 2013 x86_64 x86_64 x86_64 GNU/Linux
      nginx version: nginx/1.4.2
      nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
      nginx: configuration file /etc/nginx/nginx.conf test failed

      ------------------------------------------------

      Related:
      http://forum.nginx.org/read.php?2,191227,192355#msg-192355

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              khorenko Konstantin Khorenko
              Reporter:
              jp@pcel.com JP Espinosa
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: