An error occured in the logger. ERROR: cannot execute INSERT in a read-only transaction