I migrated my OH2.5 to 3.0 on a RPI4 using openhabian-config. So far things look great, all items, things etc. are migrated. As I want to do some testing now, I was trying to access the logs via the shortcut-folder (samba-share openHAB-share pointing to /srv). I understand that this share exposes everything mounted under /srv
But what I am missing is openhab-logs:
drwxr-xr-x 2 root root 4096 May 28 2020 openhab2-addons
drwxr-xr-x 2 root root 4096 May 28 2020 openhab2-conf
drwxr-xr-x 2 root root 4096 May 28 2020 openhab2-logs
drwxr-xr-x 2 root root 4096 May 28 2020 openhab2-sys
drwxr-xr-x 2 root root 4096 May 28 2020 openhab2-userdata
drwxr-xr-x 2 openhab openhab 4096 Dec 27 15:50 openhab-addons
drwxrwxr-x+ 14 openhab openhab 4096 Dec 5 13:00 openhab-conf
drwxr-xr-x 4 openhab openhab 4096 Dec 27 15:50 openhab-sys
drwxrwxr-x+ 18 openhab openhab 4096 Dec 27 15:51 openhab-userdata
I know that I can set up a separate share for logs in smb.conf but I would like to continue using this shared folder. Where can I find the configuration for this folder /srv so I can add openhab-logs and remove the old openhab2-stuff?
I am having this same problem upgrading to OH3 on Debian 10 using openhabian. It is re-creating old /openhab2 systemd services/mounts. The command âsystemctlâ shows the following:
UNIT LOAD ACTIVE SUB DESCRIPTION
srv-openhab2\x2daddons.mount loaded active mounted openhab2-addons mount
srv-openhab2\x2dconf.mount loaded active mounted openhab2-conf mount
srv-openhab2\x2dsys.mount loaded active mounted openhab2-sys mount
srv-openhab2\x2duserdata.mount loaded active mounted openhab2-userdata mount
Additionally, it seems the 10 | Apply Improvements --> 16 | Samba option in openhabian is also still setting up samba with the old OH2 folder locations.
After running this option, my â/etc/samba/smb.confâ file is overwritten with the following:
Re-reading the description in the âSelect Branchâ openhabian menu area, it seems perhaps the upgrade function is supposed to automatically select the openHAB3 branch, but it appears that function/feature did not properly execute as it should have.
All fixed and working! I had my /etc/openhabian.conf file open in the background and this apparently caused issues with openhabian properly executing. I kept selecting âopenHAB3â branch but it kept reverting back to âstable.â Once I closed the .conf file, and then selected 3.0 branch and ran the upgrade menu option again it worked without issue. I then ran through all of the âApply Improvementsâ options one at a time and finally the Samba âOptional Componentsâ option and it quickly fixed the samba share locations to /openhab and not /openhab2.
The âFix Permissionsâ option under âApply Improvementsâ is erroring out for some reason. I have debugging on but canât figure out what went wrong but there doesnât seem to be any file permission error at the moment.
Could it be that you are on Debian 10 system on a non Raspi hardware ( esp. x86 ) alternatively you are running on a system without ZRAM configured ?
The fix permisson tries to fix permission in several directories in one run. As the ZRAM is not there on x86 systems resp. non ZRAM availability it causes an error.
An github issue is filed and being under preparation.
[17:15:00] openhabian@openHABianPi:/srv$ mount
/dev/mmcblk0p2 on /srv/openhab-addons type ext4 (rw,noatime,data=ordered)
/dev/mmcblk0p2 on /srv/openhab-conf type ext4 (rw,noatime,data=ordered)
/dev/mmcblk0p2 on /srv/openhab-userdata type ext4 (rw,noatime,data=ordered)
/dev/mmcblk0p2 on /srv/openhab-sys type ext4 (rw,noatime,data=ordered)
/dev/mmcblk0p2 on /srv/openhab-logs type ext4 (rw,noatime,data=ordered)
In my opinion everything should work. But when I try to mount the smb shares from my Mac, thereâs still âopenhab-logsâ missing.