[Freedombox-discuss] Timeouts everywhere, probably firewall issue.

A. F. Cano afc at shibaya.lonestar.org
Fri Jun 23 18:01:05 UTC 2017


hello,

I could only get this out by switching the SD card in the FreedomBox to
an older one.  The one that failed just got an upgrade (including
kernel and at least one django package).  I'm running the stable
version, with plinth 0.13.1.

The problem: Any attempt to run any application from the inside (mail, web,
torrent) fails with timeout.  Suspecting some firewall issue in the freedombox,
I checked the "Firewall" menu entry (https://fbx/plinth/sys/firewall/) and
got this:

500
 This is an internal error and not something you caused or can fix. Please
report the error on the bug tracker so we can fix it. Also, please attach
the status log to the bug report.

DNS seems to work.  I get valid replies from the inside and from the
freedombox (via ssh).  Traceroute from the inside:

$ traceroute forecast.weather.gov
traceroute to forecast.weather.gov (23.48.206.96), 30 hops max, 60 byte packets
 1  * * *
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

This seems to be the relevant error message:

IndexError: list index out of range


The status log follows.  I've rebooted multiple times.  No difference.
Any ideas as to what to do or try?  Thanks.


  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/plinth/modules/firewall/views.py", line 30, in index
    if not firewall.get_enabled_status():
  File "/usr/lib/python3/dist-packages/plinth/modules/firewall/__init__.py", line 68, in get_enabled_status
    return output.split()[0] == 'running'
IndexError: list index out of range
[2017-06-23 10:35:18,888] plinth.actions INFO     Executing command - ['sudo', '-n', '/usr/share/plinth/actions/firewall', 'get-status']
[2017-06-23 10:35:20,787] django.request ERROR    Internal Server Error: /plinth/sys/firewall/
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 42, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/plinth/modules/firewall/views.py", line 30, in index
    if not firewall.get_enabled_status():
  File "/usr/lib/python3/dist-packages/plinth/modules/firewall/__init__.py", line 68, in get_enabled_status
    return output.split()[0] == 'running'
IndexError: list index out of range
[2017-06-23 10:36:45,128] plinth.actions INFO     Executing command - ['sudo', '-n', '/usr/share/plinth/actions/firewall', 'get-status']
[2017-06-23 10:36:47,027] django.request ERROR    Internal Server Error: /plinth/sys/firewall/
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 42, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/plinth/modules/firewall/views.py", line 30, in index
    if not firewall.get_enabled_status():
  File "/usr/lib/python3/dist-packages/plinth/modules/firewall/__init__.py", line 68, in get_enabled_status
    return output.split()[0] == 'running'
IndexError: list index out of range
[2017-06-23 10:38:00,159] plinth.actions INFO     Executing command - ['sudo', '-n', '/usr/share/plinth/actions/power', 'restart']
[23/Jun/2017:10:38:00] ENGINE Caught signal SIGTERM.
[23/Jun/2017:10:38:02] ENGINE Bus STOPPING
[23/Jun/2017:10:38:03] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 8000)) shut down
[23/Jun/2017:10:38:03] ENGINE Stopped thread '_TimeoutMonitor'.
[23/Jun/2017:10:38:03] ENGINE Bus STOPPED
[23/Jun/2017:10:38:03] ENGINE Bus EXITING
[23/Jun/2017:10:38:03] ENGINE Bus EXITED
[23/Jun/2017:10:38:03] ENGINE Waiting for child threads to terminate...
[2017-06-23 10:41:45,758] plinth.__main__ INFO     Configuration loaded from file - /etc/plinth/plinth.config
[2017-06-23 10:41:45,763] plinth.__main__ INFO     Script prefix - /plinth
[2017-06-23 10:41:46,594] plinth.module_loader INFO     Module load order - ['apps', 'mumble', 'first_boot', 'system', 'names', 'pagekite', 'disks', 'roundcube', 'firewall', 'config', 'networks', 'power', 'repro', 'ttrss', 'owncloud', 'radicale', 'bind', 'help', 'jsxc', 'infinoted', 'upgrades', 'avahi', 'tor', 'users', 'monkeysphere', 'transmission', 'minetest', 'diagnostics', 'ejabberd', 'dynamicdns', 'datetime', 'privoxy', 'security', 'deluge', 'quassel', 'letsencrypt', 'openvpn', 'snapshot', 'ikiwiki']
[2017-06-23 10:41:46,683] plinth.actions INFO     Executing command - ['sudo', '-n', '/usr/share/plinth/actions/pagekite', 'is-disabled']
[2017-06-23 10:41:48,408] plinth.actions INFO     Executing command - ['sudo', '-n', '/usr/share/plinth/actions/pagekite', 'get-kite']
[2017-06-23 10:41:49,861] plinth.actions INFO     Executing command - ['sudo', '-n', '/usr/share/plinth/actions/firewall', 'get-enabled-services', '--zone', 'external']
[2017-06-23 10:41:51,787] plinth.modules.names INFO     Added domain xyzzy.freedombox.rocks of type domainname with services []
[2017-06-23 10:41:52,248] plinth.actions INFO     Executing command - ['/usr/share/plinth/actions/ikiwiki', 'get-sites']
[2017-06-23 10:41:52,855] plinth.__main__ INFO     Setting up CherryPy server
[23/Jun/2017:10:41:52] ENGINE Listening for SIGTERM.
[23/Jun/2017:10:41:52] ENGINE Listening for SIGUSR1.
[23/Jun/2017:10:41:52] ENGINE Listening for SIGHUP.
[23/Jun/2017:10:41:52] ENGINE Bus STARTING
[23/Jun/2017:10:41:52] ENGINE Started monitor thread '_TimeoutMonitor'.
[23/Jun/2017:10:41:53] ENGINE Serving on http://127.0.0.1:8000
[23/Jun/2017:10:41:53] ENGINE Bus STARTED
[2017-06-23 10:44:18,388] plinth.actions INFO     Executing command - ['sudo', '-n', '/usr/share/plinth/actions/firewall', 'get-status']
[2017-06-23 10:44:20,284] django.request ERROR    Internal Server Error: /plinth/sys/firewall/
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 42, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/plinth/modules/firewall/views.py", line 30, in index
    if not firewall.get_enabled_status():
  File "/usr/lib/python3/dist-packages/plinth/modules/firewall/__init__.py", line 68, in get_enabled_status
    return output.split()[0] == 'running'
IndexError: list index out of range
[2017-06-23 10:44:58,033] plinth.actions INFO     Executing command - ['sudo', '-n', '/usr/share/plinth/actions/disks', 'is-partition-expandable', '/dev/sda1']
[2017-06-23 10:45:00,636] plinth.actions INFO     Executing command - ['sudo', '-n', '/usr/share/plinth/actions/disks', 'is-partition-expandable', '/dev/sda1']
[2017-06-23 13:18:05,341] plinth.actions INFO     Executing command - ['sudo', '-n', '/usr/share/plinth/actions/firewall', 'get-status']
[2017-06-23 13:18:07,245] django.request ERROR    Internal Server Error: /plinth/sys/firewall/
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/exception.py", line 42, in inner
    response = get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/plinth/modules/firewall/views.py", line 30, in index
    if not firewall.get_enabled_status():
  File "/usr/lib/python3/dist-packages/plinth/modules/firewall/__init__.py", line 68, in get_enabled_status
    return output.split()[0] == 'running'
IndexError: list index out of range




More information about the Freedombox-discuss mailing list