Unable to Upgrade indico Indico v3.2.9 to next available version

Hi, I have attempted upgrade current indico v3.2.9 to next available version. I think the mistake I’ve initially done is I used instructions to migrate directly to v3.3.3 but yet it did not upgrade.

I am now trying to upgrade to next to available version I followed instruction to upgrade "Upgrading between 3.x versions. The output said "requirements satifisfied for 3.2.9). I get no error but yet nothing changes in the end.

My main intention is to migrate to indico v3.3.2 , that because we are intending to deploy it in kubernetes and that matches the image version we have built.

This raises two questions:

  1. Is there a way to Upgrade to a specific version, in this case v3.3.2 ?
  2. Or saying it a different way, is there a way to do gradual upgrade(migration) instead of pulling for example latest available version (eg. v3.3.3)?

This is quite an important matter because we have a planned downtime for production and unable to progress at this stage.

Thanks in advance,

Your question is not really clear, so I have to take guesses. When you mention output containing something it’s important to also mention the command you executed. But it sounds like output from a pip install command.

If you already upgraded your database to v3.3.3 and then want to go back to v3.3.2, you need to run indico db downgrade 4e32f4d5ebe4 while you’re still on v3.3.3 to remove the DB changes from that version.

If your database is still on v3.2.x, then all you need to do is install v3.3.2 and run indico db upgrade in there.

However, unless you have some major customizations done on top of v3.3.2, upgrading to v3.3.3 instead should NOT take long at all!

Hello,

apologies for not being very clear. Here is the sequence of executed steps. I have done upgrades before but have not had this issue>
Our current indico version: (checked before running upgrade steps):
$ indico --version
Indico v3.2.9

Currently as mentioned earlier, I am trying to avoid upgrading to version: to v3.3.3, instead I want to upgrade to v3.3.2 because that is the container image we have at the moment, but maybe the reason is not as important at the moment.

Is there a way to select specific version of indico for upgrade e.g v3.2.9 → v3.3.2 .?

Here is the sequence of executed steps under virt env using pip:

  1. stopped celery
    2)- 251 ~]$ pip install -U indico
    Requirement already satisfied: indico in ./.venv/lib/python3.9/site-packages (3.2.9
  2. 251 ~]$ python --version

Python 3.9.19

  1. 251 ~]$ pip install -U indico
    Requirement already satisfied: indico in ./.venv/lib/python3.9/site-packages (3.2.9)
    Requirement already satisfied: alembic==1.10.4 in ./.venv/lib/python3.9/site-packages (from indico) (1.10.4)…

  2. -251 ~]$ pip install -U indico-plugins

Requirement already satisfied: indico-plugins in ./.venv/lib/python3.9/site-packages (3.2.2)

Requirement already satisfied: indico>=3.2.6 in ./.venv/lib/python3.9/site-packages (from indico-plugins) (3.2.9)

  1. 251 ~]$ indico setup upgrade-python
    updating pyenv
    Already running on preferred version (3.9.19)

  2. .251 ~]$ indico db upgrade
    INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
    INFO [alembic.runtime.migration] Will assume transactional DDL.

  3. -251 ~]$ indico db --all-plugins upgrade

skipping plugin ‘vc_zoom’ (no migrations folder)
skipping plugin ‘payment_paypal’ (no migrations folder)
skipping plugin ‘payment_manual’ (no migrations folder)

  1. systemctl start indico-celery.service

  2. 251 ~]$ indico --version
    Indico v3.2.9 → Same version

Then I tried upgrading directly to 3.3.3

251 ~]$ indico setup upgrade-python --force-version 3.12

updating pyenv

Warning: 3.12 is not within ~=3.9.0 spec

Continue anyway? [y/N]: y

WARNING: You are upgrading from 3.9 to 3.12. This upgrade CANNOT be done in-place.

You will need to pip install indico (and any other packages such as plugins)

again after this upgrade! Do not perform this update, unless you are updating to

a new major Indico release which is documented to require this Python version!

Continue? [y/N]: N

Aborted!

Any Advice appreciated…!!

Simply use pip install indico==3.3.2 to install Indico.

And you need to answer that last prompt with y because v3.3 indeed requires Python 3.12.

Hi,
after my previous message I went forward upgrading directly to v3.3.3 because I missed your last reply, and could not locate the correct command to upgrade to v.3.3.2

Thanks for your reply and help,