1

Topic: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): iredmail-release contains:
2020082501 (Backend: pgsql, Date: 2020-09-12 14:39:07) iRedMail Easy: https://www.iredmail.org/easy.html
2020070701 (Backend: pgsql, Date: 2020-08-22 04:12:59) iRedMail Easy: https://www.iredmail.org/easy.html
1.3.1 PGSQL edition.
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: ubuntu 18.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
After running upgrade_iredadmin.sh I go to https://mx.abc.xyz/iredadmin/ to log in. But when I try to log in with postmaster account or any other user account I get a blank screen with the message "internal server error"

----

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

2

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

Any related error in /var/log/syslog?

3

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

Nothing in /var/log/syslog.

I should mention that the mail service is working fine. I can send and receive emails. it's just that I cannot log into iredadmin portal.

Any other lof files we need to check?

4

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

Try commands below:

cd /opt/www/iredadmin/
python3 iredadmin.py

It will run a dev http server on port 8080, please visit it with a web browser then trigger the issue again.
Copy me full console output for troubleshooting.

5

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

ZhangHuangbin wrote:

Try commands below:

cd /opt/www/iredadmin/
python3 iredadmin.py

It will run a dev http server on port 8080, please visit it with a web browser then trigger the issue again.
Copy me full console output for troubleshooting.

Sorry for the late response, work got in the way...

I am able to login to the dev server in 8080 and get the attached screen. thus, I am not able to trigger the issue again.

I am wondering, can this be because I tried to update to a version and skipped one? For example, I updated to from 1.1 to 1.4 skipping 1.2. I'm not sure the version numbers are correct, but I'm pretty sure I skipped one version, as they came out one right after the other.

Regards,
Alex

Post's attachments

screenshot.PNG 132.25 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

6

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

*) The screenshot shows you're running the open source edition of iRedAdmin, not the purchased iRedAdmin-Pro. Did you maybe download the wrong package for upgrading?
*) For iRedMail, you must upgrade one release by one release, do not skip release. But for iRedAdmin-Pro, AFTER you have the latest iRedMail running, it's ok to upgrade to the latest directly.

7

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

ZhangHuangbin wrote:

*) The screenshot shows you're running the open source edition of iRedAdmin, not the purchased iRedAdmin-Pro. Did you maybe download the wrong package for upgrading?
*) For iRedMail, you must upgrade one release by one release, do not skip release. But for iRedAdmin-Pro, AFTER you have the latest iRedMail running, it's ok to upgrade to the latest directly.

So... what would be the best course of action? Hie can I get this working now?

8

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

alexcavazos wrote:

So... what would be the best course of action? Hie can I get this working now?

I sent you download link of iRedAdmin-Pro, please upgrade by following this tutorial:
https://docs.iredmail.org/migrate.or.up … admin.html

Let me know if it doesn't work.

9 (edited by alexcavazos 2020-11-17 21:31:28)

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

ZhangHuangbin wrote:
alexcavazos wrote:

So... what would be the best course of action? Hie can I get this working now?

I sent you download link of iRedAdmin-Pro, please upgrade by following this tutorial:
https://docs.iredmail.org/migrate.or.up … admin.html

Let me know if it doesn't work.

Huangbin,

I downloaded the file and followed the tutorial to the letter. there were no errors or warnings reported during the upgrade. I rebooted, went to myserver.mydomain.com and got the same internal server error

Do you want me to run the

python3 iredadmin.py 

script?

10

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

alexcavazos wrote:

Do you want me to run the

Yes please. And try to trigger the "internal server error" again, then paste me full console output (with the error).

11

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

ZhangHuangbin wrote:
alexcavazos wrote:

Do you want me to run the

Yes please. And try to trigger the "internal server error" again, then paste me full console output (with the error).

Ok, ran the python script, opened https on port 8080 and was able to log in successfully, now on Pro version. See the screenshot. Then tried again on my normal port and still have the internal server error.

Post's attachments

Screenshot 2020-11-18 012849.png 177.94 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

12

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

Could you trigger the "internal server error" on port 8080?

13 (edited by alexcavazos 2020-11-19 01:02:44)

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

ZhangHuangbin wrote:

Could you trigger the "internal server error" on port 8080?

Cannot, port 8080 works fine. The error happens after I log in. In port 8080 I log in and get the screenshot I sent you. In my normal 443 (https) after I log in I get the internal server error.

Would a full reinstall work? I am willing to lose any configuration I have made so far.

14

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

- Do i understand correctly that you can see the login screen when accessing through port 443? but get error after you clicked login?
- Is is possible to give me direct ssh access with root privilege for remote debugging? Also, an admin account is required for reproducing the issue. Contact me: zhb _at_ iredmail _dot_ org

15

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

ZhangHuangbin wrote:

- Do i understand correctly that you can see the login screen when accessing through port 443? but get error after you clicked login?
- Is is possible to give me direct ssh access with root privilege for remote debugging? Also, an admin account is required for reproducing the issue. Contact me: zhb _at_ iredmail _dot_ org

Please check your email and let me know if it works for you. I tested access with no issues.

Regards,
Alex

16

Re: "internal server error" after upgrade to iRedAdmin-Pro-SQL (v4.6)

Fixed with a patched iRedAdmin-Pro version.