Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find ch = [ ] attribute when i run gateway #41

Open
fawzia-it opened this issue Nov 11, 2019 · 3 comments
Open

Cannot find ch = [ ] attribute when i run gateway #41

fawzia-it opened this issue Nov 11, 2019 · 3 comments

Comments

@fawzia-it
Copy link

fawzia-it commented Nov 11, 2019

I have installed openmtc gateway on Ubuntu 18.4 and Ubuntu 16.4, however I have experienced a problem.
I created the gateway using [ ./create-binary-docker gateway ] and run it using [ docker run -d --name gateway -p 0.0.0.0:8000:8000 openmtc/gateway-amd64:latest ] but when I run the command [ curl localhost:8000/onem2m -s | jq '.' ] I do not find a child attribute ( ch = [ ] , as indicated in the online webinar). as a result I cannot retrieve text using " latest " pointer.
##############################################################
~/OpenMTC$ curl localhost:8000/onem2m -s | jq '.'
{
"m2m:cb": {
"cst": 2,
"lbl": [],
"lt": "20191111T212055",
"ri": "cb0",
"ct": "20191111T212055",
"rn": "onem2m",
"csi": "/mn-cse-1",
"acpi": [],
"srt": [
24,
4,
3,
23,
2,
16,
5,
1
],
"nl": null,
"pi": null,
"poa": [
"http://172.17.0.2:8000",
"http://127.0.0.1:8000"
],
"ty": 5
}
}
#########################################################################

Could you please help me to fix this issue?

Thank you

@fawzia-it fawzia-it changed the title ModuleNotFoundError: No module named 'gevent' Cannot find ch = [ ] attribute when i run gateway Nov 24, 2019
@juliopovedacs
Copy link

juliopovedacs commented May 13, 2020

Hello,

Were you able to know why ch does not appear?

I am also following the webinar (https://www.youtube.com/watch?v=gBF4gCTLGww) and I do not know why ch appears after they run the gateway and execute $ curl localhost:8000/onem2m (minute 10:47), but when I try to run the same command in my machine, ch does not appear.

Also, to get the latest value inside a container, try the following command:

$ curl -X GET localhost:8000/onem2m/EXAMPLE_APP_NAME/EXAMPLE_CONTAINER_NAME/la

@fawzia-it
Copy link
Author

Unfortunately, I couldn't.
Thank you

@juliopovedacs
Copy link

Oh. Okay. I will try to understand why ch does not appear and will update you if I find something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants