I can consistently reproduce this with an app I am developing.
If the snap refreshes to a new version in the background whilst the app is open, the app suddenly can no longer write to
e.g. I get errors like:
EACCES: permission denied, open '/home/<user>/snap/<app>/64/.config/<version>/logs/main.log'
Restarting the application, which switches the version in
current over to the latest version, fixes the problem. Inspecting the filesystem whilst this is happening doesn’t show any difference in permissions or ownership between
~/snap/<app>/<old version>/ and
Any idea why this could be happening? I can’t find any relevant threads - is this a known issue?