metwork-framework / mfext

metwork/mfext module
http://metwork-framework.org/mfext
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

content of ~/var folder lost while updating to metwork v2.2 #1902

Open matthieumarrast opened 1 month ago

matthieumarrast commented 1 month ago

Today, while updating (in production) metwork to version 2.2, our directory /home/mfserv/var/<folder>/ with "run" data has been lost.

We installed the v2.2 by editing the yum configuration file then executing command: dnf install metwork-mfserv-full

thebaptiste commented 1 month ago

Did you first update your previous installed release (2.1.x or 2.0.y) ? That is the necessary condition in order not to lose anything on /home/mfserv when installing v2.2 That was explained in a post on our french blog a few weeks ago.

matthieumarrast commented 3 weeks ago

No I don't think they update to the last v2.0.y before installing v2.2. But even with an old v2.0 I don't understand the reason why the ~/var folder is lost by installing the v2.2 !?

thebaptiste commented 2 weeks ago

I don't reproduce starting from mfserv 2.0.2 and installing 2.2. ~var is kept. Of course, if mfserv.init is run, everything on ~/var is removed. Nothing to do with the install of mfserv 2.2

If mfserv 2.0.4 was not installed on this machine, be careful not to remove rpm mfserv 2.0.x because you will lose /home/mfserv, even if mfserv 2.2 is installed (it will be saved on /home/mfserv/rpmsave[date])