Skip to content

[WIP] comitup hotspot not working - #2076

Merged
mstormi merged 8 commits into
mainfrom
fixhotspot
Nov 28, 2025
Merged

[WIP] comitup hotspot not working#2076
mstormi merged 8 commits into
mainfrom
fixhotspot

Conversation

@mstormi

@mstormi mstormi commented Oct 8, 2025

Copy link
Copy Markdown
Contributor
  • comitup not installed
    reason was an "if is_bookworm()" condition - now removed
  • hotspot does not assign ip/ does not offer web page to connect to local user Wi-Fi

Signed-off-by: Markus Storm <markus.storm@gmx.net>
@ecdye

ecdye commented Oct 8, 2025

Copy link
Copy Markdown
Member

@mstormi Did you want this to be reviewed, or were you just using it to do some testing?

Signed-off-by: Markus Storm <markus.storm@gmx.net>
Signed-off-by: Markus Storm <markus.storm@gmx.net>
Signed-off-by: Markus Storm <markus.storm@gmx.net>
Signed-off-by: Markus Storm <markus.storm@gmx.net>
@mstormi mstormi changed the title debug comitup not installed [WIP] debug comitup not installed Oct 8, 2025
@mstormi

mstormi commented Oct 8, 2025

Copy link
Copy Markdown
Contributor Author

no just testing. wifi now up but still not fully there comitup not yet working

Signed-off-by: Markus Storm <markus.storm@gmx.net>
@mstormi mstormi changed the title [WIP] debug comitup not installed [WIP] comitup hotspot not working Oct 9, 2025
@mstormi mstormi self-assigned this Oct 9, 2025
Signed-off-by: Markus Storm <markus.storm@gmx.net>
@mstormi

mstormi commented Oct 10, 2025

Copy link
Copy Markdown
Contributor Author

While current comitup offers an openHABian AP and we can connect to it, it fails to bring up the portal page needed to connect the box to the building's Wi-Fi.
Comitup (or Network Manager, actually) also starts dnsmasq which then fails to properly provide DHCP services as another instance continues to occupy port 53. That's no major problem according to the comitup author though.

Depends: davesteele/comitup#269

@PaxJaromeMalues

Copy link
Copy Markdown

I do not want to disencourage, but I tested the image available for rPi 3b+ via the official imager and there was no hotspot showing. Website said to see if the first-boot.bash starts the NM and it seems to do so as per systemctl.
Using raspi-config for now to set the values for my wifi for now.

@mstormi

mstormi commented Nov 27, 2025

Copy link
Copy Markdown
Contributor Author

What image exactly?
If you want to help with testing, please check first-boot.log to see wifi status output and if comitup has started.

@PaxJaromeMalues

Copy link
Copy Markdown

What image exactly?

this
oh32bitpi3-1

If you want to help with testing, please check first-boot.log to see wifi status output and if comitup has started.

Will do, the system is updating right now.

@mstormi

mstormi commented Nov 27, 2025

Copy link
Copy Markdown
Contributor Author

That's the production image, nothing to test about that.
Test latest beta, please.
https://github.com/openhab/openhabian/releases/tag/v1.12.0-beta5

@PaxJaromeMalues

Copy link
Copy Markdown

That's the production image, nothing to test about that. Test latest beta, please. https://github.com/openhab/openhabian/releases/tag/v1.12.0-beta5

Ah man. Okay. Three times the charm I guess.
Writing the image right now.

@PaxJaromeMalues

Copy link
Copy Markdown

It worked! I was shown a webpage upon connection with my phone, selected my wifi and now its doing all the first-boot.bash code. Would you like a copy of the log content (will have to check for private info first tho).

@mstormi

mstormi commented Nov 27, 2025

Copy link
Copy Markdown
Contributor Author

no thanks

@PaxJaromeMalues

Copy link
Copy Markdown

no thanks

Okay. I found some errors tho. I will quote them here, maybe you guys will need them later?

First thing I see is that the login motd does not show a version because /var/lib/openhab/version.properties is not existing because the entire /var/lib/openhab/ dir is empty.
Then there is an empty log file at /boot/firmware/first-boot.log, the actual first-boot.log is one dir above in /boot

Findings:

1075 + cond_redirect sysctl --load
1076 + [[ -n '' ]]
1077 + echo -e '\n\033[90;01m$ sysctl --load \033[39;49;00m'
1078
1079 ^[[90;01m$ sysctl --load ^[[39;49;00m
1080 + sysctl --load
1081 sysctl: cannot open "/etc/sysctl.conf": No such file or directory
1082 + return 1
1083 + echo FAILED
1084 FAILED
1314 + echo -n '2025-11-27_23:01:57_UTC [openHABian] Adjusting swap size to 1842 MB... '
1315 2025-11-27_23:01:57_UTC [openHABian] Adjusting swap size to 1842 MB... + cond_redirect dphys-swapfile swapoff
1316 + [[ -n '' ]]
1317 + echo -e '\n\033[90;01m$ dphys-swapfile swapoff \033[39;49;00m'
1318
1319 ^[[90;01m$ dphys-swapfile swapoff ^[[39;49;00m
1320 + dphys-swapfile swapoff
1321 /opt/openhabian/functions/helpers.bash: line 31: dphys-swapfile: command not found
1322 + return 127
1323 + echo 'FAILED (swapoff)'
1324 FAILED (swapoff)
1325 + return 1
2663 dpkg: dependency problems prevent configuration of temurin-21-jre:
2664  temurin-21-jre depends on libasound2; however:
2665   Package libasound2 is not installed.
2666
2667 dpkg: error processing package temurin-21-jre (--install):
2668  dependency problems - leaving unconfigured
2669 Errors were encountered while processing:
2670  temurin-21-jre
2671 + return 1
2672 + echo 'FAILED (install experimental JVM pkg)'
2673 FAILED (install experimental JVM pkg)
...
2869 dpkg: dependency problems prevent configuration of temurin-21-jre:
2870  temurin-21-jre depends on libasound2; however:
2871   Package libasound2 is not installed.
2872
2873 dpkg: error processing package temurin-21-jre (--configure):
2874  dependency problems - leaving unconfigured
2875 Errors were encountered while processing:
2876  temurin-21-jre
2877 + return 1
2878 + echo 'FAILED (dpkg)'
2879 FAILED (dpkg)
...
2895 The following packages have unmet dependencies:
2896  openjdk-17-jre-headless : Depends: ca-certificates-java (>= 20190405~) but it is not going to be installed
2897                            Depends: liblcms2-2 (>= 2.2+git20110628) but it is not going to be installed
2898                            Recommends: libcups2t64 but it is not going to be installed
2899                            Recommends: libharfbuzz0b (>= 1.2.6) but it is not going to be installed
2900  temurin-21-jre : Depends: libasound2 but it is not installable
2901                   Recommends: fonts-dejavu-extra but it is not going to be installed
2902 E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
2903 E: The following information from --solver 3.0 may provide additional context:
2904    Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
2905 + return 100
2906 + echo FAILED
2907 FAILED
2990 ++ timestamp
2991 ++ printf '%(%F_%T_%Z)T\n' -1
2992 + echo -n '2025-11-27_23:08:18_GMT [openHABian] Activating the openHAB console on all interfaces... '
2993 2025-11-27_23:08:18_GMT [openHABian] Activating the openHAB console on all interfaces... + [[ -n '' ]]
2994 + sshPass=habopen
2995 + cond_redirect sed -i -e 's|^#.*sshHost = .*$|org.apache.karaf.shell:sshHost = 0.0.0.0|g' /etc/openhab/services/runtime.cfg
2996 + [[ -n '' ]]
2997 + echo -e '\n\033[90;01m$ sed -i -e s|^#.*sshHost = .*$|org.apache.karaf.shell:sshHost = 0.0.0.0|g /etc/openhab/services/runtime.cfg \033[39;49;00m'
2998
2999 ^[[90;01m$ sed -i -e s|^#.*sshHost = .*$|org.apache.karaf.shell:sshHost = 0.0.0.0|g /etc/openhab/services/runtime.cfg ^[[39;49;00m
3000 + sed -i -e 's|^#.*sshHost = .*$|org.apache.karaf.shell:sshHost = 0.0.0.0|g' /etc/openhab/services/runtime.cfg
3001 sed: can't read /etc/openhab/services/runtime.cfg: No such file or directory
3002 + return 2
3003 + echo 'FAILED (sshHost in runtime.cfg)'
3004 FAILED (sshHost in runtime.cfg)
3005 + cond_redirect sed -i -e 's|^#.*sshHost = .*$|sshHost = 0.0.0.0|g' /var/lib/openhab/etc/org.apache.karaf.shell.cfg
3006 + [[ -n '' ]]
3007 + echo -e '\n\033[90;01m$ sed -i -e s|^#.*sshHost = .*$|sshHost = 0.0.0.0|g /var/lib/openhab/etc/org.apache.karaf.shell.cfg \033[39;49;00m'
3008
3009 ^[[90;01m$ sed -i -e s|^#.*sshHost = .*$|sshHost = 0.0.0.0|g /var/lib/openhab/etc/org.apache.karaf.shell.cfg ^[[39;49;00m
3010 + sed -i -e 's|^#.*sshHost = .*$|sshHost = 0.0.0.0|g' /var/lib/openhab/etc/org.apache.karaf.shell.cfg
3011 sed: can't read /var/lib/openhab/etc/org.apache.karaf.shell.cfg: No such file or directory
3012 + return 2
3013 + echo 'FAILED (sshHost in shell.cfg)'
3014 FAILED (sshHost in shell.cfg)
3015 + cond_redirect sed -i -e 's|openhab = .*,|openhab = habopen,|g' /var/lib/openhab/etc/users.properties
3016 + [[ -n '' ]]
3017 + echo -e '\n\033[90;01m$ sed -i -e s|openhab = .*,|openhab = habopen,|g /var/lib/openhab/etc/users.properties \033[39;49;00m'
3018
3019 ^[[90;01m$ sed -i -e s|openhab = .*,|openhab = habopen,|g /var/lib/openhab/etc/users.properties ^[[39;49;00m
3020 + sed -i -e 's|openhab = .*,|openhab = habopen,|g' /var/lib/openhab/etc/users.properties
3021 sed: can't read /var/lib/openhab/etc/users.properties: No such file or directory
3022 + return 2
3023 + echo 'FAILED (sshPass)'
3024 FAILED (sshPass)
1314 + echo -n '2025-11-27_23:01:57_UTC [openHABian] Adjusting swap size to 1842 MB... '
1315 2025-11-27_23:01:57_UTC [openHABian] Adjusting swap size to 1842 MB... + cond_redirect dphys-swapfile swapoff
1316 + [[ -n '' ]]
1317 + echo -e '\n\033[90;01m$ dphys-swapfile swapoff \033[39;49;00m'
1318
1319 ^[[90;01m$ dphys-swapfile swapoff ^[[39;49;00m
1320 + dphys-swapfile swapoff
1321 /opt/openhabian/functions/helpers.bash: line 31: dphys-swapfile: command not found
1322 + return 127
1323 + echo 'FAILED (swapoff)'
1324 FAILED (swapoff)
1325 + return 1
3429 ^[[90;01m$ sudo -u openhab mkdir -p /etc/openhab/automation/js ^[[39;49;00m
3430 + sudo -u openhab mkdir -p /etc/openhab/automation/js
3431 sudo: unknown user openhab
3432 sudo: error initializing audit plugin sudoers_audit
3433 + return 1
3434 + echo 'FAILED (mkdir /etc/openhab/automation/js)'
3435 FAILED (mkdir /etc/openhab/automation/js)
3436 + cond_redirect sudo -u openhab npm install --prefix /etc/openhab/automation/js openhab_rules_tools@latest
3437 + [[ -n '' ]]
3438 + echo -e '\n\033[90;01m$ sudo -u openhab npm install --prefix /etc/openhab/automation/js openhab_rules_tools@latest \033[39;49;00m'
3439
3440 ^[[90;01m$ sudo -u openhab npm install --prefix /etc/openhab/automation/js openhab_rules_tools@latest ^[[39;49;00m
3441 + sudo -u openhab npm install --prefix /etc/openhab/automation/js openhab_rules_tools@latest
3442 sudo: unknown user openhab
3443 sudo: error initializing audit plugin sudoers_audit
3444 + return 1
3445 + echo 'FAILED (npm install)'
3446 FAILED (npm install)
3583 + echo -n '2025-11-27_23:08:45_GMT [openHABian] Applying file permissions recommendations... '
3584 2025-11-27_23:08:45_GMT [openHABian] Applying file permissions recommendations... + openhab_is_installed
3585 + openhab2_is_installed
3586 ++ dpkg -s openhab2
3587 ++ grep Status
3588 ++ cut '-d ' -f2
3589 + [[ '' =~ ^(install|hold)$ ]]
3590 + return 1
3591 + openhab3_is_installed
3592 ++ dpkg -s openhab
3593 ++ grep -E '^Version'
3594 ++ cut -d ' ' -f2
3595 ++ cut -d . -f1
3596 + [[ '' = 3 ]]
3597 + return 1
3598 + openhab4_is_installed
3599 ++ dpkg -s openhab
3600 ++ grep -E '^Version'
3601 ++ cut -d ' ' -f2
3602 ++ cut -d . -f1
3603 + [[ '' = 4 ]]
3604 + return 1
3605 + openhab5_is_installed
3606 ++ dpkg -s openhab
3607 ++ grep -E '^Version'
3608 ++ cut -d ' ' -f2
3609 ++ cut -d . -f1
3610 + [[ '' = 5 ]]
3611 + return 1
3612 + return 1
3613 + echo 'FAILED (please execute after openHAB is installed)'
3614 FAILED (please execute after openHAB is installed)

Signed-off-by: Markus Storm <markus.storm@gmx.net>
@mstormi

mstormi commented Nov 28, 2025

Copy link
Copy Markdown
Contributor Author

Much of what you show doesn't usually happen.
Have you been testing the 32bit image?
That's deprecated for OH5, test the 64bit one only please.

@mstormi
mstormi merged commit bd207ec into main Nov 28, 2025
12 checks passed
@mstormi
mstormi deleted the fixhotspot branch November 28, 2025 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants