pretix

Packaging error in release 1.2.1 of pretix

18. April 2017

Yesterday, we issued a bugfix release for the current stable distribution of pretix (1.2.x). Unfortunately, there was a mistake in the package uploaded to PyPI that lead to the package causing problems, as the package contained database migrations that should not have been shipped before 1.3.0.

We deeply apologize for the trouble this might have caused to you. We will take great care and install appropriate countermeasures to ensure that this kind of mistake will not happen again.

Am I affected?

If you are affected by the bug, you will know, as your pretix installation will not work and the error log will be full with messages like Table 'pretix.pretixbase_eventsetting' doesn't exist. Docker installations are not affected. If you did not yet upgrade to 1.2.1 before this blogpost, you are also not affected.

How to upgrade from 1.2.0 or earlier

We removed 1.2.1 from PyPI and uploaded the correct package as 1.2.1.post2. If you are on 1.2.0 or earlier, you can upgrade to 1.2.1.post2 without problems.

How to fix installations with 1.2.1

If you have created a backup immediately from before the upgrade to 1.2.1, restore your database from this backup, install pretix 1.2.1post2 and go through the usual upgrade routine. Everything should work fine, then.

If you installed the broken 1.2.1 version and do not have a backup, there is unfortunately no easy way to roll-back the database migrations. Your best bet is to skip the rest of the 1.2.x release cycle and upgrade directly to the current development version of 1.3.x. We uploaded a recent build here. To the best of our knowledge, the build is sufficiently stable to use in production. We advise you to not yet use the new feature of add-on products as we didn't test it thoroughly yet, but otherwise you will be able to enjoy a large number of UI improvements early on as a side-effect. Please report any newly occuring problem to us.

You can just download any of the two files linked above and install it with pip install <filename> and then perform the usual upgrade routine.

Once 1.3.0 is released in early May, you can upgrade using the completely regular path using pip install -U pretix.

Raphael Michel

Raphael ist der Gründer und Haupt-Entwickler von pretix. Er begeistert sich für benutzerfreundliche, elegante Software und wenn er nicht zu beschäftigt mit pretix ist, organisiert er gerne selbst Konferenzen mit.

Mehr Blog-Posts lesen

Noch Fragen?
+49 6221 32177-50 Mo-Fr 09:00-17:00 Uhr