bitsy-ai / printnanny-os

Image repository, change logs, and issue tracking for PrintNanny OS
GNU Affero General Public License v3.0
23 stars 2 forks source link

NATS subject incorrectly rendered when Raspberry Pi hostname is "printnanny" #225

Closed leigh-johnson closed 1 year ago

leigh-johnson commented 1 year ago

Describe the bug

I'm seeing auth failures with the following error:

Jan 26 16:21:20 printnanny printnanny-nats[1070]: [2023-01-26T21:21:20Z ERROR printnanny_nats::subscriber] Error deserializing NATS message: NATS message handler not implemented for subject pattern pi.{pi_id}.settings.{pi_id}.cloud.auth

This subject pattern should be pi.{pi_id}.settings.printnanny.cloud.auth - but printnanny is getting replaced multiple times if the hostname is also printnanny

Issue.txt

-----------------------
Build Info:  |
-----------------------
IMAGE_NAME = printnanny-release-image-raspberrypi4-64-20230127183922
DISTRO_PRETTY = PrintNanny Linux 0.6.1 (Feldspar)
VARIANT_NAME = PrintNanny OS Core
VARIANT_ID = core
DISTRO = printnanny
DISTRO_NAME = PrintNanny Linux
DISTRO_VERSION = 0.6.1
DISTRO_CODENAME = Feldspar
ID_LIKE = BitsyLinux
HOME_URL = https://printnanny.ai
BUG_REPORT_URL = https://github.com/bitsy-ai/printnanny-os/issues
YOCTO_VERSION = 4.1.2
YOCTO_CODENAME = Mickledore
MACHINE = raspberrypi4-64
TUNE_PKGARCH = cortexa72
-----------------------
Layer Revisions:      |
-----------------------
meta              = master:372960044f3c4180c767f686c316ee2a5b197865
meta-poky         = master:372960044f3c4180c767f686c316ee2a5b197865
meta-yocto-bsp    = master:372960044f3c4180c767f686c316ee2a5b197865
meta-raspberrypi  = mickledore-libcamera:b84ec14a8cece5a6a2b43ff8fc1a63f94560ec53
meta-oe           = master:ceceffcb1e3ef4f9ba7708f77c27e30a7aea61e5
meta-python       = master:ceceffcb1e3ef4f9ba7708f77c27e30a7aea61e5
meta-multimedia   = master:ceceffcb1e3ef4f9ba7708f77c27e30a7aea61e5
meta-bitsy        = gstd-runtime-dirs:9c256df0d567ae32ca8edc9325f39406783860ea
meta-neural-network = mickledore:f19fa74c2f4c868eda1c48d709b66848f9cca5e8
meta-printnanny   = gstd-runtime-dirs:9c256df0d567ae32ca8edc9325f39406783860ea
meta-networking   = master:ceceffcb1e3ef4f9ba7708f77c27e30a7aea61e5
meta-filesystems  = master:ceceffcb1e3ef4f9ba7708f77c27e30a7aea61e5
meta-initramfs    = master:ceceffcb1e3ef4f9ba7708f77c27e30a7aea61e5
meta-webserver    = master:ceceffcb1e3ef4f9ba7708f77c27e30a7aea61e5
meta-swupdate     = mickledore:c47a10be18412919f4c7041be05509ba97ac79f4
meta-microcontroller = mickledore:a848733698649628d0c3e34ae04ced0ee6ce3aee
leigh-johnson commented 1 year ago

Verified this is now fixed - I was able to add a Raspberry Pi with hostname printnanny to my growing collection:

Screenshot from 2023-01-27 17-28-57 Screenshot from 2023-01-27 17-29-09