I wanted to install the Technitium DNS Server. I think I might have damaged something during the trial-and-error process. I wanted the DNS Docker to have an IP address on my local network. However, when I was configuring it, I created a bridge (br1 or br01) rather than setting an alias on my network interface card (NIC). I clicked ‘Save’ and tested the configuration as required by the GUI. This time, the test did not revert the changes. Connecting to the GUI was no longer possible. I then rebooted the server. TN came back online and the GUI became accessible again. However, the bridge had disappeared, leading me to believe that TN had reverted the changes. I then set an alias on my NIC. However, deploying the DNS server container did not work. I discovered that my router was refusing DNS queries. I could also see that TN was attempting to obtain my router’s IP address. I now want to delete the IP alias, but the test never ends and the GUI becomes inaccessible. I have to reboot TN in the console to make the GUI work again. Please let me know what information you need.
Mainboard: ASUS PRIME B450M-K II, UEFI 4631 (90MB1600-M0EAY0)
CPU: AMD Ryzen 7 1700X, 8C/16T, 3.40-3.80GHz (YD170XBCAEWOF)
RAM: 2x 8GB BALLISTIX DIMM Non-ECC DDR4 2666MHz (BLS8G4D26BFSC.16FBD2)
SSD: Intel SSD 530 120GB, M.2 2280 / B-M-Key / SATA 6Gb/s (SSDSCKHW120A4)
PSU: be quiet! Pure Power 11 400W (BN292)
OS: TrueNAS SCALE 25.04.
Without being able to see your settings, I would just try to wipe out your network settings in the CLI and start fresh. You’re getting stuck in the GUI.
Tell me how and I will do it. I am searching but no reset on interface for example.
I wanted to delete the interface. However, this was not possible as there are still unfinished changes (see image). Unfortunately, I find myself in an endless loop. When I complete the changes and then want to delete the interface, the message that there are still changes appears again.
Unfortunately, I do not have a current configuration backup. Can I simply reinstall TrueNAS? Would my pools and applications be recognized after the reinstallation?
Actually, you have. I did want to suggest it (restore the config) even before I had read this line.
Truenas makes a backup of the config every day. To access it, you need:
# command to see the name of configs dataset
sudo zfs list -r boot-pool/.system
# mounting configs backup dataset
sudo mkdir /mnt/sys-conf-dump
sudo mount -t zfs boot-pool/.system/configs-<hexadecimal-abracadabra> /mnt/sys-conf-dump
# create sys-conf-ds dataset with share in GUI
cd /mnt/sys-conf-dump
sudo cp -r * /mnt/<my-main-pool>/sys-conf-ds/
# download content of sys-conf-ds share
These commands assume your system dataset is located in boot-pool.
Is your plan to point DNS clients (including your TrueNAS server) at your router which relays DNS queries to your Technitium DNS docker running on your TrueNAS server?
If the answer is yes then I suggest you reconsider.
It’s extremely fragile and if it, that is effectively a house of cards, fails for any reason - then DNS stops working on your network. In fact I doubt it would even survive a single reboot of your TrueNAS server.
Yeah, there would be plenty of <date>.db files; thus you will be able to restore your config to the particular date. IIRC, you can even examine these files with any tool that can open sqlite (never tried it myself though).
Restoring config is more like a last resort thing. Perhaps your network issues can be fixed without it.
I plan to install the services Vaultwarden, Nextcloud and Mailcow on TrueNAS. At first I thought that I would only need a reverse proxy. But this is already integrated in truenas. However, I needed a dns server for split dns to make these services available in tailscale and in the local network. I am aware that deploying a dns server on truenas was not designed very intelligently. I will therefore also get a raspberry pi as a dns server. Unfortunately, over time the system has become a mixture of PoC and productive environment. But first thing after service restore, will be usb hdd as backup location; for now.
I suspect the problem lies within the still-present but invisible bridge. Alternatively, perhaps the configuration that has to be applied needs to be removed. However, I have no idea what the supported procedure is to do this.
If I follow your script, then I get the error „filesystem ‘boot-pool/.system/config-hexdigits‘ cannot be mounted at ‘/mnt/sys-config-dump‘ due to canonicalziation error: No such file or directory“.
Well, there is no invisible bridge. Is your NIC even connected (to switch/router/other machine)? Aiui, NO-CARRIER means that NIC cannot detect cable.
Did you create this directory? There is sudo mkdir /mnt/sys-conf-dump in my script.
On second thought, you won’t be able to create a dataset with share in GUI if you can’t access GUI . And if you don’t have a network connection – you can’t copy it to other machine’s share. You need help from more experienced truenas users.
If you made a truenas update before and didn’t delete your old boot environments, you can select one of those during the boot. However, I don’t think it would fix the NO-CARRIER thing…
Yes, I followed your script step by step. I was therefore irritated to encounter this error. I triple-checked for typos.
ChatGPT told me that I should use the ‘mount’ command instead of ‘zfs mount’ because the mount point is ‘legacy’.
The network connection is down because TrueNAS keeps crashing my router. It keeps trying to take its IP address for some reason, so I have disconnected it for the time being.
Could you please tell me if it is possible to disable the app service, export the pools, reinstall truenas and then import the pools again?
There is no zfs mount command in script though… Your directory naming is different from mine, so I can’t be 100% sure the “step by step”. Anyway, without network (or help from truenas veterans) you won’t be able to save the config.
Ok, what are you trying to solve now?
You can (temporary) change ip of your router to avoid collision. And then reconfigure truenas nic from gui.
You can connect your truenas directly to your PC and (try to) access it from here.
Yes. Truenas was disconnected all the time. I tried deleting the interface on console with cli. But it didn’t work. Read post above.
When I reconnect truenas to my network and try to query dns for resolution of google.de, I get “connection refused”.
truenas_admin@nxxxxxx[~]$ nslookup google.de 8.8.8.8
;; communications error to 8.8.8.8#53: timed out
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: google.de
Address: 142.250.181.195
Name: google.de
Address: 2a00:1450:4005:802::2003
truenas_admin@xxxxxxxxx[~]$ nslookup google.de 1.1.1.1
;; communications error to 1.1.1.1#53: timed out
Server: 1.1.1.1
Address: 1.1.1.1#53
Name: google.de
Address: 216.58.206.67
Name: google.de
Address: 2a00:1450:4001:827::2003
truenas_admin@xxxxxx[~]$ nslookup google.de 192.168.xxx.1
;; communications error to 192.168.xxx.1#53: connection refused
;; communications error to 192.168.xxx.1#53: connection refused
;; communications error to 192.168.xxx.1#53: connection refused
;; no servers could be reached
What happens if I:
disable app catalog
export my two storage pools
reinstall truenas
Will I be able to import my old storage pools? Will my apps be imported when I configure the app catalog of my original storage pool?