1

Topic: iredadmin 502, uwsgi not found

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: freebsd 12.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mySql
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro?No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi.
mydomain/iredadmin is giving a 502 - bad gateway. Roundcube works.

Nginx error.log says:
[error] 2411#100459: *2491 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: ip.d.d.d, server: my.domain.com, request: "GET /iredadmin HTTP/1.1", upstream: "uwsgi://127.0.0.1:7791", host: "my.domain.com"

$ sudo service ireadadmin status
ireadadmin is stopped

$ sudo service ireadadmin start
eval: uwsgi: not found

$ sudo service mlmmjadmin status
mlmmjadmin is stopped

$ sudo service mlmmjadmin start
eval: uwsgi: not found

I'm not sure why it is missing, but it looks like it is needed by iredamdin and mlmmjadmin.

It is available in uwsgi: /usr/ports/www/uwsgi
Can I go ahead and just run make install clean and restart the services to get it working again?

Many thanks.

----

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

2

Re: iredadmin 502, uwsgi not found

Please install the port /usr/ports/www/uwsgi for python-2.

3

Re: iredadmin 502, uwsgi not found

Hi okay, I'm very new to this...
If my /etc/make.conf file has this ( I had changed it to get certbot for letsencrypt)

# iRedMail-DEFAULT_VERSIONS
DEFAULT_VERSIONS=ssl=libressl python=3.7 python2=2.7 python3=3.7 pgsql=12 php=7.3

Would it mean I have to change the python back to python=2.7 for it to wor.

Thank you.