Error while setting TS (binding). ERR: Address already in use (3)

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
Richard70
Posts: 52
Joined: Sun Dec 23, 2018 9:53 am

Error while setting TS (binding). ERR: Address already in use (3)

Post by Richard70 » Wed Apr 08, 2020 7:27 pm

Hi,

from time to time I have issues to start some nodes (here csr1000v 16x). This tends to happen when I try to start manually (selecting them) 3 or 4 nodes at the same time (out of 60).
That can happen even when there are no or very few other nodes running at the same time.
I get in the wrapper file the following logs:
root@eve-ng:/opt/unetlab/tmp/0/577a08b0-6cf3-4e7f-a2ea-b9fd10d1901c/18# more wrapper.txt
8/3 19:13:57.776 INF Tennant_id = 0
8/3 19:13:57.776 INF Device_id = 18
8/3 19:13:57.776 ERR Error while setting TS (binding). ERR: Address already in use (3).
8/3 19:13:57.776 ERR Failed to open TCP socket (3).

If I close the lab and start again, that works.
Tried to search for this error message in the forums, with no luck.
Any idea ?
Thanks.

Richard70
Posts: 52
Joined: Sun Dec 23, 2018 9:53 am

Re: Error while setting TS (binding). ERR: Address already in use (3)

Post by Richard70 » Thu Apr 09, 2020 5:30 pm

Hi,
I'm now completely stuck with these nodes , impossible to start them.
I don't have any error log in wrapper.txt anylonger:
root@eve-ng:/opt/unetlab/tmp/0/577a08b0-6cf3-4e7f-a2ea-b9fd10d1901c/18# more wrapper.txt
9/3 17:24:25.809 INF Tennant_id = 0
9/3 17:24:25.809 INF Device_id = 18
9/3 17:24:25.809 INF TS configured.
but the nodes simply do not start.
A fresh added node with the same image works fine.
I would really appreciate help.
Thanks

added note: wrapper logs:
---------- manual start of node 18 (never starts) ----------
Apr 09 19:24:25 INFO: starting /opt/unetlab/wrappers/qemu_wrapper -T 0 -D 18 -t "DC1_MPLS" -F /opt/qemu-4.1.0/bin/qemu-system-x86_64 -d 0 -- -nographic -device vmxnet3,netdev=net0,mac=50:00:00:12:00:00 -netdev tap,id=net0,ifname=vunl0_18_0,script=no -device vmxnet3,netdev=net1,mac=50:00:00:12:00:01 -netdev tap,id=net1,ifname=vunl0_18_1,script=no -device vmxnet3,netdev=net2,mac=50:00:00:12:00:02 -netdev tap,id=net2,ifname=vunl0_18_2,script=no -device vmxnet3,netdev=net3,mac=50:00:00:12:00:03 -netdev tap,id=net3,ifname=vunl0_18_3,script=no -smp 1 -m 4096 -name DC1_MPLS -uuid 49a7278a-394c-4d75-af32-eef4d935c21f -drive file=virtioa.qcow2,if=virtio,bus=0,unit=0,cache=none -machine type=pc,accel=kvm -cpu host -serial mon:stdio -nographic -no-user-config -nodefaults -rtc base=utc > /opt/unetlab/tmp/0/577a08b0-6cf3-4e7f-a2ea-b9fd10d1901c/18/wrapper.txt 2>&1 &
Apr 09 19:24:25 INFO: CWD is /opt/unetlab/tmp/0/577a08b0-6cf3-4e7f-a2ea-b9fd10d1901c/18
Apr 09 19:24:25 INFO: sysctl -w net.ipv6.conf.vunl0_18_3.disable_ipv6=1
Apr 09 19:24:25 INFO: tunctl -u unl0 -g root -t vunl0_18_3 2>&1
Apr 09 19:24:25 INFO: sysctl -w net.ipv6.conf.vunl0_18_2.disable_ipv6=1
Apr 09 19:24:25 INFO: tunctl -u unl0 -g root -t vunl0_18_2 2>&1
Apr 09 19:24:25 INFO: sysctl -w net.ipv6.conf.vunl0_18_1.disable_ipv6=1
Apr 09 19:24:25 INFO: tunctl -u unl0 -g root -t vunl0_18_1 2>&1
Apr 09 19:24:25 INFO: sysctl -w net.ipv6.conf.vunl0_18_0.disable_ipv6=1
Apr 09 19:24:25 INFO: tunctl -u unl0 -g root -t vunl0_18_0 2>&1



---------- manual start & stop of node 59 (fresh one) : OK ----------
Apr 09 19:08:46 INFO: stopping fuser -k -TERM /opt/unetlab/tmp/0/577a08b0-6cf3-4e7f-a2ea-b9fd10d1901c/59 > /dev/null 2>&1
Apr 09 19:08:37 INFO: starting /opt/unetlab/wrappers/qemu_wrapper -T 0 -D 59 -t "CSR" -F /opt/qemu-4.1.0/bin/qemu-system-x86_64 -d 0 -- -nographic -device vmxnet3,netdev=net0,mac=50:00:00:3b:00:00 -netdev tap,id=net0,ifname=vunl0_59_0,script=no -device vmxnet3,netdev=net1,mac=50:00:00:3b:00:01 -netdev tap,id=net1,ifname=vunl0_59_1,script=no -device vmxnet3,netdev=net2,mac=50:00:00:3b:00:02 -netdev tap,id=net2,ifname=vunl0_59_2,script=no -device vmxnet3,netdev=net3,mac=50:00:00:3b:00:03 -netdev tap,id=net3,ifname=vunl0_59_3,script=no -smp 1 -m 4096 -name CSR -uuid a1b4a0cc-8cd9-4bb6-922c-aeeebdc3f0c2 -drive file=virtioa.qcow2,if=virtio,bus=0,unit=0,cache=none -machine type=pc,accel=kvm -cpu host -serial mon:stdio -nographic -no-user-config -nodefaults -rtc base=utc > /opt/unetlab/tmp/0/577a08b0-6cf3-4e7f-a2ea-b9fd10d1901c/59/wrapper.txt 2>&1 &
Apr 09 19:08:37 INFO: CWD is /opt/unetlab/tmp/0/577a08b0-6cf3-4e7f-a2ea-b9fd10d1901c/59
Apr 09 19:08:37 INFO: sysctl -w net.ipv6.conf.vunl0_59_3.disable_ipv6=1
Apr 09 19:08:37 INFO: tunctl -u unl0 -g root -t vunl0_59_3 2>&1
Apr 09 19:08:36 INFO: sysctl -w net.ipv6.conf.vunl0_59_2.disable_ipv6=1
Apr 09 19:08:36 INFO: tunctl -u unl0 -g root -t vunl0_59_2 2>&1
Apr 09 19:08:36 INFO: sysctl -w net.ipv6.conf.vunl0_59_1.disable_ipv6=1
Apr 09 19:08:36 INFO: tunctl -u unl0 -g root -t vunl0_59_1 2>&1
Apr 09 19:08:36 INFO: sysctl -w net.ipv6.conf.vunl0_59_0.disable_ipv6=1
Apr 09 19:08:36 INFO: tunctl -u unl0 -g root -t vunl0_59_0 2>&1

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

Re: Error while setting TS (binding). ERR: Address already in use (3)

Post by ecze » Thu Apr 09, 2020 9:18 pm

It happens

Community use static ports... means if you have already a linux process using this port -> issue...

Pro use dynamic port (always looking for a free port ) and do not suffer of such situation....

E.

Richard70
Posts: 52
Joined: Sun Dec 23, 2018 9:53 am

Re: Error while setting TS (binding). ERR: Address already in use (3)

Post by Richard70 » Thu Apr 09, 2020 11:11 pm

Fixed (my bad)
Sorry.

Post Reply