phillxnet
(Philip Guyton)
January 19, 2023, 10:42am
2
@aremiaskfa Thanks for the feedback.
Yes this is a little irritating and it would be nice to have it resolved. @Flox feedback on this would be good as they are more up on this mechanism than myself. We seem to hand on to prior used, but no longer used, ports and suggest ones on from them in error. Pretty sure this is at least a usability bug. And if we can pin it down further (the exact mechanism in code) we can likely sort it relatively easily.
See my comment on a recent GitHub issue re the Rock-on subsystem modifications:
opened 09:52AM - 19 Jan 23 UTC
closed 12:54PM - 25 Jan 23 UTC
This happened on 4.5.4-0.
I have added `omada-controller.json` to the usual p… lace in order to install it as a rockon via WebUI. Because I make a lot of amendments during testing, my text editor creates a backup file to the same dir but appends a tilde: `omada-controller.json~`
I have found that when clicking the Update button in WebUI, an arbitrary file is chosen from that dir. Sometimes with the tilde, sometimes without.
I suggest that you search for more specific rockon config files. E.g. that they end with, and only with ".json".
Of course, it is my duty to make sure only one, valid JSON rockon config file is in that dir, but I thought I put up the issue up for discussion anyway.
I'm confident that this can be repro'd by placing any two .json and json~ files in the dir.

Which links back to the forum here:
Note: this document will be split in several posts in order to fit within characters’ limit. Make sure to browse the second post as well for more information .
Preambule
This is a wikified post documenting how Rockstor implements the rock-on framework, and should thus be considered a live document expected to be updated as necessary. As a user documentation already exists on how to use the framework (see link below), however, this write-up intends to first summarize the overall rock-on …
for who this part of the code works.
Hope that helps.
2 Likes