Upgrade to v0.13b broke /admin

500 Internal Server Error
The server encountered an internal error and was unable to complete
your request. Either the server is overloaded or there is an error in
the application.

Hi

I did an upgrade from 12 to the latest version today, everything went fine except this error.
When i run a status check i get this:

root@box:~/mailinabox# management/status_checks.py

Network
=======
✓  Outbound mail (SMTP port 25) is not blocked.
✓  IP address is not blacklisted by zen.spamhaus.org.
Traceback (most recent call last):
  File "management/status_checks.py", line 1032, in <module>
    run_checks(False, env, ConsoleOutput(), pool)
  File "management/status_checks.py", line 42, in run_checks
    run_domain_checks(rounded_values, env, output, pool)
  File "management/status_checks.py", line 251, in run_domain_checks
    ssl_certificates = get_ssl_certificates(env)
  File "/root/mailinabox/management/web_update.py", line 232, in get_ssl_certificates
    private_keys[pem.public_key().public_numbers()] = pem
TypeError: unhashable type: 'RSAPublicNumbers'
root@box:~/mailinabox#

nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

I’m guessing something is wrong with my ssl configuration but i don’t really know how to proceed from here.
Someone got any ideas on how to fix this?

Everything except /admin works just fine.

Looks like you moved to the latest on the master branch on github (thanks for testing!) and found a bug.

I’ve pushed a fix:

You can either re-run setup

sudo mailinabox

or probably just

sudo pip3 install --upgrade cryptography
sudo service mailinabox restart

Ugh I messed up the commit, wait wait…

Ok. Fixed. Also I forgot to say that if you just re-run sudo mailinabox you have to pull from git again, of course.

Hey
Wah that was a quick reply. :smile:

I just did a new git clone of mailinabox but the problem persists.

 Network
=======
✓  Outbound mail (SMTP port 25) is not blocked.
✓  IP address is not blacklisted by zen.spamhaus.org.
Traceback (most recent call last):
  File "management/status_checks.py", line 1032, in <module>
    run_checks(False, env, ConsoleOutput(), pool)
  File "management/status_checks.py", line 42, in run_checks
    run_domain_checks(rounded_values, env, output, pool)
  File "management/status_checks.py", line 251, in run_domain_checks
    ssl_certificates = get_ssl_certificates(env)
  File "/root/mailinabox/management/web_update.py", line 232, in get_ssl_certificates
    private_keys[pem.public_key().public_numbers()] = pem
TypeError: unhashable type: 'RSAPublicNumbers'

Did i miss something? everything else still works like a charm. :slight_smile:

Do you also do one of the steps I had at the end of my first reply? :slight_smile:

Yes, i clone the git and do a full sudo setup/start.sh.
Looks fine, it reports version:
Mail-in-a-Box Version: v0.13b-50-g2a44b0c

I also successfully installed sudo pip3 install --upgrade cryptography.
Still get the same error, not sure what to try next.

Is this why i can’t access my Admin page?

================

? Web has been disabled for this domain because you have set a

custom DNS record.

? A redirect from ‘www.-_-.**’ has been disabled for this domain

because you have set a custom DNS record on the www subdomain.

If so, how do i enable it again?

No… Can you try running this and paste the output back here?.

# python3
>>> import cryptography
>>> cryptography.__version__
...some version number...
>>> cryptography.__path__
['...some path...']
# python3
Python 3.4.3 (default, Jul 28 2015, 18:20:59)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cryptography
>>> cryptography.__version__
'1.0.2'
>>> cryptography.__path__
['/usr/local/lib/python3.4/dist-packages/cryptography']
>>>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.