Error with worker, READONLY You can't write against a read only replica

I have error in latest version
(I used worker, and n8n 0.228.2)

Many exes does not display any info, just blank. They seems failed so much.

Error from queue: 
Error from queue: 
ReplyError: READONLY You can't write against a read only replica.
    at parseError (/usr/local/lib/node_modules/n8n/node_modules/redis-parser/lib/parser.js:179:12)
    at parseType (/usr/local/lib/node_modules/n8n/node_modules/redis-parser/lib/parser.js:302:14) {
  command: {
    name: 'brpoplpush',
    args: [ 'bull:jobs:wait', 'bull:jobs:active', '5' ]
  }
}

I fixed this.

My server restarted by something.
It makes redis docker and worker docker restarted. But I think worker restarted before redis, and it could not connect to redis.

I do not how to force worker docker to restart after redis docker to avoid this issue in future.

1 Like

One option is modify your compose file to place a depends_on in the worker service’s section.

https://docs.docker.com/compose/compose-file/05-services/#depends_on

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.