duplicity-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Duplicity-tracker] [sr #106495] bug? incorrect gpg home directory


From: anonymous
Subject: [Duplicity-tracker] [sr #106495] bug? incorrect gpg home directory
Date: Tue, 16 Sep 2008 20:28:08 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

URL:
  <http://savannah.nongnu.org/support/?106495>

                 Summary: bug? incorrect gpg home directory
                 Project: duplicity
            Submitted by: None
            Submitted on: Tue 16 Sep 2008 08:28:05 PM UTC
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I was having trouble using duplicity because gpg was trying to write to a
home directory it did not have permission to write to.  I ran duplicity a few
times as user scmelton to test things out.  It worked out fine then.  
However, when I ran it as the user other_user (a system user with a home
directory), it kept trying to write to /home/scmelton/.gnupg, which the user
other_user doesn't have permissions to do.  

I was finally able to work around this problem by using --gpg-options
"--homedir=/correct/permissions/directory/".  

However, when I ran the program as root directly it knew to put gpg files in
/root/gnupg.  

I suspect it might have something to do with sudo and duplicity.  When I
first log into my server I log in as scmelton, then sudo -i to root, then sudo
to other users as I need to to enter commands.  It might also have to do with
other_user being a system user that I can't actually log in as.

Command that didn't work: 
address@hidden: sudo -u other_user duplicity -v 9 /tmp/stuff/
rsync://address@hidden/test3/ 2>&1 | tee /tmp/output

/tmp/output:
Main action: inc
Reading results of 'rsync address@hidden:test3/'
0 files exist on backend
Extracting backup chains from list of files: []
Collection Status
-----------------
Connecting with backend: RsyncBackend
Archive dir: None

Found 0 backup chains without signatures.
No backup chains with active signatures found
No orphaned or incomplete backup sets found.
Last full backup date: none
PASSPHRASE variable not set, asking user.
No signatures found, switching to full backup.
GnuPG passphrase:
PASSPHRASE variable not set, asking user.
Retype passphrase to confirm:
Using temporary directory /tmp/duplicity-gI_kJB-tempdir
Registering (mktemp) temporary file
/tmp/duplicity-gI_kJB-tempdir/mktemp-tS3DfI-1
AsyncScheduler: instantiating at concurrency 0
Registering (mktemp) temporary file
/tmp/duplicity-gI_kJB-tempdir/mktemp-u0FzHC-2
Selecting /tmp/stuff
Comparing () and None
Getting delta of (() /tmp/stuff dir) and None
Generating delta - new file: .
Selecting /tmp/stuff/blah
Comparing ('blah',) and None
Getting delta of (('blah',) /tmp/stuff/blah reg) and None
Generating delta - new file: blah
gpg: fatal: can't create directory `/home/scmelton/.gnupg': Permission
denied
secmem usage: 0/0 bytes in 0/0 blocks of pool 0/32768
gpg: fatal: can't create directory `/home/scmelton/.gnupg': Permission
denied
secmem usage: 0/0 bytes in 0/0 blocks of pool 0/32768
Removing still remembered temporary file
/tmp/duplicity-gI_kJB-tempdir/mktemp-tS3DfI-1
Removing still remembered temporary file
/tmp/duplicity-gI_kJB-tempdir/mktemp-u0FzHC-2
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 517, in ?
    with_tempdir(main)
  File "/usr/bin/duplicity", line 511, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 502, in main
    full_backup(col_stats)
  File "/usr/bin/duplicity", line 206, in full_backup
    bytes_written = write_multivol("full", tarblock_iter, globals.backend)
  File "/usr/bin/duplicity", line 131, in write_multivol
    globals.gpg_profile,globals.volsize)
  File "/usr/lib/python2.4/site-packages/duplicity/gpg.py", line 217, in
GPGWriteFile
    data = block_iter.next(bytes_to_go).data
  File "/usr/lib/python2.4/site-packages/duplicity/diffdir.py", line 407, in
next
    result = self.process(self.input_iter.next(), size)
  File "/usr/lib/python2.4/site-packages/duplicity/diffdir.py", line 284, in
get_delta_iter_w_sig
    sigTarFile.close()
  File "/usr/lib/python2.4/site-packages/duplicity/tarfile.py", line 508, in
close
    self.fileobj.write("\0" * (RECORDSIZE - remainder))
  File "/usr/lib/python2.4/site-packages/duplicity/dup_temp.py", line 101, in
write
    return self.fileobj.write(buf)
  File "/usr/lib/python2.4/site-packages/duplicity/gpg.py", line 125, in
write
    return self.gpg_input.write(buf)
IOError: [Errno 32] Broken pipe
close failed: [Errno 32] Broken pipe





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/support/?106495>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]