ERROR 2023-06-01T11:15:36,844 ERROR: cannot execute nextval() in a read-only transaction (SqlExceptionHelper.java [http-nio-8085-exec-7]) IDFtfH/AwopUAFcfA95Olkh079HLVAPmxKH5WKJEoIT8I=
org.hibernate.exception.GenericJDBCException: could not extract ResultSet
and Postgresql.log:
2023-06-01 11:14:55.345 CEST [5274] STATEMENT:
2023-06-01 11:15:36.843 CEST [5196] ERROR: cannot execute nextval() in a read-only transaction
2023-06-01 11:15:36.843 CEST [5196] STATEMENT: select nextval (‘hibernate_sequence’)
2023-06-01 11:15:36.843 CEST [5196] ERROR: current transaction is aborted, commands ignored until end of transaction block
2023-06-01 11:15:36.843 CEST [5196] STATEMENT:
Question: can anyone share their postgresql.conf settings?
Currently I am using DHIS2.37.9.1 and PostgreSQL 14.8 and I have tried to set default_transaction_read_only = false. But still have an error.
Any ideas and help please?
I did. Basically default value is default_transaction_read_only =off.
Didn’t work…
But as soon as I downgraded everything started to work perfectly fine
Hi
We are having issues creating or updating existing Data Visualizer favorites (visualizations). When the user clicks on File->Save or File->Save as (and write a name for the visualization) it returns the following error to the screen
Thank you for your post! As you can see I moved the topic to this one because it’s exactly the same issues and the same dhis2 version 2.37.9.1. I think it’s a bug related to this: [DHIS2-11856] - Jira
Another community member (@diallotafsir52) had faced this issue and solved it by making some changes, see the suggestion:
Hi
Thanks for the tip @Ulanbek it helped, but unfortunately did not completely solve the problem.
I’m able to create and save successfully new visualizations.
But when I’m updating an existing visualization it returns the reported error.
As a work around deleting the existing visualization and creating a new one the same name works perfectly (we can live with that for now)