Describe the bug
Two separate issues occur with the current quay.io/redlib/redlib:latest image,
both caused by the quay.io image not being rebuilt with the latest GitHub commits.
docker pull reports "Image is up to date" but /info reports the instance is
15 commits behind — confirming quay.io has not been rebuilt.
Issue 1 - OAuth failure (instance cannot load in browser at all):
The container continuously fails to obtain an OAuth token from Reddit, meaning
the instance cannot be accessed in the browser at all. This is not an IP issue
— tested across residential, ProtonVPN AU, ProtonVPN NL, and mobile data on
multiple machines with the same result.
Issue 2 - JSON parse error (when instance rarely manages to load):
On the rare occasion the instance loaded in the browser, it displayed:
"Failed to parse page JSON data: expected value at line 1 column 1"
along with the 15 commits behind warning.
Root cause identified:
Building from source using Dockerfile.ubuntu (latest GitHub commit) resolves
both issues completely — OAuth succeeds and pages load normally. The pre-built
Dockerfile is also broken — the TARGET build arg is unset, causing curl to
download only 9 bytes and tar to fail with "invalid magic / short read".
This means neither the quay.io image nor the Dockerfile deploy path currently
work. Only Dockerfile.ubuntu builds from source successfully.
Steps to reproduce the bug
- Pull quay.io/redlib/redlib:latest
- Run container with docker compose up -d
- Attempt to navigate to instance in browser — fails to load
- Check logs and observe continuous OAuth failure:
ERROR redlib::client > Got an invalid response from reddit expected value at
line 1 column 1. Status code: 403 Forbidden
ERROR redlib::oauth > [⛔] Failed to create OAuth client: expected value at
line 1 column 1. Retrying in 5 seconds...
ERROR redlib::oauth > [⛔] Failed to create OAuth client: access_token
{"error":401,"message":"Unauthorized"}. Retrying in 5 seconds...
- On rare occasion instance loads, observe JSON parse error with 15 commits
behind warning.
What's the expected behavior?
Redlib should obtain an OAuth token and serve pages normally. Building from
source with Dockerfile.ubuntu on the latest commit works correctly, confirming
the issue is specific to the stale quay.io image and broken Dockerfile.
Additional context
- Tested across multiple IPs and multiple machines — rules out IP block
- docker pull reports image is up to date (digest: sha256:e6647a94d553bf3f7c95c53fc6d9da5785e6c278d9002e99ea32abdb5e3c513a)
but /info reports 15 commits behind
- Dockerfile (non-ubuntu) is broken — TARGET arg unset causes 9 byte download:
tar: invalid magic / tar: short read
- Dockerfile.ubuntu builds from source and works correctly
- Public instance redlib.privacyredirect.com (latest commit) works fine
Describe the bug
Two separate issues occur with the current quay.io/redlib/redlib:latest image,
both caused by the quay.io image not being rebuilt with the latest GitHub commits.
docker pullreports "Image is up to date" but /info reports the instance is15 commits behind — confirming quay.io has not been rebuilt.
Issue 1 - OAuth failure (instance cannot load in browser at all):
The container continuously fails to obtain an OAuth token from Reddit, meaning
the instance cannot be accessed in the browser at all. This is not an IP issue
— tested across residential, ProtonVPN AU, ProtonVPN NL, and mobile data on
multiple machines with the same result.
Issue 2 - JSON parse error (when instance rarely manages to load):
On the rare occasion the instance loaded in the browser, it displayed:
"Failed to parse page JSON data: expected value at line 1 column 1"
along with the 15 commits behind warning.
Root cause identified:
Building from source using Dockerfile.ubuntu (latest GitHub commit) resolves
both issues completely — OAuth succeeds and pages load normally. The pre-built
Dockerfile is also broken — the TARGET build arg is unset, causing curl to
download only 9 bytes and tar to fail with "invalid magic / short read".
This means neither the quay.io image nor the Dockerfile deploy path currently
work. Only Dockerfile.ubuntu builds from source successfully.
Steps to reproduce the bug
ERROR redlib::client > Got an invalid response from reddit expected value at
line 1 column 1. Status code: 403 Forbidden
ERROR redlib::oauth > [⛔] Failed to create OAuth client: expected value at
line 1 column 1. Retrying in 5 seconds...
ERROR redlib::oauth > [⛔] Failed to create OAuth client: access_token
{"error":401,"message":"Unauthorized"}. Retrying in 5 seconds...
behind warning.
What's the expected behavior?
Redlib should obtain an OAuth token and serve pages normally. Building from
source with Dockerfile.ubuntu on the latest commit works correctly, confirming
the issue is specific to the stale quay.io image and broken Dockerfile.
Additional context
but /info reports 15 commits behind
tar: invalid magic / tar: short read