Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] Redis connection fails with 1.14 with: 'UnixDomainSocketConnection' object has no attribute 'socket_timeout' #3173

Closed
ThxAndBye opened this issue Apr 25, 2023 · 5 comments · Fixed by #3176
Labels
bug Bug report or a Bug-fix dependencies Pull requests that update a dependency file fixed in next release

Comments

@ThxAndBye
Copy link

Description

Upgrading from Paperles-NGX 1.13 to 1.14 causes the Redis connection via a UNIX-Socket to fail with the following error message:
Error: 'UnixDomainSocketConnection' object has no attribute 'socket_timeout'.

I'm running Paperless-NGX via the official Docker image: ghcr.io/paperless-ngx/paperless-ngx

Steps to reproduce

  1. Setup Paperless-NGX with the Docker image ghcr.io/paperless-ngx/paperless-ngx:1.13
  2. Configure Redis via a UNIX socket with the PAPERLESS_REDIS environment variable (e.g. unix:///run/redis/redis.sock)
  3. Upgrade to the 1.14 image

Webserver logs

Paperless-ngx docker container starting...
Creating directory /tmp/paperless
Adjusting permissions of paperless files. This may take a while.
Waiting for Redis...
Redis ping #0 failed.
Error: 'UnixDomainSocketConnection' object has no attribute 'socket_timeout'.
Waiting 5s
Redis ping #1 failed.
Error: 'UnixDomainSocketConnection' object has no attribute 'socket_timeout'.
Waiting 5s
Redis ping #2 failed.
Error: 'UnixDomainSocketConnection' object has no attribute 'socket_timeout'.
Waiting 5s
Redis ping #3 failed.
Error: 'UnixDomainSocketConnection' object has no attribute 'socket_timeout'.
Waiting 5s
Redis ping #4 failed.
Error: 'UnixDomainSocketConnection' object has no attribute 'socket_timeout'.
Waiting 5s
Failed to connect to redis using environment variable PAPERLESS_REDIS.

Browser logs

No response

Paperless-ngx version

1.14

Host OS

UnRAID 6.11.5

Installation method

Docker - official image

Browser

No response

Configuration changes

No response

Other

No response

@ThxAndBye ThxAndBye added bug Bug report or a Bug-fix unconfirmed labels Apr 25, 2023
@stumpylog stumpylog added dependencies Pull requests that update a dependency file and removed unconfirmed labels Apr 25, 2023
@stumpylog
Copy link
Member

Looks like redis/redis-py/issues/2581 which was fixed in 4.5.4 (we're using 4.5.3). I'll see about updating soon

@ThxAndBye
Copy link
Author

Looks like redis/redis-py/issues/2581 which was fixed in 4.5.4 (we're using 4.5.3). I'll see about updating soon

Whoa, that was a swift reply if I've ever seen one.

Keep in mind, that mentioned issue has the missing attribute '_command_packer' while for me it fails with 'socket_timeout'.
I'm happy to test new images though.

@stumpylog
Copy link
Member

Oh, looks like redis/redis-py/issues/2629 then. Very similar

@stumpylog
Copy link
Member

Oh, it closes it now. Neat. We'll probably have a new point release out soon with the upgraded library

@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 30, 2023
@shamoon shamoon removed this from Paperless-ngx Feb 5, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Bug report or a Bug-fix dependencies Pull requests that update a dependency file fixed in next release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants