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

Why my gateway can't register with backend ? #37

Open
ericccccccc opened this issue Apr 18, 2019 · 1 comment
Open

Why my gateway can't register with backend ? #37

ericccccccc opened this issue Apr 18, 2019 · 1 comment

Comments

@ericccccccc
Copy link

Describe the bug
I've follow the instructions on the OpenMTC docs to run the gateway & backend on my ubuntu.
But my gateway CAN'T registered to backend.
Does something i miss it ?
thx

###Setup###
[ Backend ]
docker run -ti --name backend -p 0.0.0.0:18000:18000 -e "ONEM2M_CSE_ID=backend" -e "ONEM2M_NOTIFICATION_DISABLED=false" openmtc/backend-amd64 -v

[Gateway]
docker run --name gateway -p 0.0.0.0:8000:8000 -e "EXTERNAL_IP=" -e "ONEM2M_HTTP_TRANSPORT_PORT=8000" -e "ONEM2M_CSE_ID=gw" -e "ONEM2M_REMOTE_CSE_POA=http://localhost:18000" -e "ONEM2M_REMOTE_CSE_ID=backend" -e "ONEM2M_NOTIFICATION_DISABLED=false" -e "ONEM2M_REGISTRATION_DISABLED=false" openmtc/gateway-amd64 -v
docker run openmtc/gateway-amd64

Screenshots
I've confirm that both have running on console
But the gateway console show the register error
Selection_001

@zskevind
Copy link

You should run docker with --network="host"(linux only) or change the "poa" configuration of remote_cses into the actual container address, eg. 172.17.0.2

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