Addalin / cameranetwork

Software for remote sensing camera networks
Other
2 stars 0 forks source link

SSH-->local from GUI #45

Open OmerShubi opened 4 years ago

OmerShubi commented 4 years ago

Describe the bug

Server 236 raised an error
==========================

Calling the cmd handler caused an error:
Traceback (most recent call last):
  File "/home/odroid/code/cameranetwork/CameraNetwork/server.py", line 414, in _on_request
    answer = yield cb(*args, **kwds)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1133, in run
    value = future.result()
  File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 261, in result
    raise_exc_info(self._exc_info)
  File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 307, in wrapper
    result = func(*args, **kwargs)
  File "/home/odroid/code/cameranetwork/CameraNetwork/server.py", line 1305, in handle_local_ip
    ip = re.compile('inet addr:([\d.]+)').search(eth0).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

To Reproduce Steps to reproduce the behavior:

  1. Go to GUI
  2. Click on camera_id
  3. Scroll down to local
  4. See error

Maybe because camera is connected via modem?

Desktop (please complete the following information):