6.0.0-RC7
6/27/26

[#2672] IMP hangs in creation of new key-pairs with GPG
Summary IMP hangs in creation of new key-pairs with GPG
Queue IMP
Queue Version 4.0.4-RC2
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester wmark.horde (at) hurrikane (dot) de
Created 9/24/05 (7581 days ago)
Due
Updated 10/7/05 (7568 days ago)
Assigned 10/2/05 (7573 days ago)
Resolved 10/7/05 (7568 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
525 Michael Slusarz Comment #8
State ⇒ Resolved
Reply to this comment
Warning implemented in HEAD and 4.0.5.
561 Chuck Hagenbuch Assigned to Michael Slusarz
State ⇒ Assigned
 
27 Jan Schneider Comment #7 Reply to this comment
Maybe you should at least issue a warning that this action could take 
some time for now.
106 Michael Slusarz Comment #6 Reply to this comment
Maybe system() or even passthru() will do the job of displaying
output (in some PRE tags).
No - PHP buffers output and, if using gzip compressed output 
buffering, this would be an absolute mess to get to work correctly (if 
even possible).  definitely not worth the extremely limited benefit we 
may get out of it.
2011 wmark (dot) horde (at) hurrikane (dot) de Comment #5 Reply to this comment
Maybe system() or even passthru() will do the job of displaying output 
(in some PRE tags).



Does it matter how long it actually takes? Users tend to becoming 
nervous if something does not change within 10-20 seconds, so you have 
to show them their wishes are executed.



This ticket's topic should be "IMP seems to be hanging at creation ....".



(It is a development and testserver and GPG works very well on that 
machine, Entropy might be the cause.)
2711 Jan Schneider Comment #4 Reply to this comment
I started the generation process and closed the window by accident.
The time I gained by that was good to eat something.
~20 minutes passed and I logged in again to start the process again -
to my surprise there were the keys!
The only explanation I have is that there is not enough entropy on the 
server. Is there anything running on that server, more users being 
logged in etc.?
- Advise the user to go eating something while generating takes place
This shouldn't happen on a sane system.
- or display a popup with GPG's output in order to show him the status.
This is probably not possible with PHP.
3410 wmark (dot) horde (at) hurrikane (dot) de Comment #3 Reply to this comment
After having written the bug report I logged in again to reproduce 
this issue with increased verbosity level of debugging.



I started the generation process and closed the window by accident. 
The time I gained by that was good to eat something.

~20 minutes passed and I logged in again to start the process again - 
to my surprise there were the keys!



In order to ensure everything was do correctly I have logged out and 
in with another user and started again generating the key-pairs and 
waited for about 6 minutes - no pair appeared. But there is one 
instance of GPG running, abviously invoked by IMP. (It ended 
successfully after ~20 minutes.)



Now, as I believe the keys will be generated successfully this time 
(again), I would recommend you one of the following:

  - Advise the user to go eating something while generating takes place

  - or display a popup with GPG's output in order to show him the status.


269 Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Works fine here. Try to track down, where it's hanging.
559 wmark (dot) horde (at) hurrikane (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ IMP hangs in creation of new key-pairs with GPG
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
Activate GPG/PGP support and ensure it works by sending some encrypted 
emails (and receive some).



Switch to an other account which has no imported keys and try letting 
IMP generating some for your.



IMP will hang. You will wait forever for any change or new page.


Saved Queries