Topic: Internal Server Error after upgrade when changing users profile (wsgi)
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Debian 9.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello
after an upgrade from 0.9.8 to 0.9.9 i get an internal server error when trying to edit a users profile with iRedAdmin-Pro. Apaches error.log:
[DoW Mon xx xx:xx:xx.199605 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] Traceback (most recent call last):
[DoW Mon xx xx:xx:xx.199642 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] File "/usr/lib/python2.7/dist-packages/web/application.py", line 239, in process
[DoW Mon xx xx:xx:xx.199657 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] return self.handle()
[DoW Mon xx xx:xx:xx.199671 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] File "/usr/lib/python2.7/dist-packages/web/application.py", line 230, in handle
[DoW Mon xx xx:xx:xx.199685 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] return self._delegate(fn, self.fvars, args)
[DoW Mon xx xx:xx:xx.199698 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] File "/usr/lib/python2.7/dist-packages/web/application.py", line 462, in _delegate
[DoW Mon xx xx:xx:xx.199712 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] return handle_class(cls)
[DoW Mon xx xx:xx:xx.199725 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] File "/usr/lib/python2.7/dist-packages/web/application.py", line 438, in handle_class
[DoW Mon xx xx:xx:xx.199739 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] return tocall(*args)
[DoW Mon xx xx:xx:xx.199752 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] File "/opt/www/iredadmin/controllers/ldap/user.py", line 293, in GET
[DoW Mon xx xx:xx:xx.199766 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] _qr = mlmmj.get_subscribed_lists(mail=mail, query_all_lists=False)
[DoW Mon xx xx:xx:xx.199779 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] File "/opt/www/iredadmin/libs/mlmmj/__init__.py", line 338, in get_subscribed_lists
[DoW Mon xx xx:xx:xx.199792 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] r = requests.get(url, params=params, headers=api_headers, verify=_verify_ssl)
[DoW Mon xx xx:xx:xx.199806 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] File "/usr/lib/python2.7/dist-packages/requests/api.py", line 70, in get
[DoW Mon xx xx:xx:xx.199819 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] return request('get', url, params=params, **kwargs)
[DoW Mon xx xx:xx:xx.199832 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] File "/usr/lib/python2.7/dist-packages/requests/api.py", line 56, in request
[DoW Mon xx xx:xx:xx.199846 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] return session.request(method=method, url=url, **kwargs)
[DoW Mon xx xx:xx:xx.199859 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request
[DoW Mon xx xx:xx:xx.199873 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] resp = self.send(prep, **send_kwargs)
[DoW Mon xx xx:xx:xx.199886 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send
[DoW Mon xx xx:xx:xx.199899 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] r = adapter.send(request, **kwargs)
[DoW Mon xx xx:xx:xx.199913 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 487, in send
[DoW Mon xx xx:xx:xx.199926 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] raise ConnectionError(e, request=request)
[DoW Mon xx xx:xx:xx.199940 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744] ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=7790): Max retries exceeded with url: /api/subscriber/demo@example.com/subscribed?query_all_lists=no&email_only=no (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f98ebb52ad0>: Failed to establish a new connection: [Errno 111] Connection refused',))
[DoW Mon xx xx:xx:xx.199973 2019] [wsgi:error] [pid 24759] [remote x.x.x.x:41744]
Replacing iredadmin.conf like mentioned in https://forum.iredmail.org/post66809.html#p66809 with an adjusted Alias-path for Debian doesn't help and brings up new errors (No protocol handler was valid for the URL /iredadmin/).
Any ideas ? Thanks in advance.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.