Feed: Some channels are not updated

Tags: #<Tag:0x00007f61828ed948> #<Tag:0x00007f61828ed858> #<Tag:0x00007f61828ed470>

OS: Windows 10, 32 bit
JAVA: jdk1.8.0_161
OH2: snapshot build #1486
Binding: Feed Binding

I have been using the feed binding for years without any problems.

Since update to build #1486 (or possibly also to build #1443), some channels have stopped working, namely:

  • title (leaves empty)
  • last-update (leaves empty)

Have the following RSSfeed linked:

https://ci.openhab.org/job/openHAB-Distribution/rssAll
.

The following channels are still running:

  • latest-title
  • latest-date

Is this an “error” on the feed page or in the binding?

No errors in logfile!
.
.
EDIT: see also content of above feed site:
.
not OK:
<title>openHAB-Distribution all builds</title>
<updated>2019-01-04T10:02:52Z</updated>
.
OK:
<entry><title>openHAB-Distribution #1487 (Stabil)</title>
<published>2019-01-04T10:02:52Z</published>

I’ve tested an other feed:

https://rss.golem.de/rss.php?tp=av&feed=ATOM1.0 This is running

I’m going to dig a little deeper, later!

I “solved” the problem by myself. (I’d better call it “workaround” !!)

I’ve removed entry of feed in .things. Then I’ve unstalled feed binding. Installed newer version of feed binding again.

Then I’ve created a new thing for feed (with a new ID) in PaperUI.

Now it is running again.

Hello folks,
after digging a little deeper a found the reason: (but unfortunately not the solution!)

After EVERY RESTART of Openhab-Service (or RESTART of the complete Server): it happens ALL the SAME:

13:37:28.124 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'Updated-feed:feed:672bc615:last-update' has been added.
13:37:28.127 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'Published-feed:feed:672bc615:latest-date' has been added.
13:37:28.128 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'latestTitle-feed:feed:672bc615:latest-title' has been added.
13:37:28.129 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'Titel-feed:feed:672bc615:title' has been added.
13:37:28.130 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'Author-feed:feed:672bc615:author' has been added.
13:37:28.650 [DEBUG] [org.openhab.binding.feed             ] - BundleEvent STARTING - org.openhab.binding.feed
13:37:28.651 [DEBUG] [org.openhab.binding.feed             ] - BundleEvent STARTED - org.openhab.binding.feed
13:37:28.663 [DEBUG] [org.openhab.binding.feed             ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=363, service.bundleid=198, service.scope=bundle, component.name=org.openhab.binding.feed.internal.FeedHandlerFactory, component.id=222} - org.openhab.binding.feed
13:37:28.744 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'feed:feed:672bc615' changed from UNINITIALIZED to INITIALIZING
13:37:28.744 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Start reading Feed Thing configuration.
13:37:28.749 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Start automatic refresh at 1 minutes
13:37:28.751 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'feed:feed:672bc615' changed from INITIALIZING to UNKNOWN
13:37:28.800 [INFO ] [ing.feed.internal.handler.FeedHandler] - Cannot update channel with ID latest-title; no data has been downloaded from the server!
13:37:28.804 [INFO ] [ing.feed.internal.handler.FeedHandler] - Cannot update channel with ID last-update; no data has been downloaded from the server!
13:37:28.801 [INFO ] [ing.feed.internal.handler.FeedHandler] - Cannot update channel with ID author; no data has been downloaded from the server!
13:37:29.353 [DEBUG] [ing.feed.internal.handler.FeedHandler] - New content available!
13:37:29.355 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'feed:feed:672bc615' changed from UNKNOWN to ONLINE
13:37:29.387 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:37:29.395 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:37:29.416 [INFO ] [smarthome.event.ItemStateChangedEvent] - Titel changed from NULL to openHAB-Distribution all builds
13:37:29.422 [INFO ] [smarthome.event.ItemStateChangedEvent] - Published changed from NULL to 2019-01-06T12:17:50.000+0100
13:38:29.516 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:39:29.588 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:40:29.660 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:41:29.731 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:42:29.800 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:43:29.947 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:44:30.019 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:45:30.097 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!

Then, while feed does not find any changes, I goto Habmin things --> feed --> refresh items

Then the following happens:

13:45:50.407 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'Author' received command REFRESH
13:45:50.411 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'latestTitle' received command REFRESH
13:45:50.413 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'Published' received command REFRESH
13:45:50.415 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'Titel' received command REFRESH
13:45:50.416 [INFO ] [smarthome.event.ItemCommandEvent     ] - Item 'Updated' received command REFRESH
13:45:50.494 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:45:50.499 [INFO ] [smarthome.event.ItemStateChangedEvent] - Author changed from NULL to
13:45:50.503 [INFO ] [smarthome.event.ItemStateChangedEvent] - latestTitle changed from NULL to openHAB-Distribution #1491 (stable)
13:45:50.509 [INFO ] [smarthome.event.ItemStateChangedEvent] - Updated changed from NULL to 2019-01-06T12:17:50.000+0100
13:46:30.166 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!

.
.
.

SUMMARY:

'feed:feed:672bc615' changed from UNINITIALIZED to INITIALIZING
'feed:feed:672bc615' changed from INITIALIZING to UNKNOWN

Then “feed” want to get new values! But cannot find new ones, because it MISSES the following channels:

Cannot update channel with ID latest-title; no data has been downloaded from the server!
Cannot update channel with ID last-update; no data has been downloaded from the server!
Cannot update channel with ID author; no data has been downloaded from the server!

AFTER this it changes to ONLINE:

'feed:feed:672bc615' changed from UNKNOWN to ONLINE

Then it updates ONLY the values of the NOT MISSED channels!

Titel changed from NULL to openHAB-Distribution all builds
Published changed from NULL to 2019-01-06T12:17:50.000+0100

The result: three items are STILL EMPTY!

Then it never ever finds changes:

13:38:29.516 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:39:29.588 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:40:29.660 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:41:29.731 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:42:29.800 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:43:29.947 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:44:30.019 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!
13:45:30.097 [DEBUG] [ing.feed.internal.handler.FeedHandler] - Feed content has not changed!

.

After a refresh of ALL items via Habmin

Item 'Author' received command REFRESH
Item 'latestTitle' received command REFRESH
Item 'Published' received command REFRESH
Item 'Titel' received command REFRESH
Item 'Updated' received command REFRESH

.

the values get filled!
.

Author changed from NULL to
latestTitle changed from NULL to openHAB-Distribution #1491 (stable)
Updated changed from NULL to 2019-01-06T12:17:50.000+0100

.
.

What is this??

Is there a (delay) parameter, to be set,
when “ServiceEvent REGISTERED” and after corresponding thing is ONLINE,
then start reading the channels?

Short explanation of Habmin command: configuration --> things --> feed --> refresh items

It is nothing other than:

smarthome:send Author REFRESH
smarthome:send latestTitle REFRESH   
smarthome:send Published REFRESH
smarthome:send Titel REFRESH
smarthome:send Updated REFRESH

It does smell like a bug in the binding
Can you post the details in a new issue on gitHub and then come back here an post the reference to the new issue. Thanks

1 Like

Done, see here:

1 Like