1 (edited by newzen 2019-04-15 19:04:10)

Topic: **SOLVED** edit user profile we get internal server error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.99
- Deployed with iRedMail Easy or the downloadable installer? upgrade
- Linux/BSD distribution name and version: Centos 7
- 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.
====

We upgrade our server from iredamin 0.97 to 0.99

running iRedAdmin-Pro-LDAP-3.5

If we try to edit user profile we get internal server error

/var/log/httpd/ssl_access_log

"GET /iredadmin/profile/user/general/user@domain.com HTTP/1.1" 500 21

what else logs are requiered?

2

Re: **SOLVED** edit user profile we get internal server error

I expect there's some detailed error log in /var/log/httpd/ssl_error_log, please extract them and paste here for troubleshooting.

----

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

Re: **SOLVED** edit user profile we get internal server error

ZhangHuangbin wrote:

I expect there's some detailed error log in /var/log/httpd/ssl_error_log, please extract them and paste here for troubleshooting.

Thanks for reply Zhang, there is log

[root@mail ~]# tail -f /var/log/httpd/ssl_error_log
[Tue Apr 09 10:31:50.294184 2019] [:error] [pid 19130] [remote 144.172.68.106:26000] Traceback (most recent call last):
[Tue Apr 09 10:31:50.294244 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]   File "/usr/lib/python2.7/site-packages/web/application.py", line 239, in process
[Tue Apr 09 10:31:50.294248 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]     return self.handle()
[Tue Apr 09 10:31:50.294250 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]   File "/usr/lib/python2.7/site-packages/web/application.py", line 230, in handle
[Tue Apr 09 10:31:50.294253 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]     return self._delegate(fn, self.fvars, args)
[Tue Apr 09 10:31:50.294255 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]   File "/usr/lib/python2.7/site-packages/web/application.py", line 420, in _delegate
[Tue Apr 09 10:31:50.294257 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]     return handle_class(cls)
[Tue Apr 09 10:31:50.294259 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]   File "/usr/lib/python2.7/site-packages/web/application.py", line 396, in handle_class
[Tue Apr 09 10:31:50.294261 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]     return tocall(*args)
[Tue Apr 09 10:31:50.294263 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]   File "/var/www/iredadmin/controllers/ldap/user.py", line 300, in GET
[Tue Apr 09 10:31:50.294265 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]     _qr = mlmmj.get_subscribed_lists(mail=mail, query_all_lists=False)
[Tue Apr 09 10:31:50.294267 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]   File "/var/www/iredadmin/libs/mlmmj/__init__.py", line 359, in get_subscribed_lists
[Tue Apr 09 10:31:50.294269 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]     r = requests.get(url, params=params, headers=api_headers, verify=_verify_ssl)
[Tue Apr 09 10:31:50.294272 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]   File "/usr/lib/python2.7/site-packages/requests/api.py", line 68, in get
[Tue Apr 09 10:31:50.294274 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]     return request('get', url, **kwargs)
[Tue Apr 09 10:31:50.294276 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]   File "/usr/lib/python2.7/site-packages/requests/api.py", line 50, in request
[Tue Apr 09 10:31:50.294278 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]     response = session.request(method=method, url=url, **kwargs)
[Tue Apr 09 10:31:50.294280 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 464, in request
[Tue Apr 09 10:31:50.294282 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]     resp = self.send(prep, **send_kwargs)
[Tue Apr 09 10:31:50.294284 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]   File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
[Tue Apr 09 10:31:50.294286 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]     r = adapter.send(request, **kwargs)
[Tue Apr 09 10:31:50.294288 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]   File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 415, in send
[Tue Apr 09 10:31:50.294290 2019] [:error] [pid 19130] [remote 144.172.68.106:26000]     raise ConnectionError(err, request=request)
[Tue Apr 09 10:31:50.294292 2019] [:error] [pid 19130] [remote 144.172.68.106:26000] ConnectionError: ('Connection aborted.', error(111, 'Connection refused'))

4

Re: **SOLVED** edit user profile we get internal server error

Please restart "mlmmjadmin" service and try again, it should fix this issue.

----

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

buy me a cup of coffee

5

Re: **SOLVED** edit user profile we get internal server error

ZhangHuangbin wrote:

Please restart "mlmmjadmin" service and try again, it should fix this issue.

That solve the problem, but as i said we upgrade 0.97 to 0.99 and i think that mlmmjadmin was not installed on 0.97 version, as result no /usr/lib/systemd/system/mlmmjadmin.service was there.

we download mlmmjadmin-2.1 and run bash upgrade_mlmmjadmin.sh,

but with this command no /usr/lib/systemd/system/mlmmjadmin.service and no /var/log/mlmmjadmin/mlmmjadmin.log

manually we create both, and start the service.

Thanks for your help

6

Re: **SOLVED** edit user profile we get internal server error

newzen wrote:

but as i said we upgrade 0.97 to 0.99 and i think that mlmmjadmin was not installed on 0.97 version

Did you skip iRedMail-0.9.8 during upgrade?

----

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

buy me a cup of coffee

7

Re: **SOLVED** edit user profile we get internal server error

ZhangHuangbin wrote:
newzen wrote:

but as i said we upgrade 0.97 to 0.99 and i think that mlmmjadmin was not installed on 0.97 version

Did you skip iRedMail-0.9.8 during upgrade?

No, Sr. I upgrade step by step, first 0.98 then 0.99

8

Re: **SOLVED** edit user profile we get internal server error

ok. Is everything working fine now?

----

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

buy me a cup of coffee

9

Re: **SOLVED** edit user profile we get internal server error

ZhangHuangbin wrote:

ok. Is everything working fine now?

Yes, thanks for your support.