Bug 420479

Summary: Impossible to save data
Product: [Applications] skrooge Reporter: Pierre <pierre.tarif>
Component: generalAssignee: Stephane MANKOWSKI <stephane>
Status: RESOLVED NOT A BUG    
Severity: grave CC: stephane
Priority: NOR    
Version First Reported In: 2.20.0   
Target Milestone: 25.1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: attachment-25631-0.html

Description Pierre 2020-04-23 19:36:16 UTC
SUMMARY


STEPS TO REPRODUCE
1. In my current open session of Skrooge, where I have entered something like 20 entries
2. Clicl "Save", or try to "Save as"

OBSERVED RESULT
Skrooge  shows an [ERR-5]: Impossible d'enregistrer un fichier
The file is not saved

EXPECTED RESULT
The db is saved and I can close the app

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu 19.10
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
GNOME 3.34.2
Comment 1 Stephane MANKOWSKI 2020-04-23 19:39:40 UTC
Hi,

Are you sure that you have enough space on your file system and that you have write access ?
Regards.
Comment 2 Pierre 2020-04-23 19:45:21 UTC
Hi
I have many 10-ths of Gbytes
and the file is less than 10 Mb
544 -rwxrwxrwx 1 pedro users 9768978 avril 13 08:21 comptes.skg
9564 -rwxrwxrwx 1 pedro pedro 9792530 avril 13 08:21 comptes.skg.old
Comment 3 Pierre 2020-04-23 19:48:14 UTC
I would like to be able to save the data I entered, not loose them ...
I am available right now and if you have time and want to take hold on my machine, please let me know
Comment 4 Stephane MANKOWSKI 2020-04-24 06:08:16 UTC
From a console, could you try this ?
export SKGTRACE=5
skrooge > traces.txt 2>&1
Replay your scenario to get the error.
Send me the trace file by email (you can find it in the About of Skrooge)
Comment 5 Pierre 2020-04-25 05:18:59 UTC
Thanks to Stéphane (many thanks !)
Here is the solution 

The problem :
I use a "replicator" to synchronize my files onto the cloud, namely pCloud.
I left the Skrooge session opened over several days, and for a reason I don't really understand yet, the hidden files (may be I shouldn't replicate hidden files, by the way :)) that skrooge works on was conflicted.

The solution :
I copied the most recent hidden file (a move would have done the job too) 
cp '.comptes.skg [conflicted 4].wrk' '.comptes.skg.wrk'
and then skrroge was able to close nicely, whithout me loosing the entries I had made.

Thanks again Stéphane
Comment 6 Stephane MANKOWSKI 2020-04-25 14:31:31 UTC
Hello Pierre,

I use pcloud too and I don't have issue because I added .*.wrk in Sync/Paramètres avancés/Ignorer les modèles suivants

I hope this will help you.
Comment 7 Pierre 2020-04-25 16:14:08 UTC
Created attachment 127867 [details]
attachment-25631-0.html

Yep
That's what I did :)
Thanks again
Pierre TARIF


Le sam. 25 avr. 2020 à 16:31, Stephane MANKOWSKI <bugzilla_noreply@kde.org>
a écrit :

> https://bugs.kde.org/show_bug.cgi?id=420479
>
> --- Comment #6 from Stephane MANKOWSKI <stephane@mankowski.fr> ---
> Hello Pierre,
>
> I use pcloud too and I don't have issue because I added .*.wrk in
> Sync/Paramètres avancés/Ignorer les modèles suivants
>
> I hope this will help you.
>
> --
> You are receiving this mail because:
> You reported the bug.