core icon indicating copy to clipboard operation
core copied to clipboard

Missing Values in oc_appconfig Table when upgrading from 4.0.x to 4.5.7

Open benjamin-garn opened this issue 13 years ago • 5 comments

I checked several upgrade scenarios now and the following problem occured, whenever i upgraded from 4.0.x to 4.5.7 Version (and used MySQL).

There were 5 values in the oc_appconfig table missing:

  • backgroundjobs_step
  • backgroundjobs_task
  • global_cache_gc_lastrun
  • remote_core.css
  • remote_core.js

Without the last two entries, the Layout will be broken and unusable!

There was no error message during the upgrade!

After upgrading, the DB structure is ok in the meaning all tables and fields are there and of the right type. The only difference is, there are a lot of default ' ' values on fields now. The upgraded tables do not have those default values!

This means if you plan to upgrade from 4.0.x to 4.5.7, you have to manually add those entries (see #1871) or try 4.0.x --> 4.5.0 --> 4.5.7 as upgrade path.

oc_appconfig_diff

oc_db_upgrade_structure_diff

Other Versions of 4.5.x might be affected as well.

benjamin-garn avatar Mar 08 '13 14:03 benjamin-garn

Duplicate of #999

BernhardPosselt avatar Mar 08 '13 16:03 BernhardPosselt

@Raydiation Please reopen. This is no duplicate.

#999 is another bug. Here the DB structure is NOT broken and there are no mysql errors appearing.

benjamin-garn avatar Mar 08 '13 17:03 benjamin-garn

Hi this is a bug related to the database layer mdb2. It will most likely not be fixed and fixed in the next release (6) by switching to doctrine

BernhardPosselt avatar Mar 08 '13 19:03 BernhardPosselt

@benjamin-garn #1871 seems to be the same report. Sorry for my short message, I was on the train with my mobile phone. All in all upgrading is quite broken and should be done carefully with lots of backups (we dont have db migrations yet, i think thats the main issue here).

Also you should update from every minor release to the next minor release, for a complete list see http://owncloud.org/releases/

meaning: 4.04 -> 4.05 -> ... etc

Thats the reason for tagging this as duplicate. There are actually quite a variety of other bugs related to updating but we can neither debug this pretty well nor fix them effectively because its a library problem.

Hopefully we can offer a stable way to upgrade after we've switched to doctrine. Thanks for your report though ;)

BernhardPosselt avatar Mar 08 '13 23:03 BernhardPosselt

@Raydiation Thank you for your explanation. Got it now. So i hope doctrine will do a better job :-)

benjamin-garn avatar Mar 09 '13 17:03 benjamin-garn