LeoIannacone / goopg

GPG for Gmail in Chrome and Chromium
http://leoiannacone.github.io/goopg/
GNU General Public License v3.0
53 stars 5 forks source link

Press "Sign and Send" takes forever... #14

Closed oscarluizsn closed 9 years ago

oscarluizsn commented 9 years ago

Hello!

I install googp as described in your page, but can't send signed messages. I click on "Sign and Send" and nothing occours.

Can you help me?

Regards,

LeoIannacone commented 9 years ago

Look at ~/.cache/goopg/log

You may find some useful info there ... Let me know.

LeoIannacone commented 9 years ago

Please,

consider to re-open if you need more help.

oscarluizsn commented 9 years ago

Sorry by the delay. The log content is:

2015-03-26 16:26:30,814:ERROR:STDERR:Traceback (most recent call last): 2015-03-26 16:26:30,814:ERROR:STDERR: File "/usr/share/goopg/chrome-main.py", line 71, in 2015-03-26 16:26:30,814:ERROR:STDERR:main() 2015-03-26 16:26:30,814:ERROR:STDERR: File "/usr/share/goopg/chrome-main.py", line 62, in main 2015-03-26 16:26:30,814:ERROR:STDERR:parse_and_send_result(bundle) 2015-03-26 16:26:30,814:ERROR:STDERR: File "/usr/share/goopg/chrome-main.py", line 57, in parse_and_send_result 2015-03-26 16:26:30,815:ERROR:STDERR:result = handler.parse(b) 2015-03-26 16:26:30,815:ERROR:STDERR: File "/usr/share/goopg/commandhandler.py", line 26, in parse 2015-03-26 16:26:30,815:ERROR:STDERR:result = self.init(bundle) 2015-03-26 16:26:30,815:ERROR:STDERR: File "/usr/share/goopg/commandhandler.py", line 40, in init 2015-03-26 16:26:30,815:ERROR:STDERR:if not 'options' in bundle and not 'username' in bundle['options']: 2015-03-26 16:26:30,815:ERROR:STDERR:KeyError 2015-03-26 16:26:30,815:ERROR:STDERR:: 2015-03-26 16:26:30,815:ERROR:STDERR:'options' 2015-03-26 16:27:21,850:ERROR:STDERR:Traceback (most recent call last): 2015-03-26 16:27:21,850:ERROR:STDERR: File "/usr/share/goopg/chrome-main.py", line 71, in 2015-03-26 16:27:21,850:ERROR:STDERR:main() 2015-03-26 16:27:21,850:ERROR:STDERR: File "/usr/share/goopg/chrome-main.py", line 62, in main 2015-03-26 16:27:21,850:ERROR:STDERR:parse_and_send_result(bundle) 2015-03-26 16:27:21,850:ERROR:STDERR: File "/usr/share/goopg/chrome-main.py", line 57, in parse_and_send_result 2015-03-26 16:27:21,850:ERROR:STDERR:result = handler.parse(b) 2015-03-26 16:27:21,850:ERROR:STDERR: File "/usr/share/goopg/commandhandler.py", line 26, in parse 2015-03-26 16:27:21,850:ERROR:STDERR:result = self.init(bundle) 2015-03-26 16:27:21,851:ERROR:STDERR: File "/usr/share/goopg/commandhandler.py", line 40, in init 2015-03-26 16:27:21,851:ERROR:STDERR:if not 'options' in bundle and not 'username' in bundle['options']: 2015-03-26 16:27:21,851:ERROR:STDERR:KeyError 2015-03-26 16:27:21,851:ERROR:STDERR:: 2015-03-26 16:27:21,851:ERROR:STDERR:'options

LeoIannacone commented 9 years ago

It seems extension can't find the USERNAME.

I just pushed a new version of Goopg in the PPA. Please consider an update of you sistem.

Let me know if this fixes your issue.

oscarluizsn commented 9 years ago

Sounds that is working now.

Thanks for your assistance.


Oscar Luiz da Silva Neto Director, Service Infrastructure Practices KnowHow IT Services Mobile: +55-51-80570056 Skype: oscarluizsn PGP Key ID: F69244B3 http://keyserver.pgp.com/vkd/DownloadKey.event?keyid=0xD9D85092F69244B3 http://www.knowhow.eti.br

"Eu apóio o PLC 3722/2012".

2015-03-27 7:06 GMT-03:00 Leo Iannacone notifications@github.com:

It seems extension can't find the USERNAME.

I just pushed a new version of Goopg in the PPA. Please consider an update of you sistem.

Let me know if this fixes your issue.

— Reply to this email directly or view it on GitHub https://github.com/LeoIannacone/goopg/issues/14#issuecomment-86888011.

oscarluizsn commented 9 years ago

But... if the contact is already register, didn't work:

SMTPRecipientsRefused: {'"Becker': (553, "5.1.2 We weren't able to find the recipient domain. Please check for any\n5.1.2 spelling errors, and make sure you didn't enter any spaces, periods,\n5.1.2 or other punctuation after the recipient's email address. 10sm4734178qha.38 - gsmtp"), 'Fabricio" fabricio.becker@hp.com': (553, "5.1.2 We weren't able to find the recipient domain. Please check for any\n5.1.2 spelling errors, and make sure you didn't enter any spaces, periods,\n5.1.2 or other punctuation after the recipient's email address. 10sm4734178qha.38 - gsmtp")} 2015-03-28 22:11:43,185:ERROR:CommandHandler:{'"Becker': (553, "5.1.2 We weren't able to find the recipient domain. Please check for any\n5.1.2 spelling errors, and make sure you didn't enter any spaces, periods,\n5.1.2 or other punctuation after the recipient's email address. 10sm4734178qha.38

If I delete the contact and put directly the email, works. The error is consistent.


Oscar Luiz da Silva Neto Director, Service Infrastructure Practices KnowHow IT Services Mobile: +55-51-80570056 Skype: oscarluizsn PGP Key ID: F69244B3 http://keyserver.pgp.com/vkd/DownloadKey.event?keyid=0xD9D85092F69244B3 http://www.knowhow.eti.br

"Eu apóio o PLC 3722/2012".

2015-03-28 21:39 GMT-03:00 Oscar Luiz da Silva Neto oscar@knowhow.eti.br:

Sounds that is working now.

Thanks for your assistance.


Oscar Luiz da Silva Neto Director, Service Infrastructure Practices KnowHow IT Services Mobile: +55-51-80570056 Skype: oscarluizsn PGP Key ID: F69244B3 http://keyserver.pgp.com/vkd/DownloadKey.event?keyid=0xD9D85092F69244B3 http://www.knowhow.eti.br

"Eu apóio o PLC 3722/2012".

2015-03-27 7:06 GMT-03:00 Leo Iannacone notifications@github.com:

It seems extension can't find the USERNAME.

I just pushed a new version of Goopg in the PPA. Please consider an update of you sistem.

Let me know if this fixes your issue.

— Reply to this email directly or view it on GitHub https://github.com/LeoIannacone/goopg/issues/14#issuecomment-86888011.

LeoIannacone commented 9 years ago

It looks like your contact is:

Fabricio" <fabricio.becker@hp.com>

and Python.email says that's not in the correct form.

Can you please confirm this ? Or your contact has another signature?.. something like:

"Becker, Fabricio" <fabricio......>

Let me know ...

LeoIannacone commented 9 years ago

I thinks this issue is fixed.

Please confirm after updating your system at version 0.2.2 of the plugin..

Cheers

oscarluizsn commented 9 years ago

I didn't find the 0.2.2 in the repository.

And the contact signature is "Becker, Fabricio"

oscarluizsn commented 9 years ago

Found it!

And is working. Thanks for your assistance.

LeoIannacone commented 9 years ago

You welcome!..

Please, consider to spread the world about Goopg :)

gornostal commented 9 years ago

Hi there!

I have a similar issue. It gets stuck at "Sending". I'm using Google Chrome 42.0.2311.90 And there is no ~/.cache/goopg/log

Please advise.

LeoIannacone commented 9 years ago

Hi Aleksandr!

Please, be sure to have installed goopg-chrome package and NOT goopg-chromium.

gornostal commented 9 years ago

This is what I'm seeing in the terminal: goopg-chrome is already the newest version.

gornostal commented 9 years ago

Maybe this will be helpful selection_016

LeoIannacone commented 9 years ago

Yes it is.

It seems the plugin exists on your machine (and chrome finds it) but it crashes on start.

I tried a fresh installation of google-chrome browser, but I was not able to reproduce the issue with Ubuntu Vivid 15.04.

gornostal commented 9 years ago

What is a native host? Isn't it your python script?

gornostal commented 9 years ago

How do I verify it is running? And how to run in manually?

LeoIannacone commented 9 years ago

What is a native host? Isn't it your python script?

Yes, It is.

How do I verify it is running?

ps aux | grep goopg could help ... but the error is clear:

Failed to connect: Native host has excited.

Which means: the native hosts crashes at some point.

Does the email verification work fine?

gornostal commented 9 years ago

ps aux | grep goopg

Process not found

Does the email verification work fine?

Don't know. Could you send me something signed? sanya.gornostal@gmail.com

LeoIannacone commented 9 years ago

Done.

gornostal commented 9 years ago

selection_018

LeoIannacone commented 9 years ago

Did you give proper permission to goopg to access your Google Account ?

At some point you will be asked to grant permission to goopg at your Google account, it's part of the oauth2 protocol to sign/send/verify/read emails.

gornostal commented 9 years ago

I agreed to whatever permissions it needed. I'll try to reinstall it.

LeoIannacone commented 9 years ago

Please provide the output of: dpkg -l | grep goopg

gornostal commented 9 years ago
ii  goopg-chrome                                          0.2.2~trusty                                        all          GPG for Gmail - Chrome browser plugin
ii  goopg-common                                          0.2.2~trusty                                        all          GPG for Gmail - common files
gornostal commented 9 years ago

If I install Chromium and goopg-chromium, should goopg work for both Chrome and Chromium?

LeoIannacone commented 9 years ago

The pacakge goopg-chromium contains all the files needed to exec goopg in Chromium. It does not contains any file related to the Chrome browser.

gornostal commented 9 years ago

Well... it doesn't work for Chromium either. Just checked

LeoIannacone commented 9 years ago

In file /usr/share/goopg/logger.py try to set level=logging.DEBUG at line 34

And then check again the log file in your home

gornostal commented 9 years ago

Changed. ~/.cache/goopg/log still doesn't exist. Should I reboot or log out?

LeoIannacone commented 9 years ago

No.. reboot/logout is not needed.

I think something is wrong in Ubuntu Trusty.

You have to figure out where (and why) it fails.. please, try (if you know Python) to edit /usr/share/goopg/chrome-main.py adding some debug info. You must write to external files (i.e. /tmp/goopg-tmpdbg), since you lose the std-output.

gornostal commented 9 years ago

I think I know Python :) I'll try to debug.

Could tell how your Chrome plugin connects to python script? In a nutshell. And how python script is started?

LeoIannacone commented 9 years ago

You can find all the info in this file: https://github.com/LeoIannacone/goopg/blob/master/doc/project.md

And here to understand how a py script is executed in chrome browser: https://developer.chrome.com/extensions/messaging

gornostal commented 9 years ago

Thanks.