Coder Social home page Coder Social logo

database log filled with errors: `duplicate key value violates unique constraint “oc_systemtag_object_mapping_pkey”` about server HOT 8 OPEN

warlordattack avatar warlordattack commented on July 2, 2024
database log filled with errors: `duplicate key value violates unique constraint “oc_systemtag_object_mapping_pkey”`

from server.

Comments (8)

github-actions avatar github-actions commented on July 2, 2024 1

Hello 👋

Thank you for taking the time to open this issue with recognize. I know it's frustrating when software
causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at
and if possible solved.
I try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it.
Until then, please be patient.
Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation
to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can
collaborate to make this software better. For everyone.
Thus, if you can, you could also look at other issues to see whether you can help other people with your knowledge
and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and
try to fix the odd bug yourself. Everyone will be thankful for extra helping hands!
One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the forum,
to twitter or somewhere else. But this is a technical issue tracker, so please make sure to
focus on the tech and keep your opinions to yourself. (Also see our Code of Conduct. Really.)

I look forward to working with you on this issue
Cheers 💙

from server.

marcelklehr avatar marcelklehr commented on July 2, 2024 1

Hello @warlordattack

I'm sorr for your troubles. This appears to be a bug in nextcloud server (core) rather than the recognize app. I'm thus transferring this issue to the server repository.

from server.

warlordattack avatar warlordattack commented on July 2, 2024

this bug makes nextcloud database log unusable :
-huge size : 20MO after 1 day
-errors added every second so it scrolls indefinitly
-it also makes the whole nextcloud slow

from server.

warlordattack avatar warlordattack commented on July 2, 2024

I tryed to delete the content inside oc_systemtag_object_mapping table, then restarted autotagging using :
sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ recognize:recrawl
The errors continue after deleting all lines inside oc_systemtag_object_mapping table.

And i would like to delete the content of the nextcloud database log, but did not find where the file is.

Also tryed this : sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ maintenance:repair
But it did not solve the problem, because there is no problem with the database itself probably,
but with the code that try to insert things inside oc_systemtag_object_mapping without verifying if the line already exists first ?

from server.

warlordattack avatar warlordattack commented on July 2, 2024

If more information is needed i can provide.
Best regards :)

from server.

joshtrichards avatar joshtrichards commented on July 2, 2024

I know you mentioned new installation in the reproduction steps, but any chance your existing database was restored from backup at some point or migrated from another installation?

from server.

warlordattack avatar warlordattack commented on July 2, 2024

It was a clean new install, i am testing, so i delete all containers and docker disks and dosker directories linked to containers before new install, database was normally deleted when i deleted docker disks before install.

from server.

marcelklehr avatar marcelklehr commented on July 2, 2024

Looks like this is the code that causes this. The errors don't seem to be fatal, but sure are annoying I assume: https://github.com/nextcloud/server/blame/master/lib/private/SystemTag/SystemTagManager.php#L180

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.