Installing unbound stops DNS

So maybe it isn't that bad things only happen to me but that I'm an amazing bug finder right? :slight_smile:

I'll keep trying so that I can compare a default build with my own once the repo is up again.

Day two, builds are still not working after downloading the latest and just running 'make image'.
Is the repo still broken or am I missing a step?

Given your thread's title is regarding unbound and not build issues:

  • Does this issue occur if you install the current snapshot (and packages) from downloads.openwrt.org - without building your own firmware?

This will quickly eliminate if there's a issue with unbound itself, building only, etc.

Yes, the thread started with unbound but now I cannot build anything in order to test. I was asked if I am doing something unusual and I don't believe I am but wanted to download again, build and see if there is any obvious difference.

Yes, it worked fine when I installed a pre-built firmware but I need custom network (dhcp) rather than 192.168.1.1 and some other things. This is why I am trying to build my own and include unbound.

:+1:

OK, excellent!

So if unbound works on the pre-built firmware, then we can eliminate that as the issue.

Sorry, I meant the firmware ran but at the time, I had not installed unbound. That is a good test idea which I'll try next.

1 Like

Odd. I downloaded
http://downloads.openwrt.org/releases/18.06.2/targets/ramips/mt76x8/openwrt-18.06.2-ramips-mt76x8-gl-mt300n-v2-squashfs-sysupgrade.bin

And wrote it to the device but now it won't come up. No 192.168.1.1, no DHCP, no IP that I can find so far. I've tried two different networks, two different DHCP servers and I've pinged 192.168.1.1 from both networks that I've connected the router to and nothing what so ever.

I also tried forcing an IP via DHCP using the MAC of the router but I think that the default builds don't have DHCP. I've often wondered why not make it DHCP by default rather than a gateway address.

Is it possible those builds got broken? Again, I'm not doing anything unusual.

Now I have it in factory reset but not really sure what to try next on it since I still cannot build using the latest snapshot. Repo seems to still be broken, downloads go missing while 'make image'.

Downloading file:packages/Packages
Updated list of available packages in /clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/dl/imagebuilder

Installing packages...
Installing libc (1.1.22-1) to root...
Installing libgcc1 (7.4.0-1) to root...
Copying /clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/dl/libgcc1_7.4.0-1_mipsel_24kc.ipk.
Collected errors:
 * opkg_install_pkg: Package size mismatch: libgcc1 is 34871 bytes, expecting 34875 bytes
 * opkg_install_cmd: Cannot install package libc.
make[2]: *** [package_install] Error 255
make[1]: *** [_call_image] Error 2
make: *** [image] Error 2

If you saved your settings during the downgrade to 18.06.2, that may be the problem. The switch config (for example) may differ. Additionally, if you saved your configs, you probably don't have dnsmasq properly setup for initial use (hence receiving no IP).

Also, not sure what you mean by "two different networks."

The default LAN does have DHCP. Your laptop should get an IP if connected to a LAN port.

Not sure what you mean by "force IP" - if you're referring to the WAN, access to the router is blocked by default.

If you did a factory reset, is it working now?

I didn't save settings. I used mtd to overwrite the old fw.
Meaning, I have different networks that I can test, each is independant of the other.
I tested DHCP on both and was not able to see the router pick up an IP.
Force means using the MAC address to 'force' an IP being given to the device which owns that MAC address. I did that so I could know for sure if the router actually picked up an IP or has an IP and I'm just not knowing what it is. None and no 192.168.1.1 which is the default fw IP from the repo for this router.

Yes, all other devices get IPs from the DHCP server/s.
Yes, it is in factory mode now waiting for me to put a new fw file on it. However, since I that last test was using the default build from the repo, there is no point in trying that again so am waiting until the repo is fixed so that building can be accomplished.

At the moment, packages are still not getting downloaded which fails the build.

Sysupgrade wasn't available?

Yes, that's what I used but I always do it using mtd from the command line when possible.
mtd -r write openwrt-file firmware
Do you mean that sysupgrade automatically keeps the settings?

I also just now tried building snapshot mips based image and that completed fine so it's only the ramips versionof the repo (maybe others?) that is not completing when using even 'make image'.

What does a size mismatch mean anyhow considering I am not trying to build something customer, I am only using 'make image'.

It means the package size changed, compared to the cached meta data downloaded by opkg update, it's the first validity check of a downloaded package before unpacking (before confirming the checksum or signature).

Umm, yeah, that and confirming that the upgrade is "safe" are two of the many reasons that sysupgrade exists, is complicated and actively maintained, and mtd is "never" recommended.

Without context, it's hard to say. Posting the entire error message would be more helpful.

1 Like

I didn't know that which is fine in my case since once I have a build, I typically keep the settings the same. For testing, I could use the factory if you still want me to test. That said, the network was working perfectly before the sysupgrade.

Here is the full log.

make image

Building images for ramips - Default Profile
Packages: base-files busybox dnsmasq dropbear firewall fstools ip6tables iptables iwinfo kernel kmod-gpio-button-hotplug kmod-ipt-offload kmod-leds-gpio kmod-mt7603 kmod-usb-core kmod-usb-ledtrig-usbport kmod-usb-ohci kmod-usb2 libc libgcc logd mtd netifd odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe swconfig uci uclient-fetch urandom-seed urngd wpad-basic

Downloading http://downloads.openwrt.org/snapshots/targets/ramips/mt76x8/packages/Packages.gz
Updated list of available packages in /clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/dl/openwrt_core
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/dl/openwrt_base
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/dl/openwrt_luci
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/dl/openwrt_packages
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/dl/openwrt_routing
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/dl/openwrt_telephony
Downloading file:packages/Packages
Updated list of available packages in /clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/../../../../../clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/dl/imagebuilder

Installing packages...
Installing libc (1.1.22-1) to root...
Installing libgcc1 (7.4.0-1) to root...
Copying /clients/openwrt-imagebuilder-ramips-mt76x8.Linux-x86_64/dl/libgcc1_7.4.0-1_mipsel_24kc.ipk.
Collected errors:

  • opkg_install_pkg: Package size mismatch: libgcc1 is 34871 bytes, expecting 34875 bytes
  • opkg_install_cmd: Cannot install package libc.
    make[2]: *** [package_install] Error 255
    make[1]: *** [_call_image] Error 2
    make: *** [image] Error 2

Just downloaded the snapshot again and tried it. This time it completes so I'll try with a specific image this time and see what happens.

Update: It worked. I'll update my router with the factory build.
Update: Er, there is no factory, only sysupgrade.

BTW, you should only upgrade using the sysupgrade file anyways.

Yes but you wanted me to test a factory build to install unbound and see what happens.
Besides, the previous build messed up my network settings so I had to reset it to get back into it.
I'll update with the sysupgrade this time and see what happens since it builds now.

I don't see any mention of a "factory build" here, other than in your own posts. "Official", yes, but asking to use the factory image of an official build, no.

1 Like

True.
I used the sysupgrade I just built and it came up with a DHCP IP. That's a little confusing.
Anyhow, now I'll try installing unbound.