This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] Cannot "SAVE AS" an encrypted file

Tags: None
(comma "," separated)
grossi
Registered Member
Posts
11
Karma
0
Greetings to all,

I am using KMyMoney for several years with satisfaction, and now I'm trying to use it with the encryption of files using Kgpg, but when I select "save as", it ask me the encryption key, the software seems to work, but in fact does not write any files . :o :o

I've made ​​several attempts with both empty files KMyMoney with both copies of the real files without success: I checked and the demon "gpg-agent" works perfectly: somebody have any suggestions?

I am using KMyMoney 4.6 on Debian Jessie and XFCE 4:10

Thanks in advance for your attention

Last edited by grossi on Sun Jan 19, 2014 9:49 pm, edited 2 times in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Cannot save a encrypted file

Tue Jan 07, 2014 9:47 am
If you run KMyMoney in a terminal, is anything useful output when you attempt to save an encrypted file?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
grossi
Registered Member
Posts
11
Karma
0

Re: Cannot save a encrypted file

Tue Jan 07, 2014 8:30 pm
bcooksley wrote:If you run KMyMoney in a terminal, is anything useful output when you attempt to save an encrypted file?


Thank you very much BCOOKSLEY for your attention: I follow your advise , I open a KMyMoney session, I set "saving with encryption" and try "Save As" the file with encryption and this are the result:
Code: Select all
(kmymoney:12843): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «pixmap»,

(kmymoney:12843): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «pixmap»,

(kmymoney:12843): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «pixmap»,
kmymoney(12843)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 1 offers for "Print check"
kmymoney(12843)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "KMyMoney OFX"
kmymoney(12843)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 1 offers for "iCalendar"
kmymoney(12843)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "csvimport"
kmymoney(12843)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "KBanking"
kmymoney(12843)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "Reconciliation report"
KMyMoney printcheck plugin loaded
kmymoney(12843)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
QFSFileEngine::open: No file name specified
KMyMoney ofximport plugin loaded
KMyMoney iCalendar plugin loaded
KMyMoney csvimport plugin loaded
7:2014/01/07 21-16-29:aqbanking(12843):started
KMyMoney kbanking plugin loaded
KMyMoney reconciliation report plugin loaded
reading file
start parsing file
startDocument
reading accounts
reading transactions
reading securities
reading currencies
reading prices
reading reports
endDocument
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
"/org/freedesktop/UDisks2/drives/MATSHITAUJ_845D_MATSHITAUJ_845D" : property "Drive" does not exist
"/org/freedesktop/UDisks2/drives/IC25N080ATMR04_0_MRG459K7GJPL6H" : property "Drive" does not exist
"/org/freedesktop/UDisks2/drives/IC25N080ATMR04_0_MRG459K7GJPL6H" : property "DeviceNumber" does not exist
"/org/freedesktop/UDisks2/drives/IC25N080ATMR04_0_MRG459K7GJPL6H" : property "Device" does not exist
reading file
start parsing file
startDocument
reading accounts
reading transactions
reading securities
reading currencies
reading prices
reading reports
endDocument
kmymoney(12843)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
kmymoney(12843): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
"
QFile::flush: No file engine. Is IODevice open?
Failure while writing file: 'Errore generale'
kmymoney(12843)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:


Any ideas ??
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS

Re: Cannot save a encrypted file

Tue Jan 07, 2014 8:46 pm
Where are you trying to save it? It seems to have an error while trying to open the handle for the file. I'm puzzled about what's actually happening, and why it's not throwing a user warning.


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
grossi
Registered Member
Posts
11
Karma
0

Re: Cannot save a encrypted file

Wed Jan 08, 2014 9:23 pm
Hei Ku wrote:Where are you trying to save it? It seems to have an error while trying to open the handle for the file. I'm puzzled about what's actually happening, and why it's not throwing a user warning.


Ciao HEY KU, I open a scratch file from my $HOME and I try to save into the same $HOME: I open a KMyMoney session from terminal and I read a file "prova.kmy" and this is the various messages:
Code: Select all
gianmario@debian-acer:~$ kmymoney prova.kmy

(kmymoney:19779): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «pixmap»,

(kmymoney:19779): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «pixmap»,

(kmymoney:19779): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «pixmap»,
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.

(kdeinit4: kded4 [kdeinit]:19785): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «pixmap»,

(kdeinit4: kded4 [kdeinit]:19785): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «pixmap»,

(kdeinit4: kded4 [kdeinit]:19785): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «pixmap»,
kbuildsycoca4 running...
kbuildsycoca4(19788) KBuildSycoca::checkTimestamps: checking file timestamps
kbuildsycoca4(19788) KBuildSycoca::checkTimestamps: timestamps check ok
kbuildsycoca4(19788) kdemain: Emitting notifyDatabaseChanged ()
kmymoney(19779)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 1 offers for "Print check"
kmymoney(19779)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "KMyMoney OFX"
kmymoney(19779)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 1 offers for "iCalendar"
kmymoney(19779)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "csvimport"
kmymoney(19779)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "KBanking"
kmymoney(19779)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found 0 offers for "Reconciliation report"
KMyMoney printcheck plugin loaded
kmymoney(19779)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
QFSFileEngine::open: No file name specified
KMyMoney ofximport plugin loaded
KMyMoney iCalendar plugin loaded
KMyMoney csvimport plugin loaded
7:2014/01/08 22-15-38:aqbanking(19779):started
KMyMoney kbanking plugin loaded
KMyMoney reconciliation report plugin loaded
reading file
start parsing file
startDocument
reading accounts
reading transactions
reading securities
reading currencies
reading prices
reading reports
endDocument
QPainter::begin: Widget painting can only begin as a result of a paintEvent
QPainter::translate: Painter not active
QPainter::setClipRect: Painter not active
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.

(knotify4:20249): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «pixmap»,

(knotify4:20249): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «pixmap»,

(knotify4:20249): Gtk-WARNING **: Impossibile trovare il motore del tema in module_path: «pixmap»,
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
"/org/freedesktop/UDisks2/drives/MATSHITAUJ_845D_MATSHITAUJ_845D" : property "Drive" does not exist
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused


When i try "save as" with a different name and without encyption there are this new messages:

Code: Select all
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
"/org/freedesktop/UDisks2/drives/MATSHITAUJ_845D_MATSHITAUJ_845D" : property "Drive" does not exist
"/org/freedesktop/UDisks2/drives/IC25N080ATMR04_0_MRG459K7GJPL6H" : property "Drive" does not exist
"/org/freedesktop/UDisks2/drives/IC25N080ATMR04_0_MRG459K7GJPL6H" : property "DeviceNumber" does not exist
"/org/freedesktop/UDisks2/drives/IC25N080ATMR04_0_MRG459K7GJPL6H" : property "Device" does not exist
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
kmymoney(19779): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
"


It seems the problem are linked at the function "SAVE AS": I hope this could be useful to understand what is wrong: I also try to rename the ".kde" directory present in my $HOME, logout and login, but the problem is still present.
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS

Re: Cannot save a encrypted file

Wed Jan 08, 2014 10:30 pm
Try running kbuildsycoca4 in a terminal. It looks like some part of your KDE setup is hosed. Hopefully it's just an outdated user config.


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
grossi
Registered Member
Posts
11
Karma
0

Re: Cannot save a encrypted file

Thu Jan 09, 2014 9:47 pm
Hei Ku wrote:Try running kbuildsycoca4 in a terminal. It looks like some part of your KDE setup is hosed. Hopefully it's just an outdated user config.


I follow your advise, I run kbuildsycoca4 in a terminal with my user, the generete a lot of output, but nothing to do: when I try to use "Save as" a encrypted file the program does not save :'( :'(

Any other idea ??
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS

Re: Cannot save a encrypted file

Thu Jan 09, 2014 11:02 pm
Are you saving the encrypted file as a different name? Are you modifying the extension of the file in any way?


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
grossi
Registered Member
Posts
11
Karma
0

Re: Cannot save a encrypted file

Fri Jan 10, 2014 10:16 pm
Hei Ku wrote:Are you saving the encrypted file as a different name?
Yes I do.

Hei Ku wrote:Are you modifying the extension of the file in any way?
Yes I save with new name and without .kmy

Ciao HEI KU, I change the subject of my thread, because my problem appear only when I use "SAVE AS": the strange is when I select "SAVE AS" into the monitor used to launch KMyMoney appear this warning that I don't understand but surely is referred at my hard disk (IC25N080ATMR04_0_MRG459K7GJPL6H):
Code: Select all
Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
"/org/freedesktop/UDisks2/drives/MATSHITAUJ_845D_MATSHITAUJ_845D" : property "Drive" does not exist
"/org/freedesktop/UDisks2/drives/IC25N080ATMR04_0_MRG459K7GJPL6H" : property "Drive" does not exist
"/org/freedesktop/UDisks2/drives/IC25N080ATMR04_0_MRG459K7GJPL6H" : property "DeviceNumber" does not exist
"/org/freedesktop/UDisks2/drives/IC25N080ATMR04_0_MRG459K7GJPL6H" : property "Device" does not exist
kmymoney(19363): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
"
QFile::flush: No file engine. Is IODevice open?
Failure while writing file: 'Errore generale'


For your reference My KMyMoney is 4.6.4, KDE is 4.11.3 My Kernel is 3.12.1 and I use a Debian Jessie/Sid running with XFCE 4.10
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS
Try saving as a completely different, make sure the "add suggested extension" is checked.


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
grossi
Registered Member
Posts
11
Karma
0
Hei Ku wrote:Try saving as a completely different, make sure the "add suggested extension" is checked.


I open an existing Kmymoney-file, afterthat I change the setting to use "encryption" following I select "SAVE AS" with a completely new name and I enable "automatically select file name extension (.kmy)".

When I enable the "automatically select file name extension (.kmy)" into the monito appear this warning:

Code: Select all
kmymoney(24869): couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol ''.
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS
At this point I'm lost.
Can you try saving as an anonimized file? Just to verify the problem is only with encrypted files

Also, can you check if pinentry-qt is installed in your system?


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
grossi
Registered Member
Posts
11
Karma
0
Hei Ku wrote:At this point I'm lost.
Can you try saving as an anonimized file? Just to verify the problem is only with encrypted files
Ciao Hey Ku, all my test are made on a "scratch kymoney-file" with two dummy transactions so I have no problem to send you.

Also, can you check if pinentry-qt is installed in your system?
I confirm "pinentry-qt4" is installed

I also remove "kgpg" with "aptitude --purge remove" and reinstall it, but nothing to do, when I try to "save as" with encryption e a very different new name the file are not written >:( >:(

If could be helpfull into this directory I can see all the different file name that I use making several tests:
Code: Select all
gianmario@debian-acer:~/.kde/share/apps/RecentDocuments$ ls -al
totale 48
drwx------  2 gianmario gianmario 4096 gen 12 22:20 .
drwx------ 26 gianmario gianmario 4096 set 15 20:44 ..
[b]-rw-------  1 gianmario gianmario  117 gen 12 22:20 cifrato1.kmy.desktop[/b]
-rw-------  1 gianmario gianmario  110 gen 11 17:36 cifrato.desktop
-rw-------  1 gianmario gianmario  115 gen 11 17:37 cifrato.kmy.desktop
-rw-------  1 gianmario gianmario  136 dic 28 23:09 pippo.kmy.desktop
-rw-------  1 gianmario gianmario  134 gen  5 18:23 popo.kmy.desktop
-rw-------  1 gianmario gianmario  116 gen 10 22:59 prova1-gpg.desktop
-rw-------  1 gianmario gianmario  121 gen 11 00:13 prova1-gpg.kmy.desktop
-rw-------  1 gianmario gianmario  113 gen 11 16:59 prova1.kmy.desktop
-rw-------  1 gianmario gianmario  123 gen  7 21:18 prova-cript.kmy.desktop
-rw-------  1 gianmario gianmario  111 gen  8 21:23 prova.kmy.desktop
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS
Can you use 'Save as' with an unencrypted file?


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
grossi
Registered Member
Posts
11
Karma
0
ipwizard wrote:Can you use 'Save as' with an unencrypted file?


Ciao Thomas, I have just tested and I confirm "save as" an unencrypted file works.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], q.ignora, watchstar