e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
321 stars 213 forks source link

Database upgrade never finishes #367

Closed brhahlen closed 10 years ago

brhahlen commented 11 years ago

When doing an upgrade from my current site to V2, the database upgrade never finishes. The log file only displays:

 e107 CMS Log file :    2013-05-31_09-00-04
-------------------------------------------------------------------------------------------

2013-05-31 09:00:04     debug           Plugin: pdf requires an update.
2013-05-31 09:00:04     debug           Plugin: rss_menu requires an update.
2013-05-31 09:00:04     debug           Plugin: log requires an update.
2013-05-31 09:00:04     debug           Plugin: forum requires an update.
2013-05-31 09:00:04     nodisplay       Start version: 2.0.0 (git)
2013-05-31 09:00:04     debug           Plugin: pdf requires an update.
2013-05-31 09:00:04     debug           Plugin: rss_menu requires an update.
2013-05-31 09:00:04     debug           Plugin: log requires an update.
2013-05-31 09:00:04     debug           Plugin: forum requires an update.

However, these buttons are grayed out. If you need more log files or info, please let me know.

Tested with update from V1-SVN (latest) to V2 Git (latest)

Moc commented 11 years ago

Thanks for the report. To fix this, more information is needed on what specifically triggers the update. Can you enable basic debug? This should give you more information on what it wants to update specifically (it will tell you what line in update_routines.php triggered the update)

You can enable debug in two ways:

brhahlen commented 11 years ago

This is what I get from the debug:

System Debug
Update required in update_routines.php on line 1395 (Avatar paths require updating.)
Update required in update_routines.php on line 435 (Missing pref: admin_separate_plugins)

Hope it helps :)

Moc commented 11 years ago

This definitely helps. It's a bug that is still being looked into. Some installations run into this so they cannot continue the upgrade, some pass it without any problems.. it's a hard to track issue (I literally spent more than 5 hours on it already)

brhahlen commented 11 years ago

Wow... Well, if you need any more information from me, let me know! I can easily create another test site or something, or if you want db settings or such.

Moc commented 11 years ago

Thanks, I'll get back to you!

CaMer0n commented 10 years ago

@Moc - is it still an issue?

Moc commented 10 years ago

Couldn't reproduce this on two upgrades I did this morning... I do know it's a bug which is not always reproducible.

@brhahlen Can you try again and see if you still get the error?

willem010 commented 10 years ago

same issue here, reported as part of #591

Moc commented 10 years ago

@willem010 It's not the same issue.... True the update doesn't finish in this issue, but that is due to a preference which is not converted/added properly (admin_separate_plugins). Your issue is stuck at moving download files into a new directory.

willem010 commented 10 years ago

ok, sorry .. looked very much the same thing.

Moc commented 10 years ago

No problem :)

Moc commented 10 years ago

@brhahlen Closing this for now, please re-open if the bug still occurs for you. I haven't been able to trigger it anymore.

brhahlen commented 10 years ago

Nope, it doesn't seem to happen for me either anymore.