1

Topic: Problem upgrading on Freebsd

I am attempting to upgrade ired 1.1 mysql to current
I am running through a trial run on a virtual copy before touching the production box.

It started as Freebsd 12 and was upgraded to 12.2
Ports were upgraded.

I ran upgrade_iredapd.sh (5.0.3) and it gets all the way through to
py38-pip and complains its already installed.

I have tried removing all the python pkg's /versions from the virtual and re-ran the upgrade and get the same error.
When I remove pip before running the script it reinstalls it then pops the error that its already installed.
Error below

make: stopped in /usr/ports/devel/py-pip
Install package: devel/py-pip
===>  Installing for py38-pip-20.3.4
===>  Checking if py38-pip is already installed
===>   py38-pip-20.3.4 is already installed
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of py38-pip
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/py-pip
*** Error code 1









==== 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 upgrading on Freebsd

- Seems installing port "lang/python38" installs "devel/py-pip" too, could you help confirm this?
- As a temporary solution, you can open file `iRedAPD-5.0.3/tools/upgrade_iredapd.sh`, remove "devel/py-pip" from line 329 which looks like below:

    [ X"${DISTRO}" == X'FREEBSD' ]  && DEP_PKGS="${DEP_PKGS} lang/python38 devel/py-pip"

After removed:

    [ X"${DISTRO}" == X'FREEBSD' ]  && DEP_PKGS="${DEP_PKGS} lang/python38"

Then re-run the upgrade script.

3

Re: Problem upgrading on Freebsd

I did that, the same error with PIP continued. 
I have also noticed a few other oddities with trying to run the upgrade script after the first attempt.

the upgrade script does not install py38-cryptography and py38-beautifulsoup
I had to install these by hand
After the first run through the installer looses track of the python version (_1)
===>   python38-3.8.12_1 depends on file: /usr/local/sbin/pkg - found
=> python/Python-3.8.12.tar.gz is not in /usr/ports/lang/python38/distinfo.

What I have tried:
Remove python38 and modules
Build python38 from ports
build py38-cryptography and beautifulsoup
sh upgrade script

Install package: lang/python38
Database
information_schema
amavisd
iredadmin
iredapd
mysql
performance_schema
roundcubemail
sogo
sys
vmail
===>  License PSFL accepted by the user
===>   python38-3.8.12_1 depends on file: /usr/local/sbin/pkg - found
=> python/Python-3.8.12.tar.gz is not in /usr/ports/lang/python38/distinfo.
=> Either /usr/ports/lang/python38/distinfo is out of date, or
=> python/Python-3.8.12.tar.gz is spelled incorrectly.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/python38
*** Error code 1

Stop.
make: stopped in /usr/ports/lang/python38
<<< ERROR >>> Failed to install Python 3, please install it manually.

4

Re: Problem upgrading on Freebsd

awoldman wrote:

the upgrade script does not install py38-cryptography and py38-beautifulsoup
I had to install these by hand

iRedAPD doesn't use them at all, so it doesn't install them.

awoldman wrote:

After the first run through the installer looses track of the python version (_1)

Ports tree seem not offer such feature. Do i miss something?