1

Topic: Iredadmin problem

==== Provide required information to help troubleshoot and get quick answer ====
- Linux/BSD distribution name and version: Debian 6
- iRedMail version and backend (LDAP/MySQL): 0.7.4, MySQL
- Any related log? Log is helpful for troubleshooting.
====

I can not access the web interface iredadmin. For the iredadmin.py file I receive this message:

# encoding: utf-8 # Author: Zhang Huangbin import os import sys rootdir = os.path.abspath(os.path.dirname(__file__)) sys.path.insert(0, rootdir) from libs import iredbase # start app app = iredbase.app if __name__ == '__main__': # Starting webpy builtin http server. app.run() else: # Run app under Apache + mod_wsgi. application = app.wsgifunc()

What is wrong?

----

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

2

Re: Iredadmin problem

Looks like something wrong with Apache + mod_wsgi. Was there any error log during iRedMail installation?
Could you please paste me content of file /etc/apache2/conf.d/iredadmin.conf?

3

Re: Iredadmin problem

ZhangHuangbin wrote:

Looks like something wrong with Apache + mod_wsgi. Was there any error log during iRedMail installation?
Could you please paste me content of file /etc/apache2/conf.d/iredadmin.conf?

I didn't remember any error during installation.
Here is the content of file /etc/apache2/conf.d/iredadmin.conf:

WSGISocketPrefix /var/run/wsgi
WSGIDaemonProcess iredadmin user=iredadmin threads=15
WSGIProcessGroup iredadmin

AddType text/html .py

<Directory /usr/share/apache2/iredadmin/>
    Order allow,deny
    Allow from all
</Directory>

4

Re: Iredadmin problem

Looks fine. Is there any related error log in Apache log file (/var/log/apache2/error.log)?

5 (edited by szilinek 2012-02-09 19:36:52)

Re: Iredadmin problem

The error log is empty. The iredadmin's url gives me this:

http://noob.hu/2012/02/09/forbidden.jpg

When the apache is rebooting the following lines are appearing:

[Thu Feb 09 12:32:18 2012] [notice] Graceful restart requested, doing restart
[Thu Feb 09 12:32:18 2012] [error] python_init: Python version mismatch, expected '2.6.5+', found '2.6.6'.
[Thu Feb 09 12:32:18 2012] [error] python_init: Python executable found '/usr/bin/python'.
[Thu Feb 09 12:32:18 2012] [error] python_init: Python path being used '/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload'.
[Thu Feb 09 12:32:18 2012] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Thu Feb 09 12:32:18 2012] [notice] mod_python: using mutex_directory /tmp
[Thu Feb 09 12:32:18 2012] [notice] Apache/2.2.16 (Debian) DAV/2 SVN/1.6.12 mod_python/3.3.1 Python/2.6.6 mod_ssl/2.2.16 OpenSSL/0.9.8o mod_wsgi/3.3 mod_scgi/1.13 configured -- resuming normal operations

6

Re: Iredadmin problem

It should work if you remove package 'mod_python'. smile

7

Re: Iredadmin problem

ZhangHuangbin wrote:

It should work if you remove package 'mod_python'. smile


I removed the package and, unfortunately, still does not work. : (

Error log:

[Thu Feb 09 22:18:03 2012] [notice] caught SIGTERM, shutting down
[Thu Feb 09 22:18:05 2012] [notice] Apache/2.2.16 (Debian) DAV/2 SVN/1.6.12 mod_ssl/2.2.16 OpenSSL/0.9.8o mod_wsgi/3.3 Python/2.6.6 mod_scgi/1.13 configured -- resuming normal operations

Rights:

/usr/share/apache2/

root@mail:/usr/share/apache2# ls -la
összesen 48
drwxr-xr-x   8 root      root       4096 febr   7 14.25 .
drwxr-xr-x 130 root      root       4096 febr   7 18.54 ..
drwxr-xr-x   2 root      root       4096 febr   8 14.10 build
drwxr-xr-x   2 root      root       4096 febr   8 14.10 default-site
drwxr-xr-x   3 root      root       4096 febr   8 14.10 error
drwxr-xr-x   3 root      root      20480 febr   8 14.10 icons
lrwxrwxrwx   1 root      root         34 febr   7 14.25 iredadmin -> /usr/share/apache2/iRedAdmin-0.1.6
drwxr-xr-x   8 iredadmin iredadmin  4096 febr   9 12.31 iRedAdmin-0.1.6
lrwxrwxrwx   1 root      root         36 febr   7 14.25 roundcubemail -> /usr/share/apache2/roundcubemail-0.7
drwxr-xr-x  12 root      root       4096 febr   7 14.26 roundcubemail-0.7


/usr/share/apache2/iRedAdmin-0.1.6/

root@mail:/usr/share/apache2/iRedAdmin-0.1.6# ls -la
összesen 68
drwxr-xr-x  8 iredadmin iredadmin 4096 febr   9 12.31 .
drwxr-xr-x  8 root      root      4096 febr   7 14.25 ..
-rwxr-xr-x  1 iredadmin iredadmin   49 febr   7 14.25 AUTHORS
-rwxr-xr-x  1 iredadmin iredadmin 2034 febr   7 14.25 ChangeLog
drwxr-xr-x  5 iredadmin iredadmin 4096 febr   7 14.25 controllers
drwxr-xr-x  3 iredadmin iredadmin 4096 febr   7 14.25 docs
drwxr-xr-x 12 iredadmin iredadmin 4096 febr   7 14.25 i18n
-rwxr-xr-x  1 iredadmin iredadmin  387 febr   7 14.25 iredadmin.py
drwxr-xr-x  5 iredadmin iredadmin 4096 febr   7 14.25 libs
-rw-------  1 iredadmin iredadmin 4250 febr   9 12.31 settings.ini
-rwxr-xr-x  1 iredadmin iredadmin 4262 febr   7 14.25 settings.ini.ldap.sample
-rwxr-xr-x  1 iredadmin iredadmin 4166 febr   7 14.25 settings.ini.mysql.sample
drwxr-xr-x  4 iredadmin iredadmin 4096 febr   7 14.25 static
drwxr-xr-x  3 iredadmin iredadmin 4096 febr   7 14.25 templates

I still get a Forbidden message. What is wrong?

8

Re: Iredadmin problem

szilinek wrote:

I removed the package and, unfortunately, still does not work. : (

I still get a Forbidden message. What is wrong?

Could you please paste related Apache log in both access_log and error_log? It's hard for me to help troubleshoot without log.

File permissions looks fine.

9

Re: Iredadmin problem

The problem solved. The error was in the apache2.conf. Did not reach / usr/share/apache2/iredadmin folder. I authorized and now everything is working!
It would be another problem as well. I restored letters backup, but the roundcube graph below does not count them except the new letters. How could this be updated?

The graph shows 130 MB, but actually I occupy 194 MB.

Roundcube version: 0.7.1

10

Re: Iredadmin problem

Try this:

- How to force Dovecot to recalculate mailbox quota:
  http://iredmail.org/wiki/index.php?titl … lbox.Quota

11

Re: Iredadmin problem

ZhangHuangbin wrote:

Try this:

- How to force Dovecot to recalculate mailbox quota:
  http://iredmail.org/wiki/index.php?titl … lbox.Quota

Thanks!