Mail in a box Crashed and is not working

Hello Everybody,

Just came to work and my server was down.

Tried the sudo mailinabox command.
The second time, Installed somefixes suggested on the forum and after running it again.
This happend:

What Can I do to fix this. @JoshData

Thanks in advance!

Restored my droplet from 12 hours ago. Still gives me Something went wrong on system check page.
Next I ran sudo mailinabox command again.

This is what it gave me:

Installing Mail-in-a-Box system management daemon...

FAILED: pip3 install --upgrade rtyaml email_validator>=1.0.0 free_tls_certificates>=0.1.3 idna>=2.0.0 cryptography>=1.0.2 boto psutil

Requirement already up-to-date: rtyaml in /usr/local/lib/python3.4/dist-packages
Downloading/unpacking email_validator>=1.0.0 from https://pypi.python.org/packages/72/d9/08afd9a35e25828659f905c6b254ddf8e786174695f0e769e30b5c69d4dc/email_validator-1.0.2.tar.gz#md5=3fbe652ab41aaa4f937f90bdbbedfa52
Downloading email_validator-1.0.2.tar.gz
Running setup.py (path:/tmp/pip_build_root/email-validator/setup.py) egg_info for package email-validator

warning: no files found matching 'email_validator.py'

Requirement already up-to-date: free_tls_certificates>=0.1.3 in /usr/local/lib/python3.4/dist-packages
Downloading/unpacking idna>=2.0.0 from https://pypi.python.org/packages/11/7d/9bbbd7bb35f34b0169542487d2a8859e44306bb2e6a4455d491800a5621f/idna-2.5-py2.py3-none-any.whl#md5=a7e9abecc669f5bd2ddb53b453008d32
Downloading/unpacking cryptography>=1.0.2 from https://pypi.python.org/packages/ec/5f/d5bc241d06665eed93cd8d3aa7198024ce7833af7a67f6dc92df94e00588/cryptography-1.8.1.tar.gz#md5=9f28a9c141995cd2300d0976b4fac3fb
Running setup.py (path:/tmp/pip_build_root/cryptography/setup.py) egg_info for package cryptography

no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'

Downloading/unpacking boto from https://pypi.python.org/packages/3a/3a/eaa880264b8087fcb5730ab4b5fd707d62d766216de9051eeb69333141de/boto-2.46.1-py2.py3-none-any.whl#md5=913ac770f039be71b900030c1181d614
Downloading/unpacking psutil from https://pypi.python.org/packages/3c/2f/f3ab91349c666f009077157b12057e613a3152a46a6c3be883777546b6de/psutil-5.2.0.tar.gz#md5=c9aa2599dcd9e5b59d71b6660d396062
Running setup.py (path:/tmp/pip_build_root/psutil/setup.py) egg_info for package psutil

warning: manifest_maker: MANIFEST.in, line 14: 'recursive-include' expects <dir> <pattern1> <pattern2> ...

warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: no previously-included files matching '*' found under directory '.ci'

Requirement already up-to-date: pyyaml in /usr/local/lib/python3.4/dist-packages (from rtyaml)
Requirement already up-to-date: dnspython>=1.15.0 in /usr/local/lib/python3.4/dist-packages (from email_validator>=1.0.0)
Downloading/unpacking acme>=0.2.0 from https://pypi.python.org/packages/9f/a1/cbce4a99652e30ae8eb84b25a81f665123eb2d3c14d65208ea12cdf80b68/acme-0.12.0-py2.py3-none-any.whl#md5=56f7f5a2faa233720a70408681b3c862 (from free_tls_certificates>=0.1.3)
Downloading/unpacking asn1crypto>=0.21.0 (from cryptography>=1.0.2)
Downloading/unpacking packaging (from cryptography>=1.0.2)
Downloading packaging-16.8-py2.py3-none-any.whl
Requirement already up-to-date: six>=1.4.1 in /usr/local/lib/python3.4/dist-packages (from cryptography>=1.0.2)
Downloading/unpacking setuptools>=11.3 from https://pypi.python.org/packages/de/b2/b63accae9aa1a4cf02e03c7522102f686a1bd9b8b1b847716198152d2c63/setuptools-34.3.2-py2.py3-none-any.whl#md5=0d9c6a1da32797da04bde303e4d623d9 (from cryptography>=1.0.2)
Downloading/unpacking cffi>=1.4.1 from https://pypi.python.org/packages/5b/b9/790f8eafcdab455bcd3bd908161f802c9ce5adbf702a83aa7712fcc345b7/cffi-1.10.0.tar.gz#md5=2b5fa41182ed0edaf929a789e602a070 (from cryptography>=1.0.2)
Running setup.py (path:/tmp/pip_build_root/cffi/setup.py) egg_info for package cffi

Requirement already up-to-date: mock in /usr/local/lib/python3.4/dist-packages (from acme>=0.2.0->free_tls_certificates>=0.1.3)
Requirement already up-to-date: pyrfc3339 in /usr/local/lib/python3.4/dist-packages (from acme>=0.2.0->free_tls_certificates>=0.1.3)
Downloading/unpacking PyOpenSSL>=0.13 from https://pypi.python.org/packages/ac/93/b4cd538d31adacd07f83013860db6b88d78755af1f3fefe68ec22d397e7b/pyOpenSSL-16.2.0-py2.py3-none-any.whl#md5=7c87cf718171f736f29d1becb4c7b7a5 (from acme>=0.2.0->free_tls_certificates>=0.1.3)
Downloading/unpacking requests[security]>=2.10 from https://pypi.python.org/packages/7e/ac/a80ed043485a3764053f59ca92f809cc8a18344692817152b0e8bd3ca891/requests-2.13.0-py2.py3-none-any.whl#md5=5e432dcf5bd1e3402ea1656700d99365 (from acme>=0.2.0->free_tls_certificates>=0.1.3)
Downloading/unpacking pytz from https://pypi.python.org/packages/f5/fa/4a9aefc206aa49a4b5e0a72f013df1f471b4714cdbe6d78f0134feeeecdb/pytz-2016.10-py2.py3-none-any.whl#md5=f3a8520c1230f1e671805500787b0330 (from acme>=0.2.0->free_tls_certificates>=0.1.3)
Downloading/unpacking pyparsing (from packaging->cryptography>=1.0.2)
Downloading/unpacking appdirs>=1.4.0 (from setuptools>=11.3->cryptography>=1.0.2)
Downloading appdirs-1.4.3-py2.py3-none-any.whl
Downloading/unpacking pycparser from https://pypi.python.org/packages/be/64/1bb257ffb17d01f4a38d7ce686809a736837ad4371bcc5c42ba7a715c3ac/pycparser-2.17.tar.gz#md5=ca98dcb50bc1276f230118f6af5a40c7 (from cffi>=1.4.1->cryptography>=1.0.2)
Running setup.py (path:/tmp/pip_build_root/pycparser/setup.py) egg_info for package pycparser

warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'

Installing collected packages: email-validator, idna, cryptography, boto, psutil, acme, asn1crypto, packaging, setuptools, cffi, PyOpenSSL, requests, pytz, pyparsing, appdirs, pycparser
Found existing installation: email-validator 1.0.1
Uninstalling email-validator:
Successfully uninstalled email-validator
Running setup.py install for email-validator

warning: no files found matching 'email_validator.py'
Installing email_validator script to /usr/local/bin

Could not find .egg-info directory in install record for email_validator>=1.0.0 from https://pypi.python.org/packages/72/d9/08afd9a35e25828659f905c6b254ddf8e786174695f0e769e30b5c69d4dc/email_validator-1.0.2.tar.gz#md5=3fbe652ab41aaa4f937f90bdbbedfa52 in /usr/local/lib/python3.4/dist-packages
Found existing installation: idna 2.1
Uninstalling idna:
Successfully uninstalled idna
Found existing installation: cryptography 1.5.2
Can’t uninstall ‘cryptography’. No files were found to uninstall.
Running setup.py install for cryptography

no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
generating cffi module 'build/temp.linux-x86_64-3.4/_padding.c'
generating cffi module 'build/temp.linux-x86_64-3.4/_constant_time.c'
generating cffi module 'build/temp.linux-x86_64-3.4/_openssl.c'
building '_openssl' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-x86_64-3.4/_openssl.c -o build/temp.linux-x86_64-3.4/build/temp.linux-x86_64-3.4/_openssl.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/build/temp.linux-x86_64-3.4/_openssl.o -lssl -lcrypto -o build/lib.linux-x86_64-3.4/cryptography/hazmat/bindings/_openssl.abi3.so
building '_constant_time' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-x86_64-3.4/_constant_time.c -o build/temp.linux-x86_64-3.4/build/temp.linux-x86_64-3.4/_constant_time.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/build/temp.linux-x86_64-3.4/_constant_time.o -o build/lib.linux-x86_64-3.4/cryptography/hazmat/bindings/_constant_time.abi3.so
building '_padding' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-x86_64-3.4/_padding.c -o build/temp.linux-x86_64-3.4/build/temp.linux-x86_64-3.4/_padding.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/build/temp.linux-x86_64-3.4/_padding.o -o build/lib.linux-x86_64-3.4/cryptography/hazmat/bindings/_padding.abi3.so

Could not find .egg-info directory in install record for cryptography>=1.0.2 from https://pypi.python.org/packages/ec/5f/d5bc241d06665eed93cd8d3aa7198024ce7833af7a67f6dc92df94e00588/cryptography-1.8.1.tar.gz#md5=9f28a9c141995cd2300d0976b4fac3fb in /usr/local/lib/python3.4/dist-packages
Found existing installation: boto 2.42.0
Uninstalling boto:
Successfully uninstalled boto
Found existing installation: psutil 4.3.1
Can’t uninstall ‘psutil’. No files were found to uninstall.
Running setup.py install for psutil
building ‘psutil._psutil_linux’ extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=520 -DPSUTIL_LINUX=1 -I/usr/include/python3.4m -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-3.4/psutil/_psutil_linux.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/psutil/_psutil_linux.o -o build/lib.linux-x86_64-3.4/psutil/_psutil_linux.cpython-34m.so
building ‘psutil._psutil_posix’ extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=520 -DPSUTIL_LINUX=1 -I/usr/include/python3.4m -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-3.4/psutil/_psutil_posix.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.4/psutil/_psutil_posix.o -o build/lib.linux-x86_64-3.4/psutil/_psutil_posix.cpython-34m.so

warning: manifest_maker: MANIFEST.in, line 14: 'recursive-include' expects <dir> <pattern1> <pattern2> ...

warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: no previously-included files matching '*' found under directory '.ci'

Could not find .egg-info directory in install record for psutil from https://pypi.python.org/packages/3c/2f/f3ab91349c666f009077157b12057e613a3152a46a6c3be883777546b6de/psutil-5.2.0.tar.gz#md5=c9aa2599dcd9e5b59d71b6660d396062 in /usr/local/lib/python3.4/dist-packages
Found existing installation: acme 0.8.1
Uninstalling acme:
Successfully uninstalled acme
Found existing installation: setuptools 28.0.0
Uninstalling setuptools:
Not removing or modifying (outside of prefix):
/usr/bin/easy_install
Successfully uninstalled setuptools
Found existing installation: cffi 1.8.3
Can’t uninstall ‘cffi’. No files were found to uninstall.
Running setup.py install for cffi
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.4/dist-packages/setuptools/init.py”, line 12, in
import setuptools.version
File “/usr/local/lib/python3.4/dist-packages/setuptools/version.py”, line 1, in
import pkg_resources
File “/usr/local/lib/python3.4/dist-packages/pkg_resources/init.py”, line 72, in
import packaging.requirements
File “/usr/local/lib/python3.4/dist-packages/packaging/requirements.py”, line 9, in
from pyparsing import stringStart, stringEnd, originalTextFor, ParseException
ImportError: No module named ‘pyparsing’
Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;file=’/tmp/pip_build_root/cffi/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))" install --record /tmp/pip-y2k4ye1j-record/install-record.txt --single-version-externally-managed --compile:
Traceback (most recent call last):

File “”, line 1, in

File “/usr/local/lib/python3.4/dist-packages/setuptools/init.py”, line 12, in

import setuptools.version

File “/usr/local/lib/python3.4/dist-packages/setuptools/version.py”, line 1, in

import pkg_resources

File “/usr/local/lib/python3.4/dist-packages/pkg_resources/init.py”, line 72, in

import packaging.requirements

File “/usr/local/lib/python3.4/dist-packages/packaging/requirements.py”, line 9, in

from pyparsing import stringStart, stringEnd, originalTextFor, ParseException

ImportError: No module named ‘pyparsing’


Can’t roll back cffi; was not uninstalled
Cleaning up…
Command /usr/bin/python3 -c “import setuptools, tokenize;file=’/tmp/pip_build_root/cffi/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-y2k4ye1j-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/cffi
Storing debug log for failure in /root/.pip/pip.log

sudo -i
apt-get purge -y python3-pip
wget https://bootstrap.pypa.io/get-pip.py
python3 ./get-pip.py
apt-get install python3-pip

Applying this commands fixed it
After successful run of the command sudo mailinabox
Still got the Somthing went wrong message.

Than I ran the upgrade command

curl -s https://mailinabox.email/setup.sh | sudo bash

To install the latest version.

And it worked. Now receiving mail and the system check works.