GithubHelp home page GithubHelp logo

Nextcloud 14 RC1 + Dashboard 5.0.1: An exception occurred while executing 'SELECT lastval()': SQLSTATE[55000]: Object not in prerequisite state: 7 ERROR: lastval is not yet defined in this session about dashboard HOT 8 CLOSED

nextcloud avatar nextcloud commented on September 15, 2024
Nextcloud 14 RC1 + Dashboard 5.0.1: An exception occurred while executing 'SELECT lastval()': SQLSTATE[55000]: Object not in prerequisite state: 7 ERROR: lastval is not yet defined in this session

from dashboard.

Comments (8)

felixgonsug avatar felixgonsug commented on September 15, 2024 1

Thers a way to solve this? I have NC 14.0.3 and im faceing the same issue

from dashboard.

Grimeton avatar Grimeton commented on September 15, 2024

#metoo

On Owncloud 14.0.1

Anything I can hand you guys to help with this? Logs? Other stuff?

Cu

from dashboard.

tuxedo-rb avatar tuxedo-rb commented on September 15, 2024

Hello,
how Nextcloud handles INSERT queries for postgreSQL is part of nextcloud/server DBAL and their AdapterPgSql.

The abstract Mapper.php class calls for each INSERT operation lastInsertId, which always uses SELECT lastval() in AdapterPgSql.php.
The files_antivirus App seems to have the same problem: Error when inserting clean files with Postgresql.

from dashboard.

tuxedo-rb avatar tuxedo-rb commented on September 15, 2024

I reported the bug to the nextcloud/server issue board.
nextcloud/server#12465
You could also override the insert method, how it @rullzer did for the files_antivirus App.
nextcloud/files_antivirus@c82de74

Edit: could you guys join the discussion on nextcloud/server#12465 and provide informations to find a solution?

from dashboard.

DrissiReda avatar DrissiReda commented on September 15, 2024

After trying to download & enable and this happens, I tried to click again and I got :

An exception occurred while executing 'INSERT INTO "oc_dashboard_settings"("id","key","value") VALUES(?,?,?)' with params [1, "show_activity", 1]: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "oc_dashboard_settings_pkey" DETAIL: Key (id)=(1) already exists.

from dashboard.

kesselb avatar kesselb commented on September 15, 2024

15.0.1 is scheduled for 2019-10-01 and will ship a fix.

from dashboard.

Grimeton avatar Grimeton commented on September 15, 2024

October 2019? Really?

from dashboard.

mario avatar mario commented on September 15, 2024

from dashboard.

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.