1 (edited by DragonFire 2014-05-28 07:28:12)

Topic: Admin interface not working in 'new' install

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 14.04 LTS
- Related log if you're reporting an issue:
====

I installed this under an AWS vm about a month or so ago. Now I go back to try and customize it and I find that accessing iredadmin no longer works. i get a 500 error page.

webmail and phpmyadmin are working. What am I doing wrong?

----

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

2

Re: Admin interface not working in 'new' install

Any related log in Apache log file (/var/log/apache2/error_log)?

3

Re: Admin interface not working in 'new' install

[Tue Apr 29 14:50:15.416638 2014] [:error] [pid 2043] [client 96.233.47.54:38631] mod_wsgi (pid=2043): Target WSGI script '/usr/share/apache2/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Tue Apr 29 14:50:15.416692 2014] [:error] [pid 2043] [client 96.233.47.54:38631] mod_wsgi (pid=2043): Exception occurred processing WSGI script '/usr/share/apache2/iredadmin/iredadmin.py'.
[Tue Apr 29 14:50:15.416729 2014] [:error] [pid 2043] [client 96.233.47.54:38631] Traceback (most recent call last):
[Tue Apr 29 14:50:15.416764 2014] [:error] [pid 2043] [client 96.233.47.54:38631]   File "/usr/share/apache2/iredadmin/iredadmin.py", line 9, in <module>
[Tue Apr 29 14:50:15.416903 2014] [:error] [pid 2043] [client 96.233.47.54:38631]     from libs import iredbase
[Tue Apr 29 14:50:15.416931 2014] [:error] [pid 2043] [client 96.233.47.54:38631]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 18, in <module>
[Tue Apr 29 14:50:15.417079 2014] [:error] [pid 2043] [client 96.233.47.54:38631]     import iredutils
[Tue Apr 29 14:50:15.417106 2014] [:error] [pid 2043] [client 96.233.47.54:38631]   File "/usr/share/apache2/iredadmin/libs/iredutils.py", line 13, in <module>
[Tue Apr 29 14:50:15.417324 2014] [:error] [pid 2043] [client 96.233.47.54:38631]     import settings
[Tue Apr 29 14:50:15.417362 2014] [:error] [pid 2043] [client 96.233.47.54:38631] ImportError: No module named settings
[Tue Apr 29 14:50:41.855699 2014] [:error] [pid 2178] [client 96.233.47.54:38770] mod_wsgi (pid=2178): Target WSGI script '/usr/share/apache2/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Tue Apr 29 14:50:41.855792 2014] [:error] [pid 2178] [client 96.233.47.54:38770] mod_wsgi (pid=2178): Exception occurred processing WSGI script '/usr/share/apache2/iredadmin/iredadmin.py'.
[Tue Apr 29 14:50:41.855833 2014] [:error] [pid 2178] [client 96.233.47.54:38770] Traceback (most recent call last):
[Tue Apr 29 14:50:41.855873 2014] [:error] [pid 2178] [client 96.233.47.54:38770]   File "/usr/share/apache2/iredadmin/iredadmin.py", line 9, in <module>
[Tue Apr 29 14:50:41.856022 2014] [:error] [pid 2178] [client 96.233.47.54:38770]     from libs import iredbase
[Tue Apr 29 14:50:41.856051 2014] [:error] [pid 2178] [client 96.233.47.54:38770]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 18, in <module>
[Tue Apr 29 14:50:41.856201 2014] [:error] [pid 2178] [client 96.233.47.54:38770]     import iredutils
[Tue Apr 29 14:50:41.856229 2014] [:error] [pid 2178] [client 96.233.47.54:38770]   File "/usr/share/apache2/iredadmin/libs/iredutils.py", line 13, in <module>
[Tue Apr 29 14:50:41.856458 2014] [:error] [pid 2178] [client 96.233.47.54:38770]     import settings
[Tue Apr 29 14:50:41.856501 2014] [:error] [pid 2178] [client 96.233.47.54:38770] ImportError: No module named settings
[Tue Apr 29 14:51:23.664295 2014] [:error] [pid 2037] [client 96.233.47.54:48261] mod_wsgi (pid=2037): Target WSGI script '/usr/share/apache2/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Tue Apr 29 14:51:23.664365 2014] [:error] [pid 2037] [client 96.233.47.54:48261] mod_wsgi (pid=2037): Exception occurred processing WSGI script '/usr/share/apache2/iredadmin/iredadmin.py'.
[Tue Apr 29 14:51:23.664402 2014] [:error] [pid 2037] [client 96.233.47.54:48261] Traceback (most recent call last):
[Tue Apr 29 14:51:23.664439 2014] [:error] [pid 2037] [client 96.233.47.54:48261]   File "/usr/share/apache2/iredadmin/iredadmin.py", line 9, in <module>
[Tue Apr 29 14:51:23.664571 2014] [:error] [pid 2037] [client 96.233.47.54:48261]     from libs import iredbase
[Tue Apr 29 14:51:23.664599 2014] [:error] [pid 2037] [client 96.233.47.54:48261]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 18, in <module>
[Tue Apr 29 14:51:23.664744 2014] [:error] [pid 2037] [client 96.233.47.54:48261]     import iredutils
[Tue Apr 29 14:51:23.664770 2014] [:error] [pid 2037] [client 96.233.47.54:48261]   File "/usr/share/apache2/iredadmin/libs/iredutils.py", line 13, in <module>
[Tue Apr 29 14:51:23.664993 2014] [:error] [pid 2037] [client 96.233.47.54:48261]     import settings
[Tue Apr 29 14:51:23.665032 2014] [:error] [pid 2037] [client 96.233.47.54:48261] ImportError: No module named settings

4

Re: Admin interface not working in 'new' install

DragonFire wrote:

[Tue Apr 29 14:51:23.665032 2014] [:error] [pid 2037] [client 96.233.47.54:48261] ImportError: No module named settings

You don't have iRedAdmin-Pro config file "settings.py".
Old iRedAdmin-Pro config file is "settings.ini", but we're using 'settings.py' in the latest release. You can convert old config file with script shipped in iRedAdmin-Pro: tools/convert_ini_to_py.sh.

5

Re: Admin interface not working in 'new' install

There are no settings.ini files in the iredadmin folder...

ubuntu@ip-172-31-16-65:/usr/share/apache2/iredadmin$ cd /usr/share/apache2/iredadmin
ubuntu@ip-172-31-16-65:/usr/share/apache2/iredadmin$ ll
total 92
dr-xr-xr-x  9 iredadmin iredadmin  4096 Apr 29 14:40 ./
drwxr-xr-x  8 root      root       4096 Apr 29 14:40 ../
-r-xr-xr-x  1 iredadmin iredadmin    49 Oct 14  2013 AUTHORS*
-r-xr-xr-x  1 iredadmin iredadmin  3958 Oct 14  2013 ChangeLog*
dr-xr-xr-x  6 iredadmin iredadmin  4096 Apr 29 14:40 controllers/
dr-xr-xr-x  3 iredadmin iredadmin  4096 Apr 29 14:40 docs/
dr-xr-xr-x 18 iredadmin iredadmin  4096 Apr 29 14:40 i18n/
-r-xr-xr-x  1 iredadmin iredadmin   402 Oct 14  2013 iredadmin.py*
dr-xr-xr-x  6 iredadmin iredadmin  4096 Apr 29 15:16 libs/
-r-xr-xr-x  1 iredadmin iredadmin 18092 Oct 14  2013 LICENSE*
-r-xr-xr-x  1 iredadmin iredadmin   439 Oct 14  2013 README*
-r--------  1 iredadmin iredadmin  3932 Apr 29 14:40 settings.py
-r-xr-xr-x  1 iredadmin iredadmin  4468 Oct 14  2013 settings.py.ldap.sample*
-r-xr-xr-x  1 iredadmin iredadmin  3831 Oct 14  2013 settings.py.mysql.sample*
-r-xr-xr-x  1 iredadmin iredadmin  3814 Oct 14  2013 settings.py.pgsql.sample*
dr-xr-xr-x  4 iredadmin iredadmin  4096 Apr 29 14:40 static/
dr-xr-xr-x  3 iredadmin iredadmin  4096 Apr 29 14:40 templates/
dr-xr-xr-x  2 iredadmin iredadmin  4096 Oct 14  2013 tools/
ubuntu@ip-172-31-16-65:/usr/share/apache2/iredadmin$ find . -name "*.ini"
ubuntu@ip-172-31-16-65:/usr/share/apache2/iredadmin$

6

Re: Admin interface not working in 'new' install

Weird. Is it possible to let me login to your server for further debug? Mail me: http://www.iredmail.org/contact.html

7

Re: Admin interface not working in 'new' install

Certainly, but you'll need to get the pem file to use ssh. If I send that to support@ is that 'private'?

8

Re: Admin interface not working in 'new' install

Command 'a2enconf iredadmin' fixes this issue.

9

Re: Admin interface not working in 'new' install

I got this….

root@mail:/usr/share/apache2/iredadmin# a2enconf iredadmin
ERROR: Conf iredadmin does not exist!
root@mail:/usr/share/apache2/iredadmin#

I had to do this….
root@mail:/usr/share/apache2/iredadmin# cp /etc/apache2/conf.d/iredadmin.conf /etc/apache2/conf-available/.

Then this ….

root@mail:/usr/share/apache2/iredadmin# a2enconf iredadmin
Enabling conf iredadmin.
To activate the new configuration, you need to run:
  service apache2 reload
root@mail:/usr/share/apache2/iredadmin# service apache2 reload
* Reloading web server apache2                                                                                                                                                                               *
root@mail:/usr/share/apache2/iredadmin#

Then it worked for me!