Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to update Dietpi #7114

Open
cktechie2012 opened this issue Jun 17, 2024 · 11 comments
Open

Unable to update Dietpi #7114

cktechie2012 opened this issue Jun 17, 2024 · 11 comments

Comments

@cktechie2012
Copy link

Creating a bug report/issue

  • [No ] I have searched the existing open and closed issues

Required Information

Details:

  • Date | Mon Jun 17 14:20:47 PDT 2024
  • DietPi version | v9.0.2 (MichaIng/master)
  • Image creator |
  • Pre-image |
  • Hardware | RPi 4 Model B (aarch64) (ID=4)
  • Kernel version | Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
  • Distro | bullseye (ID=6,RASPBIAN=0)
  • Command | getent hosts DOMAIN
  • Exit code | 2
  • Software title | DietPi-Update

Steps to reproduce:

  1. Trying to update dietpi, looks like there is network issue on dietpi
  2. ...

Expected behaviour:

  • ...

Actual behaviour:

  • ...

Extra details:

  • ...

Additional logs:



[FAILED] DietPi-Update | Unable to continue, DietPi-Update will now terminate.

Expected behaviour

  • ...

Actual behaviour

  • ...

Extra details

  • ...
@MichaIng
Copy link
Owner

Network seems to be there, since the pin test(s) succeeded. But DNS resolution seems to not work. Can you check this manually:

getent hosts dns9.quad9.net
getent hosts dietpi.com

If it fails, please check your DNS nameserver entries:

cat /etc/resolv.conf

@cktechie2012
Copy link
Author

cktechie2012 commented Jun 17, 2024 via email

@cktechie2012
Copy link
Author

cktechie2012 commented Jun 17, 2024 via email

@MichaIng
Copy link
Owner

nameserver 127.0.0.1

Are you using Pi-hole, AdGuard Home, Unbound or some other local DNS resolver? It seems to not work. It is generally no good idea to use a DNS resolver for its own host system. Better use a public DNS, like the upstream DNS nameserver used by your local resolver directly. Ad blocking is not required for a server system.

@cktechie2012
Copy link
Author

I tried adding the manual entries in the resolv.conf, and then the dietpi
is able to ping and get the results

however the moment i run the dietpi-update, the resolv.conf gets reset only
to 127.0.0.1 for nameserver dns

@MichaIng
Copy link
Owner

Is some software controlling the content?

realpath /etc/resolv.conf

@cktechie2012
Copy link
Author

cktechie2012 commented Jun 17, 2024

this is the output

dietpi@DietPi:~$ realpath /etc/resolv.conf
/run/systemd/resolve/resolv.conf
dietpi@DietPi:~$

Not using any tool like pihole or adguard

@cktechie2012
Copy link
Author

cktechie2012 commented Jun 17, 2024

This is the output

dietpi@DietPi:$ realpath /etc/resolv.conf
/run/systemd/resolve/resolv.conf
dietpi@DietPi:$

Not using any tool like pihole or adguard

@MichaIng
Copy link
Owner

systemd-resolved. If you did not install/use this intentionally, get rid of it:

G_SUDO G_AGP systemd-resolved
sudo rm -f /etc/resolv.conf
echo 'nameserver 1.1.1.1' | sudo tee /etc/resolv.conf
getent hosts dietpi.com

If you for whatever reason need to use it, you need to configure it to use a proper upstream DNS.

@randoentity
Copy link

PSA: don't upgrade now if you're on Armbian bookworm, as they are having issues with their apt repo: armbian/build#6762

I'm not sure if this is related to OP's issue but I figured people running into this will look at this issue first.

@MichaIng
Copy link
Owner

Thanks for the heads up. Next release will remove the Armbian repository from DietPi systems, so those kind of issues will then be gone, as long as we do not cause such with our own APT repo 🙂.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants