Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Engima plugin won't accept key passphrase for sending a new email signed or encrypted-CONTINUED #5215

Closed
fsantiago07044 opened this issue Apr 19, 2016 · 28 comments

Comments

@fsantiago07044
Copy link

I've updated to crypt_gpg v1.4.1 and still same issue. now what?

@alecpl
Copy link
Member

alecpl commented Apr 20, 2016

If you updated also Roundcube to git-master you could enable enigma_debug option to get some debug info from gnupg.

@fsantiago07044
Copy link
Author

thanks.

i've merged the rc git-master branch.

strange issue now; when i try creating a new key in RC, i receive error:

Unable to import key(s)! Internal error.

in the webui.

my rc error log states:

tu9bljrs> PHP Error: Enigma plugin: Unknown error importing GPG key. Please use the 'debug' option when creating the Crypt_GPG object, and file a bug report at http://pear.php.net/bugs/report.php?package=Crypt_GPG in /var/www/roundcubemail-1.1.1/plugins/enigma/lib/enigma_engine.php on line 1069 (POST /mail/?_task=settings&_framed=1&_action=plugin.enigmakeys)

i do have in my enigma config as well: $config['enigma_debug'] = true;

what can i try next? Thanks for your help.

@alecpl
Copy link
Member

alecpl commented Apr 20, 2016

You should have logs/enigma file then.

@fsantiago07044
Copy link
Author

i do not. sendmail and errors is all.

@alecpl
Copy link
Member

alecpl commented Apr 20, 2016

Strange. Are you really on git-master? Your directory path shows 1.1.1 version.

@fsantiago07044
Copy link
Author

that's just my folder name from my original install, i've since updated without bothering to rename it.

i've set my git branch to origin/master:

git branch --set-upstream-to=origin/master

and running git pull produces:

Already up-to-date.

@fsantiago07044
Copy link
Author

i got it to finally create a new key but still won't accept my passphrase....same as before.

@alecpl
Copy link
Member

alecpl commented Apr 21, 2016

You need to use composer to update Crypt_GPG, did you do this? Did you try with some simple password e.g. "12345" (make sure there are only digits/letters).

@fsantiago07044
Copy link
Author

i did use composer for the crypt_gpg library and have v1.4.1 installed now and i have also tried simple password key creation with only lower case alpha / numerics. i have also tried other more complex or longer passwords but again, no special characters at the very least.

@alecpl
Copy link
Member

alecpl commented Apr 26, 2016

Please, verify that your /vendor/bin/crypt-gpg-pinentry looks like this https://github.com/pear/Crypt_GPG/blob/master/scripts/crypt-gpg-pinentry. Use gpg in command line to verify that the key/passphrase works there. Provide enigma_debug log.

@Driim
Copy link

Driim commented Apr 26, 2016

I got same issue. Enigma doesn't accept my password. I also update to git master and enable enigma_debug, I see debug message in browser, but i want to see them in log file.

@alecpl
Copy link
Member

alecpl commented Apr 26, 2016

if you have debug in browser, that would mean you didn't update Crypt_GPG to version 1.4.1.

@Driim
Copy link

Driim commented Apr 26, 2016

Upgrade to Crypt_GPG, now I have enigma log file.

And now I see error:

GPG: ERROR: gpg: problem with the agent: No pinentry

@Driim
Copy link

Driim commented Apr 28, 2016

In my case, the problem was that there was no variable php in the env.

@alecpl
Copy link
Member

alecpl commented May 1, 2016

@fsantiago07044, how about you? Maybe that's the same issue?

@fsantiago07044
Copy link
Author

still doesn't work but i tried pinentry from the command line and received this:

PHP Fatal error: XML definition file "/var/www/roundcubemail-1.1.1/vendor/pear-pear.php.net/Console_CommandLine/Console/CommandLine/../../data/xmlschema.rng" does not exists or is not readable in /var/www/roundcubemail-1.1.1/vendor/pear-pear.php.net/Console_CommandLine/Console/CommandLine.php on line 855

@fsantiago07044
Copy link
Author

but the file exists under here:

/var/www/roundcubemail-1.1.1/vendor/pear-pear.php.net/Console_CommandLine/data/Console_CommandLine/data/xmlschema.rng

@alecpl
Copy link
Member

alecpl commented May 12, 2016

Looks like another issue with installing pear package with composer. I see how that could be a problem when you used /vendor dir from Roundcube official package, but if you installed deps using composer it should work. The problem is with a path in validate() method in /vendor/pear-pear.php.net/Console_CommandLine/Console/CommandLine/XmlParser.php.

@fsantiago07044
Copy link
Author

can i fix with a symlink or do i need to run / re-run composer after doing something with packages?

@fsantiago07044
Copy link
Author

i did initially use the official package but have since been updating from git and then follow up with composer

@alecpl alecpl modified the milestones: 1.3-beta, 1.2.0 May 12, 2016
@Driim
Copy link

Driim commented May 13, 2016

PHP Fatal error: XML definition file "/var/www/roundcubemail-1.1.1/vendor/pear-pear.php.net/Console_CommandLine/Console/CommandLine/../../data/xmlschema.rng" does not exists or is not readable

I also had this issue, I corrected it by symlink and forgot to tell.

@fsantiago07044
Copy link
Author

Driim, where do i symlink the file to? the error msg's path isn't clear as far as where it's looking for it......

@fsantiago07044
Copy link
Author

when it says /../../data/xmlschema.rng, where is this pointing to?

@alecpl
Copy link
Member

alecpl commented May 16, 2016

vendor/pear-pear.php.net/Console_CommandLine/data/xmlschema.rng should point to
vendor/pear-pear.php.net/Console_CommandLine/data/Console_CommandLine/data/xmlschema.rng

@alecpl alecpl modified the milestones: 1.2.1, 1.2.0 May 17, 2016
@alecpl
Copy link
Member

alecpl commented May 22, 2016

@fsantiago07044
Copy link
Author

all fixed now that i've up'd to rc 1.2.0 official release and updated my composer dependencies. case closed. works fine now.

@alecpl
Copy link
Member

alecpl commented May 26, 2016

It works in our official release because we patched Console_CommandLine. It also works if you use composer on your destination system. However, my PR has not been aplied yet, so I'll leave the ticket open until we have a new Console_CommandLine package that we can depend on.

@cweiske
Copy link
Contributor

cweiske commented Jul 14, 2016

@alecpl - fixed in Console_CommandLine 1.2.2

@alecpl alecpl closed this as completed Jul 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants