{"action":"opened","issue":{"url":"https://api.github.com/repos/01org/SmartHome-Demo/issues/153","repository_url":"https://api.github.com/repos/01org/SmartHome-Demo","labels_url":"https://api.github.com/repos/01org/SmartHome-Demo/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/01org/SmartHome-Demo/issues/153/comments","events_url":"https://api.github.com/repos/01org/SmartHome-Demo/issues/153/events","html_url":"https://github.com/01org/SmartHome-Demo/issues/153","id":234507376,"number":153,"title":"New gateway/user does not see any sensor data (using container)","user":{"login":"gvancuts","id":2192801,"avatar_url":"https://avatars2.githubusercontent.com/u/2192801?v=3","gravatar_id":"","url":"https://api.github.com/users/gvancuts","html_url":"https://github.com/gvancuts","followers_url":"https://api.github.com/users/gvancuts/followers","following_url":"https://api.github.com/users/gvancuts/following{/other_user}","gists_url":"https://api.github.com/users/gvancuts/gists{/gist_id}","starred_url":"https://api.github.com/users/gvancuts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvancuts/subscriptions","organizations_url":"https://api.github.com/users/gvancuts/orgs","repos_url":"https://api.github.com/users/gvancuts/repos","events_url":"https://api.github.com/users/gvancuts/events{/privacy}","received_events_url":"https://api.github.com/users/gvancuts/received_events","type":"User","site_admin":false},"labels":[{"id":291766640,"url":"https://api.github.com/repos/01org/SmartHome-Demo/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"ichbinblau","id":8187638,"avatar_url":"https://avatars3.githubusercontent.com/u/8187638?v=3","gravatar_id":"","url":"https://api.github.com/users/ichbinblau","html_url":"https://github.com/ichbinblau","followers_url":"https://api.github.com/users/ichbinblau/followers","following_url":"https://api.github.com/users/ichbinblau/following{/other_user}","gists_url":"https://api.github.com/users/ichbinblau/gists{/gist_id}","starred_url":"https://api.github.com/users/ichbinblau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ichbinblau/subscriptions","organizations_url":"https://api.github.com/users/ichbinblau/orgs","repos_url":"https://api.github.com/users/ichbinblau/repos","events_url":"https://api.github.com/users/ichbinblau/events{/privacy}","received_events_url":"https://api.github.com/users/ichbinblau/received_events","type":"User","site_admin":false},"assignees":[{"login":"ichbinblau","id":8187638,"avatar_url":"https://avatars3.githubusercontent.com/u/8187638?v=3","gravatar_id":"","url":"https://api.github.com/users/ichbinblau","html_url":"https://github.com/ichbinblau","followers_url":"https://api.github.com/users/ichbinblau/followers","following_url":"https://api.github.com/users/ichbinblau/following{/other_user}","gists_url":"https://api.github.com/users/ichbinblau/gists{/gist_id}","starred_url":"https://api.github.com/users/ichbinblau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ichbinblau/subscriptions","organizations_url":"https://api.github.com/users/ichbinblau/orgs","repos_url":"https://api.github.com/users/ichbinblau/repos","events_url":"https://api.github.com/users/ichbinblau/events{/privacy}","received_events_url":"https://api.github.com/users/ichbinblau/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-06-08T12:15:47Z","updated_at":"2017-06-08T12:15:47Z","closed_at":null,"body":"After adding a new gateway and user (and mapping the two) in the cloud portal. The user dashboard does not display any sensor information although there are a number of them visible from that gateway. I observed that if I pick a pre-exisiting user (either dev or OTC) and make it point at the very same gateway, then I see all the sensor data.\r\n\r\nThis issue _may_ be confined to when running inside a container.\r\n\r\nHere is how you can easily reproduce this problem:\r\n1. Run the containers to have a complete system:\r\n```\r\n$ sudo docker run smarthome2cloud/smarthome-sensors\r\n$ sudo docker run smarthome2cloud/smarthome-gateway\r\n$ sudo docker run -p 3030:3000 -p 3031:4000  smarthome2cloud/smarthome-cloud\r\n```\r\n\r\n2. Log on to the Admin prtal (admin/admin) via: http://localhost:3031/\r\n3. Add a new User\r\n4. Add a new Gateway\r\n5. Log on to the user portal via: http://localhost:3030/ , using the credentials you have put in via the Admin portal\r\n=> There is no sensor data available (you can also verify that the gateway is correctly up and running by checking http://<ip-of-gateway-container>:8000/api/oic/d\r\n\r\n6. Go back to the Admin portal\r\n7. Modify an existing gateway to point at the very same gateway you started in a container (see above)\r\n8. Log on to the User Portal using the user mapped to that gateway you've just updated (either dev or OTC)\r\n=> you will see all the sensor data.\r\n\r\n**Note**: it is not possible to restart the cloud container because as soon as you do that, the new user/gateway have disappeared (see #152)"}}
{"actor":{"display_login":"gvancuts"}}