Hi
i have installed OH2 on rpi3B+ and rpi4B 2Gb on raspbian lite.
installation was from
openhabian-config
step by step i have followed the instruction from openhab docs.
https://www.openhab.org/docs/installation/openhabian.html#quick-start
and now every thing seems to work except gpio-binding when i install gpio-binding from paper ui it works perfectly but after one or two reboot it does not work any more
here is my log
2019-11-26 10:05:36.564 [ERROR] [org.apache.felix.scr ] - bundle org.apache.felix.scr:2.1.2 (39)Circular reference detected trying to get service {org.osgi.service.event.EventHandler}={service.id=367, service.bundleid=281, service.scope=bundle, event.topics=openhab/*, service.pid=org.openhab.gpio, component.name=org.openhab.binding.gpio.gpiobinding, component.id=212}
stack of references: ServiceReference: {org.osgi.service.event.EventHandler}={service.id=367, service.bundleid=281, service.scope=bundle, event.topics=openhab/*, service.pid=org.openhab.gpio, component.name=org.openhab.binding.gpio.gpiobinding, component.id=212}
java.lang.Exception: stack trace
at org.apache.felix.scr.impl.ComponentRegistry.enterCreate(ComponentRegistry.java:481) [39:org.apache.felix.scr:2.1.2]
at org.apache.felix.scr.impl.BundleComponentActivator.enterCreate(BundleComponentActivator.java:735) [39:org.apache.felix.scr:2.1.2]
at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:845) [39:org.apache.felix.scr:2.1.2]
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212) [?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210) [?:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111) [?:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45) [?:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:508) [?:?]
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461) [?:?]
at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:624) [?:?]
at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.obtain(EventHandlerProxy.java:286) [3:org.apache.karaf.services.eventadmin:4.2.1]
at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:407) [3:org.apache.karaf.services.eventadmin:4.2.1]
at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming(HandlerTask.java:82) [3:org.apache.karaf.services.eventadmin:4.2.1]
at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:104) [3:org.apache.karaf.services.eventadmin:4.2.1]
at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:166) [3:org.apache.karaf.services.eventadmin:4.2.1]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
here is my items
Switch Num1 "Num1" { gpio="pin:2 activelow:no initialValue:low" }
Switch Num2 "Num2" { gpio="pin:3 activelow:no initialValue:low" }
Switch Num3 "Num3" { gpio="pin:4 activelow:no initialValue:low" }
Switch Num4 "Num4" { gpio="pin:17 activelow:no initialValue:low" }
Switch Num5 "Num5" { gpio="pin:27 activelow:no initialValue:low" }
Switch Num6 "Num6" { gpio="pin:22 activelow:no initialValue:low" }
Switch Num7 "Num7" { gpio="pin:10 activelow:no initialValue:low" }
Switch Num8 "Num8" { gpio="pin:9 activelow:no initialValue:low" }
Switch Num9 "Num9" { gpio="pin:11 activelow:no initialValue:low" }
Switch Num10 "Num10" { gpio="pin:5 activelow:no initialValue:low" }
Switch Num11 "Num11" { gpio="pin:6 activelow:no initialValue:low" }
Switch Num12 "Num12" { gpio="pin:13 activelow:no initialValue:low" }
Switch Num13 "Num13" { gpio="pin:19 activelow:no initialValue:low" }
Switch Num14 "Num14" { gpio="pin:26 activelow:no initialValue:low" }
Switch Num15 "Num15" { gpio="pin:21 activelow:no initialValue:low" }
Switch Num16 "Num16" { gpio="pin:20 activelow:no initialValue:low" }
Switch Num17 "Num17" { gpio="pin:16 activelow:no initialValue:low" }
Switch Num18 "Num18" { gpio="pin:12 activelow:no initialValue:low" }
Switch Num19 "Num19" { gpio="pin:7 activelow:no initialValue:low" }
Switch Num20 "Num20" { gpio="pin:8 activelow:no initialValue:low" }
Switch Num21 "Num21" { gpio="pin:25 activelow:no initialValue:low" }
Switch Num22 "Num22" { gpio="pin:24 activelow:no initialValue:low" }
Switch Num23 "Num23" { gpio="pin:23 activelow:no initialValue:low" }
Switch Num24 "Num24" { gpio="pin:18 activelow:no initialValue:low" }
in this occasion if i uninstall gpio-binding and install it again every thing works perfectly but after reboot or power outage the same error happens on both rpi3 and rpi4
------ i have tried making gpio.cfg in services folder and putting the bellow code in it.
sysfs=/sys
debounce=10
----- i have used the below code in /etc/default/openhab
JAVA_ARGS=-Djna.boot.library.path=/usr/lib/jni
------- The user openhab' is already a member of
gpioβ.
------- i have changed /etc/default/openhab and /usr/lib/systemd/system/openhab.service as bellow
USER_AND_GROUP=root:root
User=root
Group=root
---->> none of them helped.
sorry for my bad English.
any help would be really appreciated.