You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
upgrading 4.5.2 to 4.5.5: Failed to get existing database structure for upgrading, relation \"archive\" does not exist #1036
Just upgrading the webpage, and the site shows:
Error while upgrading the database
in data/owncloud.log I find this:
{"app":"core","message":"Failed to get existing database structure for upgrading (MDB2 Error: no such table, _doQuery: [Error message: Could not execute statement]\n[Last executed query: SELECT * FROM "archive" LIMIT 1 OFFSET 0]\n[Native message: ERROR: relation "archive" does not exist\nLINE 1: SELECT * FROM "archive" LIMIT 1 OFFSET 0\n ^]\n)","level":4,"time":1356622875}
So why doesn't it create that relation? How should I create it manually?
This is a PostgreSQL database, but that shouldn't matter too much, right?
There are no apps despite "Files" I believe. When I go back (untar the old owncloud files) I can login and on the left there's only "Dateien" (which means files).
Just happened to me, too. Same exact s***, except that I'm using MySQL. From what I read from the support forums is that this is a common upgrade error and no one came up with a solution.
Is there a seperate SQL file for manual upgrade of the database structure??
"ownCloud: Hi Helmut, it would be nice to have more information on this. However, the most common problem is that the collation of the tables (and columns) is utf8. ownCloud needs latin1, otherwise mysql can not create the indexes. Does this information help you? Regards, your ownCloud team
29. Februar 2012 um 13:18"
strange, that the installer didn't create the tables using latin1. and when I look into "db_structure.xml", it does create some tables with utf8.
however, after changing the encoding the error persists
So there's an owncloud fb page that gives advices that are negated here. What's wrong? The whole owncloud thingy should have version 0.9alpha1, there are so many problems... even a simple minor update (as here from 4.5.2 to 4.5.5) makes it stop working... that's totally inacceptable. We'd like to sell this, but in the current ALPHA state the customers would kill us: we still have NO solution to get it working again. 6days offline now :-(
@zmi1 please get in touch with owncloud.com
They offer professional services and priority support.
And btw we are all still on vacation mode - stay calm and happy new year!
@fkarlitschek do you want to take care of this? Thanks
I made an SQL backup and a clean install of the most recent release. With the functioning SQL structure I removed the data from the new install and recovered the data from the backup. A backup without the sql structure in short. ;)
@DeepDiver1975 We're currently in testing phase, and want to see if we can offer this to our customers. But if we can't even update a minor release 4.5.2 to 4.5.5 without needing support, I won't even think about paying for support. This is stuff that simply must work.
I will try to install a clean 4.5.5 as @JensS said. Too sad there's no other, simple and correct solution.
Same thing happened to me, I upgraded from 4.5.5 to 4.5.6 to have some bugs smashed but ended up with this bug, now. How to troubleshoot this some more?
Failed to update database structure (MDB2 Error: unknown error, _doQuery: [Error message: Could not execute statement] [Last executed query: ALTER TABLE `oc_groups` ADD PRIMARY KEY (`gid`)] [Native code: 1068] [Native message: Multiple primary key defined] )
Edit: It seems to have only happened once. Can other users whom have had this bother them let us know if: it also has only happened only once, or persists?
I’m closing this bug because it has been inactive for a few months. This probably means it’s not reproducible or it has been fixed in a newer version.
Please reopen if the error still persists with ownCloud 5.0.9 (the latest stable version) and then please use the issue template. You an also contribute directly by providing a patch – see the developer manual. :)
Activity
DeepDiver1975 commentedon Dec 27, 2012
Can you please double check the web server errorlog?
Which apps are enabled?
zmi1 commentedon Dec 28, 2012
apache error log: nothing.
owncloud config says:
'dbtype' => 'pgsql',
'version' => '4.90.3',
There are no apps despite "Files" I believe. When I go back (untar the old owncloud files) I can login and on the left there's only "Dateien" (which means files).
zmi1 commentedon Dec 31, 2012
Any more ideas?
JensS commentedon Jan 2, 2013
Just happened to me, too. Same exact s***, except that I'm using MySQL. From what I read from the support forums is that this is a common upgrade error and no one came up with a solution.
Is there a seperate SQL file for manual upgrade of the database structure??
JensS commentedon Jan 2, 2013
ok, what I found on the Facebook page is:
"ownCloud: Hi Helmut, it would be nice to have more information on this. However, the most common problem is that the collation of the tables (and columns) is utf8. ownCloud needs latin1, otherwise mysql can not create the indexes. Does this information help you? Regards, your ownCloud team
29. Februar 2012 um 13:18"
strange, that the installer didn't create the tables using latin1. and when I look into "db_structure.xml", it does create some tables with utf8.
however, after changing the encoding the error persists
tanghus commentedon Jan 2, 2013
All tables and fields should be utf-8! I don't know who has given that horrific advice :-P
It could be that you have some tables that are not utf-8 which that gives the problem. But I no little about databases and even less about Postgres.
JensS commentedon Jan 2, 2013
https://www.facebook.com/owncloud/posts/10150598978461359?comment_id=21877398 <- thats the source
tanghus commentedon Jan 2, 2013
Didn't even know there was an ownCloud fb account ;)
zmi1 commentedon Jan 2, 2013
So there's an owncloud fb page that gives advices that are negated here. What's wrong? The whole owncloud thingy should have version 0.9alpha1, there are so many problems... even a simple minor update (as here from 4.5.2 to 4.5.5) makes it stop working... that's totally inacceptable. We'd like to sell this, but in the current ALPHA state the customers would kill us: we still have NO solution to get it working again. 6days offline now :-(
DeepDiver1975 commentedon Jan 2, 2013
@zmi1 please get in touch with owncloud.com
They offer professional services and priority support.
And btw we are all still on vacation mode - stay calm and happy new year!
@fkarlitschek do you want to take care of this? Thanks
VicDeo commentedon Jan 2, 2013
@JensS This advice was written on February 29 2012. It's probably good for ownCloud 3.x
JensS commentedon Jan 2, 2013
Ok, I've got it working now.
I made an SQL backup and a clean install of the most recent release. With the functioning SQL structure I removed the data from the new install and recovered the data from the backup. A backup without the sql structure in short. ;)
zmi1 commentedon Jan 7, 2013
@DeepDiver1975 We're currently in testing phase, and want to see if we can offer this to our customers. But if we can't even update a minor release 4.5.2 to 4.5.5 without needing support, I won't even think about paying for support. This is stuff that simply must work.
I will try to install a clean 4.5.5 as @JensS said. Too sad there's no other, simple and correct solution.
JensS commentedon Jan 26, 2013
ok, seriously!? the same error happened during the upgrade from 4.5.5 to 4.5.6.
anti-pencil commentedon Jan 29, 2013
Same thing happened to me, I upgraded from 4.5.5 to 4.5.6 to have some bugs smashed but ended up with this bug, now. How to troubleshoot this some more?
Edit: It seems to have only happened once. Can other users whom have had this bother them let us know if: it also has only happened only once, or persists?
radoeka commentedon Feb 10, 2013
See #999
jancborchardt commentedon Aug 5, 2013
I’m closing this bug because it has been inactive for a few months. This probably means it’s not reproducible or it has been fixed in a newer version.
Please reopen if the error still persists with ownCloud 5.0.9 (the latest stable version) and then please use the issue template. You an also contribute directly by providing a patch – see the developer manual. :)
Thank you!