1

Topic: can not access iRedadmin Page but verything else works

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: OpenBSD 5.9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====

Hi,

like the title says, can't access iredadmin webpage.
I just installed iRedmail on OpenBSD now and I can login via roundcube with the postmaster login. I also can setup the postmaster mailaccount in Thunderbird.

When I try to login to iredadmin I get an 'internal server error' - nginx gives me an error 500. I could not find any more logs with any hints to that error.


Cheers,
Tony

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: can not access iRedadmin Page but verything else works

Any related error in /var/www/logs/uwsgi.log?

3 (edited by tboston 2016-11-28 21:56:01)

Re: can not access iRedadmin Page but verything else works

ZhangHuangbin wrote:

Any related error in /var/www/logs/uwsgi.log?

Didn't know about uwsgi anyway.

I got some log entrys but I don't know how to interpret them, maybe you can tell me what is wrong?

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 239, in process
    return self.handle()
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 420, in _delegate
    return handle_class(cls)
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 396, in handle_class
    return tocall(*args)
  File "/var/www/iRedAdmin-0.6.3/controllers/mysql/basic.py", line 39, in POST
    auth_result = auth.auth(username=username, password=password)
  File "/var/www/iRedAdmin-0.6.3/libs/mysql/core.py", line 316, in auth
    if iredutils.verify_password_hash(password_sql, password):
  File "/var/www/iRedAdmin-0.6.3/libs/iredutils.py", line 545, in verify_password_hash
    return verify_bcrypt_password(challenge_password, plain_password)
  File "/var/www/iRedAdmin-0.6.3/libs/iredutils.py", line 329, in verify_bcrypt_password
    return bcrypt.checkpw(plain_password, challenge_password)
AttributeError: 'module' object has no attribute 'checkpw'

Edit: Okay found that I could change

bcrypt.checkpw(plain_password, challenge_password)


to

 return bcrypt.hashpw(plain_password, challenge_password) == challenge_password 

Now it says 'wrong credentials'

Edit2: fixed with the solution from here: http://www.iredmail.org/forum/topic1180 … enbsd.html


Cheers,
Tony