Self sign-up has been disabled due to increased spam activity. If you want to get access, please send an email to a project owner (preferred) or at gitlab(at)nic(dot)cz. We apologize for the inconvenience.
Hm, I can't reproduce it. It works well for me even I open this page when MOX is not running. When MOX is running the state updates automatically without any problems.
I've tried both 5.1/5.1 and 5.1/4.0.5 (omnia/mox).
I am sorry for writing the answer here, I do not know how to sent you a PM over gitlab. I used
switch-branch hbk
on my OMNIA, but my question was how to run this on netbooted MOX. I thought that netbooted MOX is not accessible via LUCI nor via ssh. Which system is essentially running there if there is no SD card in it (in netbooted MOX)? Or do I miss something?
There exists a possibility how to change Turris OS version on netbooted device, but it is not tested by our tests. The rootfs which downloads it points to HBS and this is officially supported. If you want still do to that, you can try to modify file /usr/bin/netboot-manager on the router from which the devices boots. And with the next update of turris-netboot-tools package, the contents will be overwritten.
I did that, I copied the /usr/bin/netboot-manager to /usr/bin/netboot-manager-hbk, replace hbs with hbk in the /usr/bin/netboot-manager-hbk, chnaged the permissions to 0755 and ran
/usr/bin/netboot-manager-hbk regen -f. It went trough ok (again with the warning messages).
I rebooted the MOX. But the problem with exclamation mark still persists.
$ netboot-manager-hbk regen -fRegenerating configuration...Getting new rootfs...Downloading 'https://repo.turris.cz/hbk/netboot/mox-netboot-latest.tar.gz'Connecting to 2001:1488:ac15:ff80::69:443Writing to '/srv/turris-netboot/rootfs/rootfs-new.tar.gz'/srv/turris-netboot/ 100% |*******************************| 44553k 0:00:00 ETADownload completed (45622572 bytes)Downloading 'https://repo.turris.cz/hbk/netboot/mox-netboot-latest.tar.gz.sha256'Connecting to 2001:1488:ac15:ff80::69:443Writing to '/srv/turris-netboot/rootfs/rootfs-new.tar.gz.sha256'/srv/turris-netboot/ 100% |*******************************| 98 0:00:00 ETADownload completed (98 bytes)Downloading 'https://repo.turris.cz/hbk/netboot/mox-netboot-latest.tar.gz.sig'Connecting to 2001:1488:ac15:ff80::69:443Writing to '/srv/turris-netboot/rootfs/rootfs-new.tar.gz.sig'/srv/turris-netboot/ 100% |*******************************| 151 0:00:00 ETADownload completed (151 bytes)rootfs-new.tar.gz: OKOKmox.its:8.18-23.11: Warning (unit_address_vs_reg): /images/kernel@0: node has a unit name, but no reg propertymox.its:17.20-19.15: Warning (unit_address_vs_reg): /images/kernel@0/hash@1: node has a unit name, but no reg propertymox.its:20.20-22.15: Warning (unit_address_vs_reg): /images/kernel@0/hash@2: node has a unit name, but no reg propertymox.its:24.19-37.11: Warning (unit_address_vs_reg): /images/ramdisk@0: node has a unit name, but no reg propertymox.its:31.20-33.15: Warning (unit_address_vs_reg): /images/ramdisk@0/hash@1: node has a unit name, but no reg propertymox.its:34.20-36.15: Warning (unit_address_vs_reg): /images/ramdisk@0/hash@2: node has a unit name, but no reg propertymox.its:38.15-50.11: Warning (unit_address_vs_reg): /images/fdt@0: node has a unit name, but no reg propertymox.its:44.20-46.15: Warning (unit_address_vs_reg): /images/fdt@0/hash@1: node has a unit name, but no reg propertymox.its:47.20-49.15: Warning (unit_address_vs_reg): /images/fdt@0/hash@2: node has a unit name, but no reg propertymox.its:55.16-60.11: Warning (unit_address_vs_reg): /configurations/conf@1: node has a unit name, but no reg propertyFIT description: Netboot image with single Linux kernel and FDT blobCreated: Thu Apr 2 13:55:39 2020 Image 0 (kernel@0) Description: Linux kernel without Created: Thu Apr 2 13:55:39 2020 Type: Kernel Image (no loading done) Compression: uncompressed Data Size: 10244104 Bytes = 10004.01 KiB = 9.77 MiB Hash algo: crc32 Hash value: 8762345b Hash algo: sha1 Hash value: a200f34b7e8c4c224589f7d3c32fec76bc59875e Image 1 (ramdisk@0) Description: initramfs Created: Thu Apr 2 13:55:39 2020 Type: RAMDisk Image Compression: uncompressed Data Size: 6974464 Bytes = 6811.00 KiB = 6.65 MiB Architecture: AArch64 OS: Linux Load Address: unavailable Entry Point: unavailable Hash algo: crc32 Hash value: 0c2397a5 Hash algo: sha1 Hash value: 2a4f2d590bbe83a690dff2c325d9e2955a912f19 Image 2 (fdt@0) Description: Flattened Device Tree blob Created: Thu Apr 2 13:55:39 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 19412 Bytes = 18.96 KiB = 0.02 MiB Architecture: AArch64 Hash algo: crc32 Hash value: da77bf90 Hash algo: sha1 Hash value: 27d0d7924d67953d33a3c5065444c8aee9f2b96c Default Configuration: 'conf@1' Configuration 0 (conf@1) Description: Turris MOX netboot image Kernel: kernel@0 Init Ramdisk: ramdisk@0 FDT: fdt@0Signing kernels...
@mmatejek, I've finally reproduced it. But I didn't get any error message in the browser console. Moreover, I got similar behavior in reForis. I'm pretty sure that the problem is on the backend side.
I'm sorry I didn't catch any error message, now I can't boot MOX even from flash drive for some reason :D I'll try to debug in one more time later and let you know.
Apr 2 12:47:30 turris foris-controller[11094]: DEBUG:foris_client.buses.mqtt:Msg recieved for 'foris-controller/0000000B00009CF7/reply/ef52ae9d-13eb-4f72-a30b-10bc6bd753df' (msg=b'')Apr 2 12:47:30 turris foris-controller[11094]: DEBUG:foris_client.buses.mqtt:Message id not found. (probably it is expired or doesn't belong to this client)Apr 2 12:47:30 turris foris-controller[11094]: DEBUG:foris_controller.buses.mqtt:Clearing retained messages 'foris-controller/0000000B00009CF7/reply/76662fce-95af-4cac-b582-e5d806c8e58a'Apr 2 12:47:30 turris mosquitto[12446]: 1585831650: New connection from ::1 on port 11883.Apr 2 12:47:30 turris mosquitto[12446]: 1585831650: New client connected from ::1 as auto-7B2424F3-FF47-69DC-A065-2DB373897A87 (p2, c1, k60, u'local').Apr 2 12:47:30 turris mosquitto[12446]: 1585831650: No will message specified.Apr 2 12:47:30 turris mosquitto[12446]: 1585831650: Sending CONNACK to auto-7B2424F3-FF47-69DC-A065-2DB373897A87 (0, 0)Apr 2 12:47:30 turris mosquitto[12446]: 1585831650: Received PUBLISH from auto-7B2424F3-FF47-69DC-A065-2DB373897A87 (d0, q2, r1, m1, 'foris-controller/0000000B00009CF7/reply/76662fce-95af-4cac-b582-e5d806c8e58a', ... (0 bytes))
It is possible that the router (omnia) is connecting to a wrong IP address. Unfortunately auto discovery hasn't been implemented yet and router is trying to access IP which does not belong to the mox -> it fails.
Can you please check that IP address from your /etc/config/fosquitto on the router matches the current IP of your mox device?
Related to it, could you explain me why the MOX gets two IP addresses?
It seems a bit strange. Because there are two different mac addresses. Does your netbooted mox have two eth ports?
Anyways it might be a good idea to check /etc/config/dhcp and see which mac is assigned to which IP.
Note that the required state is that MAC address of your mox device is assigned to IP address (/etc/config/dhcp) which is used in /etc/config/fosquitto.
There might've been some flaw in the registration procedure of your netbooted mox.
On the other hand, if you also have ethernet module, than I can reproduce it here.
Mox gets IP address twice during netboot process.
At first mox gets IP address through eth0 interface with MAC address (let's say D8:58:xx:xx:xx:56) and send request for pairing or authenticate itself. After that it gets rootfs from omnia.
Then it reshuffle network interfaces and request new IP address from interface br-lan - bridge that includes eth0 - with MAC address of that bridge, thus mox might get additional IP address.
And there is the culprit. In case of "just wifi" mox, MAC address of that bridge is the same as of eth0 and it works fine.
In case of additional ethernet module, bridge MAC address is different (let's say D8:58:xx:xx:xx:57) and thus mox will get second IP address.
EDIT 2: I observed that after some time (~12hours) the Mox gets in weird state. The LED changes from heartbeat to always-on mode. And there are suddenly no channels (there is empty field) nor devices (there is 0) connected. Despite the fact that there are devices in the neighborhood, which would be normally connected to it.
After running netboot-manager-hbk regen-f the Mox gets back to operational state (LED heartbeat, channels and devices again present).
P.S. I was asking in the forum how to turn-off the LED but I am not trying it yet. First I simply want to see, that Mox reliably works.
I switched on MOX back to HBS branch and it seems to be more stable. It is still running after 12 hours.
The Mox (still using hbs) is again in the weird state after upgrading Turris OS on Omnia.
(In Foris, subtab shows for device exclamation mark, no channels in wifi subtab, only rolling circles). neboot-manager regen -f did not help. The IP is set as you recommended last time.
OMNIA:Turris OS Version: 5.0.0Release Branch: hbtRelease Revision: a8c92e9Kernel: 4.14.179
Could you also suggest how to debug? In turn on debugging in /etc/config/fosquitto and now see these messages in log:
May 12 14:16:26 turris mosquitto[1394]: 1589292986: Bridge local.turris.0000000D30007A23 doing local SUBSCRIBE on topic foris-controller/0000000D30007A23/request/+/action/+May 12 14:16:26 turris mosquitto[1394]: 1589292986: Bridge local.turris.0000000D30007A23 doing local SUBSCRIBE on topic foris-controller/0000000D30007A23/listMay 12 14:16:26 turris mosquitto[1394]: 1589292986: Bridge local.turris.0000000D30007A23 doing local SUBSCRIBE on topic foris-controller/0000000D30007A23/request/+/listMay 12 14:16:26 turris mosquitto[1394]: 1589292986: Bridge local.turris.0000000D30007A23 doing local SUBSCRIBE on topic foris-controller/0000000D30007A23/listMay 12 14:16:26 turris mosquitto[1394]: 1589292986: Bridge local.turris.0000000D30007A23 doing local SUBSCRIBE on topic foris-controller/0000000D30007A23/schemaMay 12 14:16:26 turris mosquitto[1394]: 1589292986: Connecting bridge 0000000D30007A23 (192.168.1.202:11884)May 12 14:16:26 turris mosquitto[1394]: 1589292986: Bridge turris.0000000D30007A23 sending CONNECTMay 12 14:16:29 turris mosquitto[1394]: 1589292989: Socket error on client local.turris.0000000D30007A23, disconnecting.
Not so sure if these errors are also relevant:
May 12 19:09:37 turris mosquitto[4977]: 1589310577: OpenSSL Error[0]: error:0407008A:rsa routines:RSA_padding_check_PKCS1_type_1:invalid paddingMay 12 19:09:37 turris mosquitto[4977]: 1589310577: OpenSSL Error[1]: error:04067072:rsa routines:rsa_ossl_public_decrypt:padding check failedMay 12 19:09:37 turris mosquitto[4977]: 1589310577: OpenSSL Error[2]: error:0D0C5006:asn1 encoding routines:ASN1_item_verify:EVP libMay 12 19:09:37 turris mosquitto[4977]: 1589310577: OpenSSL Error[3]: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Hi let me clarify on that a bit. The problem is following:
The mox (net)boots for the first time. It has some limited image which uses only WAN eth port with macaddr of the port.
User registers it on omnia. At this point a dhcp record is created on omnia containing the macaddr of the port and a new static IP address.
Mox obtains a new image and fully boots (or may be rebooted). When it has an extra port it automatically creates a bridge (e.g. br-lan) with another mac address. And omnia assignes a dynamic IP to the mox. But records in /etc/config/fosquitto are pointing to the static address, which is not reachable (this will cause the exclamation mark).
From my point of view there are three possible solution for such problem.
Figure out the mac address which would be assigned to br-lan and assign both macs for the same IP address. (This could be a bit hacky because the br-lan to mac assignment is a kind of openwrt blackbox)
This issue has no activity for more than 3 years. It is probably currently irrelevant (already fixed, etc.) and should be closed. I will close it now. @mhrusecky, if you consider it still relevant, please reopen it.