GithubHelp home page GithubHelp logo

[Bug]: Error when updating to Nextcloud Version 29: InvalidArgumentException: Index name "share_id_index" for table "oc_onlyoffice_permissions" collides with the constraint on table "oc_federated_reshares". about server HOT 5 CLOSED

ChangnamOfMyr avatar ChangnamOfMyr commented on June 23, 2024
[Bug]: Error when updating to Nextcloud Version 29: InvalidArgumentException: Index name "share_id_index" for table "oc_onlyoffice_permissions" collides with the constraint on table "oc_federated_reshares".

from server.

Comments (5)

p4ck3t0 avatar p4ck3t0 commented on June 23, 2024 1

Hi @AndreasB92 ,

I had the exact same issue. I resolved it by running the following query against my database (MariaDB):

DROP INDEX share_id_index ON oc_onlyoffice_permissions;

This query, drops the index for table oc_onlyoffice_permissions. Afterwards the migration runs through and everything seems to work.

Hope that helps.

from server.

joshtrichards avatar joshtrichards commented on June 23, 2024

Since this is in the OnlyOffice integration app you'll need to report this to them:

https://github.com/ONLYOFFICE/onlyoffice-nextcloud

It does look like they attempted to replace this overlapping index name, but I see the old one in a prior migration so maybe there's more to it. I didn't look too closely:

https://github.com/search?q=repo%3AONLYOFFICE%2Fonlyoffice-nextcloud%20share_id_index&type=code

This form wants me to add a Configuration report and a list of activated apps, but i dont know how to get them as i dont have admin permissions on the Webserver.

That's fine since we likely won't need them now in this case, but for future reference the easiest way to do this is from the command line via the occ command. See https://docs.nextcloud.com.

from server.

joshtrichards avatar joshtrichards commented on June 23, 2024

Meant to add: If you need help cleaning up the database tables/indexes post a query on the Community Help Forum

from server.

AndreasB92 avatar AndreasB92 commented on June 23, 2024

Could you maybe tell me in very simple language what I have to do here? I get the same error when I want to update to version 29. I don't even want to use Only Office App and deleted it but I still get that error and can only load previous backups.

from server.

joshtrichards avatar joshtrichards commented on June 23, 2024

@AndreasB92 If you need help cleaning up the database tables/indexes post a query on the Community Help Forum

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.