Archive 07/10/2020.

Boder device configuation error

elkanawy

Hi, I get this error when trying to run the below command
command:-> sudo ethos_uhcpd.py m3-97 tap0 2001:660:5307:3105::1/64

Error:->
ioctl(TUNSETIFF): Device or resource busy

Got unexpected exception:

Traceback (most recent call last):

  • File “/sbin/ethos_uhcpd.py”, line 254, in main*
  • tap_create(opts.tap, opts.ipv6_prefix, user)*
  • File “/sbin/ethos_uhcpd.py”, line 80, in tap_create*
  • check_call([‘ip’, ‘tuntap’, ‘add’, tap, ‘mode’, ‘tap’, ‘user’, user])*
  • File “/sbin/ethos_uhcpd.py”, line 58, in check_call*
  • return subprocess.check_call(args, *procargs, *prockwargs)
  • File “/usr/lib/python2.7/subprocess.py”, line 186, in check_call*
  • raise CalledProcessError(retcode, cmd)*
    CalledProcessError: Command ‘[u’ip’, u’tuntap’, u’add’, ‘tap0’, u’mode’, u’tap’, u’user’, ‘funa53776a0bd’]’ returned non-zero exit status 1

Command ‘[u’ip’, u’tuntap’, u’add’, ‘tap0’, u’mode’, u’tap’, u’user’, ‘funa53776a0bd’]’ returned non-zero exit status 1

Cleanup

fsaintma

Hi @elkanawy
It’s because you try to use tap0 network interface name and it’s already used by another user. View the interfaces already used with this command
<login>@<site>:~$ ip addr show | grep tap
Then choose one that is not used.
Best regards.

elkanawy

Thank you fsaintma, i think my trouble is that i find it hard to know which interface is not used. Is it the one not shown when a used <login>@<site>:~$ ip addr show | grep tap command or the one that states interface down?

fsaintma

@elkanawy
You are right it’s not really clear :slight_smile: It’s better with an example:

saintmar@grenoble:~$ ip addr show | grep tap
768: tap5: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
1827: tap55: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
1847: tap13: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
313: tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
316: tap1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000

With this example you can see that tap[0,1,5,13,55] are already used. So you can choose tap[2,3,4,6, …]

Good continuation.
Best regards.

elkanawy

Now it is very clear. Thank you :slight_smile: