So every time I tried to run sudo service mailinabox stop
the process could not be killed. So I ran netstat to find the process that was running on port 10222 and killed it manually. It was a Python3 process, and killing it opened up the port.
I tried running sudo service mailinabox start
again to see if that fixed it, but I still got the 500 error. So I ran netstat again, killed the Python3 job, and fired up management/daemon.py
again. Here’s the output from hitting the /admin
route:
chris@mail-two:~/mailinabox$ sudo DEBUG=1 management/daemon.py
--------------------------------------------------------------------------------
INFO in daemon [management/daemon.py:469]:
API key: dxqNqjfHuOUHG462JS9PeRDI9jL/0ui7I792z1GDtgU=
--------------------------------------------------------------------------------
* Running on http://127.0.0.1:10222/
* Restarting with reloader
--------------------------------------------------------------------------------
INFO in daemon [management/daemon.py:469]:
API key: 49bGbZLKbpBWti1yQAiGAwDNTSKiT4N7VCoxOZRslkQ=
--------------------------------------------------------------------------------
127.0.0.1 - - [24/Nov/2015 17:03:49] "GET / HTTP/1.0" 500 -
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/lib/python3/dist-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/chris/mailinabox/management/daemon.py", line 97, in index
import boto.s3
File "/usr/local/lib/python3.4/dist-packages/boto/__init__.py", line 1216, in <module>
boto.plugin.load_plugins(config)
File "/usr/local/lib/python3.4/dist-packages/boto/plugin.py", line 93, in load_plugins
_import_module(file)
File "/usr/local/lib/python3.4/dist-packages/boto/plugin.py", line 75, in _import_module
return imp.load_module(name, file, filename, data)
File "/usr/lib/python3.4/imp.py", line 235, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.4/imp.py", line 171, in load_source
module = methods.load()
File "/usr/share/google/boto/boto_plugins/compute_auth.py", line 64
except (urllib2.URLError, urllib2.HTTPError, IOError), e: