Menu

#36 support gpg-connect-agent as a means to detect if an agent is running

closed
ede
5
2020-01-23
2015-07-14
No

GPG_AGENT_INFO is indicated as not used by gpg2 and there is a more reliable means of detecting if the agent is available (which has the side effect of auto-creating an agent instance).

Attached is a patch that allows the prior GPG_AGENT_INFO logic to be used, but if there is no agent detected through that means, it will try to use gpg-connect-agent if present.

1 Attachments

Related

Feature Requests: #36

Discussion

  • ede

    ede - 2015-11-05

    hey Thomas,

    can you please test if the latest snapshot works as you expect it to
    http://duply.net/wiki/index.php/Duply-code#Latest_Development_Snapshot
    ?

    thx.. ede

     
  • ede

    ede - 2015-11-24

    released in 1.11 ..ede

     
  • ede

    ede - 2015-11-24
    • status: open --> closed
     
    • Thomas Harning Jr.

      Sorry for the delay - but the fix worked :)

      On Tue, Nov 24, 2015 at 8:35 AM ede edso@users.sf.net wrote:

      • status: open --> closed

      Status: closed

      Group: Next Release (example)
      Labels: patch gpg2 gpg2.1
      Created: Tue Jul 14, 2015 08:26 PM UTC by Thomas Harning Jr.

      Last Updated: Tue Nov 24, 2015 01:34 PM UTC
      Owner: ede
      Attachments:

      GPG_AGENT_INFO is indicated as not used by gpg2 and there is a more
      reliable means of detecting if the agent is available (which has the side
      effect of auto-creating an agent instance).

      Attached is a patch that allows the prior GPG_AGENT_INFO logic to be used,
      but if there is no agent detected through that means, it will try to use
      gpg-connect-agent if present.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/ftplicity/feature-requests/36/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Feature Requests: #36

      • ede

        ede - 2015-12-09

        good to know.. thx ede/duply.net

        On 09.12.2015 18:34, Thomas Harning Jr. wrote:

        Sorry for the delay - but the fix worked :)

        On Tue, Nov 24, 2015 at 8:35 AM ede edso@users.sf.net edso@users.sf.net wrote:

          * /status/: open --> closed
        
        ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        
          * [feature-requests:#36] <http://sourceforge.net/p/ftplicity/feature-requests/36/>
            http://sourceforge.net/p/ftplicity/feature-requests/36/ support
            gpg-connect-agent as a means to detect if an agent is running*
        
        /Status:/ closed
        
        /Group:/ Next Release (example)
        /Labels:/ patch gpg2 gpg2.1
        /Created:/ Tue Jul 14, 2015 08:26 PM UTC by Thomas Harning Jr.
        
        /Last Updated:/ Tue Nov 24, 2015 01:34 PM UTC
        /Owner:/ ede
        /Attachments:/
        
          * gpg-connect-agent.patch
            https://sourceforge.net/p/ftplicity/feature-requests/36/attachment/gpg-connect-agent.patch
            (796 Bytes; text/x-patch)
        
        GPG_AGENT_INFO is indicated as not used by gpg2 and there is a more
        reliable means of detecting if the agent is available (which has the side
        effect of auto-creating an agent instance).
        
        Attached is a patch that allows the prior GPG_AGENT_INFO logic to be used,
        but if there is no agent detected through that means, it will try to use
        gpg-connect-agent if present.
        
        ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        
        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/ftplicity/feature-requests/36/
        
        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/
        

        [feature-requests:#36] http://sourceforge.net/p/ftplicity/feature-requests/36/ support gpg-connect-agent as a means to detect if an agent is running

        Status: closed
        Group: Next Release (example)
        Labels: patch gpg2 gpg2.1
        Created: Tue Jul 14, 2015 08:26 PM UTC by Thomas Harning Jr.
        Last Updated: Tue Nov 24, 2015 01:35 PM UTC
        Owner: ede
        Attachments:

        GPG_AGENT_INFO is indicated as not used by gpg2 and there is a more reliable means of detecting if the agent is available (which has the side effect of auto-creating an agent instance).

        Attached is a patch that allows the prior GPG_AGENT_INFO logic to be used, but if there is no agent detected through that means, it will try to use gpg-connect-agent if present.


        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/ftplicity/feature-requests/36/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

         

        Related

        Feature Requests: #36

  • Jozef Riha

    Jozef Riha - 2020-01-23

    with duply 2.1 i still need the --use-agent with systemd unit file, otherwise i get

    Jan 23 08:46:58 myhost duply[2563]: --- Start running command BKP at 08:46:58.965 ---
    Jan 23 08:47:03 myhost duply[2563]: Reading globbing filelist /root/.duply/backup-system/exclude
    Jan 23 08:47:04 myhost duply[2563]: Local and Remote metadata are synchronized, no sync needed.
    Jan 23 08:47:06 myhost duply[2563]: Last full backup date: Thu Jan  9 21:57:45 2020
    Jan 23 08:47:06 myhost duply[2563]: /usr/lib/python2.7/getpass.py:83: GetPassWarning: Can not control echo on the terminal.
    Jan 23 08:47:06 myhost duply[2563]:   passwd = fallback_getpass(prompt, stream)
    Jan 23 08:47:06 myhost duply[2563]: Warning: Password input may be echoed.
    Jan 23 08:47:06 myhost duply[2563]: GnuPG passphrase for decryption: Traceback (innermost last):
    Jan 23 08:47:06 myhost duply[2563]:   File "/usr/bin/duplicity", line 1567, in <module>
    Jan 23 08:47:06 myhost duply[2563]:     with_tempdir(main)
    Jan 23 08:47:06 myhost duply[2563]:   File "/usr/bin/duplicity", line 1553, in with_tempdir
    Jan 23 08:47:06 myhost duply[2563]:     fn()
    Jan 23 08:47:06 myhost duply[2563]:   File "/usr/bin/duplicity", line 1405, in main
    Jan 23 08:47:06 myhost duply[2563]:     do_backup(action)
    Jan 23 08:47:06 myhost duply[2563]:   File "/usr/bin/duplicity", line 1481, in do_backup
    Jan 23 08:47:06 myhost duply[2563]:     globals.gpg_profile.passphrase = get_passphrase(1, action)
    Jan 23 08:47:06 myhost duply[2563]:   File "/usr/bin/duplicity", line 195, in get_passphrase
    Jan 23 08:47:06 myhost duply[2563]:     pass1 = getpass_safe(_("GnuPG passphrase for decryption:") + " ")
    Jan 23 08:47:06 myhost duply[2563]:   File "/usr/bin/duplicity", line 92, in getpass_safe
    Jan 23 08:47:06 myhost duply[2563]:     return getpass.getpass(message)
    Jan 23 08:47:06 myhost duply[2563]:   File "/usr/lib/python2.7/getpass.py", line 83, in unix_getpass
    Jan 23 08:47:06 myhost duply[2563]:     passwd = fallback_getpass(prompt, stream)
    Jan 23 08:47:06 myhost duply[2563]:   File "/usr/lib/python2.7/getpass.py", line 118, in fallback_getpass
    Jan 23 08:47:06 myhost duply[2563]:     return _raw_input(prompt, stream)
    Jan 23 08:47:06 myhost duply[2563]:   File "/usr/lib/python2.7/getpass.py", line 135, in _raw_input
    Jan 23 08:47:06 myhost duply[2563]:     raise EOFError
    Jan 23 08:47:06 myhost duply[2563]:  EOFError
    
     

Log in to post a comment.