'fail to fetch' and DNS related issues? Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Joulinar
Posts: 2072
Joined: Sat Nov 16, 2019 12:49 am

Re: 'fail to fetch' and DNS related issues?

Post by Joulinar »

@brtravel

could you try the following on the buster image?

Code: Select all

wget http://fuzon.co.uk/meveric/pool/xu3/l/linux-image-4.14-armhf-odroid-xu4/linux-image-4.14-armhf-odroid-xu4_4.14.173-1_armhf.deb
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
trendy
Posts: 122
Joined: Tue Feb 25, 2020 2:54 pm

Re: 'fail to fetch' and DNS related issues?

Post by trendy »

He could be using a vpn, hard to tell if I don't see a traceroute from the system that successfully reached the destination.
brtravel
Posts: 51
Joined: Sat Sep 16, 2017 2:04 pm

Re: 'fail to fetch' and DNS related issues?

Post by brtravel »

thank you @Joulinar and @trendy, I really appreciate the help

192.168.1.1 is my router, 192.168.13.1 is the gateway of the WISP I connect to, and I assume 192.168.14.1 is something else in the WISP system. they have been down a couple times for maintenance/repairs recently, perhaps they changed something that's affecting me. Unfortunately they are not very helpful with customer service.

@Joulinar when I run a traceroute on my macbook it looks like the DietPi traceroute with just ..1.1, ..13.1 and ..14.1. No VPNs active. But the Macbook has no problem opening those sites and downloading files. They are on the same simple network, only difference is DietPi is wired and Macbook is on wifi.
brtravel
Posts: 51
Joined: Sat Sep 16, 2017 2:04 pm

Re: 'fail to fetch' and DNS related issues?

Post by brtravel »

Joulinar wrote: Sat Mar 28, 2020 12:41 am @brtravel

could you try the following on the buster image?

Code: Select all

wget http://fuzon.co.uk/meveric/pool/xu3/l/linux-image-4.14-armhf-odroid-xu4/linux-image-4.14-armhf-odroid-xu4_4.14.173-1_armhf.deb
Just tried that on the Buster image, seems to have ran fine:

Code: Select all

root@DietPi:~# wget http://fuzon.co.uk/meveric/pool/xu3/l/linux-image-4.14-armhf-odroid-xu4/linux-image-4.14-armhf-odroid-xu4_4.14.173-1_armhf.deb
--2020-03-28 02:26:34--  http://fuzon.co.uk/meveric/pool/xu3/l/linux-image-4.14-armhf-odroid-xu4/linux-image-4.14-armhf-odroid-xu4_4.14.173-1_armhf.deb
Resolving fuzon.co.uk (fuzon.co.uk)... 185.101.93.34
Connecting to fuzon.co.uk (fuzon.co.uk)|185.101.93.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1422 (1.4K) [application/x-debian-package]
Saving to: ‘linux-image-4.14-armhf-odroid-xu4_4.14.173-1_armhf.deb’

linux-image-4.14-armhf-odroid-xu4_4.14.1 100%[================================================================================>]   1.39K  --.-KB/s    in 0.004s  

2020-03-28 02:26:40 (359 KB/s) - ‘linux-image-4.14-armhf-odroid-xu4_4.14.173-1_armhf.deb’ saved [1422/1422]
Right after, I tried to open dietpi-software and got the DNS Resolver error, hit Retry and it went through the second time :x Tried to install only Samba, that failed:

Code: Select all

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Configuring Samba Server: feature-rich file server

Added user dietpi.
[  OK  ] DietPi-Software | /etc/samba/smb.conf: backup to /etc/samba/smb.conf.bak_280320_0
[ INFO ] DietPi-Software | For a full list of backup items, please see /var/tmp/dietpi/logs/G_BACKUP_FP.db
[FAILED] DietPi-Software | Connection test: https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/dps_96/conf
[ INFO ] DietPi-Software | If problems persist, please report at https://github.com/MichaIng/DietPi/issues for investigation.
brtravel
Posts: 51
Joined: Sat Sep 16, 2017 2:04 pm

Re: 'fail to fetch' and DNS related issues?

Post by brtravel »

UPDATE:

I think we were all starting to suspect the ISP, well I configured a VPN on my router and while active the DietPi device seems to be operating perfectly and able to access all repos.

I'm not optimistic about trying to resolve the issue with the ISP, so needing to activate a VPN when I want to run an install or update isn't so bad.
User avatar
Joulinar
Posts: 2072
Joined: Sat Nov 16, 2019 12:49 am

Re: 'fail to fetch' and DNS related issues?

Post by Joulinar »

So do I understood right, that if you activate the VPN on your router all is working fine? Maybe you ISP has some strange issues and is blocken access for unknown reason quite randomly.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
brtravel
Posts: 51
Joined: Sat Sep 16, 2017 2:04 pm

Re: 'fail to fetch' and DNS related issues?

Post by brtravel »

Joulinar wrote: Sat Mar 28, 2020 10:55 am So do I understood right, that if you activate the VPN on your router all is working fine? Maybe you ISP has some strange issues and is blocken access for unknown reason quite randomly.
Yes, correct. It is very odd, and since they don't have great customer service I'll probably just leave it be. Log into my router and turn the VPN on whenever I want to run some DietPi updates or install new software.
User avatar
Joulinar
Posts: 2072
Joined: Sat Nov 16, 2019 12:49 am

Re: 'fail to fetch' and DNS related issues?

Post by Joulinar »

ok good. at least we could figure out the strange behaviour even if we did not fixed it fully. Maybe your ISP will get it solved soon and you did not need to use the workaround for long.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mattie
Posts: 2
Joined: Wed Oct 02, 2019 9:13 pm

Re: 'fail to fetch' and DNS related issues?

Post by Mattie »

I must say, I actually get simular issues when doing a dietpi-update from .26 to .28:

DietPi-Update
─────────────────────────────────────────────────────
Mode: Installing new DietPi code

######################################################################## 100.0%
[ OK ] DietPi-Update | Unpacking update archive
[ OK ] DietPi-Update | Installing new DietPi scripts to RAMdisk
[ OK ] DietPi-Update | Installing new DietPi system files to disk
[ OK ] DietPi-Update | Setting execute permissions for DietPi scripts
[ SUB1 ] DietPi-Set_software > verify_dietpi.txt ()
[FAILED] DietPi-Set_software | Connection test: https://raw.githubusercontent.com/Micha ... dietpi.txt
[ INFO ] DietPi-Set_software | If problems persist, please report at https://github.com/MichaIng/DietPi/issues for inves tigation.
[FAILED] DietPi-Set_software | Connection test: https://raw.githubusercontent.com/Micha ... dietpi.txt
[ INFO ] DietPi-Set_software | If problems persist, please report at https://github.com/MichaIng/DietPi/issues for inves tigation.

[ INFO ] DietPi-Bugreport | Packing upload archive, please wait...
[FAILED] DietPi-Bugreport | Connection test: ssh.dietpi.com
[ INFO ] DietPi-Bugreport | If problems persist, please report at https://github.com/MichaIng/DietPi/issues for investig

Just to let you know, you're not the only one.

I have a large file move running now, so I cannot test anything, and I did mess with vpn a while ago, so will look into that first.
I don't want to hijack this thread, and will make a new one if needed...
trendy
Posts: 122
Joined: Tue Feb 25, 2020 2:54 pm

Re: 'fail to fetch' and DNS related issues?

Post by trendy »

I used to have the same problem. Dietpi comes with nameserver 1.1.1.1 preconfigured in

Code: Select all

/etc/resolvconf/resolv.conf.d/head
however I am hijacking all outbound queries and allow only my Pihole severs.
Before the query times out and the next (allowed) NS is queried, the script times out and appears as failed connection.
I solved it by removing the entry from the head file and then worked fine.

@MichaIng I don't see the point of hardcoding a NS, but if you insist at least place it in `tail` so the configured NS will be first to be queried.
Post Reply