1

Topic: iRedadmin upgrading from Ose problem

Hello , i made a fresh Centos 5.5 x64 installation and then installed iredmail 0.6.1 . All good by then iredadmin works fine.
After i decided to buy iRedadmin Pro and followed your instructions to upgrade iRedadmin-OSE to iRedadmin-Pro Step by Step .
I am very sorry that there is no guide for us on how to install iRedadmin Pro straight from the start without having to upgrade from OSE but anyway take that as a request .
Is there a possibility for us paying customers to have iRedOs with iRedadmin Pro preinstaled ?
After upgrading to Pro i get internal server error when i try to log in https://my.server.cc/iredadmin
i send you the logs , please help me out i cant control anything without iredadmin .



[root@mailsrv iredadmin]# tail /var/log/httpd/ssl_error_log

[Thu Jan 06 11:16:19 2011] [error] [client 192.168.1.102]     ctx.db = self._connect(self.keywords)
[Thu Jan 06 11:16:19 2011] [error] [client 192.168.1.102]   File "/usr/lib/python2.4/site-packages/web/db.py", line 502, in _connect
[Thu Jan 06 11:16:19 2011] [error] [client 192.168.1.102]     return self.db_module.connect(**keywords)
[Thu Jan 06 11:16:19 2011] [error] [client 192.168.1.102]   File "/usr/lib64/python2.4/site-packages/MySQLdb/__init__.py", line 75, in Connect
[Thu Jan 06 11:16:19 2011] [error] [client 192.168.1.102]     return Connection(*args, **kwargs)
[Thu Jan 06 11:16:19 2011] [error] [client 192.168.1.102]   File "/usr/lib64/python2.4/site-packages/MySQLdb/connections.py", line 164, in __init__
[Thu Jan 06 11:16:19 2011] [error] [client 192.168.1.102]     super(Connection, self).__init__(*args, **kwargs2)
[Thu Jan 06 11:16:19 2011] [error] [client 192.168.1.102] OperationalError: (1045, "Access denied for user 'iredadmin'@'localhost' (using password: YES)")
[Thu Jan 06 11:16:19 2011] [error] [client 192.168.1.102]
[Thu Jan 06 11:16:19 2011] [error] [client 192.168.1.102] File does not exist: /var/www/html/favicon.ico
[root@mailsrv iredadmin]#

[root@mailsrv iredadmin]# tail /var/log/httpd/error_log

[Thu Jan 06 11:10:51 2011] [notice] Digest: generating secret for digest authentication ...
[Thu Jan 06 11:10:51 2011] [notice] Digest: done
PHP Warning:  PHP Startup: fileinfo: Unable to initialize module\nModule compiled with module API=20050922, debug=0, thread-safety=0\nPHP    compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
[Thu Jan 06 11:10:52 2011] [notice] Apache configured -- resuming normal operations
[Thu Jan 06 11:15:31 2011] [notice] caught SIGTERM, shutting down
[Thu Jan 06 11:15:31 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jan 06 11:15:31 2011] [notice] Digest: generating secret for digest authentication ...
[Thu Jan 06 11:15:31 2011] [notice] Digest: done
PHP Warning:  PHP Startup: fileinfo: Unable to initialize module\nModule compiled with module API=20050922, debug=0, thread-safety=0\nPHP    compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
[Thu Jan 06 11:15:32 2011] [notice] Apache configured -- resuming normal operations
[root@mailsrv iredadmin]#

[root@mailsrv iredadmin]# tail /var/log/maillog
Jan  6 10:52:04 mailsrv amavis[3948]: Found decoder for    .exe  at /usr/bin/unrar; /usr/bin/lha; /usr/bin/arj
Jan  6 10:52:04 mailsrv amavis[3948]: Using primary internal av scanner code for ClamAV-clamd
Jan  6 10:52:04 mailsrv amavis[3948]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Jan  6 10:52:04 mailsrv amavis[3948]: Creating db in /var/amavis/db/; BerkeleyDB 0.36, libdb 4.3
Jan  6 10:52:05 mailsrv postfix/postfix-script[4014]: starting the Postfix mail system
Jan  6 10:52:05 mailsrv postfix/master[4015]: daemon started -- version 0.6.1, configuration /etc/postfix
Jan  6 10:52:07 mailsrv policyd: starting policyd v1.82
Jan  6 10:52:07 mailsrv policyd: connecting to mysql database: 127.0.0.1
Jan  6 18:52:07 mailsrv policyd: connected..
Jan  6 10:52:08 mailsrv pysieved[4223]: Listening on INADDR_ANY port 2000
[root@mailsrv iredadmin]#

[root@mailsrv iredadmin]# ls -l
total 68
-rwxr-xr-x  1 1227 1228   55 Jan  6 02:00 AUTHORS
-rwxr-xr-x  1 1227 1228 6153 Jan  6 02:00 ChangeLog
drwxr-xr-x  5 1227 1228 4096 Jan  6 02:00 controllers
drwxr-xr-x  3 1227 1228 4096 Jan  6 02:00 docs
-rwxr-xr-x  1 1227 1228  456 Jan  6 02:00 EULA
drwxr-xr-x 15 1227 1228 4096 Jan  6 02:00 i18n
-rwxr-xr-x  1 1227 1228 1123 Jan  6 02:00 iredadmin.py
drwxr-xr-x  5 1227 1228 4096 Jan  6 02:00 libs
-rwxr-xr-x  1 1227 1228 1052 Jan  6 02:00 README
-rwxr-xr-x  1 root root 4242 Jan  6 11:15 settings.ini
-rwxr-xr-x  1 1227 1228 4242 Jan  6 02:00 settings.ini.ldap.sample
drwxr-xr-x  4 1227 1228 4096 Jan  6 02:00 static
drwxr-xr-x  3 1227 1228 4096 Jan  6 02:00 templates
drwxr-xr-x  2 1227 1228 4096 Jan  6 02:00 tools
[root@mailsrv iredadmin]#

2

Re: iRedadmin upgrading from Ose problem

can you please write a simple how-to on how to install iRedadmin-Pro directly on a fresh installation without having to upgrade from iRedadmin-OSE . i will be gratefull since it's the second time i do a fresh install and i fail to upgrade from OSE .
i want to do a fresh install , exclude iRedadmin-OSE from the initial installation and install iRedadmin-Pro right after.
Thanks

3

Re: iRedadmin upgrading from Ose problem

You don't have to upgrade OSE version, the installation guide works for both OSE and iRedAdmin-Pro.

Sorry, this is my mistake, not clear enough.

4

Re: iRedadmin upgrading from Ose problem

Hello , you mean this guide right ?
http://www.iredmail.org/admin_installation_rhel.html

5

Re: iRedadmin upgrading from Ose problem

Yes.

6

Re: iRedadmin upgrading from Ose problem

i tried it step by step as good as i could but again i get internal server error . please help me i'm really frustrated . what logs do you need ?

7

Re: iRedadmin upgrading from Ose problem

[root@mailsrv ~]# tail /var/log/httpd/error_log
[Fri Jan 07 01:14:27 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Jan 07 01:14:27 2011] [notice] Digest: done
PHP Warning:  PHP Startup: fileinfo: Unable to initialize module\nModule compiled with module API=20050922, debug=0, thread-safety=0\nPHP    compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
[Fri Jan 07 01:14:27 2011] [notice] Apache configured -- resuming normal operations
[Fri Jan 07 01:25:44 2011] [notice] caught SIGTERM, shutting down
[Fri Jan 07 01:27:41 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Jan 07 01:27:41 2011] [notice] Digest: generating secret for digest authentication ...
[Fri Jan 07 01:27:41 2011] [notice] Digest: done
PHP Warning:  PHP Startup: fileinfo: Unable to initialize module\nModule compiled with module API=20050922, debug=0, thread-safety=0\nPHP    compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
[Fri Jan 07 01:27:42 2011] [notice] Apache configured -- resuming normal operations
[root@mailsrv ~]#

8

Re: iRedadmin upgrading from Ose problem

[root@mailsrv ~]# tail /var/log/httpd/ssl_access_log
192.168.1.102 - - [07/Jan/2011:01:12:12 -0800] "GET /iredadmin HTTP/1.1" 500 639
192.168.1.102 - - [07/Jan/2011:01:12:12 -0800] "GET /favicon.ico HTTP/1.1" 404 314
192.168.1.102 - - [07/Jan/2011:01:19:09 -0800] "GET /iredadmin HTTP/1.1" 500 639
192.168.1.102 - - [07/Jan/2011:01:19:09 -0800] "GET /favicon.ico HTTP/1.1" 404 314
192.168.1.102 - - [07/Jan/2011:01:24:44 -0800] "GET /iredadmin HTTP/1.1" 500 639
192.168.1.102 - - [07/Jan/2011:01:24:44 -0800] "GET /favicon.ico HTTP/1.1" 404 314
192.168.1.102 - - [07/Jan/2011:01:24:46 -0800] "GET /iredadmin HTTP/1.1" 500 639
192.168.1.102 - - [07/Jan/2011:01:24:47 -0800] "GET /favicon.ico HTTP/1.1" 404 314
192.168.1.102 - - [07/Jan/2011:01:41:43 -0800] "GET /iredadmin HTTP/1.1" 500 639
192.168.1.102 - - [07/Jan/2011:01:41:43 -0800] "GET /favicon.ico HTTP/1.1" 404 314
[root@mailsrv ~]#


[root@mailsrv ~]# tail /var/log/httpd/ssl_error_log
[Fri Jan 07 01:24:47 2011] [error] [client 192.168.1.102] File does not exist: /var/www/html/favicon.ico
[Fri Jan 07 01:27:41 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 07 01:27:42 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 07 01:41:43 2011] [error] [client 192.168.1.102] mod_wsgi (pid=4064): Target WSGI script '/var/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Fri Jan 07 01:41:43 2011] [error] [client 192.168.1.102] mod_wsgi (pid=4064): Exception occurred processing WSGI script '/var/www/iredadmin/iredadmin.py'.
[Fri Jan 07 01:41:43 2011] [error] [client 192.168.1.102] Traceback (most recent call last):
[Fri Jan 07 01:41:43 2011] [error] [client 192.168.1.102]   File "/var/www/iredadmin/iredadmin.py", line 24, in ?
[Fri Jan 07 01:41:43 2011] [error] [client 192.168.1.102]     import web
[Fri Jan 07 01:41:43 2011] [error] [client 192.168.1.102] ImportError: No module named web
[Fri Jan 07 01:41:43 2011] [error] [client 192.168.1.102] File does not exist: /var/www/html/favicon.ico
[root@mailsrv ~]#

[root@mailsrv ~]# tail /var/log/maillog
Jan  7 01:27:43 mailsrv policyd: starting policyd v1.82
Jan  7 01:27:43 mailsrv policyd: connecting to mysql database: 127.0.0.1
Jan  7 09:27:43 mailsrv policyd: connected..
Jan  7 01:27:43 mailsrv pysieved[4192]: Listening on INADDR_ANY port 2000
Jan  7 01:38:37 mailsrv postfix/smtpd[4673]: connect from unknown[216.146.33.239]
Jan  7 01:38:38 mailsrv postfix/smtpd[4673]: NOQUEUE: reject: RCPT from unknown[216.146.33.239]: 550 5.1.1 <drsys@xxxxx.cc>: Recipient address rejected: User unknown in virtual mailbox table; from=<noreply@naftemporiki.gr> to=<drsys@xxxxx.cc> proto=ESMTP helo=<mail-12-ewr.dyndns.com>
Jan  7 01:38:38 mailsrv postfix/smtpd[4673]: disconnect from unknown[216.146.33.239]
Jan  7 01:41:58 mailsrv postfix/anvil[4676]: statistics: max connection rate 1/60s for (smtp:216.146.33.239) at Jan  7 01:38:37
Jan  7 01:41:58 mailsrv postfix/anvil[4676]: statistics: max connection count 1 for (smtp:216.146.33.239) at Jan  7 01:38:37
Jan  7 01:41:58 mailsrv postfix/anvil[4676]: statistics: max cache size 1 at Jan  7 01:38:37
[root@mailsrv ~]#


[root@mailsrv ~]# tail /var/log/dovecot.log
dovecot: Jan 07 00:32:26 Info: Generating Diffie-Hellman parameters for the first time. This may take a while..
dovecot: Jan 07 00:32:40 Info: ssl-build-param: SSL parameters regeneration completed
dovecot: Jan 07 00:33:13 Warning: Killed with signal 15
dovecot: Jan 07 00:35:03 Info: dovecot v1.1.20 starting up (core dumps disabled)
dovecot: Jan 07 01:11:52 Warning: Killed with signal 15
dovecot: Jan 07 01:11:53 Info: dovecot v1.1.20 starting up (core dumps disabled)
dovecot: Jan 07 01:12:27 Warning: Killed with signal 15
dovecot: Jan 07 01:14:23 Info: dovecot v1.1.20 starting up (core dumps disabled)
dovecot: Jan 07 01:25:47 Warning: Killed with signal 15
dovecot: Jan 07 01:27:38 Info: dovecot v1.1.20 starting up (core dumps disabled)
[root@mailsrv ~]#

9

Re: iRedadmin upgrading from Ose problem

[root@mailsrv ~]# tail /var/log/openldap.log
Jan  7 00:31:02 mailsrv slapd[5544]: @(#) $OpenLDAP: slapd 2.3.43 (Nov 29 2010 03:44:41) $     mockbuild@builder10.centos.org:/builddir/build/BUILD/openldap-2.3.43/openldap-2.3.43/build-servers/servers/slapd
Jan  7 00:32:26 mailsrv slapd[6822]: @(#) $OpenLDAP: slapd 2.3.43 (Nov 29 2010 03:44:41) $     mockbuild@builder10.centos.org:/builddir/build/BUILD/openldap-2.3.43/openldap-2.3.43/build-servers/servers/slapd
Jan  7 00:34:55 mailsrv slapd[3705]: @(#) $OpenLDAP: slapd 2.3.43 (Nov 29 2010 03:44:41) $     mockbuild@builder10.centos.org:/builddir/build/BUILD/openldap-2.3.43/openldap-2.3.43/build-servers/servers/slapd
Jan  7 01:11:36 mailsrv slapd[5773]: @(#) $OpenLDAP: slapd 2.3.43 (Nov 29 2010 03:44:41) $     mockbuild@builder10.centos.org:/builddir/build/BUILD/openldap-2.3.43/openldap-2.3.43/build-servers/servers/slapd
Jan  7 01:14:14 mailsrv slapd[3705]: @(#) $OpenLDAP: slapd 2.3.43 (Nov 29 2010 03:44:41) $     mockbuild@builder10.centos.org:/builddir/build/BUILD/openldap-2.3.43/openldap-2.3.43/build-servers/servers/slapd
Jan  7 01:27:30 mailsrv slapd[3706]: @(#) $OpenLDAP: slapd 2.3.43 (Nov 29 2010 03:44:41) $     mockbuild@builder10.centos.org:/builddir/build/BUILD/openldap-2.3.43/openldap-2.3.43/build-servers/servers/slapd
[root@mailsrv ~]#

[root@mailsrv ~]# tail /var/log/mysqld.log
110107  1:25:47  InnoDB: Starting shutdown...
110107  1:25:48  InnoDB: Shutdown completed; log sequence number 0 72932
110107  1:25:48 [Note] /usr/libexec/mysqld: Shutdown complete

110107 01:25:48  mysqld ended

110107 01:27:36  mysqld started
110107  1:27:37  InnoDB: Started; log sequence number 0 72932
110107  1:27:37 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.0.77'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  Source distribution
[root@mailsrv ~]#

10

Re: iRedadmin upgrading from Ose problem

Internal Server Error

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

Please contact the server administrator, root@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 Server at mailsrv.xxxxx.cc Port 443

11

Re: iRedadmin upgrading from Ose problem

[error] [client 192.168.1.102] ImportError: No module named web

You don't have python module installed: web.py. Fix it with this step:

# easy_install web.py

Also, please make sure you have other required packages installed:
http://iredmail.org/admin_installation_ … l_packages

12

Re: iRedadmin upgrading from Ose problem

[root@mailsrv pkgs]# yum install MySQL-python.x86_64 python-webpy.x86_64 python-jinja2.x86_64 python-ldap.x86_64 mod_wsgi.x86_64
Loaded plugins: fastestmirror, protectbase
Loading mirror speeds from cached hostfile
* addons: ftp.ntua.gr
* base: ftp.ntua.gr
* extras: ftp.ntua.gr
* updates: ftp.ntua.gr
addons                                                                                                                                                         |  951 B     00:00     
base                                                                                                                                                           | 2.1 kB     00:00     
extras                                                                                                                                                         | 2.1 kB     00:00     
iRedMail                                                                                                                                                       |  951 B     00:00     
updates                                                                                                                                                        | 1.9 kB     00:00     
updates/primary_db                                                                                                                                             | 1.1 MB     00:01     
0 packages excluded due to repository protections
Setting up Install Process
Package MySQL-python-1.2.1-1.x86_64 already installed and latest version
No package python-webpy.x86_64 available.
Package python-jinja2-2.2.1-1.el5.x86_64 already installed and latest version
Package 1:python-ldap-2.3.9-1.ired.x86_64 already installed and latest version
Package mod_wsgi-2.5-2.ired.x86_64 already installed and latest version
Nothing to do
[root@mailsrv pkgs]#

the correct package is :
  python-webpy.noarch 0:0.32-3.el5 

please correct it on your howto

13

Re: iRedadmin upgrading from Ose problem

Everything works fine now , problem solved :-) Thank you

14

Re: iRedadmin upgrading from Ose problem

drsys wrote:

the correct package is :
  python-webpy.noarch 0:0.32-3.el5 

Fixed in RHEL/CentOS installation guide. Thanks for your feedback. smile
http://iredmail.org/admin_installation_ … l_packages