Hi,
Can you check your disk space during the upgrade? I think during the upgrade a copy of the database gets created, and if it is too big your db engine might crash.
I would recommend you have a least room for a whole copy of your owncloud db during the upgrade.