redlib icon indicating copy to clipboard operation
redlib copied to clipboard

πŸ› Bug Report: Couldn't send request to Reddit: error trying to connect: dns error: failed to lookup address information: Try again

Open AlexPewMaster opened this issue 11 months ago β€’ 1 comments

Describe the bug

Whenever I try to visit my own Redlib instance at redlib.reallyaweso.me, I get this error:

Couldn't send request to Reddit: error trying to connect: dns error: failed to lookup address information: Try again

Steps to reproduce the bug

  1. Go to redlib.reallyaweso.me
  2. See error

What's the expected behavior?

I should normally see the frontpage of my own instance.

Additional context / screenshot

The logs of the Docker container seem to be reporting the same issue:

redlib  |  ERROR redlib::utils > Error page rendered: Couldn't send request to Reddit: error trying to connect: dns error: failed to lookup address information: Try again

AlexPewMaster avatar Mar 28 '24 23:03 AlexPewMaster

@AlexPewMaster did you find any solution for this one?

Greatz08 avatar May 15 '24 04:05 Greatz08

I started getting this message on the main page of my own instance. But seems like yours has been fixed. What was the solution?
EDIT: Found my issue - tailscale somehow messed with my container's DNS. Not sure how, considering I haven't changed anything in a few years

0x09AF avatar May 26 '24 14:05 0x09AF

Suddenly caught this bug as well. Seems it has something to do with adding more than 1 subreddit to the cookies.

rhee876527 avatar May 29 '24 15:05 rhee876527

Suddenly caught this bug as well. Seems it has something to do with adding more than 1 subreddit to the cookies.

Same here with v0.31.2 and was able to avoid the error with 0 or 1 subscribed feed. But it worked fine just a few hours ago with multiple subreddits. Did reddit change something?

necaran avatar May 29 '24 16:05 necaran

Had the similar problem; it seems that if I do not subscribe anything, the error won’t appear, but searching will return no posts for me

patrick330602 avatar May 29 '24 18:05 patrick330602

I installed Redlib yesterday and it was working perfectly until a couple of minutes ago. Same issue as already related. I also noticed that If for example I open a new icognito tab it works fine (but with a clean profile and none of my previous subscriptions).

alscaldas avatar May 29 '24 19:05 alscaldas

Got the same problem on my own instance, reddit must have changed things....

iSack97 avatar May 29 '24 19:05 iSack97

Fixed in https://github.com/redlib-org/redlib/commit/273d889f1b05b23ca1a038fd36da564289b6455a

Release needs some kinks worked out, clone from source if you need this fix asap

sigaloid avatar May 29 '24 22:05 sigaloid

Still getting this with the 0.34.0 binary.

Release needs some kinks worked out, clone from source if you need this fix asap

So release is no good to use then at all, even the 0.34.0 binary which came after https://github.com/redlib-org/redlib/commit/273d889f1b05b23ca1a038fd36da564289b6455a ?

Linux 6.6.32-1-lts
podman 5.1.0-1
podman-compose 1.1.0-2
podman-docker 5.1.0-1

Used the Dockerfile here to build locahost

/info page:

Package name	redlib
Crate version	0.34.0
Git commit	7a099f259fb5839cd0b5928876c2d22841d505dc
Deploy date	2024-05-31 18:37:17.289669457 +00:00:00
Deploy timestamp	1717180637
Compile mode	Release
SFW only	off
Pushshift frontend	undelete.pullpush.io

Default preferences
Hide awards	off
Hide score	off
Theme	dark
Front page	all
Layout	compact
Wide	off
Comment sort	confidence
Post sort	hot
Show NSFW	on
Blur NSFW	on
Use HLS	off
Hide HLS notification	on
Subscriptions	
~ $ cat /etc/resolv.conf
search dns.podman
nameserver 10.89.11.1

:confused: Thank you!

jessienab avatar May 31 '24 18:05 jessienab