Open adlingepa opened 4 years ago
@adlingepa About 8 months ago, commit https://github.com/advancedtelematic/ota-plus-server/commit/b03ac42d3537007aa2f3cba637c278e575cc78e0 was introduced. This commit adds a call to userProfileApi within the NoLoginAction. OTA Community Edition does not use the ota-user-profile that I can see; Ota-plus-server does not even define the USER_PROFILE_HOST/PORT environment variables.
I was able to bring my Ota-community-edition server up earlier without seeing this error when I connected to app.ota.local. I corrected a few more issues with the environment and now I'm seeing this error. If I figure out why I got past it, I'll let you know.
ota-plus-server always had a reference to ota-user-profile, see the config. The thing is that, somewhere along the way, ota-plus-server became more dependent on ota-user-profile, to a point where it won't work without it. But ota-user-profile is not part of the CE, hence the problems.
I guess one could implement a new NoLoginAction
to do the same that the old one was doing, but I'm afraid that would only uncover further issues of the same nature.
This issue still persists and keeps coming back every now and then. Not able to open an issue in ota-plus-server repo as well.
Is there any plan to fix this issue? Thanks.
Sorry, but I don't think so. To the best of my knowledge, this repo is not actively maintained.
I got the same issue,do anyone have the solution?thanks!
I believe a patch like the following would allow the webapp to be used without user-profile, which is a closed source component:
https://gist.github.com/simao/3b347729c568c8929422fce57efc222a
However, like houcros said this project is not actively maintained, further development will continue at https://github.com/uptane/ota-community-edition Though a web frontend is not supported and the ota ce solution is api based only.
I believe a patch like the following would allow the webapp to be used without user-profile, which is a closed source component:
https://gist.github.com/simao/3b347729c568c8929422fce57efc222a
However, like houcros said this project is not actively maintained, further development will continue at https://github.com/uptane/ota-community-edition Though a web frontend is not supported and the ota ce solution is api based only.
Where do I apply this patch?
I have been trying to use https://github.com/uptane/ota-community-edition and always end up at this error.
You'll need to apply that patch on the webapp (https://github.com/advancedtelematic/ota-plus-server) build a webpp container, and make ota-community edition use that container.
Are there any guide to resolve this issue now?
You'll need to apply that patch on the webapp (https://github.com/advancedtelematic/ota-plus-server) build a webpp container, and make ota-community edition use that container.
How to use this as web app of OTA CE?
This project is no longer under active development, you can use https://github.com/uptane/ota-community-edition which doesn't use a web app, or you can apply that patch to webapp yourself.
Again, this is not supported, but you can just
git checkout <webapp>
git apply user-profile-disable.patch
sbt docker:publishLocal
Use that image instead of the one included in this repo.
If you are just trying ota-ce and see how it works you could try https://github.com/simao/ota-lith there is a webapp
branch with a web ui.
This project is no longer under active development, you can use https://github.com/uptane/ota-community-edition which doesn't use a web app, or you can apply that patch to webapp yourself.
Again, this is not supported, but you can just
git checkout <webapp> git apply user-profile-disable.patch sbt docker:publishLocal
Use that image instead of the one included in this repo.
If you are just trying ota-ce and see how it works you could try https://github.com/simao/ota-lith there is a
webapp
branch with a web ui.
Thank you for your reply! But the https://github.com/uptane/ota-community-edition has the same issue. Will it be updated? I will try your patch for this issue. And I need a web UI so I will try https://github.com/simao/ota-lith also.
See my comments on those projects.
See my comments on those projects.
Thank you very much! Now I can run this branch too. And the web UI can find device with qemu. But the web UI can't create update and campaigner, and the ota-cli can't control this project. This feature can only be used with API?
in which project are you having problems with ota-cli?
in which projet are you having problems with the web ui creating updates? And what exactly is the error?
in which project are you having trouble using ota-cli? ota-cli should be able to be used with both. See https://github.com/simao/ota-lith/blob/master/docs/updates-ota-cli.md
The web UI of advancedtelematic/ota-community-edition (also the local docker image of advancedtelematic/ota-plus-server) can't create update, the button of 'Create update' is missing. And I can't set ota-cli with advancedtelematic/ota-community-edition because when I use 'ota init' the servers seems can't be reach of 'http://campaigner.ota.local, etc.', even if I set it with Ingress.
Now I can use the web UI to create update. I change the UIFeature to all open in the ota-plus-server. Thank you for your reply!
@jinlingyi Can you please provide the road you take step by step?
I am trying to setup the ostree meta-update yocto build environment and OTA CE server on same VM server machine. I am able to setup the OTA CE server using make start with docker as minikube driver. But while trying to access the Admin user interface using http://app.ota.local url, this url is redirected to http://app.ota.local/login page automatically and gives error as "ota-user-profile: System error"
I've check below things while troubleshooting this, All microservices are running,
tried to accessing via http tool,
Below the browser screenshot,
While checking the logs of application pod, I found some exceptions, which might help you to guide us what going wrong,
Here are the complete logs, ota-user-profile_system_error.zip
Please help me in troubleshooting this issue.
Thanks , Prashant