XF 2.2 DB Migration


we migrated our DB to a new host and upgrade it. Now we're stuck on "The site is currently being upgraded. Please check back later.". When going to the /install it gives 504 Gateway error. I briefly removed install-lock.php and it says the version is "v2.2.6 Patch 2". So its already been updated but it says the update is still being performed. Where can I start to debug this?

Thank you