mendix / m2ee-tools

m2ee, the Mendix runtime helper tools for GNU/Linux
Other
27 stars 40 forks source link

"cleanup_runtimes" sometimes delete the runtime currently in use #65

Open roelkoops opened 2 years ago

roelkoops commented 2 years ago

I've run into a problem with cleanup_runtimes a few times now. After the first deployment of an app with a new runtime I see this:

m2ee(mendix): about
Using m2ee-tools version 7.2.2
Using Mendix Runtime version 9.12.2.44241
Copyright © 2003-2022 Mendix bv. All rights reserved.
Model version: 0.0.0.6625

m2ee(mendix): cleanup_runtimes
INFO: Cleaning up old runtimes from /opt/app/Mendix/Fieldtool/runtimes...
INFO: Keeping 9.6.11.42323
INFO: Removing 9.12.2.44241...
m2ee(mendix):

The 'about' shows that runtime 9.12.2 is in use. But when I give the command cleanup-runtime it removes that runtime.

If I download that specific runtime again, restart the application, and enter the cleanup_runtimes command again, then the correct runtimes are removed.