26 (edited by Neovana 2025-02-12 06:42:26)

Re: OpenBSD 7.6 and iRedMail 1.7.2

Any update on this? fail2ban, iredadmin, and mlmmjadmin still fail to load on boot.

I posted all of the error logs as requested.

----

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

27

Re: OpenBSD 7.6 and iRedMail 1.7.2

What's the original error message in their log files?

28 (edited by Neovana 2025-02-21 15:02:53)

Re: OpenBSD 7.6 and iRedMail 1.7.2

ZhangHuangbin wrote:

What's the original error message in their log files?

Is there a new command you'd like for me to run? I'm sorry but I've posted all of the errors I've come across - in this thread already.

Here they are again:

starting package daemons: postgresql nginx php81_fpm dovecot clamd freshclam amavisd postfix mimmjadminuwsgi[1287]: pinsyscalls addr 45a52ec4259 code 253, pinoff Oxffffffff (pin 330 45a7d5ee000-45a7d5fc66d e66d) (libcpin 0 0-0 0) error 78 (failed) iredapd iredadminuwsgi[91938]: pinsyscalls addr c99aa8ac259 code 253, pinoff Oxffffffff (pin 330 c99122a4000-c99122b266d e66d) (libcpin 0 0-0 0) error 78 (failed) fail2ban(failed) gemu_ga.
starting local daemons: cron.

OpenBSD 7.6 (GENERIC.MP) #0: Thu Jan  9 07:32:40 MST 2025
    root@syspatch-76-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

1:30AM  up 4 days,  6:17, 0 users, load averages: 0.08, 0.02, 0.01

Services that should be running but aren't:
fail2ban
iredadmin
mlmmjadmin

# cd mlmmjadmin-3.3.0/tools
# bash upgrade_mlmmjadmin.sh

* Detected Linux/BSD distribution: OPENBSD
* Checking Python 3.
* Checking required Python(-3) modules:
  + [required] psycopg2
  + [required] web.py
error: externally-managed-environment

× This environment is externally managed
╰─> This Python installation is managed by pkg_add(1).
   
    To install Python packages system-wide, use the OS packages where possible, for example: "pkg_add py3-somepackage".
   
    Otherwise, for software which is not available in packages, it is recommended to create a "venv" (virtual environment, see
    https://docs.python.org/3/library/venv.html) and install it there. For standalone applications, pipx (in the py3-pipx package) can help manage this for you.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
<<< ERROR >>> Failed to install Python 3 modules, please try to install them manually:  web.py>=0.61

# cd mlmmjadmin-3.3.1/tools/
# bash upgrade_mlmmjadmin.sh
* Detected Linux/BSD distribution: OPENBSD
* Checking Python 3.
* Checking required Python(-3) modules:
  + [required] psycopg2
* Found mlmmjadmin: /opt/mlmmjadmin, symbol link of /opt/mlmmjadmin-3.3.0
* Found old config file: /opt/mlmmjadmin/settings.py
* Copying new version to /opt/mlmmjadmin-3.3.1
* Copy /opt/mlmmjadmin/settings.py.
* Removing old symbol link /opt/mlmmjadmin
* Creating symbol link: /opt/mlmmjadmin-3.3.1 -> /opt/mlmmjadmin
* Copy SysV init script.
* mlmmjadmin has been successfully upgraded.
* Restarting service: mlmmjadmin.
mlmmjadminuwsgi[52885]: pinsyscalls addr ef22910b259 code 253, pinoff 0xffffffff (pin 330 ef242253000-ef242261670 e670) (libcpin 0 0-0 0) error 78
(failed)
Failed, please restart service 'mlmmjadmin' manually.
* Sync mailing list profiles to SQL/LDAP.
No mailing list found. Abort.
* Upgrading completed.
<<< NOTE >>> If mlmmjadmin doesn't work as expected, please post your issue in
<<< NOTE >>> our online support forum: http://www.iredmail.org/forum/

# rcctl restart mlmmjadmin
mlmmjadminuwsgi[90796]: pinsyscalls addr 3ab78046259 code 253, pinoff 0xffffffff (pin 330 3ab6fa1f000-3ab6fa2d670 e670) (libcpin 0 0-0 0) error 78
(failed)

# cd iRedAdmin-2.6/tools/
# bash upgrade_iredadmin.sh
* Detected Linux/BSD distribution: OPENBSD
* HTTP server root: /opt/www
* Found iRedAdmin directory: /opt/www/iredadmin, symbol link of iRedAdmin-2.6
* Found iRedAdmin config file: /opt/www/iredadmin/settings.py
* Copying new version to /opt/www/iRedAdmin-2.6
* Copy /opt/www/iredadmin/settings.py.
cp: /opt/www/iRedAdmin-2.6/settings.py and /opt/www/iredadmin/settings.py are identical (not copied).
* Removing old symbol link /opt/www/iredadmin
* Creating symbol link /opt/www/iredadmin to /opt/www/iRedAdmin-2.6
* Enable mlmmj integration.
* Restarting service: mlmmjadmin.
mlmmjadminuwsgi[66127]: pinsyscalls addr f6c97bce259 code 253, pinoff 0xffffffff (pin 330 f6c0646b000-f6c06479670 e670) (libcpin 0 0-0 0) error 78
(failed)
Failed, please restart service manually and check its log file.
* Check and install required packages.
ALTER TABLE
* Replace py2 by py3 in cron jobs.
* Clean up.
* Delete all existing sessions to force all admins to re-login.
* iRedAdmin has been successfully upgraded.
* Restarting iredadmin service.
iredadminuwsgi[94519]: pinsyscalls addr 3ff1da00259 code 253, pinoff 0xffffffff (pin 330 3fe72a10000-3fe72a1e670 e670) (libcpin 0 0-0 0) error 78
(failed)
Failed, please restart Apache web server or 'iredadmin' (if you're running Nginx as web server) manually.
* Enable service: iredadmin
iredadminuwsgi[86007]: pinsyscalls addr f70aaa93259 code 253, pinoff 0xffffffff (pin 330 f70e71d5000-f70e71e3670 e670) (libcpin 0 0-0 0) error 78
(failed)
Failed, please restart service manually and check its log file.
* Upgrading completed.
<<< NOTE >>> If iRedAdmin doesn't work as expected, please post your issue in
<<< NOTE >>> our online support forum: http://www.iredmail.org/forum/

# rcctl restart iredadmin
iredadminuwsgi[63563]: pinsyscalls addr bdf05ad5259 code 253, pinoff 0xffffffff (pin 330 bdf0fe6f000-bdf0fe7d670 e670) (libcpin 0 0-0 0) error 78
(failed)

29

Re: OpenBSD 7.6 and iRedMail 1.7.2

% doas cat mlmmjadmin.log
2025-01-15T06:00:01.516Z mail newsyslog[93767]: logfile turned over
Jan 15 03:10:21 mail mlmmjadmin: *** Starting uWSGI 2.0.24 (64bit) on [Wed Jan 15 03:10:20 2025] ***
% cat fail2ban.log
2025-01-17T06:00:01.917Z mail newsyslog[13721]: logfile turned over

30

Re: OpenBSD 7.6 and iRedMail 1.7.2

It was suggested to me that these apps need to be recompiled. How would I do that?

31

Re: OpenBSD 7.6 and iRedMail 1.7.2

Please install uwsgi manually:

pip3 install -U uwsgi

Download latest mlmmjadmin 3.3.1 and upgrade:
https://docs.iredmail.org/upgrade.mlmmjadmin.html