1 (edited by gienek 2020-11-16 19:09:10)

Topic: Problem with upgrade iredadmin 0.98 to 1.2

it's possible to upgrade from old version to new from bash install new one ?

Ubuntu 18.04.4/Apache

Package python3-dnspython is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python3-jinja2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python3-simplejson is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python3-simplejson' has no installation candidate
E: Package 'python3-dnspython' has no installation candidate
E: Package 'python3-jinja2' has no installation candidate
Package installation failed, please check console output and fix it manually.
upgrade_iredadmin.sh: line 742: exist: command not found
upgrade_iredadmin.sh: line 747: /usr/bin/pip3: No such file or directory
Package installation failed, please check console output and fix it manually.
upgrade_iredadmin.sh: line 750: exist: command not found
* Check SQL tables, and add missed ones - if there's any
* Replace py2 by py3 in cron jobs.
* Clean up.
Traceback (most recent call last):
  File "delete_sessions.py", line 9, in <module>
    import web
ModuleNotFoundError: No module named 'web'
* iRedAdmin has been successfully upgraded.
* Restarting apache2 service.
* Enable service: iredadmin
Created symlink /etc/systemd/system/multi-user.target.wants/iredadmin.service -> /lib/systemd/system/iredadmin.service.
* Upgrading completed.




==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

----

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

2

Re: Problem with upgrade iredadmin 0.98 to 1.2

i upgrade ubuntu wersion to 20.04
iredadmin installed but service not start
mod_wsgi (pid=18258): Target WSGI script '/opt/www/iredadmin/iredadmin.py' cannot be loaded as Python>
[Mon Nov 16 09:08:09.288317 2020] [wsgi:error] [pid 18258] [x.x.x.x:61719] mod_wsgi (pid=18258): Exception occurred processing WSGI script '/opt/www/iredadmin/iredadmin.py'.
[Mon Nov 16 09:08:09.288333 2020] [wsgi:error] [pid 18258] [remote x.x.x.x:61719] Traceback (most recent call last):
[Mon Nov 16 09:08:09.288349 2020] [wsgi:error] [pid 18258] [remote x.x.x.x:61719]   File "/opt/www/iredadmin/iredadmin.py", line 8, in <module>
[Mon Nov 16 09:08:09.288394 2020] [wsgi:error] [pid 18258] [remote x.x.x.x:61719]     from libs import iredbase
[Mon Nov 16 09:08:09.288402 2020] [wsgi:error] [pid 18258] [remote x.x.x.x:61719]   File "/opt/www/iredadmin/libs/iredbase.py", line 18, in <module>
[Mon Nov 16 09:08:09.288460 2020] [wsgi:error] [pid 18258] [remote x.x.x.x:61719]     from . import iredutils
[Mon Nov 16 09:08:09.288490 2020] [wsgi:error] [pid 18258] [remote x.x.x.x:61719]   File "/opt/www/iredadmin/libs/iredutils.py", line 54
[Mon Nov 16 09:08:09.288495 2020] [wsgi:error] [pid 18258] [remote x.x.x.x:61719]     def is_auth_email(s) -> bool:
[Mon Nov 16 09:08:09.288498 2020] [wsgi:error] [pid 18258] [remote x.x.x.x:61719]                          ^

3

Re: Problem with upgrade iredadmin 0.98 to 1.2

Seems you're running Apache?
iRedAdmin(-Pro) now requires Python 3, you must upgrade Apache wsgi module to the Python 3 edition.

4

Re: Problem with upgrade iredadmin 0.98 to 1.2

Thank You.
it works :-)