GithubHelp home page GithubHelp logo

ext-respondd's People

Contributors

aktienmakler avatar anoymouserver avatar lqb avatar sunz3r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ext-respondd's Issues

Dependencies...

Could we please reduce deps as much as possible..
I'm not that familiar with Python, but why do you need python-cpuinfo? Isn't that data available in /proc?

bind to interface breaks gluon status page

per default respondd accept requests on any interfaces (like mesh0, wlan0, eth0, enp1s0, tun0, ...)

examples with problems:

  • nodes with uplink (vpn -> gateway with ext-respondd)
  • nodes with backbone (direkt link -> backbone with ext-respondd)
  • nodes on x86 with ext-respondd

self._sock.setsockopt(socket.SOL_SOCKET,socket.SO_BINDTODEVICE,bytes(self._config['bridge'].encode()))

KeyError: 'Processor' for /proc/cpuinfo

On my Raspberry the ext-respondd currently aborts after startup and reports:

Apr 15 18:25:36 ffplieningrpb4olv6a systemd[1]: Started ext-respondd (respondd status for servers).
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: Traceback (most recent call last):
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]:   File "/opt/ext-respondd/ext-respondd.py", line 48, in <module>
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]:     extResponddClient.start()
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]:   File "/opt/ext-respondd/lib/respondd_client.py", line 60, in start
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]:     responseStruct[request] = self.buildStruct(request)
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]:   File "/opt/ext-respondd/lib/respondd_client.py", line 82, in buildStruct
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]:     return responseClass.getStruct()
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]:   File "/opt/ext-respondd/lib/respondd.py", line 31, in getStruct
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]:     ret = self._get()
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]:   File "/opt/ext-respondd/lib/nodeinfo.py", line 115, in _get
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]:     'model': self.getCPUInfo()['model name'],
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]:   File "/opt/ext-respondd/lib/nodeinfo.py", line 74, in getCPUInfo
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]:     ret["model name"] = ret["Processor"]
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: KeyError: 'Processor'
Apr 15 18:26:30 ffplieningrpb4olv6a systemd[1]: ext-respondd.service: Main process exited, code=exited, status=1/FAILURE
Apr 15 18:26:30 ffplieningrpb4olv6a systemd[1]: ext-respondd.service: Failed with result 'exit-code'.

The syslog said something about KeyError: 'Processor' well in the /proc/cpuinfo it is also written in small letters: processor, so I made a small adjustment in the /opt/ext-respondd/lib/nodeinfo.py:

    if 'model name' not in ret:
      ret["model name"] = ret["processor"]

and the ext-respondd runs again.

Originally posted by @Django-BOfH in #9 (comment)

cant determine batctl version

after startup the following error message appears:

# /opt/ext-respondd/ext-respondd.py
cant determine batctl version                                                                                                                                   
Traceback (most recent call last):                                                                                                                              
  File "/opt/ext-respondd/ext-respondd.py", line 48, in <module>
    extResponddClient.start()
  File "/opt/ext-respondd/lib/respondd_client.py", line 48, in start
    self.joinMCAST(self._sock, self._config['addr'], lineMatch.group(1))
  File "/opt/ext-respondd/lib/respondd_client.py", line 38, in joinMCAST
    if_idx = socket.if_nametoindex(ifname)
OSError: no interface with this name

batctl returns the following version:

# batctl -v
batctl gentoo-2021.0 [batman-adv: 2021.0]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.