** Description changed:

+ [Impact]
+ 
+ After installing the valkey-redis-compat package and completing the
+ migration from redis, every time there is a new update the valkey
+ service fails to start until /etc/valkey/REDIS_MIGRATION is removed.
+ 
+ This fix should be backported to stable releases so that the valkey
+ service runs as expected after an update.
+ 
+ The bug is fixed by checking if /var/lib/redis exists at all prior to
+ running the migration. If not, it is skipped.
+ 
+ [Test Plan]
+ 
+ The bug can be reproduced by installing redis, installing valkey-redis-
+ compat, then upgrading the package later. The commands are:
+ 
+ $ sudo apt-get install redis
+ $ sudo apt-get install valkey-redis-compat
+ $ rm /etc/valkey/REDIS_MIGRATION
+ ...
+ new version available
+ ...
+ $ apt update
+ $ apt upgrade
+ 
+ $ sudo systemctl status valkey
+ This shows the service is inactive before the fix, and is running after the 
fix
+ 
+ [Where problems could occur]
+ 
+ If problems were to occur, they would happen durring the postinst
+ portion of the upgrade/install process. This may be caused by changes in
+ redis folder structure or a failed previous migration.
+ 
+ [Other Info]
+  
+ This bug was fixed in questing in the valkey merge to version 8.1.1 -  
8.1.1+dfsg1-2ubuntu1 
+ 
+ [Original Description]
+ 
  Have just switched to valkey from redis, so I installed the valkey-
  redis-compat package on our Ubuntu 24 server. Initially was confused as
  to why it wouldn't start, but found the file /etc/valkey/REDIS_MIGRATION
  and figured out I had to remove it to get the service to start.
  
  Today the server ran an unattended upgrade. It reinstalled the file,
  then wouldn't start up again, causing errors on our app. Luckily having
  just installed it, I knew where to look. Deleted the file, systemctl
  restart and its working again.
  
  Surely that file should NOT be reinstalled?
  If that's expected behavior, then what do I need to do to stop it from 
happening again? For the moment I've apt-hold ed the package. I've also edited 
the systemd file to stop the check, but don't know if the service file will 
also be upgraded.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2104217

Title:
  Package upgrade  reinstalls /etc/valkey/REDIS_MIGRATION

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/valkey/+bug/2104217/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to