Connection reset by peer
Hi!
Every time I try to install a new app, I get the following error:
But before I'll add a bit of context. Yesterday, the error I was getting was the Timeout one.
When I tried to install something, the installation would get stuck and Runtipi would force a Sync, changing the status from "Installing" to "Stopped". Then, after trying to run the "App", it would get stuck and remove it since, I suppose, I didn't got installed in the first place.
I read a few of the GitHub issues and found, not the same, but similar cases. So I did the following:
Sadly, with this I lost those logs and can't share them, but then the problem changed and wasn't able to find anything similar either here or GitHub.
At first I though, "maybe pihole is slowing the connection?". Since I was able to install apps before configuring it. But even if I stopped it and used Clouflare or Google DNS, I had the same problems.
I also tried using a different store than
migrated, but it doesn't work either.
I'm sharing the logs and the runtipi-cl debug results. I don't know why but the debug command returns no containers found when I have 6 app installed, running and working!
There's only logs for two apps, because I've restarted Runtipi a few times while trying things and those are my last tries, but I get the same error with any app I try to install.
Hardware: Raspberry Pi 5 16GB
OS: Raspberry Pi OS35 Replies
Hello, it looks like a connection problem between your hardware and github. Have you tried restarting your raspberry and router ?
any active vpn connection on the tipi server?
I'll try at night when I don't bother anyone and report the results, thank you.
@InfBoumcyCastle no, I'm not using any VPN.
I don't know if this is good or bad news, but after restarting we're back at the timeout error!
It really looks like a connection problem. Did you change anything just before the problem started ?
The only thing network related I've installed was pihole, but even if I disable it I get one of the two errors.
The other thing I've changed is that I added a new disk and mounted it on /media, but the apps that are already installed don't seem to have a problem with it.
How did you set up the new media? In every application?
And have you tried to completely uninstall pihole?
I mounted the disk, recreated runtipis original directories and gave permissions for 1000:1000. I think only Sonarr and qBittorrent are touching /media đ€
No, I haven't tried reinstalling PiHole, I was afraid I wouldn't be able to do it again (due to the errors), haha.
What I was worried about was about the hardware/os combo, if maybe it wasn't powerful enough or if I should move to Ubuntu server instead. Do you think it's fine? I only had this installed for a couple of weeks so I'm relatively fine starting again from scratch since for now it's just a hobby and don't have anything valuable in it.
Tonight I'll uninstall PiHole and check if it works and come back with the results.
I also use raspberryOS on RPI 5 8GB and no problem
On host can you try this command and send the result ? :
echo "=== Diagnostic Réseau RPi ===" && \
echo "DNS: $(nslookup registry-1.docker.io 8.8.8.8 2>/dev/null | grep -m1 Address echo 'KO')" && \
echo "Ping: $(ping -c1 8.8.8.8 | tail -1 echo 'KO')" && \
echo "Docker: $(docker --version 2>/dev/null | head -1 echo 'non installé')" && \
echo "Curl: $(curl -I https://registry-1.docker.io/v2/ 2>/dev/null | head -1 echo 'KO')"
Hi! Sorry I didn't update before, but PiHole didn't want to be uninstalled, I got a similar error to the timeout one !!
Now my Raspi is working directly with my router and you can check that the error persist, even trying to update an already existing app. You can see the error is not related to the migrated store since I tried with a different one too. The error log is attached.
@Mouette03 the results for that command (with Pihole out of the way):
So, it seems DNS is the problem, right?
check with this command which DNS resolvers are registered " cat /etc/resolv.conf "
but yes it seems that it is the DNS that is the problem
Thank you for everything, this is the result:
Edit: you're going to hate me, but digging from my side I discovered I hadn't installed dnsutils, these are the actual results from before:
Does it work now ?
Have you checked the DNS resolvers in your router ?
94.140.14.14 It seems strange to me
Adguard is installed on runtipi because this address 94.140.14.14 corresponds to it. And if it is KO the resolution will not work
They're the public Adguard DNS, I was using them on my router before I was using Pihole, so I installed all the containers/app that are working now with them: https://adguard-dns.io/en/public-dns.html
I'm going to attach the iptables and nftables because I see a lot of things and I'm not sure if the rules are fine or not.
Connect to public AdGuard DNS server
AdGuard DNS â ad-blocking DNS server
Create your ad-blocking DNS server that will protect your personal data, prevent tracking and allow you to control access to specific content on the Internet.
Is not installed, they are used on my router directly now that I unistalled pihole, you were faster than my reply, haha.
Edit: for better context.
- I was using the public Adguard DNS servers before buying the Raspi and using Runtipi.
- I install a bunch of apps with those DNS servers with Runtipi on my Raspberry.
- I configure Pihole and switch my router to use the Raspi as DNS server.
- Errors start happening, not sure if I installed any app during this time. Maybe I did.
- I uninstall Pihole and configure my router back to the public Adguard DNS.
Try those from google on your router and delete dns ipv6 if it doesn't work. We'll see if it comes from the router's dns resolvers.
Do you mean delete IPv6 from the Raspi? My ISP router doesn't have config options for IPv6. And, if that's the case, how do I do it?
Are you French ?
No, I'm Spanish
Just try on the router to put solve google sometimes ipv6 configurable also on router
Ok, I'll come back later with the results (I'm working from home and I don't want to break something đ€Ł )
Thank you again!
Then restart rpi and verify that modification has been made with "cat /etc/resolv.conf"
Hasn't changed, I guess I'll have to restart the router. I'll try on my lunch break.
cat /etc/resolv.conf Will tell you if change applied
Changed DNS to Google, restarted both the Raspberry and the router but still gettin errors:
As you see, one app fails to install and the other fails to start (maybe wasn't installed properly)
Edit this file "sudo nano /etc/docker/daemon.json" if it exists otherwise create it to stop ipv6 on docker and add this content
«Â
{
"Ipv6": false
}Â
«
And restart docker or the system
The file didn't exist, I created it with that content and I got this after starting runtipi again:
I guess it's better to start from the beginning and say bye to this first dip in self-hosting?
Edit: it's alive again! Going to check if turning IPv6 off worked.
Did it work ? đ
When it does, yes, but it keeps dying sadly and I'm not sure why đ So IPv6 was definitely part of the issue but I probably broke something in the way.
Have you tried reinstalling runtipi?
sudo ./runtipi-cli update latest
Hi, yes, I did!
Now it's not unhealthy but I still can't install anything. I thought I had removed the app stores or something, because I couldn't use the search, it returned an empty list.
I deleted them manually and added them again (included migrated, the default one), even if they were there, and after a few restarts the search worked again.
It turned out I didn't remove the stores, Runtipi is doing it or something (?) and that's why nothing is getting installed (logs attached).
And, thank you again, you've been so nice!
Hmmm. Last attempt that I can suggest to you, after that will exceed my skills. Delete the previously created daemon.json file then deactivate ipv6 directly on the hote
To deactivate on hote
« sudo nano /etc/sysctl.conf »
And add at the end
«Â
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
«
To apply
« sudo sysctl -p »
And
«Â
cat /proc/sys/net/ipv6/conf/all/disable_ipv6
«Â
Must answer 1 if ipv6 is deactivated
@MOUETTE03 Thanks for your help, finally I decided to start clean again and reinstall both Raspi OS and Runtipi from zero, I probably did something that I shouldn't have, not sure.