1

Topic: mod_mime_magic: can't read `iredadmin/settings.pyc'

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

Hello,

I did a fresh installation on a fresh CentOS and afterwards i couldn't access the iredadmin. Everything else seems to work fine.

Here are the errors it seems i get:

error_log:[Fri Sep 09 23:14:13 2016] [debug] mod_wsgi.c(11406): mod_wsgi (pid=3743): Reset default group for daemon process group 'iredadmin' to gid=48.
error_log:[Fri Sep 09 23:14:13 2016] [debug] mod_wsgi.c(10039): mod_wsgi (pid=3743): Socket for 'iredadmin' is '/var/run/wsgi.3743.0.1.sock'.
error_log:[Fri Sep 09 23:14:13 2016] [info] mod_wsgi (pid=3745): Starting process 'iredadmin' with uid=2001, gid=48 and threads=15.
error_log:[Fri Sep 09 23:19:58 2016] [info] mod_wsgi (pid=3745): Shutdown requested 'iredadmin'.
error_log:[Fri Sep 09 23:19:58 2016] [info] mod_wsgi (pid=3745): Stopping process 'iredadmin'.
error_log:[Fri Sep 09 23:20:00 2016] [debug] mod_wsgi.c(11406): mod_wsgi (pid=3885): Reset default group for daemon process group 'iredadmin' to gid=48.
error_log:[Fri Sep 09 23:20:00 2016] [debug] mod_wsgi.c(10039): mod_wsgi (pid=3885): Socket for 'iredadmin' is '/var/run/wsgi.3885.0.1.sock'.
error_log:[Fri Sep 09 23:20:00 2016] [info] mod_wsgi (pid=3887): Starting process 'iredadmin' with uid=2001, gid=48 and threads=15.
error_log:[Fri Sep 09 23:20:25 2016] [info] mod_wsgi (pid=3887): Shutdown requested 'iredadmin'.
error_log:[Fri Sep 09 23:20:25 2016] [info] mod_wsgi (pid=3887): Stopping process 'iredadmin'.
error_log:[Fri Sep 09 23:20:26 2016] [debug] mod_wsgi.c(11406): mod_wsgi (pid=3955): Reset default group for daemon process group 'iredadmin' to gid=48.
error_log:[Fri Sep 09 23:20:26 2016] [debug] mod_wsgi.c(10039): mod_wsgi (pid=3955): Socket for 'iredadmin' is '/var/run/wsgi.3955.0.1.sock'.
error_log:[Fri Sep 09 23:20:26 2016] [info] mod_wsgi (pid=3957): Starting process 'iredadmin' with uid=2001, gid=48 and threads=15.
ssl_error_log.cloud.log:[Fri Sep 09 23:33:11 2016] [error] [client 94.210.16.163] mod_mime_magic: can't read `iredadmin/settings.pyc'

Thanks in advance for the assistance!

----

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

2

Re: mod_mime_magic: can't read `iredadmin/settings.pyc'

Does it work if you disable module 'mod_mime_magic'?

3

Re: mod_mime_magic: can't read `iredadmin/settings.pyc'

tried it, didn't work. check yourself: https://www.savagi.net/iredadmin/

4

Re: mod_mime_magic: can't read `iredadmin/settings.pyc'

*) Do you have file /var/www/iredadmin/settings.py (and settings.pyc)?
*) Show me full content of /etc/httpd/conf.d/iredadmin.conf please.
*) Did you modify any other Apache settings?
*) Try to turn on debug mode in Apache and try again, any useful info in Apache log file?

5

Re: mod_mime_magic: can't read `iredadmin/settings.pyc'

1) I do. please look:

[admin@vps ~]$ ls -lah /var/www/iredadmin/
total 104K
dr-xr-xr-x  9 root root 4.0K Sep  9 23:29 .
drwxr-xr-x 10 root root 4.0K Sep  8 08:55 ..
-r-xr-xr-x  1 root root   49 May 15 15:35 AUTHORS
-r-xr-xr-x  1 root root 7.9K May 15 15:35 ChangeLog
-r-xr-xr-x  1 root root  18K May 15 15:35 LICENSE
-r-xr-xr-x  1 root root  264 May 15 15:35 README
dr-xr-xr-x  6 root root 4.0K May 15 15:35 controllers
dr-xr-xr-x  3 root root 4.0K May 15 15:35 docs
dr-xr-xr-x 18 root root 4.0K May 15 15:35 i18n
-r-xr-xr-x  1 root root  402 May 15 15:35 iredadmin.py
dr-xr-xr-x  6 root root 4.0K Sep  8 02:01 libs
-r-x--x--x  1 root root 4.2K Sep  7 11:24 settings.py
-r-xr-xr-x  1 root root 4.1K May 15 15:35 settings.py.ldap.sample
-r-xr-xr-x  1 root root 3.5K May 15 15:35 settings.py.mysql.sample
-r-xr-xr-x  1 root root 3.5K May 15 15:35 settings.py.pgsql.sample
-r--------  1 root root 1.6K Sep  8 02:01 settings.pyc
dr-xr-xr-x  4 root root 4.0K May 15 15:35 static
dr-xr-xr-x  3 root root 4.0K May 15 15:35 templates
dr-xr-xr-x  2 root root 4.0K Sep  8 02:01 tools 

2) Here it is:

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

AddType text/html .py

<Directory /var/www/iredadmin/>
    Order allow,deny
Allow from all
</Directory> 

3) I did create vhosts and use yum to update the system, but i did not test iredadmin before updating so i don't know if it was working or not

4) On /etc/httpd/conf/httpd.conf i did change Loglevel debug
error_log:

[Sun Sep 11 14:25:16 2016] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/httpd/conf/magic
[Sun Sep 11 14:25:16 2016] [info] Init: Seeding PRNG with 256 bytes of entropy
[Sun Sep 11 14:25:16 2016] [info] Init: Initializing (virtual) servers for SSL
[Sun Sep 11 14:25:16 2016] [debug] ssl_engine_init.c(412): Creating new SSL context (protocols: SSLv2, SSLv3, TLSv1, TLSv1.1, TLSv1.2)
[Sun Sep 11 14:25:16 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Sun Sep 11 14:25:16 2016] [info] mod_ssl/2.2.15 compiled against Server: Apache/2.2.15, Library: OpenSSL/1.0.1e-fips
[Sun Sep 11 14:25:16 2016] [error] (2)No such file or directory: mod_mime_magic: can't read magic file /etc/httpd/conf/magic
[Sun Sep 11 14:25:16 2016] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 11 14:25:16 2016] [notice] Digest: done
[Sun Sep 11 14:25:16 2016] [debug] util_ldap.c(2089): LDAP merging Shared Cache conf: shm=0x7fc986df2a98 rmm=0x7fc986df2af0 for VHOST: savagi.net
[Sun Sep 11 14:25:16 2016] [info] APR LDAP: Built with OpenLDAP LDAP SDK
[Sun Sep 11 14:25:16 2016] [info] LDAP: SSL support available
[Sun Sep 11 14:25:16 2016] [info] Init: Seeding PRNG with 256 bytes of entropy
[Sun Sep 11 14:25:16 2016] [debug] ssl_scache_shmcb.c(253): shmcb_init allocated 512000 bytes of shared memory
[Sun Sep 11 14:25:16 2016] [debug] ssl_scache_shmcb.c(272): for 511920 bytes (512000 including header), recommending 32 subcaches, 133 indexes each
[Sun Sep 11 14:25:16 2016] [debug] ssl_scache_shmcb.c(306): shmcb_init_memory choices follow
[Sun Sep 11 14:25:16 2016] [debug] ssl_scache_shmcb.c(308): subcache_num = 32
[Sun Sep 11 14:25:16 2016] [debug] ssl_scache_shmcb.c(310): subcache_size = 15992
[Sun Sep 11 14:25:16 2016] [debug] ssl_scache_shmcb.c(312): subcache_data_offset = 3208
[Sun Sep 11 14:25:16 2016] [debug] ssl_scache_shmcb.c(314): subcache_data_size = 12784
[Sun Sep 11 14:25:16 2016] [debug] ssl_scache_shmcb.c(316): index_num = 133
[Sun Sep 11 14:25:16 2016] [info] Shared memory session cache initialised
[Sun Sep 11 14:25:16 2016] [info] Init: Initializing (virtual) servers for SSL
[Sun Sep 11 14:25:16 2016] [debug] ssl_engine_init.c(412): Creating new SSL context (protocols: SSLv2, SSLv3, TLSv1, TLSv1.1, TLSv1.2)
[Sun Sep 11 14:25:16 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Sun Sep 11 14:25:16 2016] [info] mod_ssl/2.2.15 compiled against Server: Apache/2.2.15, Library: OpenSSL/1.0.1e-fips
[Sun Sep 11 14:25:16 2016] [debug] mod_wsgi.c(11406): mod_wsgi (pid=19349): Reset default group for daemon process group 'iredadmin' to gid=48.
[Sun Sep 11 14:25:16 2016] [debug] mod_wsgi.c(10039): mod_wsgi (pid=19349): Socket for 'iredadmin' is '/var/run/wsgi.19349.0.1.sock'.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19351): Starting process 'iredadmin' with uid=2001, gid=48 and threads=15.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19351): Initializing Python.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19352 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19352 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19352 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19352 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19352 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19352 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19352): Initializing Python.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19356 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19356 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19356 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19356 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19356 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19356 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19356): Initializing Python.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19355 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19355 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19355 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19355 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19355 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19355 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19355): Initializing Python.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19354 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19354 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19354 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19354 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19354 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19354 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19354): Initializing Python.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19351): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19352): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19357 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19357 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19357 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19357 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19357 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19357 for (*)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19367 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19367 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19367 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19357): Initializing Python.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19367 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19367 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19367 for (*)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19360 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19360 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19360 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19367): Initializing Python.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19360 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19360 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19360 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19360): Initializing Python.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19358 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19358 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19358 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19358 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19358 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19358 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19358): Initializing Python.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19359 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19359 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19359 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19359 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19359 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19359 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19367): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19379 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19379 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19379 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19379 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19379 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19379 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19379): Initializing Python.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19353 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19353 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19353 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19353 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19353 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19353 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19353): Initializing Python.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19360): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19359): Initializing Python.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19379): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19381 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19381 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19381 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19381 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19381 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19381 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19381): Initializing Python.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19359): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19380 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19380 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19380 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19380 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19380 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19380 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19380): Initializing Python.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19381): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19380): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19383 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19383 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19382 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19383 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19383 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19382 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19382 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19383 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19382 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19382 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19383 for (*)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19382 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19383): Initializing Python.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19382): Initializing Python.
[Sun Sep 11 14:25:16 2016] [notice] Apache/2.2.15 (Unix) PHP/5.5.38 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations
[Sun Sep 11 14:25:16 2016] [info] Server built: Jul 18 2016 15:24:00
[Sun Sep 11 14:25:16 2016] [debug] prefork.c(1028): AcceptMutex: sysvsem (default: sysvsem)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19382): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 0 in child 19384 for worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 0 in child 19384 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 1 in child 19384 for worker http://127.0.0.1:20000/SOGo
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker http://127.0.0.1:20000/SOGo already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 1 in child 19384 for (127.0.0.1)
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1909): proxy: grabbed scoreboard slot 3 in child 19384 for worker proxy:reverse
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(1929): proxy: worker proxy:reverse already initialized
[Sun Sep 11 14:25:16 2016] [debug] proxy_util.c(2025): proxy: initialized single connection worker 3 in child 19384 for (*)
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19384): Initializing Python.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19383): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19358): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19354): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19384): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19353): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19357): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19355): Attach interpreter ''.
[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19356): Attach interpreter ''.

all the other logs ar quite too much so i did this for you:

[root@vps httpd]# grep -ir "iredadmin" .
./ssl_request_log:[11/Sep/2016:14:25:39 +0300] 94.210.16.163 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET /iredadmin/settings.py HTTP/1.1" 262
./ssl_request_log:[11/Sep/2016:14:25:41 +0300] 94.210.16.163 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET /iredadmin/ HTTP/1.1" 723
./ssl_request_log:[11/Sep/2016:14:25:42 +0300] 94.210.16.163 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET /iredadmin HTTP/1.1" 257
./ssl_request_log:[11/Sep/2016:14:25:42 +0300] 94.210.16.163 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET /iredadmin/ HTTP/1.1" 723
./ssl_request_log:[11/Sep/2016:14:25:51 +0300] 94.210.16.163 TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 "GET /iredadmin/settings.py HTTP/1.1" 262
./ssl_access_log.cloud.log:94.210.16.163 - - [11/Sep/2016:14:25:39 +0300] "GET /iredadmin/settings.py HTTP/1.1" 403 262
./ssl_access_log.cloud.log:94.210.16.163 - - [11/Sep/2016:14:25:41 +0300] "GET /iredadmin/ HTTP/1.1" 200 723
./ssl_access_log.cloud.log:94.210.16.163 - - [11/Sep/2016:14:25:42 +0300] "GET /iredadmin HTTP/1.1" 301 257
./ssl_access_log.cloud.log:94.210.16.163 - - [11/Sep/2016:14:25:42 +0300] "GET /iredadmin/ HTTP/1.1" 200 723
./ssl_access_log.cloud.log:94.210.16.163 - - [11/Sep/2016:14:25:51 +0300] "GET /iredadmin/settings.py HTTP/1.1" 403 262
./error_log:[Sun Sep 11 14:25:16 2016] [debug] mod_wsgi.c(11406): mod_wsgi (pid=19349): Reset default group for daemon process group 'iredadmin' to gid=48.
./error_log:[Sun Sep 11 14:25:16 2016] [debug] mod_wsgi.c(10039): mod_wsgi (pid=19349): Socket for 'iredadmin' is '/var/run/wsgi.19349.0.1.sock'.
./error_log:[Sun Sep 11 14:25:16 2016] [info] mod_wsgi (pid=19351): Starting process 'iredadmin' with uid=2001, gid=48 and threads=15.
./ssl_error_log.cloud.log:[Sun Sep 11 14:25:39 2016] [error] [client 94.210.16.163] (13)Permission denied: file permissions deny server access: /var/www/SaVaGi/concrete5/iredadmin/settings.py
./ssl_error_log.cloud.log:[Sun Sep 11 14:25:51 2016] [error] [client 94.210.16.163] (13)Permission denied: file permissions deny server access: /var/www/SaVaGi/concrete5/iredadmin/settings.py, referer: https://www.savagi.net/iredadmin/

6

Re: mod_mime_magic: can't read `iredadmin/settings.pyc'

*) What did you change in Apache AFTER iRedMail installation?
*) With default iRedMail installation, file 'settings.py' is owned by 'iredadmin:iredadmin' with permission 0400.
*) What does "SaVaGi/concrete5" mean in below error? If you run this program as different user?

./ssl_error_log.cloud.log:[Sun Sep 11 14:25:39 2016] [error] [client 94.210.16.163] (13)Permission denied: file permissions deny server access: /var/www/SaVaGi/concrete5/iredadmin/settings.py

7 (edited by vasileiosg 2016-09-12 18:30:08)

Re: mod_mime_magic: can't read `iredadmin/settings.pyc'

1) I have added vhosts, the specific one you are asking looks like this:

<VirtualHost *:443>
DocumentRoot /var/www/SaVaGi/concrete5
        LogLevel warn
        SSLEngine on
        SSLProtocol +SSLv3 +TLSv1 +TLSv1.1 +TLSv1.2
        SSLCipherSuite DEFAULT:!EXP:!SSLv2:!DES:!IDEA:!SEED:+3DES
        SSLCertificateFile .pem
        SSLCertificateKeyFile .pem
        <Files ~ "\.(cgi|shtml|phtml|php3?)$">
                SSLOptions +StdEnvVars
        </Files>
        <IfModule mod_headers.c>
                Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
        </IfModule>
        <Directory "/var/www/cgi-bin">
                SSLOptions +StdEnvVars
        </Directory>
        SetEnvIf User-Agent ".*MSIE.*"          nokeepalive ssl-unclean-shutdown          downgrade-1.0 force-response-1.0
        CustomLog logs/ssl_request_log           "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
        SSLCACertificateFile .pem
        <Directory /var/www/SaVaGi/owncloud>
                allow from all
                AllowOverride All
                Options FollowSymLinks Indexes
        </Directory>
ServerName savagi.net
</VirtualHost>

and:

<VirtualHost *:443>
        DocumentRoot /var/www/SaVaGi/concrete5
        ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0
        LogLevel warn
        SSLEngine on
        SSLProtocol +SSLv3 +TLSv1 +TLSv1.1 +TLSv1.2
        SSLCipherSuite DEFAULT:!EXP:!SSLv2:!DES:!IDEA:!SEED:+3DES
        SSLCertificateFile .pem
        SSLCertificateKeyFile .pem
        <Files ~ "\.(cgi|shtml|phtml|php3?)$">
                SSLOptions +StdEnvVars
        </Files>
        <IfModule mod_headers.c>
                Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
        </IfModule>
        <Directory "/var/www/cgi-bin">
                SSLOptions +StdEnvVars
        </Directory>
        SetEnvIf User-Agent ".*MSIE.*"          nokeepalive ssl-unclean-shutdown          downgrade-1.0 force-response-1.0
        CustomLog logs/ssl_request_log           "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
        SSLCACertificateFile .pem
        <Directory /var/www/SaVaGi/concrete5>
                allow from all
                AllowOverride All
                Options FollowSymLinks Indexes
        </Directory>
        ServerName www.savagi.net
</VirtualHost>

2) -r--------  1 iredadmin iredadmin 1.6K Sep  8 02:01 settings.pyc

3) i have no idea

* Interestingly, if i go to the original apache, https://vps.savagi.net/iredadmin then it shows the iredadmin but broken

8

Re: mod_mime_magic: can't read `iredadmin/settings.pyc'

Please check /etc/httpd/conf.d/ssl.conf, there's 2 lines used for iRedAdmin, you must add them for your virtual web hosts too (SSL sites please).

9

Re: mod_mime_magic: can't read `iredadmin/settings.pyc'

The issue was caused from my side. It seems that one of the two entries where commented out. I am buying you a coffee!

10

Re: mod_mime_magic: can't read `iredadmin/settings.pyc'

Thanks for your coffee. smile