Can't save changes to queries

When I create a new app in Retool and try to create or modify a simple Postgres query I get an "Unknown error" message from Retool. Audit logs show that they query is empty even though I wrote a very simple select query.

The retool-server and retool-jobs-runner containers are printing the error " Unable to push page save id 1835 to processor queue because active client undefined is invalid"

How can I fix this?