openhab tries to access directories in /var
Opened this issue · 0 comments
dear all,
I'm migrating from openhabian to the snap based version running on fedora 34 using snap version 3.1.0
openhab works stable, but I always try to configure the software so that no errors or warings appear in the logs...
to avoid following warnings it would be possible to bind-mount the directories, but I guess a better way would be introducing ENV-variables to the corresponding locations.
regards
Thomas
2021-07-16 19:53:46.615 [WARN ] [org.apache.felix.fileinstall ] - /usr/share/openhab/addons does not exist, please
create it.
2021-07-16 19:53:46.620 [ERROR] [org.apache.felix.fileinstall ] - Cannot create folder /var/lib/openhab/tmp/bundle
s. Is the folder write-protected?
2021-07-16 19:53:46.621 [ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedServiceFactory, id=4
6, bundle=17/mvn:org.apache.felix/org.apache.felix.fileinstall/3.6.8]: Unexpected problem updating configuration org.apac
he.felix.fileinstall.b3da1233-6c5e-43bc-a5d4-17a379b0c397
java.lang.RuntimeException: Cannot create folder: /var/lib/openhab/tmp/bundles
at org.apache.felix.fileinstall.internal.DirectoryWatcher.prepareDir(DirectoryWatcher.java:647) ~[?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.prepareTempDir(DirectoryWatcher.java:627) ~[?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.(DirectoryWatcher.java:179) ~[?:?]
at org.apache.felix.fileinstall.internal.FileInstall.updated(FileInstall.java:250) ~[?:?]
at org.apache.felix.fileinstall.internal.FileInstall$ConfigAdminSupport$Tracker.updated(FileInstall.java:380) ~[?
:?]
at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) ~[
bundleFile:?]
at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker
.java:93) [bundleFile:?]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:12
64) [bundleFile:?]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1208)
[bundleFile:?]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:122) [bundleFile:?]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:84) [bundleFile:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
2021-07-16 19:53:48.656 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Europe/Berlin'.
2021-07-16 19:53:48.667 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '48.724256518112874,9.0953431851
81266'.
2021-07-16 19:53:48.668 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'de_DE'.
2021-07-16 19:53:51.107 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'yamahareceiver.items'
2021-07-16 19:53:51.288 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'smartphone.items'
2021-07-16 19:53:51.303 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'HOME_Location.items'
2021-07-16 19:53:51.320 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Astro.items'
2021-07-16 19:53:51.327 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Tobei_virt_mqtt_Schalter.items'
2021-07-16 19:53:51.332 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'tasmota.items'
2021-07-16 19:53:51.349 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Gis_O_Mat.items'
2021-07-16 19:53:51.360 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'Ikea_zigbee_Remot:::::
:::::