Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » Subscription resource is deleted
Subscription resource is deleted [message #1814122] Wed, 04 September 2019 08:52 Go to next message
Sherzod Elamanov is currently offline Sherzod ElamanovFriend
Messages: 4
Registered: August 2019
Junior Member
I am following a tutorial from https://wiki.eclipse.org/OM2M/one/REST_API.
I successfully run all requests. I am running a problem that after I create 5 contentInstances and subscription is triggered to send a notification, the subscription resource is deleted (not reflected in web resource tree) and doesn't send send notifications anymore. However, when I try to recreate it with the same resource name I receive "Name already present in the parent collection." error.
I experimented with flexContainer subscription and it behaves same.
Can anyone help me, please? Is it a configuration issue? Is there a default limit for notifications emitted?
Re: Subscription resource is deleted [message #1814137 is a reply to message #1814122] Wed, 04 September 2019 15:48 Go to previous messageGo to next message
Guillaume Garzone is currently offline Guillaume GarzoneFriend
Messages: 54
Registered: April 2015
Member
Hi,

Which version of OM2M are you using?
(You should use the latest DEV non official release version or clone the dev branch. This issue seems a lot like a bug that has already been fixed.)
https://wiki.eclipse.org/OM2M/Download

Also, is your Subscription working properly: do you receive notifications? If not, OM2M automatically deletes a non working Subscription after several failures.
Re: Subscription resource is deleted [message #1814231 is a reply to message #1814137] Fri, 06 September 2019 08:42 Go to previous messageGo to next message
Sherzod Elamanov is currently offline Sherzod ElamanovFriend
Messages: 4
Registered: August 2019
Junior Member
Hello,

I was using the latest version from master branch. Yes, I receive notifications.

I checked out the latest version from dev branch, but the subscription is still gets deleted after 5 emitted notifications. However, now I can recreate the resource once it is deleted.

P.S. I use http for notification URI. The problem occurs in in-cse.
Re: Subscription resource is deleted [message #1814234 is a reply to message #1814231] Fri, 06 September 2019 09:19 Go to previous messageGo to next message
Guillaume Garzone is currently offline Guillaume GarzoneFriend
Messages: 54
Registered: April 2015
Member
Hi,
Great news!
Are you sure your program receiving notifications sends back an ACK using 200 OK status code?
(The receiver has to send back this code for the CSE to ensure the notification is well received.)
If not, the notification is considered as failed by OM2M and after 5 failures, the Subscription is deleted.
Re: Subscription resource is deleted [message #1814235 is a reply to message #1814234] Fri, 06 September 2019 09:30 Go to previous messageGo to next message
Sherzod Elamanov is currently offline Sherzod ElamanovFriend
Messages: 4
Registered: August 2019
Junior Member
I see. Actually I used a sample Monitor app provided at https://wiki.eclipse.org/OM2M/one/REST_API. Probably it has some issues.

Let me test my own server then I will update my status.
Re: Subscription resource is deleted [message #1814238 is a reply to message #1814235] Fri, 06 September 2019 09:34 Go to previous messageGo to next message
Guillaume Garzone is currently offline Guillaume GarzoneFriend
Messages: 54
Registered: April 2015
Member
It should work with the Monitor App, if you still encounter the issue with your own notification server, please create a bug report here https://bugs.eclipse.org/bugs/enter_bug.cgi?product=OM2M so the bug can be investigated more and fixed!
Re: Subscription resource is deleted [message #1814249 is a reply to message #1814238] Fri, 06 September 2019 10:57 Go to previous message
Sherzod Elamanov is currently offline Sherzod ElamanovFriend
Messages: 4
Registered: August 2019
Junior Member
It works fine on my own server when I respond with 200 status code. Thanks for your help!
Previous Topic:Subscribe to MN-CSE CIN
Next Topic:problem to build om2m
Goto Forum:
  


Current Time: Fri Mar 29 12:41:38 GMT 2024

Powered by FUDForum. Page generated in 0.04805 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top