1

Topic: "internal server error" on iRedAdmin

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Stand alone
- Linux/BSD distribution name and version: FreeBSD
- 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 All,
  Any update hints on the reason for the error message "internal server error" in iRedAdmin (0.9.8)?
  I cannot get any conclusive traces from the logs.

  The error shows up from clicking the links from the "System/Admin Logs"

Thanks

Post's attachments

Screen Shot 2019-10-03 at 14.34.03.png
Screen Shot 2019-10-03 at 14.34.03.png 45.13 kb, file has never been downloaded. 

Screen Shot 2019-10-03 at 14.34.14.png
Screen Shot 2019-10-03 at 14.34.14.png 5.77 kb, file has never been downloaded. 

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

2

Re: "internal server error" on iRedAdmin

Should be fixed by upgrading python module 'web.py' (port "www/web.py") to the latest 0.40. But port is not updated yet, you can install it with "pip" or "easy_install" after removed the binary package. For example:

pip2 install web.py==0.40
service iredadmin restart

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3 (edited by angeloklin 2019-10-04 21:30:59)

Re: "internal server error" on iRedAdmin

ZhangHuangbin wrote:

Should be fixed by upgrading python module 'web.py' (port "www/web.py") to the latest 0.40. But port is not updated yet, you can install it with "pip" or "easy_install" after removed the binary package. For example:

pip2 install web.py==0.40
service iredadmin restart

I installed web.py 0.40 but did not solve the issue.

# pkg info | grep webpy
webpy-0.40                     Web Framework For Python

Using other options in the Sys Logs force the log on Nginx's access log.
There is something about the stub_status (/usr/local/etc/nginx/templates/stub_status.tmpl), the redirect (code 301), a local request (127.0.0.1) and maybe a redirect from http to https

# /var/log/nginx/access.log
# . . .
127.0.0.1 - - [04/Oct/2019:23:23:04 +1000] "GET /stub_status HTTP/1.1" 301 162 "-" "-"
127.0.0.1 - - [04/Oct/2019:23:23:07 +1000] "GET /stub_status HTTP/1.1" 301 162 "-" "-"
127.0.0.1 - - [04/Oct/2019:23:23:10 +1000] "GET /stub_status HTTP/1.1" 301 162 "-" "-"
127.0.0.1 - - [04/Oct/2019:23:23:13 +1000] "GET /stub_status HTTP/1.1" 301 162 "-" "-"
127.0.0.1 - - [04/Oct/2019:23:23:16 +1000] "GET /stub_status HTTP/1.1" 301 162 "-" "-"
127.0.0.1 - - [04/Oct/2019:23:23:19 +1000] "GET /stub_status HTTP/1.1" 301 162 "-" "-"
127.0.0.1 - - [04/Oct/2019:23:23:22 +1000] "GET /stub_status HTTP/1.1" 301 162 "-" "-"
127.0.0.1 - - [04/Oct/2019:23:23:25 +1000] "GET /stub_status HTTP/1.1" 301 162 "-" "-"
127.0.0.1 - - [04/Oct/2019:23:23:28 +1000] "GET /stub_status HTTP/1.1" 301 162 "-" "-"
127.0.0.1 - - [04/Oct/2019:23:23:31 +1000] "GET /stub_status HTTP/1.1" 301 162 "-" "-"
Post's attachments

Screen Shot 2019-10-04 at 23.30.09.png 499.47 kb, file has never been downloaded. 

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

4

Re: "internal server error" on iRedAdmin

angeloklin wrote:

I installed web.py 0.40 but did not solve the issue.

Did you restart "iredadmin" service?

angeloklin wrote:

There is something about the stub_status (/usr/local/etc/nginx/templates/stub_status.tmpl), the redirect (code 301), a local request (127.0.0.1) and maybe a redirect from http to https

Yes, redirected from http to https.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee