redlib-org / redlib

Private front-end for Reddit
GNU Affero General Public License v3.0
1.37k stars 96 forks source link

🐛 Bug Report: ERROR redlib::oauth > Failed to create OAuth client in Elapsed(()). #266

Closed matheusroberson closed 1 month ago

matheusroberson commented 1 month ago

Describe the bug

i'm selfhosting redlib with docker, when i try start container i see this error:

redlib | ERROR redlib::oauth > Failed to create OAuth client in Elapsed(()). Retrying in 5 seconds...

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Try start redlib container with docker
  2. See error terminal

Additional context / screenshot

I have technitium DNS server configured in docker, when i disable dns server redlib start

sigaloid commented 1 month ago

Anything else within 5 seconds? Or is it constantly repeating?

If it repeats every 5 seconds, it's more than likely an IP ban.

matheusroberson commented 1 month ago

Yes, it is constantly repeating. I don't know work an IP ban, but i can access Reddit in other devices and when i disable Technitium

sigaloid commented 1 month ago

Any chance you can test Redlib specifically on a different IP?

matheusroberson commented 1 month ago

Sorry, i can't test in a different IP and i meant in my last commentary, it is possible to access Redlib without my DNS server self-hosted

sigaloid commented 1 month ago

I just pushed 6b44c1abf25f16b09a021bc423bbdca7e5f71cc7 which should additional logging to that function. Please run the program with RUST_LOG=redlib=trace and paste the full log output after a few tries.

ButteredCats commented 1 month ago

Sorry to butt in but I think this is just related to Technitium's blocking function. Assuming that's setup, anyways. Seeing that it works when Technitium is off Redlib itself clearly functions fine.

Just go into Settings > Blocking, disable "Enable Blocking" and save your settings. After that check if Redlib begins working.

Both of my containers running Redlib are using selfhosted Technitium DNS servers and it works fine, so I don't think this has anything to do with Redlib or any inherent problem with Technitium.

sigaloid commented 1 month ago

Ugh I misread that part. Yeah, @matheusroberson you have something specifically set up to block Reddit requests. That's what's causing the issue. Closing for now unless you can reproduce without Technitium