1 (edited by xroma 2020-10-20 19:17:58)

Topic: iredadmin: internal server error after upgrading

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.1 PGSQL edition.
- Deployed with iRedMail Easy or the downloadable installer?: downloadable installer
- Linux/BSD distribution name and version: Debian GNU/Linux 9.13 (stretch)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?: No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello,

I have an issue after manually upgrading iredadmin to the last version 1.0 (https://dl.iredmail.org/yum/misc/iRedAdmin-1.0.tar.bz2). When I try to have an access to /iredadmin I see only message: "internal server error". And the main problem is that I don't see any record in the server logs: /var/log/nginx/mail_errors.log has no records, /var/log/uwsgi/app/ is empty.

Statuses of iredadmin service and uwsgi are actives (running) without any warning or error in journal.

I tried to switch debug to True in iredadmin/settings.py, I checked permissions and owners like below:

# chown -R iredadmin:iredadmin iRedAdmin-x.y.z
# chmod -R 0555 iRedAdmin-x.y.z
# chown iredadmin:iredadmin settings.py
# chmod 0400 settings.py

All services: uwsgi, iredadmin, nginx were restarted after changes.

iredadmin service was upgraded by this article without any issue:
https://docs.iredmail.org/migrate.or.up … admin.html

# cd /root/
# tar xjf iRedAdmin-x.y.z.tar.bz2
# cd iRedAdmin-x.y.z/tools/
# bash upgrade_iredadmin.sh

Maybe there are any other log files? Or how can I debug this error to see details?

----

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

2

Re: iredadmin: internal server error after upgrading

Solved smile

The problem is that I use separate nginx config. And I do everything manually.
And in upgrade script there is change of nginx snippet: https://github.com/iredmail/iRedAdmin/b … n.sh#L471.

Finally I've changed uwsgi_pass unix:/var/run/uwsgi_iredadmin.socket; to uwsgi_pass 127.0.0.1:7791;