Skip to content

Script do not work in docker environment #7

@extremelyonline

Description

@extremelyonline

Hi, I am using the docker image and ran docker run --rm --privileged --name smart-ipv6-rotator --network host quay.io/invidious/smart-ipv6-rotator:latest run --ipv6range=<IPV6RANGE>/64. It ran successfully the first time, but showed the following error subsequently. Is this error related to my network or to the docker image? Thank you.

[DEBUG] Debug info:
random_ipv6_address --> <Redacted>
random_ipv6_address_mask --> 64
gateway --> <Redacted>
interface_index --> 2
interface_name --> <Redacted>
ipv6_subnet --> <Redacted>
    ret = self.nlm_request(
          ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyroute2/netlink/nlsocket.py", line 870, in nlm_request
    return tuple(self._genlm_request(*argv, **kwarg))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyroute2/netlink/nlsocket.py", line 1214, in nlm_request
    for msg in self.get(
               ^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyroute2/netlink/nlsocket.py", line 873, in get
    return tuple(self._genlm_get(*argv, **kwarg))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyroute2/netlink/nlsocket.py", line 550, in get
    raise msg['header']['error']
pyroute2.netlink.exceptions.NetlinkError: (17, 'File exists')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/smart-ipv6-rotator.py", line 310, in <module>
    SmartIPv6Rotator()
  File "/app/smart-ipv6-rotator.py", line 53, in __init__
    getattr(self, args.command)()
  File "/app/smart-ipv6-rotator.py", line 239, in run
    self.clean_previous_setup(memory_settings)
TypeError: SmartIPv6Rotator.clean_previous_setup() missing 1 required positional argument: 'args'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions