[WIP] comitup hotspot not working - #2076
Conversation
Signed-off-by: Markus Storm <markus.storm@gmx.net>
|
@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>
|
no just testing. wifi now up but still not fully there comitup not yet working |
Signed-off-by: Markus Storm <markus.storm@gmx.net>
Signed-off-by: Markus Storm <markus.storm@gmx.net>
|
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. Depends: davesteele/comitup#269 |
|
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. |
|
What image exactly? |
|
That's the production image, nothing to test about that. |
Ah man. Okay. Three times the charm I guess. |
|
It worked! I was shown a webpage upon connection with my phone, selected my wifi and now its doing all the |
|
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 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 FAILED1314 + 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 12663 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 FAILED2990 ++ 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 13429 ^[[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>
|
Much of what you show doesn't usually happen. |

reason was an "if is_bookworm()" condition - now removed