core icon indicating copy to clipboard operation
core copied to clipboard

Autoupdater 5.0.3 -> 5.0.4 get in maintenance mode

Open davidak opened this issue 13 years ago • 41 comments

updated it with the updater app. see maintenance message (this shoudn't happen if there is no problem)

set it to false in config

seeing the update process... after that succesfully disabled maintenance mode...


ownCloud Server 5.0.3 (updated from 5.0)

Ubuntu-Server 12.04

Apache2

MySQL

PHP 5.3.10-1ubuntu3.6

owncloud.log: https://gist.github.com/davidak/5364923

davidak avatar Apr 11 '13 16:04 davidak

I had the same problem with the AutoUpdater from 5.0.2 --> 5.0.3 and today with 5.0.3 --> 5.0.4

pheraph avatar Apr 11 '13 17:04 pheraph

I experienced this as well just now even when doing a manual update of copying the 5.0.4 files over my 5.0.3 installation.

bigworm avatar Apr 11 '13 19:04 bigworm

did you try to clear your browser cache?

BernhardPosselt avatar Apr 11 '13 21:04 BernhardPosselt

@Raydiation no

davidak avatar Apr 11 '13 21:04 davidak

That shouldn't be necessary because we append the version to the js files.

MTGap avatar Apr 11 '13 21:04 MTGap

I also had this problem, Updater said the update was finished, but site still displayed "maintenance mode" while visiting regardless of cache clearing.

I edited my config.php file (public/config/config.php) and changed the following to resolve. 'version' => '5.0.3', to 'version' => '5.0.4', 'maintenance' => true, to 'maintenance' => false,

stefancrain avatar Apr 12 '13 19:04 stefancrain

I have the same problem after updating with the "update" app. Editing the config.php doesn't help, I still get "maintenance mode" when visiting the owncloud start site :(

tmeissner avatar Apr 13 '13 12:04 tmeissner

Same here. Went from 5.0.3 to 5.0.4 and now I'm stuck in maintenance mode. WooHoo! Rebooted, gave it some time but nothing has changed. When maintenance started I received the following message:

Updating ownCloud to version 5.0.4, this may take a while.

Turned on maintenance mode Failed to get existing database structure for updating (MDB2 Error: unknown error, _doQuery: [Error message: Could not execute statement] [Last executed query: SELECT sql FROM sqlite_master WHERE type='table' AND name='oc_bookmarks'] [Native code: 5] [Native message: database is locked] )

The update was unsuccessful. Please report this issue to the ownCloud community.

I'm using SQLite. My linux is Crunchbang Linux 2.6.32-5-amd64

VisualJeff

visualjeff avatar Apr 16 '13 06:04 visualjeff

@visualjeff Your database got locked while updating, typical sqlite problem

BernhardPosselt avatar Apr 16 '13 08:04 BernhardPosselt

@Raydiation "Typical sqlite problem" is not an answer. We have to lookinto it an see what we can do here. Perhaps trying again after some wait is enough?

karlitschek avatar Apr 16 '13 13:04 karlitschek

I edited my config.php file (config/config.php) and changed the following to resolve. 'version' => '5.0.3', to 'version' => '5.0.4', 'maintenance' => true, to 'maintenance' => false,

OwnCloud is back.

visualjeff avatar Apr 16 '13 16:04 visualjeff

I edited my config.php file (config/config.php) and changed the following to resolve. 'version' => '5.0.3', to 'version' => '5.0.4', 'maintenance' => true, to 'maintenance' => false,

OwnCloud is back.

Thank you! This help me too!

sprnza avatar Apr 17 '13 08:04 sprnza

still same problem on updating 5.0.4 to 5.0.5.

set maintenance to false helps again.

davidak avatar Apr 22 '13 08:04 davidak

same here

System: ArchLinux - Lighttpd - Mysql

MorrisJobke avatar Apr 22 '13 15:04 MorrisJobke

Its ground hog day for me. I always end up receiving the message:

{"app":"core","message":"Failed to update database structure (MDB2 Error: already exists, _doQuery: [Error message: Could not execute statement]\n[Last executed query: CREATE TABLE "oc_filecache" ("fileid" INTEGER PRIMARY KEY AUTOINCREMENT, "storage" INTEGER DEFAULT 0 NOT NULL, "path" VARCHAR(512) DEFAULT ' ' NOT NULL, "path_hash" VARCHAR(32) DEFAULT ' ' NOT NULL, "parent" INTEGER DEFAULT 0 NOT NULL, "name" VARCHAR(250) DEFAULT ' ' NOT NULL, "mimetype" INTEGER DEFAULT 0 NOT NULL, "mimepart" INTEGER DEFAULT 0 NOT NULL, "size" BIGINT DEFAULT 0 NOT NULL, "mtime" INTEGER DEFAULT 0 NOT NULL, "encrypted" INTEGER DEFAULT 0 NOT NULL, "etag" VARCHAR(40) DEFAULT ' ' NOT NULL)]\n[Native code: 1]\n[Native message: table "oc_filecache" already exists]\n)","level":4,"time":1366680219}

Can I manually drop oc_filecache table to resolve this?

VisualJeff

visualjeff avatar Apr 23 '13 02:04 visualjeff

@blizzz @icewind1991 @bartv2 Any idea?

karlitschek avatar Apr 23 '13 10:04 karlitschek

Changed the maintenance mode to "false" as described above. Then saw a screen saying it was updating from 5.0.4 -> 5.0.5. It appears I am back in business :-)

ralberts avatar Apr 23 '13 18:04 ralberts

Anyone want to test? #2835

MTGap avatar May 07 '13 14:05 MTGap

I keep testing this. In the previous issue I reported that the problem was using Chrome after upgrading, but it´s not.

I have checked that what it seems to triger the "maintenance mode" is to have any account registered with a desktop client. I mean,

Steps to reproduce

  1. Having a server with the version 4.5.8 and some users and group. None of them has their account registered on a desktop client
  2. We upgrade the server to 5.0.6RC1
  3. Everything goes well, no maintenance mode, all users are there, all shared files...

However

  1. Having a server with the version 4.5.8 and some users and groups. At least one of them has information sync with a desktop client
  2. We upgrade the server to 5.0.6RC1
  3. We run into maintenance mode, tested with Chrome, Firefox and IE9

rperezb avatar May 09 '13 07:05 rperezb

just as another data-point:

I just upgraded 5.0.5 to 5.0.6. When i fired up the browser, i saw "maintenance mode" as well. This didn't resolve by itself, i had to edit my config.php (maintenance => false). I - personally - think this is not a big deal, as long as it's documented anywhere.

If it's not intended to be this way, maybe this is a pointer in the right direction: I use owncloud as a regular user. I only use the Admin-User if i ever need to change plugins or create new users. Maybe this problem doesn't appear for people who are admins themselves anyway?

ccoenen avatar May 14 '13 11:05 ccoenen