1

Topic: Ho to Debug iredadmin

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.1
- Deployed with iRedMail Easy or the downloadable installer? download
- Linux/BSD distribution name and version: FreeBSD
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====

HI,
this is related but independent to https://forum.iredmail.org/topic16687-e … t1270.html
Basically I have installed imapsync on my server and i believe it forced some upgrade to python that now makes iRedAdmin-Pro misbehave.
When i try to restart iredadmin i get:
# /usr/local/etc/rc.d/iredadmin restart
iredadmin is already stopped.
Starting iredadmin.
[uWSGI] getting INI configuration from /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini

nothing after that, and i don't see anything in any log file.

The log file for iredadmin listed here: https://docs.iredmail.org/file.locations.html#iredadmin
does not actually exists and i don't see anything in any other log file.

I'm looking for a message that would tell me which python module is missing or incorrect...
Thank you.

----

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

2

Re: Ho to Debug iredadmin

Try this:

cd /usr/local/www/iredadmin/
python2 iredadmin.py

3

Re: Ho to Debug iredadmin

ok, i remember it was something like that ..
At first it gave me an error, a missing python module, I install it and now
python2 iredadmin.py
http://0.0.0.0:8080/

But it iredadmin is still not able to start.
Where do i look for the log now?
Or is 0.0.0.0 and 8080 the right thing? should it not be a different port?
thank you.

4

Re: Ho to Debug iredadmin

Try to restart "iredadmin" service after installed the required module(s).

5 (edited by iredmail.mb 2020-04-08 12:10:05)

Re: Ho to Debug iredadmin

Yes, i did that but no luck sad
# /usr/local/etc/rc.d/iredadmin restart
iredadmin is already stopped.
Starting iredadmin.
[uWSGI] getting INI configuration from /usr/local/www/iredadmin/rc_scripts/uwsgi/freebsd.ini
# /usr/local/etc/rc.d/iredadmin status
iredadmin is stopped.

Do you have a list of modules that should be installed that i can compare?

6

Re: Ho to Debug iredadmin

Any related log in /var/log/? e.g. nginx log files, syslog.

In another forum thread you mentioned running "python2 iredadmin.py" works, but did you try to access this URL? maybe it will trigger some other error due to missing required modules. please give it a try.

7

Re: Ho to Debug iredadmin

nginx doesn't show anything, (other than a entry in the access.log with a '500' response ...
I can't find anything related in any log

8

Re: Ho to Debug iredadmin

but as you suggested elsewhere, mlmmjadmin might not be working (and possibly preventing iredadmin from working properly?)

9

Re: Ho to Debug iredadmin

Ok,
I go what was going wrong. again it was all coming from the installation fo imapsync (not imapsync fault, i'm sure it told me it was going to remove this or that module and i said yes sad
anyway after a but i decided to look at the open ports and noticed:

mlmmj    uwsgi-2.7  42104 6  tcp4   127.0.0.1:7790    *:*

- and -

iredadmin uwsgi-3.7 56321 6  tcp4   127.0.0.1:7791    *:*

so the old process for iredadmin was still running but with the modules that had been removed/replaced and proper iredadmin was not starting because the port was in use (I think, not sure about this one)!

a full restart of the server fixed it!