Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLLite Error #168

Open
nullpointertong opened this issue Apr 18, 2023 · 0 comments
Open

SQLLite Error #168

nullpointertong opened this issue Apr 18, 2023 · 0 comments

Comments

@nullpointertong
Copy link

I'm getting the same error as: #104

I'm currently running on a local Kubernetes Cluster using minikube and i'm executing tcconfig commands from the minikube control plane (i.e minikube ssh)

In the minikube I ran the following commands:

sudo .local/bin/tcdel ba10246a7a98 --docker --all              
                                                                           
[ERROR] OperationalError: /usr/local/lib/python3.8/dist-packages/simplesqlite/model.py(226) insert: failed to execute query:
  query=INSERT INTO if_index(host,ifindex,ifname,"peer_ifindex") VALUES (?,?,?,?)
  msg='UNIQUE constraint failed: if_index.peer_ifindex'
  db=:memory:
  records=[['minikube', 7, 'veth58bf76cd', 4]]

[ERROR] OperationalError: /usr/local/lib/python3.8/dist-packages/simplesqlite/model.py(226) insert: failed to execute query:
  query=INSERT INTO if_index(host,ifindex,ifname,"peer_ifindex") VALUES (?,?,?,?)
  msg='UNIQUE constraint failed: if_index.peer_ifindex'
  db=:memory:
  records=[['minikube', 8, 'vetha9f7c6c9', 4]]

[ERROR] OperationalError: /usr/local/lib/python3.8/dist-packages/simplesqlite/model.py(226) insert: failed to execute query:
  query=INSERT INTO if_index(host,ifindex,ifname,"peer_ifindex") VALUES (?,?,?,?)
  msg='UNIQUE constraint failed: if_index.peer_ifindex'
  db=:memory:
  records=[['minikube', 9, 'veth4758d1a1', 4]]

docker@minikube:~$ sudo .local/bin/tcdel ba10246a7a98 --docker --all
[ERROR] OperationalError: /usr/local/lib/python3.8/dist-packages/simplesqlite/model.py(226) insert: failed to execute query:
  query=INSERT INTO if_index(host,ifindex,ifname,"peer_ifindex") VALUES (?,?,?,?)
  msg='UNIQUE constraint failed: if_index.peer_ifindex'
  db=:memory:
  records=[['minikube', 7, 'veth58bf76cd', 4]]

[ERROR] OperationalError: /usr/local/lib/python3.8/dist-packages/simplesqlite/model.py(226) insert: failed to execute query:
  query=INSERT INTO if_index(host,ifindex,ifname,"peer_ifindex") VALUES (?,?,?,?)
  msg='UNIQUE constraint failed: if_index.peer_ifindex'
  db=:memory:
  records=[['minikube', 8, 'vetha9f7c6c9', 4]]

[ERROR] OperationalError: /usr/local/lib/python3.8/dist-packages/simplesqlite/model.py(226) insert: failed to execute query:
  query=INSERT INTO if_index(host,ifindex,ifname,"peer_ifindex") VALUES (?,?,?,?)
  msg='UNIQUE constraint failed: if_index.peer_ifindex'
  db=:memory:
  records=[['minikube', 9, 'veth4758d1a1', 4]]

docker@minikube:~$ sudo .local/bin/tcshow ba10246a7a98 --docker      
[ERROR] OperationalError: /usr/local/lib/python3.8/dist-packages/simplesqlite/model.py(226) insert: failed to execute query:
  query=INSERT INTO if_index(host,ifindex,ifname,"peer_ifindex") VALUES (?,?,?,?)
  msg='UNIQUE constraint failed: if_index.peer_ifindex'
  db=:memory:
  records=[['minikube', 7, 'veth58bf76cd', 4]]

[ERROR] OperationalError: /usr/local/lib/python3.8/dist-packages/simplesqlite/model.py(226) insert: failed to execute query:
  query=INSERT INTO if_index(host,ifindex,ifname,"peer_ifindex") VALUES (?,?,?,?)
  msg='UNIQUE constraint failed: if_index.peer_ifindex'
  db=:memory:
  records=[['minikube', 8, 'vetha9f7c6c9', 4]]

[ERROR] OperationalError: /usr/local/lib/python3.8/dist-packages/simplesqlite/model.py(226) insert: failed to execute query:
  query=INSERT INTO if_index(host,ifindex,ifname,"peer_ifindex") VALUES (?,?,?,?)
  msg='UNIQUE constraint failed: if_index.peer_ifindex'
  db=:memory:
  records=[['minikube', 9, 'veth4758d1a1', 4]]

Running show iplink yeilds this:

docker@minikube:~$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ipip 0.0.0.0 brd 0.0.0.0
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default 
    link/ether 02:42:4c:da:95:28 brd ff:ff:ff:ff:ff:ff
5: bridge: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether a6:68:2f:49:11:76 brd ff:ff:ff:ff:ff:ff
6: veth65fa90dc@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master bridge state UP mode DEFAULT group default 
    link/ether 42:e1:a7:4b:96:34 brd ff:ff:ff:ff:ff:ff link-netnsid 1
7: veth58bf76cd@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master bridge state UP mode DEFAULT group default 
    link/ether 5e:b5:16:b1:11:4a brd ff:ff:ff:ff:ff:ff link-netnsid 2
8: vetha9f7c6c9@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master bridge state UP mode DEFAULT group default 
    link/ether 82:eb:f5:8e:18:52 brd ff:ff:ff:ff:ff:ff link-netnsid 3
9: veth4758d1a1@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master bridge state UP mode DEFAULT group default 
    link/ether 8a:58:99:67:67:86 brd ff:ff:ff:ff:ff:ff link-netnsid 4
23: eth0@if24: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default 
    link/ether 02:42:c0:a8:31:02 brd ff:ff:ff:ff:ff:ff link-netnsid 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant