[SOLVED] Sitemaps and Items not detected

  • Platform information:
    • Hardware: Vmware 4x Processors 2x core ea./4GB Ram/180GB HDD
    • OS: CentOS7
    • Java Runtime Environment: Latest JDK
    • openHAB version: OpenHab 2 Repository Installed
    • Issue of the topic: Unable to get my sitemap to load in basic UI. Basic UI reports:
      Available sitemaps
      It seems like you have not defined any sitemaps yet. To build one, please check the documentation for guidance.
  • Please post configurations (if applicable): See Below
    • Items configuration related to the issue: See Below
    • Sitemap configuration related to the issue: See Below
    • Rules code related to the issue: None created?
    • Services configuration related to the issue: Unknown
  • If logs where generated please post these here using code fences: Unknown

Good morning,
I am stuck on getting my default.sitemap to display under the basic ui. Any help would be greatly appreciated. It keeps telling me under the Basic UI:

“Available sitemaps
It seems like you have not defined any sitemaps yet. To build one, please check the documentation for guidance.”

I have created (in included below) my items and sitemap files under the /etc/openhab2/sitemaps/ folder and etc/openhab2/items/ folders respectively.

I have defined under Paper UI -> Configuration -> Services -> UI -> Basic UI -> Default Sitemap -> default
sitemap%20paperui

I’ve attempted to chown the sitemap:
[dashbox@localhost sitemaps]$ sudo chown openhab:openhab default.sitemap

I’ve reloaded the openhab2 service:
[dashbox@localhost etc]$ sudo systemctl restart openhab2.service

default.items

Group    Home                                              "Our Home"                             <house>
Group    GF                                                "Ground Floor"                         <groundfloor>   (Home)
Group    FF                                                "First Floor"                          <firstfloor>    (Home)
Group    F2                                                "Second Floor"                         <attic>         (Home)

Group    GF_Basement                                       "Basement"                             <cellar>        (Home, GF)
Group    GF_Office                                         "Office"                               <office>        (Home, GF)
Group    GF_TheaterRoom                                    "Theater Room"                         <projector>     (Home, GF)
Group    FF_AbbeySRoom                                     "Abbey's Room"                         <bedroom>       (Home, FF)
Group    FF_AmeliaSRoom                                    "Amelia's Room"                        <bedroom>       (Home, FF)
Group    FF_Kitchen                                        "Kitchen"                              <kitchen>       (Home, FF)
Group    FF_LivingRoom                                     "Living Room"                          <sofa>          (Home, FF)
Group    FF_LillySRoom                                     "Lilly's Room"                         <bedroom>       (Home, FF)
Group    F2_AvaSRoom                                       "Ava's Room"                           <bedroom>       (Home, F2)
Group    F2_KidSLivingRoom                                 "Kid's Living Room"                    <none>          (Home, F2)
Group    F2_OurRoom                                        "Our Room"                             <bedroom>       (Home, F2)

Switch   GF_Basement_Light                                 "Light"                                <light>         (GF_Basement, gLight)                                    {channel="tplinksmarthome:hs200:0f36f8c9:switch"}
Switch   GF_Basement_BasementGoogleHomeMini                "Basement Google Home Mini"            <mediacontrol>  (GF_Basement, gBasementGoogleHomeMini)                   {channel="chromecast:chromecast:8bf5c4bb267475d6016cb8b1e310395d:control"}
Switch   GF_Basement_TheaterRoomLights                     "Light"				                  <light>         (GF_Basement, gTheaterRoomLights)                        {channel="hue:0100:0017884895f8:7:brightness"}
Switch   GF_Office_Light                                   "Light"                                <light>         (GF_Office, gLight)                                      {channel="chromecast:chromecast:8d33adc84efa29fab1b81b55f213fae3:control"}
Switch   FF_AbbeySRoom_Light                               "Light"                                <light>         (FF_AbbeySRoom, gLight)                                  {channel=""}
Switch   FF_AbbeySRoom_AbbeySGoogleHomeMini                "Abbey's Google Home Mini"             <mediacontrol>  (FF_AbbeySRoom, gAbbeySGoogleHomeMini)                   {channel=""}
Switch   FF_Kitchen_Light                                  "Light"                                <light>         (FF_Kitchen, gLight)                                     {channel=""}
Switch   FF_Kitchen_KitchenGoogleHome                      "Kitchen Google Home"                  <mediacontrol>  (FF_Kitchen, gKitchenGoogleHome)                         {channel="chromecast:chromecast:89b88ad2ce18bbd5dff58137ac7131d2:control"}
Switch   FF_LivingRoom_Light                               "Light"                                <light>         (FF_LivingRoom, gLight)                                  {channel="hue:0100:0017884895f8:1:brightness"}
Switch   FF_LivingRoom_LivingRoomChromecast                "Living Room Chromecast"               <mediacontrol>  (FF_LivingRoom, gLivingRoomChromecast)                   {channel="chromecast:chromecast:659f00825981848260d5ea307d5630c4:control"}
Switch   FF_LillysSRoom_AmeliaSLight                       "Light"                                <light>         (FF_LillySRoom, gLillySLight)                            {channel="hue:0100:0017884895f8:6:brightness"}
Switch   FF_LillysSRoom_AmeliaSGoogleHomeMini              "Lilly's Google Home Mini"             <mediacontrol>  (FF_LillySRoom, gLillySGoogleHomeMini)                   {channel="chromecast:chromecast:1121c1820922e663b9f27ff8740c173d:control"}
Switch   FF_AmeliaSRoom_AmeliaSLight                       "Light"                                <light>         (FF_AmeliaSRoom, gAmeliaSLight)                          {channel="hue:0100:0017884895f8:2:brightness"}
Switch   FF_AmeliaSRoom_AmeliaSGoogleHomeMini              "Amelia's Google Home Mini"            <mediacontrol>  (FF_AmeliaSRoom, gAmeliaSGoogleHomeMini)                 {channel="chromecast:chromecast:8bf5c4bb267475d6016cb8b1e310395d:control"}
Switch   F2_AvaSRoom_Light                                 "Light"                                <light>         (F2_AvaSRoom, gLight)                                    {channel=""}
Switch   F2_AvaSRoom_AvaSGoogleHomeMini                    "Ava's Google Home Mini"               <mediacontrol>  (F2_AvaSRoom, gAvaSGoogleHomeMini)                       {channel="chromecast:chromecast:3159e3d0f7373b5d44af55791752dbc6:control"}
Switch   F2_KidSLivingRoom_KidSLivingrooomGoogleHomeMini   "Kid's Livingrooom Google Home Mini"   <mediacontrol>  (F2_KidSLivingRoom, gKidSLivingrooomGoogleHomeMini)      {channel="chromecast:chromecast:4037d793a81924ab0909eb550b1d02d1:control"}
Switch   F2_OurRoom_Light                                  "Light"                                <light>         (F2_OurRoom, gLight)                                     {channel="hue:0100:0017884895f8:5:brightness"}
Switch   F2_OurRoom_Chromecast                             "Chromecast"                           <mediacontrol>  (F2_OurRoom, gChromecast)                                {channel="chromecast:chromecast:532ebb6661eab7891aa70eaef73c61f5:control"}
Switch   F2_OurRoom_OurGoogleHome                          "Our Google Home"                      <mediacontrol>  (F2_OurRoom, gOurGoogleHome)                             {channel="chromecast:chromecast:fa26d67c0719708056dc48af4a0fe389:control"}

Group:Switch:OR(ON, OFF)   gLight                           "Light"                                <light>   (Home)
Group:Switch:OR(ON, OFF)   gBasementGoogleHomeMini          "Basement Google Home Mini"            <none>    (Home)
Group:Switch:OR(ON, OFF)   gTheaterRoomLights               "Theater Room Lights"                  <none>    (Home)
Group:Switch:OR(ON, OFF)   gKitchenGoogleHome               "Kitchen Google Home"                  <none>    (Home)
Group:Switch:OR(ON, OFF)   gLivingRoomChromecast            "Living Room Chromecast"               <none>    (Home)
Group:Switch:OR(ON, OFF)   gAvaSGoogleHomeMini              "Ava's Google Home Mini"               <none>    (Home)
Group:Switch:OR(ON, OFF)   gAbbeySGoogleHomeMini            "Abbey's Google Home Mini"             <none>    (Home)
Group:Switch:OR(ON, OFF)   gKidSLivingrooomGoogleHomeMini   "Kid's Livingrooom Google Home Mini"   <none>    (Home)
Group:Switch:OR(ON, OFF)   gChromecast                      "Chromecast"                           <none>    (Home)
Group:Switch:OR(ON, OFF)   gOurGoogleHome                   "Our Google Home"                      <none>    (Home)
Group:Switch:OR(ON, OFF)   gAmeliaSLight                    "Amelia's Light"                       <none>    (Home)
Group:Switch:OR(ON, OFF)   gAmeliaSGoogleHomeMini           "Amelia's Google Home Mini"            <none>    (Home)

default.sitemap

sitemap our_home label="Our Home" {

   Frame label="Ground Floor" icon="cellar" {
       Group item=GF_Basement
       Group item=GF_Office
       Group item=GF_TheaterRoom
   }

   Frame label="First Floor" icon="groundfloor" {
       Group item=FF_AbbeySRoom
       Group item=FF_AmeliaSRoom
       Group item=FF_Kitchen
       Group item=FF_LivingRoom
       Group item=FF_LillySRoom
   }

   Frame label="Second Floor" icon="firstfloor" {
       Group item=F2_AvaSRoom
       Group item=F2_KidSLivingRoom
       Group item=F2_OurRoom
   }

   Frame {
       Text label="Light" icon="light" {
           Default item=GF_Basement_Light label="Basement"
           Default item=GF_Basement_TheaterRoomLights label="Basement"			
           Default item=GF_Office_Light label="Office"
           Default item=FF_AbbeySRoom_Light label="Abbey's Room"
           Default item=FF_Kitchen_Light label="Kitchen"
           Default item=FF_LivingRoom_Light label="Living Room"
           Default item=F2_AvaSRoom_Light label="Ava's Room"
           Default item=F2_OurRoom_Light label="Our Room"
       }

   Frame {
       Text label="Google Homes and ChromeCasts" icon="mediacontrol" {
           Default item=GF_Basement_BasementGoogleHomeMini label="Basement"
           Default item=FF_Kitchen_KitchenGoogleHome label="Kitchen"			
           Default item=FF_LivingRoom_LivingRoomChromecast label="Living Room"
           Default item=F2_AvaSRoom_AvaSGoogleHomeMini label="Ava's Room"
           Default item=FF_AbbeySRoom_AbbeySGoogleHomeMini label="Abbey's Room"
           Default item=F2_KidSLivingRoom_KidSLivingrooomGoogleHomeMini label="Kid's Living Room"
           Default item=F2_OurRoom_Chromecast label="Our Room"
           Default item=F2_OurRoom_OurGoogleHome label="Our Room"
       }       
   }
}

OpenHab2 Service Status:
[dashbox@localhost sitemaps]$ sudo systemctl status openhab2.service
[sudo] password for dashbox:
â—Ź openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-11-12 10:33:31 EST; 25min ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Process: 73813 ExecStop=/usr/share/openhab2/runtime/bin/karaf stop (code=exited, status=0/SUCCESS)
Main PID: 74115 (java)
Tasks: 212
Memory: 759.2M
CGroup: /system.slice/openhab2.service
└─74115 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2 -Dopenhab.runtime=/usr/share/openhab2/runtim…

Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.ChromeCast.getMediaStatus(ChromeCast.java:291)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at org.openhab.binding.chromecast.internal.ChromecastCommander.handleRefresh(Chrom…va:102)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at org.openhab.binding.chromecast.handler.ChromecastHandler$Coordinator$1.run(Chro…va:231)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301…va:180)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu…va:294)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.lang.Thread.run(Thread.java:748)
Hint: Some lines were ellipsized, use -l to show in full.
[dashbox@localhost sitemaps]$

OpenHab2 Logs:
Nov 12 10:33:31 localhost.localdomain systemd[1]: Starting openHAB 2 - empowering the smart home…
Nov 12 10:33:45 localhost.localdomain karaf[74115]: java.lang.InterruptedException
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.lang.Object.wait(Native Method)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.Channel$ResultProcessor.get(Channel.java:239)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.Channel.send(Channel.java:367)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.Channel.sendStandard(Channel.java:336)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.Channel.getStatus(Channel.java:451)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.ChromeCast.getStatus(ChromeCast.java:179)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.ChromeCast.getRunningApp(ChromeCast.java:187)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.ChromeCast.getMediaStatus(ChromeCast.java:291)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at org.openhab.binding.chromecast.internal.ChromecastCommander.handleRefresh(ChromecastComma
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at org.openhab.binding.chromecast.handler.ChromecastHandler$Coordinator$1.run(ChromecastHand
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Scheduled
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadP
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.lang.Thread.run(Thread.java:748)

It is best if you use the same name for your sitemap as for your file.

if default.sitemap, then sitemap default label="Our Home" {

or our_home.sitemap with sitemap our_home label="Our Home" {

you have another issue with chromecast. post some logs from openhab.log using code fences

edit:
This Frame (on line 23) is missing the closing bracket on line 34

   Frame {
       Text label="Light" icon="light" {

check out VS Code openHAB Extension!

1 Like

I have updated the sitemap with the missing closing bracket and have also updated the sitemap name.
That looks to have fixed that! Woot, Thank you!
I also have been proofing the code in the Visual Studio Editior with the Openhab Extensions, I must have missed that missing bracket though.

For the Chromecast issue:

Nov 12 03:49:02 localhost.localdomain karaf[789]: at java.lang.Object.wait(Native Method)
Nov 12 03:49:02 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel$ResultProcessor.get(Channel.java:239)
Nov 12 03:49:02 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.send(Channel.java:367)
Nov 12 03:49:02 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.sendStandard(Channel.java:336)
Nov 12 03:49:02 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.getStatus(Channel.java:451)
Nov 12 03:49:02 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.ChromeCast.getStatus(ChromeCast.java:179)
Nov 12 03:49:02 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.internal.ChromecastCommander.handleRefresh(ChromecastCommand
Nov 12 03:49:02 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.handler.ChromecastHandler$Coordinator$1.run(ChromecastHandle
Nov 12 03:49:02 localhost.localdomain karaf[789]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Nov 12 03:49:02 localhost.localdomain karaf[789]: at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
Nov 12 03:49:02 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledTh
Nov 12 03:49:02 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoo
Nov 12 03:49:02 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Nov 12 03:49:02 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Nov 12 03:49:02 localhost.localdomain karaf[789]: at java.lang.Thread.run(Thread.java:748)
Nov 12 03:50:10 localhost.localdomain karaf[789]: java.lang.InterruptedException
Nov 12 03:50:10 localhost.localdomain karaf[789]: at java.lang.Object.wait(Native Method)
Nov 12 03:50:10 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel$ResultProcessor.get(Channel.java:239)
Nov 12 03:50:10 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.send(Channel.java:367)
Nov 12 03:50:10 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.sendStandard(Channel.java:336)
Nov 12 03:50:10 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.getStatus(Channel.java:451)
Nov 12 03:50:10 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.ChromeCast.getStatus(ChromeCast.java:179)
Nov 12 03:50:10 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.internal.ChromecastCommander.handleRefresh(ChromecastCommand
Nov 12 03:50:10 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.handler.ChromecastHandler$Coordinator$1.run(ChromecastHandle
Nov 12 03:50:10 localhost.localdomain karaf[789]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Nov 12 03:50:10 localhost.localdomain karaf[789]: at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
Nov 12 03:50:10 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledTh
Nov 12 03:50:10 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoo
Nov 12 03:50:10 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Nov 12 03:50:10 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Nov 12 03:50:10 localhost.localdomain karaf[789]: at java.lang.Thread.run(Thread.java:748)
Nov 12 04:19:19 localhost.localdomain karaf[789]: java.lang.InterruptedException
Nov 12 04:19:19 localhost.localdomain karaf[789]: at java.lang.Object.wait(Native Method)
Nov 12 04:19:19 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel$ResultProcessor.get(Channel.java:239)
Nov 12 04:19:19 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.send(Channel.java:367)
Nov 12 04:19:19 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.sendStandard(Channel.java:336)
Nov 12 04:19:19 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.getStatus(Channel.java:451)
Nov 12 04:19:19 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.ChromeCast.getStatus(ChromeCast.java:179)
Nov 12 04:19:19 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.internal.ChromecastCommander.handleRefresh(ChromecastCommand
Nov 12 04:19:19 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.handler.ChromecastHandler$Coordinator$1.run(ChromecastHandle
Nov 12 04:19:19 localhost.localdomain karaf[789]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Nov 12 04:19:19 localhost.localdomain karaf[789]: at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
Nov 12 04:19:19 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledTh
Nov 12 04:19:19 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoo
Nov 12 04:19:19 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Nov 12 04:19:19 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Nov 12 04:19:19 localhost.localdomain karaf[789]: at java.lang.Thread.run(Thread.java:748)
Nov 12 04:50:29 localhost.localdomain karaf[789]: java.lang.InterruptedException
Nov 12 04:50:29 localhost.localdomain karaf[789]: at java.lang.Object.wait(Native Method)
Nov 12 04:50:29 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel$ResultProcessor.get(Channel.java:239)
Nov 12 04:50:29 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.send(Channel.java:367)
Nov 12 04:50:29 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.sendStandard(Channel.java:336)
Nov 12 04:50:29 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.getStatus(Channel.java:451)
Nov 12 04:50:29 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.ChromeCast.getStatus(ChromeCast.java:179)
Nov 12 04:50:29 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.internal.ChromecastCommander.handleRefresh(ChromecastCommand
Nov 12 04:50:29 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.handler.ChromecastHandler$Coordinator$1.run(ChromecastHandle
Nov 12 04:50:29 localhost.localdomain karaf[789]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Nov 12 04:50:29 localhost.localdomain karaf[789]: at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
Nov 12 04:50:29 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledTh
Nov 12 04:50:29 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoo
Nov 12 04:50:29 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Nov 12 04:50:29 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Nov 12 04:50:29 localhost.localdomain karaf[789]: at java.lang.Thread.run(Thread.java:748)
Nov 12 05:16:11 localhost.localdomain karaf[789]: java.lang.InterruptedException
Nov 12 05:16:11 localhost.localdomain karaf[789]: at java.lang.Object.wait(Native Method)
Nov 12 05:16:11 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel$ResultProcessor.get(Channel.java:239)
Nov 12 05:16:11 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.send(Channel.java:367)
Nov 12 05:16:11 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.sendStandard(Channel.java:336)
Nov 12 05:16:11 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.getMediaStatus(Channel.java:508)
Nov 12 05:16:11 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.ChromeCast.getMediaStatus(ChromeCast.java:295)
Nov 12 05:16:11 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.internal.ChromecastCommander.handleRefresh(ChromecastCommand
Nov 12 05:16:11 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.handler.ChromecastHandler$Coordinator$1.run(ChromecastHandle
Nov 12 05:16:11 localhost.localdomain karaf[789]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Nov 12 05:16:11 localhost.localdomain karaf[789]: at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
Nov 12 05:16:11 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledTh
Nov 12 05:16:11 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoo
Nov 12 05:16:11 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Nov 12 05:16:11 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Nov 12 05:16:11 localhost.localdomain karaf[789]: at java.lang.Thread.run(Thread.java:748)
Nov 12 10:33:18 localhost.localdomain systemd[1]: Stopping openHAB 2 - empowering the smart home...
Nov 12 10:33:20 localhost.localdomain karaf[789]: java.lang.InterruptedException
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.lang.Object.wait(Native Method)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel$ResultProcessor.get(Channel.java:239)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.send(Channel.java:367)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.sendStandard(Channel.java:336)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.getStatus(Channel.java:451)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.ChromeCast.getStatus(ChromeCast.java:179)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.internal.ChromecastCommander.handleRefresh(ChromecastCommand
Nov 12 10:33:20 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.handler.ChromecastHandler$Coordinator$1.run(ChromecastHandle
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledTh
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoo
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.lang.Thread.run(Thread.java:748)
Nov 12 10:33:20 localhost.localdomain karaf[789]: java.lang.InterruptedException
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.lang.Object.wait(Native Method)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel$ResultProcessor.get(Channel.java:239)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.send(Channel.java:367)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.sendStandard(Channel.java:336)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.Channel.getMediaStatus(Channel.java:508)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at su.litvak.chromecast.api.v2.ChromeCast.getMediaStatus(ChromeCast.java:295)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.internal.ChromecastCommander.handleRefresh(ChromecastCommand
Nov 12 10:33:20 localhost.localdomain karaf[789]: at org.openhab.binding.chromecast.handler.ChromecastHandler$Coordinator$1.run(ChromecastHandle
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledTh
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoo
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Nov 12 10:33:20 localhost.localdomain karaf[789]: at java.lang.Thread.run(Thread.java:748)
Nov 12 10:33:25 localhost.localdomain karaf[789]: org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: os
Nov 12 10:33:25 localhost.localdomain karaf[789]: at org.eclipse.osgi.container.Module.lockStateChange(Module.java:337)
Nov 12 10:33:25 localhost.localdomain karaf[789]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.asyncSto
Nov 12 10:33:25 localhost.localdomain karaf[789]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.stop(EquinoxBundle.java:262)
Nov 12 10:33:25 localhost.localdomain karaf[789]: at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle.stop(EquinoxBundle.java:267)
Nov 12 10:33:25 localhost.localdomain karaf[789]: at org.eclipse.osgi.launch.Equinox.stop(Equinox.java:123)
Nov 12 10:33:25 localhost.localdomain karaf[789]: at org.apache.karaf.main.Main$2$1.run(Main.java:355)
Nov 12 10:33:25 localhost.localdomain karaf[789]: Caused by: java.util.concurrent.TimeoutException: Timeout after waiting 5 seconds to acquire t
Nov 12 10:33:25 localhost.localdomain karaf[789]: at org.eclipse.osgi.container.Module.lockStateChange(Module.java:334)
Nov 12 10:33:25 localhost.localdomain karaf[789]: ... 5 more
Nov 12 10:33:31 localhost.localdomain systemd[1]: Started openHAB 2 - empowering the smart home.
Nov 12 10:33:31 localhost.localdomain systemd[1]: Starting openHAB 2 - empowering the smart home...
Nov 12 10:33:45 localhost.localdomain karaf[74115]: java.lang.InterruptedException
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.lang.Object.wait(Native Method)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.Channel$ResultProcessor.get(Channel.java:239)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.Channel.send(Channel.java:367)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.Channel.sendStandard(Channel.java:336)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.Channel.getStatus(Channel.java:451)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.ChromeCast.getStatus(ChromeCast.java:179)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.ChromeCast.getRunningApp(ChromeCast.java:187)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.ChromeCast.getMediaStatus(ChromeCast.java:291)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at org.openhab.binding.chromecast.internal.ChromecastCommander.handleRefresh(ChromecastComma
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at org.openhab.binding.chromecast.handler.ChromecastHandler$Coordinator$1.run(ChromecastHand
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Scheduled
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadP
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Nov 12 10:33:45 localhost.localdomain karaf[74115]: at java.lang.Thread.run(Thread.java:748)
Nov 12 11:15:56 localhost.localdomain karaf[74115]: java.lang.InterruptedException
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at java.lang.Object.wait(Native Method)
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.Channel$ResultProcessor.get(Channel.java:239)
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.Channel.send(Channel.java:367)
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.Channel.sendStandard(Channel.java:336)
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.Channel.getStatus(Channel.java:451)
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at su.litvak.chromecast.api.v2.ChromeCast.getStatus(ChromeCast.java:179)
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at org.openhab.binding.chromecast.internal.ChromecastCommander.handleRefresh(ChromecastComma
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at org.openhab.binding.chromecast.handler.ChromecastHandler$Coordinator$1.run(ChromecastHand
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Scheduled
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadP
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Nov 12 11:15:56 localhost.localdomain karaf[74115]: at java.lang.Thread.run(Thread.java:748)

these are entries from journalctl
can you post entries from /var/log/openhab2/openhab.log ?

1 Like

I really appreciate all the help, the log file is a mess still it looks like from multiple unsolved issues I have been working through (ecobee etc) but those are kinda works in progress. I’m still working to get a little more intuitive grasp of this stuff. So, I’ll drop just the last section of the log with the chromecast stuff.

2018-11-12 11:24:57.018 [WARN ] [su.litvak.chromecast.api.v2.Channel ] - Error while reading
java.net.SocketException: Socket closed
	at java.net.SocketInputStream.socketRead0(Native Method) ~[?:?]
	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) [?:?]
	at java.net.SocketInputStream.read(SocketInputStream.java:171) [?:?]
	at java.net.SocketInputStream.read(SocketInputStream.java:141) [?:?]
	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) [?:?]
	at sun.security.ssl.InputRecord.read(InputRecord.java:503) [?:?]
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975) [?:?]
	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933) [?:?]
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) [?:?]
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:71) [?:?]
	at su.litvak.chromecast.api.v2.Channel.read(Channel.java:411) [213:org.openhab.binding.chromecast:2.3.0]
	at su.litvak.chromecast.api.v2.Channel.access$200(Channel.java:50) [213:org.openhab.binding.chromecast:2.3.0]
	at su.litvak.chromecast.api.v2.Channel$ReadThread.run(Channel.java:132) [213:org.openhab.binding.chromecast:2.3.0]
2018-11-12 11:24:57.019 [WARN ] [su.litvak.chromecast.api.v2.Channel ] -  <--  null payload in message 
2018-11-12 11:24:57.019 [WARN ] [su.litvak.chromecast.api.v2.Channel ] - Error while closing channel
java.net.SocketException: Socket closed
	at java.net.SocketInputStream.socketRead0(Native Method) ~[?:?]
	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) [?:?]
	at java.net.SocketInputStream.read(SocketInputStream.java:171) [?:?]
	at java.net.SocketInputStream.read(SocketInputStream.java:141) [?:?]
	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) [?:?]
	at sun.security.ssl.InputRecord.read(InputRecord.java:503) [?:?]
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975) [?:?]
	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933) [?:?]
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) [?:?]
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:71) [?:?]
	at su.litvak.chromecast.api.v2.Channel.read(Channel.java:411) [213:org.openhab.binding.chromecast:2.3.0]
	at su.litvak.chromecast.api.v2.Channel.access$200(Channel.java:50) [213:org.openhab.binding.chromecast:2.3.0]
	at su.litvak.chromecast.api.v2.Channel$ReadThread.run(Channel.java:132) [213:org.openhab.binding.chromecast:2.3.0]
2018-11-12 11:25:11.473 [WARN ] [su.litvak.chromecast.api.v2.Channel ] - Error while reading
java.net.SocketException: Socket closed
	at java.net.SocketInputStream.socketRead0(Native Method) ~[?:?]
	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) [?:?]
	at java.net.SocketInputStream.read(SocketInputStream.java:171) [?:?]
	at java.net.SocketInputStream.read(SocketInputStream.java:141) [?:?]
	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) [?:?]
	at sun.security.ssl.InputRecord.read(InputRecord.java:503) [?:?]
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975) [?:?]
	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933) [?:?]
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) [?:?]
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:71) [?:?]
	at su.litvak.chromecast.api.v2.Channel.read(Channel.java:411) [213:org.openhab.binding.chromecast:2.3.0]
	at su.litvak.chromecast.api.v2.Channel.access$200(Channel.java:50) [213:org.openhab.binding.chromecast:2.3.0]
	at su.litvak.chromecast.api.v2.Channel$ReadThread.run(Channel.java:132) [213:org.openhab.binding.chromecast:2.3.0]
2018-11-12 11:25:11.474 [WARN ] [su.litvak.chromecast.api.v2.Channel ] -  <--  null payload in message 
2018-11-12 11:25:11.475 [WARN ] [su.litvak.chromecast.api.v2.Channel ] - Error while closing channel
java.net.SocketException: Socket closed
	at java.net.SocketInputStream.socketRead0(Native Method) ~[?:?]
	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) [?:?]
	at java.net.SocketInputStream.read(SocketInputStream.java:171) [?:?]
	at java.net.SocketInputStream.read(SocketInputStream.java:141) [?:?]
	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) [?:?]
	at sun.security.ssl.InputRecord.read(InputRecord.java:503) [?:?]
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975) [?:?]
	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933) [?:?]
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) [?:?]
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:71) [?:?]
	at su.litvak.chromecast.api.v2.Channel.read(Channel.java:411) [213:org.openhab.binding.chromecast:2.3.0]
	at su.litvak.chromecast.api.v2.Channel.access$200(Channel.java:50) [213:org.openhab.binding.chromecast:2.3.0]
	at su.litvak.chromecast.api.v2.Channel$ReadThread.run(Channel.java:132) [213:org.openhab.binding.chromecast:2.3.0]

check this out: [SOLVED] Chromecast binding freezes openHab? & https://github.com/openhab/openhab2-addons/issues/1935

1 Like

Excellent, I’ll check those out. Ty again!

1 Like