1

Topic: internal server error

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

Upgrade iRedAdmin-Pro-LDAP-2.8.0.
After upgrade.
When try open /iredadmin in web browser see this  "internal server error"
How to fix this ?

----

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

Any error in Apache log file?

3

Re: internal server error

ZhangHuangbin wrote:

Any error in Apache log file?

No error.

only this
93.122.178.218 - - [19/Mar/2017:03:58:23 +0300] "GET / HTTP/1.0" 200 534 "-" "-"
10.10.0.1 - - [28/Mar/2017:08:47:00 +0300] "GET / HTTP/1.1" 200 594 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0"
10.10.0.1 - - [28/Mar/2017:08:47:00 +0300] "GET /favicon.ico HTTP/1.1" 404 469 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0"
10.10.0.1 - - [28/Mar/2017:08:47:00 +0300] "GET /mail/ HTTP/1.1" 302 751 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0"

4

Re: internal server error

Apache has 2 log files, one is for normal access, another one is for errors. Could you please check the error log file?

5

Re: internal server error

ZhangHuangbin wrote:

Apache has 2 log files, one is for normal access, another one is for errors. Could you please check the error log file?


var/log/apache2 ->error.log

I found ...


[Tue Mar 28 08:46:30 2017] [notice] Apache/2.2.22 (Ubuntu) mod_ssl/2.2.22 OpenSSL/1.0.1 mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations
[Tue Mar 28 08:47:00 2017] [error] [client 10.10.0.1] File does not exist: /var/www/favicon.ico
[Tue Mar 28 08:53:50 2017] [notice] caught SIGTERM, shutting down
[Tue Mar 28 08:53:51 2017] [notice] Apache/2.2.22 (Ubuntu) mod_ssl/2.2.22 OpenSSL/1.0.1 mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations
[Tue Mar 28 10:23:40 2017] [notice] caught SIGTERM, shutting down
[Tue Mar 28 10:23:41 2017] [notice] Apache/2.2.22 (Ubuntu) mod_ssl/2.2.22 OpenSSL/1.0.1 mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1] Traceback (most recent call last):
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]   File "/usr/lib/pymodules/python2.7/web/application.py", line 242, in process
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]     return self.handle()
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]   File "/usr/lib/pymodules/python2.7/web/application.py", line 233, in handle
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]     return self._delegate(fn, self.fvars, args)
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]   File "/usr/lib/pymodules/python2.7/web/application.py", line 411, in _delegate
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]     mod = __import__(mod, globals(), locals(), [""])
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]   File "/usr/share/apache2/iredadmin/controllers/ldap/basic.py", line 15, in <module>
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]     from libs.ldaplib import domain as ldap_lib_domain
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]   File "/usr/share/apache2/iredadmin/libs/ldaplib/domain.py", line 14, in <module>
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]     from libs.panel import domain_ownership
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]   File "/usr/share/apache2/iredadmin/libs/panel/domain_ownership.py", line 5, in <module>
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]     import pycurl
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1] ImportError: No module named pycurl
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1]
[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1] File does not exist: /var/www/favicon.ico
[Tue Mar 28 10:30:18 2017] [error] [client 10.10.0.1] Traceback (most recent call last):
[Tue Mar 28 10:30:18 2017] [error] [client 10.10.0.1]   File "/usr/lib/pymodules/python2.7/web/application.py", line 242, in process
[Tue Mar 28 10:30:18 2017] [error] [client 10.10.0.1]     return self.handle()
[Tue Mar 28 10:30:18 2017] [error] [client 10.10.0.1]   File "/usr/lib/pymodules/python2.7/web/application.py", line 233, in handle
[Tue Mar 28 10:30:18 2017] [error] [client 10.10.0.1]     return self._delegate(fn, self.fvars, args)
[Tue Mar 28 10:30:18 2017] [error] [client 10.10.0.1]   File "/usr/lib/pymodules/python2.7/web/application.py", line 411, in _delegate
[Tue Mar 28 10:30:18 2017] [error] [client 10.10.0.1]     mod = __import__(mod, globals(), locals(), [""])
[Tue Mar 28 10:30:18 2017] [error] [client 10.10.0.1]   File "/usr/share/apache2/iredadmin/controllers/ldap/basic.py", line 15, in <module>
[Tue Mar 28 10:30:18 2017] [error] [client 10.10.0.1]     from libs.ldaplib import domain as ldap_lib_domain
[Tue Mar 28 10:30:18 2017] [error] [client 10.10.0.1]   File "/usr/share/apache2/iredadmin/libs/ldaplib/domain.py", line 14, in <module>
[Tue Mar 28 10:30:18 2017] [error] [client 10.10.0.1]     from libs.panel import domain_ownership

6

Re: internal server error

Install
sudo apt-get install python-pycurl

And then I can log in. iredadmin/dashboard

smile

7

Re: internal server error

platpirs wrote:

[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1] ImportError: No module named pycurl

Package 'python-pycurl' should be installed by iRedAdmin-Pro upgrade script. not sure why it didn't install it for you.

Did you simply copy files from new iRedAdmin-Pro release to override old release? Or follow our tutorial below?
http://www.iredmail.org/docs/migrate.or … admin.html

8

Re: internal server error

ZhangHuangbin wrote:
platpirs wrote:

[Tue Mar 28 10:29:35 2017] [error] [client 10.10.0.1] ImportError: No module named pycurl

Package 'python-pycurl' should be installed by iRedAdmin-Pro upgrade script. not sure why it didn't install it for you.

Did you simply copy files from new iRedAdmin-Pro release to override old release? Or follow our tutorial below?
http://www.iredmail.org/docs/migrate.or … admin.html

I followed this

http://www.iredmail.org/docs/upgrade.ir … 0.9.6.html

and then i upgrade iRedAdmin-Pro(run script) then show this error.

9

Re: internal server error

Did you notice any error on console while running iRedAdmin-Pro upgrade script?

10

Re: internal server error

ZhangHuangbin wrote:

Did you notice any error on console while running iRedAdmin-Pro upgrade script?

No error.

But

When I again upgrade my iRedAdmin test mail.
At first I sudo apt-get update.
Then sudo apt-get install python-pycurl

Then upgrade iRedAdmin-PRO-LDAP-2.8.0
Then OK no error.