1

Topic: Error after update mysql-pro 1.2.1

Hello,

I've a problem after update. When I go to iredadmin webpage, I've a message :

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2.14 (Ubuntu) Server at mail.mydomain.fr Port 443

In the apache log, there is :

[Wed Jun 29 13:57:36 2011] [error] [client 192.168.xxx.xxx] mod_wsgi (pid=1544): Target WSGI script '/usr/share/apache2/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Wed Jun 29 13:57:37 2011] [error] [client 192.168.xxx.xxx] mod_wsgi (pid=1544): Exception occurred processing WSGI script '/usr/share/apache2/iredadmin/iredadmin.py'.
[Wed Jun 29 13:57:37 2011] [error] [client 192.168.xxx.xxx] Traceback (most recent call last):
[Wed Jun 29 13:57:37 2011] [error] [client 192.168.xxx.xxx]   File "/usr/share/apache2/iredadmin/iredadmin.py", line 8, in <module>
[Wed Jun 29 13:57:37 2011] [error] [client 192.168.xxx.xxx]     from libs import iredbase
[Wed Jun 29 13:57:37 2011] [error] [client 192.168.xxx.xxx]   File "/usr/share/apache2/iredadmin/libs/iredbase.py", line 34, in <module>
[Wed Jun 29 13:57:37 2011] [error] [client 192.168.xxx.xxx]     webmaster = cfg.general.get('webmaster', 'root')
[Wed Jun 29 13:57:37 2011] [error] [client 192.168.xxx.xxx]   File "/usr/lib/pymodules/python2.6/web/utils.py", line 68, in __getattr__
[Wed Jun 29 13:57:37 2011] [error] [client 192.168.xxx.xxx]     raise AttributeError, k
[Wed Jun 29 13:57:37 2011] [error] [client 192.168.xxx.xxx] AttributeError: 'general'
[Wed Jun 29 13:57:37 2011] [error] [client 192.168.xxx.xxx] File does not exist: /usr/share/apache2/roundcubemail/favicon.ico, referer: https://mail.mydomain.fr/iredadmin

But when I change symbolic link to the older version, everything's working fine...

I've the 1.2.1 mysql-pro version.

Thanks

2

Re: Error after update mysql-pro 1.2.1

nicolasfo wrote:

[Wed Jun 29 13:57:37 2011] [error] [client 192.168.xxx.xxx] AttributeError: 'general'

File owner or permission is incorrect on file /usr/share/apache2/iredadmin/settings.ini (point to new version).
It should be owned by user 'vmail', group 'vmail', file permission '0400'. Below command fix it:

# cd /usr/share/apache2/iredadmin/           # <- Again, point to new version.
# chown vmail:vmail settings.ini
# chmod 0400 settings.ini

Restarting Apache is recommended.

3

Re: Error after update mysql-pro 1.2.1

I did your commands, from the beginning (delete the folder and do all the commands again) and same problem...

I'm updating from 1.1.0 to 1.2.1, can it be a problem ?

Thanks

4

Re: Error after update mysql-pro 1.2.1

I had the same error:

I set the user to iredadmin:iredadmin..when I installed and it works
then chown'ed to 0600

$ cd /usr/share/apache2/iRedAdmin-0.1.5
$ cp settings.ini ../iRedAdmin-Pro-MySQL-1.2.1/settings.ini
$ cd ../iRedAdmin-Pro-MySQL-1.2.1
$ chown iredadmin:iredadmin settings.ini
$ chmod 0600 settings.ini

restart apache
# /etc/init.d/apache2 restart

HTH

nicolasfo wrote:

I did your commands, from the beginning (delete the folder and do all the commands again) and same problem...

I'm updating from 1.1.0 to 1.2.1, can it be a problem ?

Thanks

5

Re: Error after update mysql-pro 1.2.1

Could you please show me output of below commands?

# ls -dl /usr/share/apache2/iredadmin/
# ls -dl /usr/share/apache2/iredadmin/*

6 (edited by nicolasfo 2011-06-30 15:59:24)

Re: Error after update mysql-pro 1.2.1

Thanks temabu, it works with "your" chmod smile

Thanks Zhang too smile

7

Re: Error after update mysql-pro 1.2.1

nicolasfo wrote:

Thanks temabu, it works with "your" chmod

Oops, i typed incorrect user and group names in my reply. It should be 'iredadmin:iredadmin', not 'vmail:vmail'.
Sorry about my mistake.