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

KDE 4.3.3 - kgpg "decription of this file failed"

Tags: None
(comma "," separated)
richlion
Registered Member
Posts
68
Karma
0
OS
Hello,

does any one have the same problem as we have on Gentoo Sabayon 5.1?
http://forum.sabayon.org/viewtopic.php?t=19462

We cannot use the recent KGPG program to decrypt our files.
We can only use "gpg".

Regards,
Richard


*** Sabyon user since 2006 ***
Sabayon Linux amd64 13.03 - x86_64 Pentium(R) Dual-Core CPU T4200 @ 2.00GHz
KDE 4.10.1 - on Acer Aspire 7730 zg 17" with Nvidia Geforce 9300M GS
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please run "kdebugdialog" and enable everything.
Then open Konsole and use this to run KGPG and pastebin that output, posting a link to that here.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
richlion
Registered Member
Posts
68
Karma
0
OS
Hello,

this is the output :
Code: Select all
ysiek@Richlion1 ~ $ kgpg
kgpg(7889)/kdeui (KMainWindow) KMainWindow::applyMainWindowSettings: KMainWindow::applyMainWindowSettings  "MainWindow"
kgpg(7889)/kdeui (KMainWindow) KMainWindow::applyMainWindowSettings: KMainWindow::applyMainWindowSettings  "Editor"
kgpg(7889) Experimental::KNotificationItemDBus::KNotificationItemDBus: service is "org.kde.NotificationItem-7889-1"
kgpg(7889) Experimental::KNotificationItemPrivate::registerToDaemon: Registering a client interface to the system tray daemon
kgpg(7889) Experimental::KNotificationItemPrivate::registerToDaemon: service is "org.kde.NotificationItem-7889-1"
kgpg(7889)/kdeui (KMainWindow) KMainWindow::applyMainWindowSettings: KMainWindow::applyMainWindowSettings  "MainWindow"
kgpg(7889)/kdeui (KMainWindow) KMainWindow::applyMainWindowSettings: KMainWindow::applyMainWindowSettings  "MainWindow"
kgpg(7889)/kdeui (KMainWindow) KMainWindow::applyMainWindowSettings: KMainWindow::applyMainWindowSettings  "MainWindow"
rysiek@Richlion1 ~ $ kgpg(7889) Experimental::KNotificationItem::id: id requested "KGpg"
kgpg(7889) Experimental::KNotificationItem::id: id requested "KGpg"
kgpg(7889) Experimental::KNotificationItem::id: id requested "KGpg"
kgpg(7889) Experimental::KNotificationItem::id: id requested "KGpg"
kgpg(7889) Experimental::KNotificationItem::id: id requested "KGpg"
kgpg(7889) Experimental::KNotificationItem::id: id requested "KGpg"


I've been using gpg2 to encrypt and decrypt files without any problems. THe only glitch I had is described here:
http://www.linuxquestions.org/questions ... nt-611843/

Then when I click on an encrypted file to open, on the screen I get this message:
Code: Select all
kgpg(7889)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-rysiek/ksycoca4"


Regards,
Richard


*** Sabyon user since 2006 ***
Sabayon Linux amd64 13.03 - x86_64 Pentium(R) Dual-Core CPU T4200 @ 2.00GHz
KDE 4.10.1 - on Acer Aspire 7730 zg 17" with Nvidia Geforce 9300M GS
Dakon
KDE Developer
Posts
13
Karma
0
OS
Please do the following:

    *quit KGpg (make sure you quit it and not only close the main window)
    *open a terminal
    *tell KGpg to directly open the encrypted file in the editor and decrypt it:

    kgpg -s name_of_your_file

Please post any message you see in the terminal or you may get from KGpg.

Hint1: in KDebugdialog you only need to activate 2100 to get KGpg messages
Hint2: that Sabayon problem is probably that the gpg-agent was started after KGpg, the information in GPG_AGENT_INFO were stale or something like that. Try quitting KGpg and starting it from a shell with proper GPG_AGENT_INFO set.


Your favorite KGpg maintainer.
richlion
Registered Member
Posts
68
Karma
0
OS
Hello,
I have fixed the problem og gpg agent not running by starting it in the Bash shell.
Code: Select all
#!/bin/bash

# Decide wether to start gpg-agent daemon.
# Create necessary symbolic link in $HOME/.gnupg/S.gpg-agent

SOCKET=S.gpg-agent
PIDOF=`pidof gpg-agent`
RETVAL=$?

if [ "$RETVAL" -eq 1 ]; then
        echo "Starting gpg-agent daemon."
        eval `gpg-agent --daemon `
else
        echo "Daemon gpg-agent already running."
fi

# Nasty way to find gpg-agent's socket file...
GPG_SOCKET_FILE=`find /tmp/gpg-* -name $SOCKET`
echo "Updating socket file link."
cp -fs $GPG_SOCKET_FILE $HOME/.gnupg/S.gpg-agent


When I start kgpg this is the output:
Code: Select all
rysiek@Richlion1 ~/Doc $ kgpg -s LL.txt
kgpg(5310)/kdeui (KMainWindow) KMainWindow::applyMainWindowSettings: KMainWindow::applyMainWindowSettings  "MainWindow"
kgpg(5310)/kdeui (KMainWindow) KMainWindow::applyMainWindowSettings: KMainWindow::applyMainWindowSettings  "Editor"
kgpg(5310) Experimental::KNotificationItemDBus::KNotificationItemDBus: service is "org.kde.NotificationItem-5310-1"
kgpg(5310) Experimental::KNotificationItemPrivate::registerToDaemon: Registering a client interface to the system tray daemon
kgpg(5310) Experimental::KNotificationItemPrivate::registerToDaemon: service is "org.kde.NotificationItem-5310-1"
kgpg(5310)/kdeui (KMainWindow) KMainWindow::applyMainWindowSettings: KMainWindow::applyMainWindowSettings  "MainWindow"
kgpg(5310)/kdeui (KMainWindow) KMainWindow::applyMainWindowSettings: KMainWindow::applyMainWindowSettings  "MainWindow"
kgpg(5310)/kdeui (KMainWindow) KMainWindow::applyMainWindowSettings: KMainWindow::applyMainWindowSettings  "MainWindow"
kgpg(5310)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-rysiek/ksycoca4"
kgpg(5310)/kdeui (KMainWindow) KMainWindow::applyMainWindowSettings: KMainWindow::applyMainWindowSettings  "MainWindow"
kgpg(5310)/kdeui (KMainWindow) KMainWindow::applyMainWindowSettings: KMainWindow::applyMainWindowSettings  "Editor"
rysiek@Richlion1 ~/Doc $ kgpg(5310) Sonnet::Loader::loadPlugin: Successfully loaded plugin: "kspell_enchant.desktop"
kgpg(5310) Sonnet::Loader::loadPlugin: Successfully loaded plugin: "kspell_aspell.desktop"
kgpg(5310) Experimental::KNotificationItem::id: id requested "KGpg"
kgpg(5310) Experimental::KNotificationItem::id: id requested "KGpg"


The kgpg program opens, but does nothing to my file.
So I chose the option File->Decrypt file.
My file doesn't get decrypted and this is the rest of the output:
Code: Select all
kgpg(5310)/kdecore (KLibLoader) findLibraryInternal: plugins should not have a 'lib' prefix: "libkfilemodule.so"             
kgpg(5310)/kdecore (KLibLoader) KPluginLoader::load: The plugin "libkfilemodule" doesn't contain a kde_plugin_verification_data structure
kgpg(5310)/kfile (kdelibs) KFileWidget::KFileWidget: startDir KUrl("")                                                                   
kgpg(5310)/kio (KDirWatch) KDirWatchPrivate::KDirWatchPrivate: Available methods:  ("Stat", "FAM", "INotify")                           
kgpg(5310)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added File "/home/rysiek/.local/share//user-places.xbel" NotExisting for "" ["KDirWatch-1"]
kgpg(5310)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added Dir "/home/rysiek/.local/share" for "/home/rysiek/.local/share//user-places.xbel" [""]
kgpg(5310)/kio (bookmarks) KBookmarkManager::KBookmarkManager: starting KDirWatch for  "/home/rysiek/.local/share//user-places.xbel"
kgpg(5310)/kio (KDirListerCache) KDirListerCache::listDir: Listing directory: KUrl("trash:/")
kgpg(5310)/kfile (kdelibs) KFileWidget::getStartUrl: for KUrl("") ret KUrl("file:///home/rysiek/Doc") recentDirClass "" fileName ""
kgpg(5310)/kfile (kdelibs) KDirOperator::setDirLister: mainWidget= KFileDialog(0x7fff4a02a170)
kgpg(5310)/kfile (kdelibs) KDirOperator::Private::updateSorting: changing sort flags from -1 to 4
kgpg(5310)/kfile (kdelibs) KDirOperator::Private::updateSorting: changing sort flags from 4 to 4
kgpg(5310)/kio (KDirListerCache) KDirListerCache::listDir: Entry currently being listed: KUrl("trash:/") by (KDirLister(0xb5e620) )
kgpg(5310)/kio (Slave) KIO::Slave::createSlave: createSlave "trash" for KUrl("trash:/")
kgpg(5310)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-rysiek/kgpgRE5310.slave-socket"
kgpg(5310)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///home/rysiek/Doc")
kgpg(5310)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-rysiek/kgpgjk5310.slave-socket"
kgpg(5310)/kio (KDirListerCache) KDirListerCache::slotResult: finished listing KUrl("trash:/")
kgpg(5310)/kfile (kdelibs) KFileWidget::KFileWidget: statJob found filename ""
kgpg(5310)/kfile (kdelibs) KFileDialog::KFileDialog: KFileDialog connecting signals
kgpg(5310)/kio (KDirListerCache) KDirListerCache::listDir: Listing directory: KUrl("file:///home/rysiek/Doc")
kgpg(5310)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added Dir "/home/rysiek/Doc" for "" ["KDirWatch-2"]
kgpg(5310)/kdecore (KMimeType) KMimeTypeFactory::parseMagic: Now parsing  "/usr/share/mime/magic"
kgpg(5310)/kdecore (KMimeType) KMimeTypeFactory::parseMagic: Now parsing  "/home/rysiek/.local/share/mime/magic"
kgpg(5310)/kio (KDirListerCache) KDirListerCache::slotResult: finished listing KUrl("file:///home/rysiek/Doc")
kgpg(5310) Phonon::KdePlatformPlugin::createBackend: using backend:  "Xine"
kgpg(5310)/kio KIO::DelegateAnimationHandler::setSequenceIndex: 1
kgpg(5310)/kio KIO::DelegateAnimationHandler::gotNewIcon: 1
kgpg(5310)/kio KIO::DelegateAnimationHandler::setSequenceIndex: 0
kgpg(5310)/kio KIO::DelegateAnimationHandler::sequenceTimerTimeout: requesting 0
kgpg(5310)/kio KIO::DelegateAnimationHandler::setSequenceIndex: 1
kgpg(5310)/kio KIO::DelegateAnimationHandler::gotNewIcon: 1
kgpg(5310)/kio KIO::DelegateAnimationHandler::sequenceTimerTimeout: requesting 2
kgpg(5310)/kio KIO::DelegateAnimationHandler::sequenceTimerTimeout: requesting 2
kgpg(5310)/kio KIO::DelegateAnimationHandler::sequenceTimerTimeout: requesting 2
kgpg(5310)/kio KIO::DelegateAnimationHandler::gotNewIcon: 2
kgpg(5310)/kio KIO::DelegateAnimationHandler::setSequenceIndex: 0
kgpg(5310)/kio KIO::DelegateAnimationHandler::sequenceTimerTimeout: requesting 0
kgpg(5310)/kfile (kdelibs) KUrlComboBox::urls: ::urls()
kgpg(5310)/kfile (kdelibs) KUrlComboBox::urls: ::urls()
kgpg(5310)/kfile (kdelibs) KRecentDocument::add: KRecentDocument::add for  "file:///home/rysiek/Doc/LL.txt.gpg"
kgpg(5310)/kio (KDirListerCache) KDirListerCache::forgetDirs: KDirLister(0xb85610)  item moved into cache:  KUrl("file:///home/rysiek/Doc")
kgpg(5310)/kio (KDirListerCache) KDirListerCache::forgetDirs: KDirLister(0xb5e620)  item moved into cache:  KUrl("trash:/")
Object::connect: No such signal KgpgEditor::slotRefreshImported(KgpgLibrary *, QStringList)
Object::connect:  (receiver name: 'editor2')


Maybe I shoud somehow show Kgpg where my key file is with the password?
Kgpg should come up with the prompt for the password.

When I close the windows a process is still running in the background:
Code: Select all
user  @Richlion1 ~/Doc $ ps -ef | grep kgpg
user      5310     1  0 21:00 pts/2    00:00:01 kgpg -s LL.txt
user      5325 20555  0 21:02 ?        00:00:00 kdeinit4: kio_trash [kdeinit] trash local:/tmp/ksocket-rysiek/klauncherT20556.slave-socket local:/tmp/ksocket-rysiek/kgpgRE5310.slave-socket
user      5326 20555  0 21:02 ?        00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-rysiek/klauncherT20556.slave-socket local:/tmp/ksocket-rysiek/kgpgjk5310.slave-socket
user    5339 20555  0 21:04 ?        00:00:00 kdeinit4: kio_thumbnail [kdeinit]



Thanks for being patient.

Richard


*** Sabyon user since 2006 ***
Sabayon Linux amd64 13.03 - x86_64 Pentium(R) Dual-Core CPU T4200 @ 2.00GHz
KDE 4.10.1 - on Acer Aspire 7730 zg 17" with Nvidia Geforce 9300M GS
Dakon
KDE Developer
Posts
13
Karma
0
OS
At least the last warning was valid: the requested signal did not exist. I fixed that for 4.3, 4.4 and trunk now. But it's unlikely there will be any more 4.3 packages. Try updating to 4.4.1 as soon as it comes out.


Your favorite KGpg maintainer.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]