You cannot simulate how Enigmail calls GnuPG on the command line (DOS prompt). Enigmail does not use the DOS prompt and is not affected by requiring quotes around the gpg command.
The error is really weird. I wonder if gpg4win is set up correctly. I'd recommend uninstalling gpg4win; then restart your computer, then install gpg4win and then start Thunderbird and run Enigmail. As I wrote in [bugs:#167] you should not need to set any path in Enigmail; if gpg4win is set up correctly then Enigmail will find it automatically.
Reinstalling to e.g. c:\gnu\gpg4win does not work.
I installed gnu4win, thunderbid and enigmail on my 2nd Computer (Win Vista). Same proglem, enigmail does not find the agent and overriding the path does not work.
It seem to be a problem how enigmail catches the output of gpg2.exe 2.1.1. I suggest testing it for yourself.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There must be Exitcode >0 and outStr="", so it is clear that pgp2.exe was called and exited with an error. Frankly spoken I don't know enough about Javascript to help. Maybe the subprocess.call-Funktion changed in the past in that way, that the arguments are parsed otherwise (I've got the newest updates on my Computers).
Hope that helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Patrick, I just told you that enigmail 1.5.1 doesn't work with GPG4Win 2.1.1. That's a fact. I don't know your PGP Version and OS, so I have no doubt that it works in your configuration.
But relax: Problem solved!! It's a Bug in Gnu4Win, not in Enigmal
I figered out the gpg-Errorcode, it was #259 = GPG_ERR_ASS_CONNECT_FAILED. It has to do with the connection to the gpg-agent, but no idea how to solve this.
So I downgraded to GPG4WIN to 2.0.0. Now enigmail finds the file without any problems.
Best regards,
Chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just went through this on my mom's Windows XP system this morning. :) She's running Enigmail 1.5.2 in Thunderbird 17.0.7 and I upgraded to Gpg4Win 2.1.1 this morning. During the Gpg4Win upgrade process, I ended up removing Gpg4Win entirely, to get rid of the old 1.4 version. Anyway, what I found was Enigmail couldn't find the "gpg2" executable on its own. It kept looking for the "gpg" executable in the "pub" directory of the Gpg4Win installation.
Once I pointed Enigmail at the "gpg2" executable, everything started working just fine. So, I've got Enigmail 1.5.2 working with Gpg4Win 2.1.1 on a 32-bit Windows XP Home Edition (SP3) system.
Peace...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Enigmail does not find the File C:\Program Files (x86)\GNU\GnuPG\pub\gpg2.exe on Windows7 (64bit) with GPG4WIN
If you open a DOS-Console and type
C:\Program Files (x86)\GNU\GnuPG\pub\gpg2.exe --version --version --batch --no-tty --charset utf-8 --display-charset utf-8
of course there is an error because of the SPACE in the Filename. Typing
"C:\Program Files (x86)\GNU\GnuPG\pub\gpg2.exe" --version --version --batch --no-tty --charset utf-8 --display-charset utf-8
works correct. So the Enigmail-Error seems to be the type of calling the PGP2.exe agent.
Logfile:
2013-08-03 16:44:14.243 [DEBUG] enigmail.js: Logging debug output to c:\windows\temp\enigdbug.txt
2013-08-03 16:44:14.244 [DEBUG] enigmail.js: Enigmail version 1.5.2
2013-08-03 16:44:14.244 [DEBUG] enigmail.js: OS/CPU=Windows NT 6.1; WOW64
2013-08-03 16:44:14.244 [DEBUG] enigmail.js: Platform=Windows
2013-08-03 16:44:14.245 [DEBUG] enigmail.js: Enigmail.initialize: Ec.envList = ALLUSERSPROFILE=
[censored]
2013-08-03 16:44:14.246 [CONSOLE] EnigmailAgentPath=C:\Program Files (x86)\GNU\GnuPG\pub\gpg2.exe
2013-08-03 16:44:14.246 [DEBUG] enigmail.js: Enigmail.setAgentPath: calling subprocess with 'C:\Program Files (x86)\GNU\GnuPG\pub\gpg2.exe'
2013-08-03 16:44:14.481 [CONSOLE] enigmail> C:\Program Files (x86)\GNU\GnuPG\pub\gpg2.exe --version --version --batch --no-tty --charset utf-8 --display-charset utf-8
2013-08-03 16:44:14.481 [ERROR] enigmail.js: Enigmail.setAgentPath: gpg failed with ''
Last edit: Chris 2013-08-03
You cannot simulate how Enigmail calls GnuPG on the command line (DOS prompt). Enigmail does not use the DOS prompt and is not affected by requiring quotes around the gpg command.
The error is really weird. I wonder if gpg4win is set up correctly. I'd recommend uninstalling gpg4win; then restart your computer, then install gpg4win and then start Thunderbird and run Enigmail. As I wrote in [bugs:#167] you should not need to set any path in Enigmail; if gpg4win is set up correctly then Enigmail will find it automatically.
Related
Bugs:
#167Reinstalling to e.g. c:\gnu\gpg4win does not work.
I installed gnu4win, thunderbid and enigmail on my 2nd Computer (Win Vista). Same proglem, enigmail does not find the agent and overriding the path does not work.
It seem to be a problem how enigmail catches the output of gpg2.exe 2.1.1. I suggest testing it for yourself.
Code Line 935
var proc = {
command: command,
arguments: args,
environment: Ec.envList,
charset: null,
done: function(result) {
exitCode = result.exitCode;
outStr = result.stdout;
},
mergeStderr: true
};
There must be Exitcode >0 and outStr="", so it is clear that pgp2.exe was called and exited with an error. Frankly spoken I don't know enough about Javascript to help. Maybe the subprocess.call-Funktion changed in the past in that way, that the arguments are parsed otherwise (I've got the newest updates on my Computers).
Hope that helps.
So you're telling me that it used to work with Enigmail 1.5.1 and doesn't work now anymore?
ExitCode > 0 would indicate an error from GnuPG, ExitCode < 0 would indicate an error in subprocess.
Patrick, I just told you that enigmail 1.5.1 doesn't work with GPG4Win 2.1.1. That's a fact. I don't know your PGP Version and OS, so I have no doubt that it works in your configuration.
But relax: Problem solved!! It's a Bug in Gnu4Win, not in Enigmal
I figered out the gpg-Errorcode, it was #259 = GPG_ERR_ASS_CONNECT_FAILED. It has to do with the connection to the gpg-agent, but no idea how to solve this.
So I downgraded to GPG4WIN to 2.0.0. Now enigmail finds the file without any problems.
Best regards,
Chris
gnupgpg4win 2.1.0 Works!
I startet a bug topic in the gnupgp4win-Forum. Please mark here as solved!
I just went through this on my mom's Windows XP system this morning. :) She's running Enigmail 1.5.2 in Thunderbird 17.0.7 and I upgraded to Gpg4Win 2.1.1 this morning. During the Gpg4Win upgrade process, I ended up removing Gpg4Win entirely, to get rid of the old 1.4 version. Anyway, what I found was Enigmail couldn't find the "gpg2" executable on its own. It kept looking for the "gpg" executable in the "pub" directory of the Gpg4Win installation.
Once I pointed Enigmail at the "gpg2" executable, everything started working just fine. So, I've got Enigmail 1.5.2 working with Gpg4Win 2.1.1 on a 32-bit Windows XP Home Edition (SP3) system.
Peace...