We have two GoCD 20.7 servers with business continuity and Postgres 9.6.10 
backend.

Lately we re-started the standby and the master DB/GoCD but soon after, the 
standby crashed with the following error:

INFO   | jvm 1    | 2020/09/22 12:24:40 | Unable to create database upgrade 
script for database. The problem was: 
liquibase.exception.DatabaseException: Error executing SQL UPDATE 
public.databasechangeloglock SET LOCKED = TRUE, LOCKEDBY = 
'go02-000-021-0', LOCKGRANTED = '2020-09-22 12:24:40.632' WHERE ID = 1 AND 
LOCKED = FALSE: ERROR: cannot execute UPDATE in a read-only transaction. 
The cause was: Error executing SQL UPDATE public.databasechangeloglock SET 
LOCKED = TRUE, LOCKEDBY = 'go02-000-021-0', LOCKGRANTED = '2020-09-22 
12:24:40.632' WHERE ID = 1 AND LOCKED = FALSE: ERROR: cannot execute UPDATE 
in a read-only transaction

INFO   | jvm 1    | 2020/09/22 12:24:40 | 
liquibase.exception.LockException: liquibase.exception.DatabaseException: 
Error executing SQL UPDATE public.databasechangeloglock SET LOCKED = TRUE, 
LOCKEDBY = 'go02-000-021-0', LOCKGRANTED = '2020-09-22 12:24:40.632' WHERE 
ID = 1 AND LOCKED = FALSE: ERROR: cannot execute UPDATE in a read-only 
transaction

The master is up & running and the admin dashboard is working. 

Do you have any help ?

Thanks in advance

Luca

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/6deef29c-3910-4329-91cd-5c831dc34fa9n%40googlegroups.com.

Reply via email to