Bug 511219 - Kate fails to create backup copies before saving
Summary: Kate fails to create backup copies before saving
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.08.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-27 14:42 UTC by MisterE
Modified: 2025-11-30 10:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MisterE 2025-10-27 14:42:00 UTC
SUMMARY
Kate no longer creates backup files (with ~ suffix) when saving. This used to work reliably and was very helpful for data recovery after occasional system crashes.

STEPS TO REPRODUCE
1. Start Kate
2. Click New
3. Save the file as /home/test/gitea/notes/file3.txt
4. Type some random text
5. Click Save → works fine
6. Click Save again → shows an error popup:

OBSERVED RESULT

Get a error popup:

"Failed to create backup copy 

For file /home/test/gitea/notes/file3.txt no backup copy could be created before saving.
If an error occurs while saving, you might lose the data of this file.
A reason could be that the media you write to is full or the directory of the file is read-only for you.
"
If I click "Try to save nevertheless", the changes are successfully saved to /home/test/gitea/notes/file3.txt.

EXPECTED RESULT
A copy of the previous version should be saved as: /home/test/gitea/notes/file3.txt~
The latest version should be saved as: /home/test/gitea/notes/file3.txt

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20251024
KDE Plasma Version: 6.5.0
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.4-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 16 GiB of RAM (15.0 GiB usable)
Graphics Processor: Intel® UHD Graphics 620


ADDITIONAL INFORMATION
Comment 1 MisterE 2025-10-27 14:53:38 UTC
I get this error under the user "test" on XFCE.

When I perform the same steps under another user on the same system (also using XFCE), the backup mechanism works correctly.
So it seems to be something related to the user profile — or possibly the fact that the user "test" has home directory encryption enabled.
Comment 2 MisterE 2025-10-27 15:28:27 UTC
I see the same issue in KDE with the user "test".

Additionally, I recently encountered the following popup when starting KDE:
"akonadi_control" has closed unexpectedly.
Not sure if related
Comment 3 Christoph Cullmann 2025-11-20 17:07:48 UTC
Looks for me like some issue with file access to that encrypted home.
I don't see how we can fix that in Kate.
Could you report it to your distro?
Comment 4 MisterE 2025-11-30 10:40:17 UTC
I think a tumbleweed upgrade fixed the issue. Not sure.