question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue Description

I just started to tinker around with vaping but I cannot seem to find relevant information about the IPv6 status of this project.

I would like to be able to bind the WebGUI onto an IPv6 address but the program crashes when I try to configure something like this:

    plugins:

      - name: http
        type: flask
        bind: [::]:7021
        debug: true
        static_url_path: /static
        server: self
        async: thread
        routes:
          /targets : graphsrv->targets
          /graph_data :
            methods:
              - POST
              - GET
            target: graphsrv->graph_data
          /graph : graphsrv->graph_view
          /overview_read_file : graphsrv->overview_read_file
          /: graphsrv->overview_view

Output:

root@graphrx1:~/vaping # vaping start --home=examples/standalone_dns/ --debug
Traceback (most recent call last):
  File "/usr/local/bin/vaping", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/vaping/cli.py", line 72, in start
    update_context(ctx, kwargs)
  File "/usr/local/lib/python3.8/site-packages/vaping/cli.py", line 21, in update_context
    ctx.update_options(kwargs)
  File "/usr/local/lib/python3.8/site-packages/munge/click.py", line 119, in update_options
    self.config = self.config_class(read=self.home)
  File "/usr/local/lib/python3.8/site-packages/munge/config.py", line 54, in __init__
    self.read(kwargs["read"])
  File "/usr/local/lib/python3.8/site-packages/munge/config.py", line 130, in read
    config = munge.load_datafile(config_name, conf_path, default=None)
  File "/usr/local/lib/python3.8/site-packages/munge/codec/__init__.py", line 81, in load_datafile
    return codec().load(open(datafile))
  File "/usr/local/lib/python3.8/site-packages/munge/codec/yaml.py", line 15, in load
    return yaml.safe_load(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/yaml/__init__.py", line 162, in safe_load
    return load(stream, SafeLoader)
  File "/usr/local/lib/python3.8/site-packages/yaml/__init__.py", line 114, in load
    return loader.get_single_data()
  File "/usr/local/lib/python3.8/site-packages/yaml/constructor.py", line 49, in get_single_data
    node = self.get_single_node()
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 82, in compose_node
    node = self.compose_sequence_node(anchor)
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 111, in compose_sequence_node
    node.value.append(self.compose_node(node, index))
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 82, in compose_node
    node = self.compose_sequence_node(anchor)
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 111, in compose_sequence_node
    node.value.append(self.compose_node(node, index))
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 82, in compose_node
    node = self.compose_sequence_node(anchor)
  File "/usr/local/lib/python3.8/site-packages/yaml/composer.py", line 110, in compose_sequence_node
    while not self.check_event(SequenceEndEvent):
  File "/usr/local/lib/python3.8/site-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/local/lib/python3.8/site-packages/yaml/parser.py", line 474, in parse_flow_sequence_first_entry
    return self.parse_flow_sequence_entry(first=True)
  File "/usr/local/lib/python3.8/site-packages/yaml/parser.py", line 495, in parse_flow_sequence_entry
    return self.parse_flow_node()
  File "/usr/local/lib/python3.8/site-packages/yaml/parser.py", line 268, in parse_flow_node
    return self.parse_node()
  File "/usr/local/lib/python3.8/site-packages/yaml/parser.py", line 369, in parse_node
    raise ParserError("while parsing a %s node" % node, start_mark,
yaml.parser.ParserError: while parsing a flow node
expected the node content, but found ':'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vegucommented, Mar 11, 2022

The initial error is a yaml parse error because the value needs to be wrapped in quotes.

However once that is addressed, vodka still fails to parse it properly, ticket for the latter issue is created here: 20c/vodka#18

0reactions
imp1shcommented, Mar 25, 2022

This fix seems to work. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebUI binds to IPv6 address · Issue #6147 - GitHub
I'm 100% positive that WebUI only binds on IPv6 address in my case. WebUI is installed with apt-get install qbittorrent-nox , it could...
Read more >
web GUI from IPv6 client - Paessler Knowledge Base
It can connect to IPv4 servers using the DNS64/NAT64 transition mechanism, but the transition mechanism does not get invoked if the server has...
Read more >
WebGUI via IPv6? | TrueNAS Community
Hi everyone, my FreeNAS 8.3.0 is running dualstack (IPv4 & IPv6). ... In the settings I chose "0.0.0.0" as the binding adress for...
Read more >
Access webGui via double stack - Netgate Forum
Hello guys, It's possible to access the pfsense webgui via double stack (ipv4 and ipv6)?
Read more >
Web UI in IPv4 and IPv6 | Proxmox Support Forum
Hi I try to activate the Web UI in IPv4 AND IPv6. I found this page https://pve.proxmox.com/pve-docs/pveproxy.8.html to enable IPv6.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found