ffnord / ffmap-backend

THIS PROJECT DOESN'T HAVE A MAINTAINER!
Other
20 stars 59 forks source link

Backend Error #69

Closed sap-dev closed 8 years ago

sap-dev commented 8 years ago

Hi,

nachder Installation erhalten wir folgenden Fehler bei der Ausführung des Crons:

Traceback (most recent call last):
  File "./backend.py", line 185, in <module>
    main(options)
  File "./backend.py", line 117, in main
    graph.import_vis_data(batadv_graph, nodedb['nodes'], vd)
  File "/root/ffos/ffmap-backend/lib/graph.py", line 17, in import_vis_data
    *zip(*chain(nodes_a, nodes_b))))
TypeError: map() must have at least two arguments.
jplitza commented 8 years ago

Ich habe nicht die geringste Ahnung, wie dieser Fehler zu Stande kommen könnte. Welchen Commit genau habt ihr ausgecheckt? Direkt in den darüberliegenden Zeilen (15 und 16) ist nämlich in beiden Branches das erste Argument an map(), sodass diese Meldung für mich überhaupt keinen Sinn ergibt.

jplitza commented 8 years ago

Hm, on second thought, this is probably triggered when both nodes_a and nodes_b are empty and thus *zip(*chain(nodes_a, nodes_b)) is empty. This indicates empty vis_data, which in turn supposes that batadv-vis -i <mesh_interface> -f json outputs nothing or an error. Is that true? If so, you probably need to start a batadv-vis server on the machine running ffmap-backend.

AiyionPrime commented 8 years ago

Had the same error, even since the same day. But (re)starting vis solved it for me.

jplitza commented 8 years ago

Closing this for now, as it seems to have nothing to do with ffmap-backend. If you disagree or the problem is not solved by restarting or properly configuring batadv-vis, i.e. if batadv-vis -i <mesh interface> -f json outputs something reasonable, please reopen.