1 (edited by kzkggaara 2013-08-17 03:23:38)

Topic: iRedMail+Nginx = uWSGI Error.

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

Hello,

I'm using version 0.8.5 of iRedMail, try to set the admin panel (iRedAdmin) on my Debian server using Nginx but I can not.

Here is my /etc/nginx/sites-enabled/iredadmin : http://paste.desdelinux.net/4833
Here is my /etc/uwsgi/apps-enabled/iredadmin.ini : http://paste.desdelinux.net/4831

I'm starting uwsgi using: /etc/init.d/uwsgi start

Here is the error-log of uwsgi when I access to http://iredadmin.mydomain.con : http://paste.desdelinux.net/4832

When I access to http://iredadmin.mydomain.con I get:

uWSGI Error
Python application not found

Please, I need some help.

What I'm doing wrong?

Thanks for all and sorry for my english, it's not my primary language.

Best regards.

----

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

2

Re: iRedMail+Nginx = uWSGI Error.

kzkggaara wrote:

Here is my /etc/nginx/sites-enabled/iredadmin : http://paste.desdelinux.net/4833
Here is my /etc/uwsgi/apps-enabled/iredadmin.ini : http://paste.desdelinux.net/4831

Both are 502 gateway error...

kzkggaara wrote:

uWSGI Error: Python application not found

I guess you have wrong path in /etc/nginx/sites-enabled/iredadmin. But i cannot see this file, so it's hard to say.

3

Re: iRedMail+Nginx = uWSGI Error.

ZhangHuangbin wrote:

Both are 502 gateway error...

Sorry. Its already fixed. All the files (on my paste) are working, please check the files to see if you can find some error.

4

Re: iRedMail+Nginx = uWSGI Error.

Here's a reference (in Chinese, so just check the code if you don't know Chinese language):
http://antlite.com/blog/2011/06/ubuntu- … -settings/

5

Re: iRedMail+Nginx = uWSGI Error.

I regret to report that I have not managed to solve my problem. Mostly because I refuse to use PPAs in my Debian Stable, I like the idea of using Launchpad repositories (Ubuntu) on a Debian Stable.

Finally I'm using Nginx and Apache installed as well (apache stopped by default), when I need to make changes to email accounts start apache and ready.

Thanks anyway for all the help.