lorenzopt  
                (Lorenzo Thurman)
               
                 
              
                  
                    December 16, 2019,  2:06am
                   
                   
              1 
               
             
            
              My Aeotec zwave controller keeps going offline. I saw the problem with the 2.5 M5 snapshot, but  it still happening with the 2.5 release. I’ve removed the thing and binding, cleaned the cache and re-installed the binding, but the problem remains.
Java opts
EXTRA_JAVA_OPTS="-Xms250m -Xmx350m -Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0"
 
Groups
openhab : openhab tty dialout audio bluetooth gpio
 
Here’s what I see in the log:
2019-12-15 18:02:40.556 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Stopped ZWave serial handler
2019-12-15 18:02:41.280 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-ui-"classic, openhab-misc-restdocs, openhab-ui-habmin"'
2019-12-15 18:02:45.213 [INFO ] [zwave.handler.ZWaveControllerHandler] - Attempting to add listener when controller is null
2019-12-15 18:02:45.339 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyACM0'
2019-12-15 18:02:45.362 [INFO ] [ing.zwave.handler.ZWaveSerialHandler] - Serial port is initialized
2019-12-15 18:02:45.386 [INFO ] [ve.internal.protocol.ZWaveController] - Starting ZWave controller
2019-12-15 18:02:45.387 [INFO ] [ve.internal.protocol.ZWaveController] - ZWave timeout is set to 5000ms. Soft reset is false.
 
This repeats every few minutes. Any solution? 
Thanks.
             
            
               
               
              1 Like 
            
                
            
           
          
            
              
                feens  
                (Trevor)
               
              
                  
                    December 16, 2019,  2:27am
                   
                   
              2 
               
             
            
              I’m having the same problem.  Mine barely finishes setting everything up before it kicks off another offline cycle.  Thoughts @chris ?
             
            
               
               
               
            
            
           
          
            
              
                feens  
                (Trevor)
               
              
                  
                    December 16, 2019,  3:00am
                   
                   
              3 
               
             
            
            
               
               
               
            
            
           
          
            
            
              Check your addons.cfg file… see here:
  
  
    OK, after doing a lot of tests (thanks @chris  for ruling things out, and getting me on the right path!), I now know what is the issue in my system. Between M4 and RC1, there must have been a change how OH treats binding startup failures: I had “http” in the bindings line in my services/addons.cfg that did not work. I guess it should be “http1” nowadays(?). Anyway, in M4, this just gave an error in the log file, but in RC1 (and M5 I guess), this makes OH reset/restart all(?)/most bindings once ev…
   
 
             
            
               
               
               
            
            
           
          
            
              
                lorenzopt  
                (Lorenzo Thurman)
               
              
                  
                    December 16, 2019,  3:15am
                   
                   
              5 
               
             
            
              I checked my addons.cfg and I have no entries there:
#binding=
 
             
            
               
               
              1 Like 
            
            
           
          
            
              
                smak01  
                (Smak01)
               
              
                  
                    December 16, 2019,  3:25am
                   
                   
              6 
               
             
            
              You might need to check here as well…
%userdata%/config/org/openhab/addons.config 
On openhabian %userdata% is at /var/lib/openhab2
I was having the exact same issue and the restdocs causing the zwave binding to have issues.  My story here:
  
  
    Running openHABian on an RPi3. 
I ran across something interesting when I upgraded 2.5-M4 to 2.5-M5 through openhabian-config.  All my zwave devices stopped working.   After looking at the logs it appeared that the Controller ( Aeotec Z-Stick Gen5) kept going offline and then coming back online and repeat over and over.  I looked through the zwave logs and nothing jumped out at me.  I was not sure what to do so I set that problem aside. 
I was getting another error in the logs: 
Failed installin…
   
 
             
            
               
               
              1 Like 
            
            
           
          
            
              
                lorenzopt  
                (Lorenzo Thurman)
               
              
                  
                    December 16, 2019,  5:19am
                   
                   
              8 
               
             
            
              Is there a syntax error here:
 Failed installing 'openhab-ui-"classic, openhab-ui-habmin"'
 
The first double quote seems incorrect.
In the user data directory, I have this line as well:
ui="\"classic,basic,paper,habpanel,habmin\",classic,restdocs,habmin"
 
Those escapes seem strange.
             
            
               
               
               
            
            
           
          
            
              
                smak01  
                (Smak01)
               
              
                  
                    December 16, 2019,  2:29pm
                   
                   
              9 
               
             
            
              Those escapes do look strange. My “ui” line looks like this:
ui="basic,paper,habpanel,habmin,restdocs"
 
I believe  that it should just be a simple list. Try cleaning up that line and see what happens.
             
            
               
               
               
            
            
           
          
            
              
                lorenzopt  
                (Lorenzo Thurman)
               
              
                  
                    December 16, 2019,  2:46pm
                   
                   
              10 
               
             
            
              I can try that, but this file is auto-generated at startup, so any changes will be lost and I’ll be back where I started. I did try removing classic-ui and habmin in PaperUI, but the system still generates this entry.
             
            
               
               
               
            
            
           
          
            
              
                sihui  
                (SiHui)
               
              
                  
                    December 16, 2019,  6:10pm
                   
                   
              11 
               
             
            
              
Exactly, that is the reason why it should not be edited manually. 
The *.config files are populated with the contents of your corresponding '.cfg files or contents generated through PaperUI. 
So the correct way is to clean your *.cfg files, delete the *.config files and restart openHAB.
             
            
               
               
              1 Like 
            
            
           
          
            
              
                lorenzopt  
                (Lorenzo Thurman)
               
              
                  
                    December 16, 2019,  8:14pm
                   
                   
              12 
               
             
            
              What is the location of the *cfg files? The auto-generated addons.cfg mirrors the contents of /etc/default/openhab. But I have no entries there. Every line is commented.
             
            
               
               
               
            
            
           
          
            
              
                lorenzopt  
                (Lorenzo Thurman)
               
              
                  
                    December 16, 2019, 11:58pm
                   
                   
              13 
               
             
            
              I got it working. I have to admit that even though I didn’t think it would work, I edited
/var/lib/openhab2/config/org/openhab/addons.config
 
Restarted and it worked. No more zwave controller going offline/online. I had to manually re-add some bindings in PaperUI, but things seems fine. I’ll give it a couple of reboots to make sure things are really working.
             
            
               
               
              3 Likes 
            
            
           
          
            
              
                lorenzopt  
                (Lorenzo Thurman)
               
              
                  
                    December 18, 2019,  1:08am
                   
                   
              15 
               
             
            
              Just a follow-up: 
After several reboots, my zwave controller is still working just fine.
             
            
               
               
              3 Likes 
            
            
           
          
            
            
              @lorenzopt 
I’ve been using openhab2 with no issue, and now with the latest update I am getting the controller going off and online.
Could you explain what you mean by you ‘edited’ the file?  What exactly did you edit?
Mine currently shows:
:org.apache.felix.configadmin.revision:=L"28"
binding="sonos,yamahareceiver,network,lgwebos,chromecast,mqtt,ntp,zwave"
legacy=B"false"
misc="ruleengine"
package="standard"
remote=B"false"
service.pid="org.openhab.addons"
ui="dashboard,basic,paper,habpanel,homebuilder,habmin"
voice="picotts"
 
Thank you.
             
            
               
               
               
            
            
           
          
            
              
                lorenzopt  
                (Lorenzo Thurman)
               
              
                  
                    August 29, 2020,  1:23pm
                   
                   
              17 
               
             
            
              
 austserve:
 
legacy=B"false"
 
 
This line looks wrong. A double quoted string within single quotes. I think it refers to legacy 1.x bindings. Try removing it and see if that resolves your issue.