-
Notifications
You must be signed in to change notification settings - Fork 33
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
Error with OpenTwins app plugin #6
Comments
@SusaPereg Hello! I tried to install OpenTwins on Linux, however, I ran into a problem at the very beginning of the Docker and Kubernetes setup installation. Given that you managed to install OpenTwins, it would mean if you could send me more detailed instructions for installing Docker and Kubernetes setups, which include setting paths and certain settings that are not explained in the instructions from github. On the following link there is an issue that I opened on this repository with images that follow the installation process. #7 |
Hello @SusaPereg, However, to create a basic policy needed to create the digital twins, it is possible to do it through HTTP requests (e.g. CURL, Postman, etc) to your Eclipse Ditto Nginx (PUT http://yourDittoNginxurl/api/2/policies/{policyId}). Here you have our basic policy: {
"policyId": "default:basic_policy",
"imports": {},
"entries": {
"DEFAULT": {
"subjects": {
"pre-authenticated:kafkaml-connection": {
"type": "Connection to KafkaML"
},
"pre-authenticated:hono-connection": {
"type": "Connection to Eclipse Hono"
},
"nginx:ditto": {
"type": "Ditto user authenticated via nginx"
}
},
"resources": {
"policy:/": {
"grant": [
"READ",
"WRITE"
],
"revoke": []
},
"thing:/": {
"grant": [
"READ",
"WRITE"
],
"revoke": []
},
"message:/": {
"grant": [
"READ",
"WRITE"
],
"revoke": []
}
},
"importable": "implicit"
}
}
} |
Hello, as I commented on another issue, I have added the policy manually through the API. Still the error persist and the console shows bad request "400" when loading policies. My clarification in the other issue: accessing that url on browser gives a void message : I'm deploying using Minikube. Grafana, the extended API, the Ditto NGINX and Mosquitto are accessible from Internet as I'm deploying on cloud with openstack instance with a floating IP. Grafana OpenTwin plugin is well connected to the Ip addresses of both Ditto NGINX and Extended API. Running API queries such as IP_Ditto_NGINX/api/2/whoami works, inserting and finding a new policy through curl to IP_Ditto_NGINX/api/2/policies/id_policy works. However, in the installation files, it is expected that I find default:basic_policy if I query Ditto NGINX, but it seems it is not their ""error": "policies:policy.notfound",". I was thinking it could be a problem with mongodb not connected, but as long as I insert and I can find a test policy then it is connected. What could make policies not loading ? Thank you." |
Hello,
I have installed OpenTwins using the manual guide for the core functionality. Then, I have added the OpenTwins app plugin to grafana. However, I am facing problems with this plugin.
I cannot create policies, which are necessary to create a new twin. The following image shows the error that I am getting in the Policies tab:
Is there a fix for this? Thank you.
The text was updated successfully, but these errors were encountered: