kaliop-uk / ezmigrationbundle

This bundle makes it easy to handle eZPlatform / eZPublish5 content upgrades/migrations
GNU General Public License v2.0
53 stars 81 forks source link

No active transactions on CircleCi #156

Closed plozmun closed 6 years ago

plozmun commented 6 years ago

Hi , I have a issue on CircleCi. Migrations works on local and production but in CircleCi it shows the following error after clean install.

Migration failed! Reason: Error in execution of step 2: Error post migration execution in file ..vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/Repository.php line 974: There is no active transaction.
There is no active transaction.
There is no active transaction.
There is no active transaction.

Do you know what it could be?

gggeek commented 6 years ago

Hello.

The funny thing is: I also have the same error messages on some prod environments (GCP iirc). The dev servers for the same project do not have any problems.

So far I did not have enough time to investigate deeply.

However the good thing is that, at least for my case, all the migrations that were showing that message did in fact work as expected. The error comes from the code of the migration bundle that gets upset when it tries to commit at the end of the whole process and finds that there is no transaction to commit any more. Which means most likely that someone else just committed.

So more of an annoyance than a real problem.

Btw, do you know which type of database is used on CircleCi? Is it possible that it is based on Galera replication ?

plozmun commented 6 years ago

I'm using image circleci/mysql:5.7 . You're right. Looks like migrations works. I'll use --ignore-failures to ignore these errors :)

Thank you!

plozmun commented 6 years ago

It was my fault. I had a service that needed an outside service and failed in the autowire. 😅

Closing! Thanks!