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)
-
External issue URL:
-
External issue ID:2729
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
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
- duplicates
-
OVZ-5587 incorrect bind() syscall behavior if address already in use and container was resumed
- Open