me-box / databox

Databox container manager and dashboard server
MIT License
94 stars 25 forks source link

Reinstalling apps and drivers fails unpredictably #255

Closed Toshbrown closed 6 years ago

Toshbrown commented 6 years ago

After some investigation, it looks like sometimes apps are started before the arbiter permissions are configured. In container-manager.js#L208 createService is called before addPermissionsFromSla so if the app starts quickly (the image has already been downloaded) then the app starts before its permissions are granted. This causes errors after an app/driver is reinstalled.

haddadi commented 6 years ago

just also adding Yousef in case he can check too to make sure

Toshbrown commented 6 years ago

Its an easy fix, I'm happy to do it once I've finished debugging some other issues

Toshbrown commented 6 years ago

fixed in https://github.com/me-box/core-container-manager/pull/27