1

Topic: Nginx problem? - can't connect to /mail or /iredadmin

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

hi folks,

i just installed iredmail, but still have problems getting it to work. my first step would be to access the web panel of roundcubemail and iredadmin. but both don't work and probably even for different reasons.

my setup is like this: i changed the h t t p (s) ports in /etc/nginx/conf.d/default.conf to 9290/9291 and tunnelled them from my local pc.

1) connection to /mail
i get a h t t p 403 - forbidden error in the browser and following line in the /var/log/nginx/error.log

2015/08/20 19:40:33 (error) 2441#0: *4 open() "/opt/www/roundcubemail" failed (13: Permission denied), client: 127.0.0.1, server: _, request: "GET /mail H T T P/1.1", host: "127.0.0.1:9291"

2) connection to /iredadmin
i get a h t t p 500 - internal server error in the browser and nothing in the error.log. only this line in the access.log

(20/Aug/2015:19:22:02 +0200) "GET /iredadmin H T T P/1.1" 500 32 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0"

and i didn't find a dedicated iredadmin log anywhere.

can you help me with that? i didn't change anything else after the setup besided the h t t p (s) ports.

- narf

----

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

2

Re: Nginx problem? - can't connect to /mail or /iredadmin

Do Roundcube and iRedAdmin work after iRedMail installation (without any modification)?

3

Re: Nginx problem? - can't connect to /mail or /iredadmin

thanks for your reply, ZhangHuangbin..

i tried to change the ports back to 80/443 but the results are the same.

i mean, the only thing i changed, was /etc/nginx/conf.d/default.conf
# HTTP
server {
    listen 9290;
...
}
# HTTPS
server {
    listen 9291;
...
}

-narf

4 (edited by narf2 2015-08-24 00:45:11)

Re: Nginx problem? - can't connect to /mail or /iredadmin

/iredadmin problem --> SOLVED

i found out that iredadmin logs into /var/log/uwsgi/app/iredadmin.log. now i have at least an error message for what's going on:

Fri Aug 21 00:30:43 2015 - chdir(): Permission denied [plugins/python/pyloader.c line 109]
ImportError: No module named iredadmin
Fri Aug 21 00:30:43 2015 - unable to load app 0 (mountpoint='127.0.0.1:9291|/iredadmin') (callable not found or import error)
Fri Aug 21 00:30:43 2015 - --- no python application found, check your startup logs for errors ---
127.0.0.1:9291 [pid: 761|app: -1|req: -1/6] 127.0.0.1 () {50 vars in 897 bytes} [Fri Aug 21 00:30:43 2015] GET /iredadmin => generated 21 bytes in 0 msecs (H T T P /1.1 500) 2 headers in 83 bytes (0 switches on core 0)

but i can't find a pyloader.c anywhere on my system.

any ideas? smile


/mail problem --> SOLVED

it said permission denied when opening /opt/w w w/roundcubemail in the log file, so i checked the file system permissions. and indeed, the permissions on /opt/w w w were 750 and it belongs to root :root after the installation. when i changed that to 755, it worked smile

5

Re: Nginx problem? - can't connect to /mail or /iredadmin

ok, i just found out, that by changing the folder permissions on /opt/www, i solved BOTH problems wink

you can close this thread if you want...

thanks to everybody who read this thread.

cheers
narf