Skip to content

upgrading 4.5.2 to 4.5.5: Failed to get existing database structure for upgrading, relation \"archive\" does not exist #1036

Closed

Description

@zmi1

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?

Activity

  1. DeepDiver1975 commented on Dec 27, 2012

    @DeepDiver1975
    Contributor

    Can you please double check the web server errorlog?
    Which apps are enabled?

  2. zmi1 commented on Dec 28, 2012

    @zmi1
    Author

    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).

  3. zmi1 commented on Dec 31, 2012

    @zmi1
    Author

    Any more ideas?

  4. JensS commented on Jan 2, 2013

    @JensS

    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??

  5. JensS commented on Jan 2, 2013

    @JensS

    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

  6. tanghus commented on Jan 2, 2013

    @tanghus
    Contributor

    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.

  7. tanghus commented on Jan 2, 2013

    @tanghus
    Contributor

    Didn't even know there was an ownCloud fb account ;)

  8. zmi1 commented on Jan 2, 2013

    @zmi1
    Author

    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 :-(

  9. DeepDiver1975 commented on Jan 2, 2013

    @DeepDiver1975
    Contributor

    @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

  10. VicDeo commented on Jan 2, 2013

    @VicDeo
    Contributor

    @JensS This advice was written on February 29 2012. It's probably good for ownCloud 3.x

  11. JensS commented on Jan 2, 2013

    @JensS

    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. ;)

  12. zmi1 commented on Jan 7, 2013

    @zmi1
    Author

    @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.

  13. JensS commented on Jan 26, 2013

    @JensS

    ok, seriously!? the same error happened during the upgrade from 4.5.5 to 4.5.6.

  14. anti-pencil commented on Jan 29, 2013

    @anti-pencil

    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?

  15. radoeka commented on Feb 10, 2013

    @radoeka

    See #999

  16. jancborchardt commented on Aug 5, 2013

    @jancborchardt
    Contributor

    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!

  17. locked as resolved and limited conversation to collaborators on Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions