"Error: Permission denied" when listing other file system

Bug #624320 reported by Mark Preston
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Déjà Dup
Expired
Undecided
Unassigned

Bug Description

DD reported:

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1239, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1232, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1133, in main
    sync_archive()
  File "/usr/bin/duplicity", line 910, in sync_archive
    remlist = globals.backend.list()
  File "/usr/lib/python2.6/dist-packages/duplicity/backends/giobackend.py", line 127, in list
    gio.FILE_QUERY_INFO_NOFOLLOW_SYMLINKS)
Error: Permission denied

============

/tmp/deja-dup.log is,

** (deja-dup:7565): DEBUG: DuplicityInstance.vala:199: Running the following duplicity (7590) command: duplicity collection-status --exclude=/media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2 --exclude=/home/mark/Videos --exclude=/home/mark/Music --exclude=/home/mark/.local/share/Trash --exclude=/home/mark/.Private --exclude=/home/mark/.recent-applications.xbel --exclude=/home/mark/.recently-used.xbel --exclude=/home/mark/.xsession-errors --exclude=/home/mark/.gvfs --exclude=/home/mark/.thumbnails --exclude=/home/mark/.cache --include=/home/mark --exclude=/media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2 --exclude=/media/5D4BA9C552965F1C --exclude=/sys --exclude=/proc --exclude=/tmp --exclude=** --gio --no-encryption file:///media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2 --verbosity=9 --gpg-options= --archive-dir=/home/mark/.cache/deja-dup --log-file=/tmp/deja-dup-3I92HV

** (deja-dup:7565): DEBUG: DuplicityInstance.vala:552: duplicity (7590) exited with value 30

DUPLICITY: INFO 1
DUPLICITY: . Using archive dir: /home/mark/.cache/deja-dup/a93802cd0024025b544528a592d0d0ef

DUPLICITY: INFO 1
DUPLICITY: . Using backup name: a93802cd0024025b544528a592d0d0ef

DUPLICITY: INFO 1
DUPLICITY: . Import of duplicity.backends.ftpbackend Succeeded

DUPLICITY: INFO 1
DUPLICITY: . Import of duplicity.backends.botobackend Succeeded

DUPLICITY: INFO 1
DUPLICITY: . Import of duplicity.backends.hsibackend Succeeded

DUPLICITY: INFO 1
DUPLICITY: . Import of duplicity.backends.cloudfilesbackend Succeeded

DUPLICITY: INFO 1
DUPLICITY: . Import of duplicity.backends.giobackend Succeeded

DUPLICITY: INFO 1
DUPLICITY: . Import of duplicity.backends.rsyncbackend Succeeded

DUPLICITY: INFO 1
DUPLICITY: . Import of duplicity.backends.tahoebackend Succeeded

DUPLICITY: INFO 1
DUPLICITY: . Import of duplicity.backends.sshbackend Succeeded

DUPLICITY: INFO 1
DUPLICITY: . Import of duplicity.backends.localbackend Succeeded

DUPLICITY: INFO 1
DUPLICITY: . Import of duplicity.backends.imapbackend Succeeded

DUPLICITY: INFO 1
DUPLICITY: . Import of duplicity.backends.webdavbackend Succeeded

DUPLICITY: INFO 1
DUPLICITY: . Main action: collection-status

DUPLICITY: INFO 1
DUPLICITY: . ================================================================================

DUPLICITY: INFO 1
DUPLICITY: . duplicity 0.6.08b (March 11, 2010)

DUPLICITY: INFO 1
DUPLICITY: . Args: /usr/bin/duplicity collection-status --exclude=/media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2 --exclude=/home/mark/Videos --exclude=/home/mark/Music --exclude=/home/mark/.local/share/Trash --exclude=/home/mark/.Private --exclude=/home/mark/.recent-applications.xbel --exclude=/home/mark/.recently-used.xbel --exclude=/home/mark/.xsession-errors --exclude=/home/mark/.gvfs --exclude=/home/mark/.thumbnails --exclude=/home/mark/.cache --include=/home/mark --exclude=/media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2 --exclude=/media/5D4BA9C552965F1C --exclude=/sys --exclude=/proc --exclude=/tmp --exclude=** --gio --no-encryption file:///media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2 --verbosity=9 --gpg-options= --archive-dir=/home/mark/.cache/deja-dup --log-file=/tmp/deja-dup-3I92HV

DUPLICITY: INFO 1
DUPLICITY: . Linux Lexington-19-Karmic 2.6.34-020634-generic #020634 SMP Mon May 17 20:34:55 UTC 2010 i686

DUPLICITY: INFO 1
DUPLICITY: . /usr/bin/python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
DUPLICITY: . [GCC 4.4.3]

DUPLICITY: INFO 1
DUPLICITY: . ================================================================================

DUPLICITY: INFO 1
DUPLICITY: . Using temporary directory /tmp/duplicity-Tzd15C-tempdir

DUPLICITY: ERROR 30 Error
DUPLICITY: . Traceback (most recent call last):
DUPLICITY: . File "/usr/bin/duplicity", line 1239, in <module>
DUPLICITY: . with_tempdir(main)
DUPLICITY: . File "/usr/bin/duplicity", line 1232, in with_tempdir
DUPLICITY: . fn()
DUPLICITY: . File "/usr/bin/duplicity", line 1133, in main
DUPLICITY: . sync_archive()
DUPLICITY: . File "/usr/bin/duplicity", line 910, in sync_archive
DUPLICITY: . remlist = globals.backend.list()
DUPLICITY: . File "/usr/lib/python2.6/dist-packages/duplicity/backends/giobackend.py", line 127, in list
DUPLICITY: . gio.FILE_QUERY_INFO_NOFOLLOW_SYMLINKS)
DUPLICITY: . Error: Permission denied
DUPLICITY: .

========================
 gconftool-2 --dump /apps/deja-dup > /tmp/deja-dup.gconf

shows:

<gconfentryfile>
  <entrylist base="/apps/deja-dup">
    <entry>
      <key>backend</key>
      <schema_key>/schemas/apps/deja-dup/backend</schema_key>
      <value>
        <string>file</string>
      </value>
    </entry>
    <entry>
      <key>delete-after</key>
      <schema_key>/schemas/apps/deja-dup/delete-after</schema_key>
      <value>
        <int>7</int>
      </value>
    </entry>
    <entry>
      <key>encrypt</key>
      <schema_key>/schemas/apps/deja-dup/encrypt</schema_key>
      <value>
        <bool>false</bool>
      </value>
    </entry>
    <entry>
      <key>exclude-list</key>
      <schema_key>/schemas/apps/deja-dup/exclude-list</schema_key>
      <value>
        <list type="string">
            <value>
              <string>/home/mark/.local/share/Trash</string>
            </value>
            <value>
              <string>/media/5D4BA9C552965F1C</string>
            </value>
            <value>
              <string>/media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2</string>
            </value>
            <value>
              <string>/home/mark/Music</string>
            </value>
            <value>
              <string>/home/mark/Videos</string>
            </value>
        </list>
      </value>
    </entry>
    <entry>
      <key>include-list</key>
      <schema_key>/schemas/apps/deja-dup/include-list</schema_key>
      <value>
        <list type="string">
            <value>
              <string>/home/mark</string>
            </value>
        </list>
      </value>
    </entry>
    <entry>
      <key>last-run</key>
      <schema_key>/schemas/apps/deja-dup/last-run</schema_key>
      <value>
        <string>2010-08-16T00:51:52.549299Z</string>
      </value>
    </entry>
    <entry>
      <key>periodic</key>
      <schema_key>/schemas/apps/deja-dup/periodic</schema_key>
      <value>
        <bool>false</bool>
      </value>
    </entry>
    <entry>
      <key>periodic-period</key>
      <schema_key>/schemas/apps/deja-dup/periodic-period</schema_key>
      <value>
        <int>7</int>
      </value>
    </entry>
    <entry>
      <key>root-prompt</key>
      <schema_key>/schemas/apps/deja-dup/root-prompt</schema_key>
      <value>
        <bool>true</bool>
      </value>
    </entry>
    <entry>
      <key>file/icon</key>
      <schema_key>/schemas/apps/deja-dup/file/icon</schema_key>
      <value>
        <string>. GThemedIcon drive-harddisk-usb drive-harddisk drive</string>
      </value>
    </entry>
    <entry>
      <key>file/name</key>
      <schema_key>/schemas/apps/deja-dup/file/name</schema_key>
      <value>
        <string>152 GB Filesystem</string>
      </value>
    </entry>
    <entry>
      <key>file/path</key>
      <schema_key>/schemas/apps/deja-dup/file/path</schema_key>
      <value>
        <string>/media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2</string>
      </value>
    </entry>
    <entry>
      <key>file/relpath</key>
      <schema_key>/schemas/apps/deja-dup/file/relpath</schema_key>
      <value>
        <string></string>
      </value>
    </entry>
    <entry>
      <key>file/short_name</key>
      <schema_key>/schemas/apps/deja-dup/file/short_name</schema_key>
      <value>
        <string>152 GB Filesystem</string>
      </value>
    </entry>
    <entry>
      <key>file/type</key>
      <schema_key>/schemas/apps/deja-dup/file/type</schema_key>
      <value>
        <string>normal</string>
      </value>
    </entry>
    <entry>
      <key>file/uuid</key>
      <schema_key>/schemas/apps/deja-dup/file/uuid</schema_key>
      <value>
        <string>2323a609-2d93-4b52-aaa5-9b0bb0fab7e2</string>
      </value>
    </entry>
    <entry>
      <key>s3/bucket</key>
      <schema_key>/schemas/apps/deja-dup/s3/bucket</schema_key>
    </entry>
    <entry>
      <key>s3/folder</key>
      <schema_key>/schemas/apps/deja-dup/s3/folder</schema_key>
      <value>
        <string>/</string>
      </value>
    </entry>
    <entry>
      <key>s3/id</key>
      <schema_key>/schemas/apps/deja-dup/s3/id</schema_key>
    </entry>
  </entrylist>
</gconfentryfile>

======================

dpkg-query -W deja-dup duplicity

deja-dup 14.1-0ubuntu0.1
duplicity 0.6.08b-0ubuntu2

===============

lsb_release -d

Description: Ubuntu 10.04.1 LTS

Revision history for this message
Michael Terry (mterry) wrote :

"Permission denied". Can you create a folder on the target device normally using the file manager?

Revision history for this message
Mark Preston (emarkpreston) wrote : RE: [Bug 624320] Re: Traceback on Deja Dup line 1239, 1232, 1133, 910

Yes, I can create a folder. And I put a .jpg in it, then deleted the .jpg. Then I shift-deleted the folder. All seems OK there.

> Date: Tue, 7 Sep 2010 21:35:19 +0000
> From: <email address hidden>
> To: <email address hidden>
> Subject: [Bug 624320] Re: Traceback on Deja Dup line 1239, 1232, 1133, 910
>
> "Permission denied". Can you create a folder on the target device
> normally using the file manager?
>
> --
> Traceback on Deja Dup line 1239, 1232, 1133, 910
> https://bugs.launchpad.net/bugs/624320
> You received this bug notification because you are a direct subscriber
> of the bug.

Revision history for this message
Michael Terry (mterry) wrote : Re: Traceback on Deja Dup line 1239, 1232, 1133, 910

Well, the error is relatively clear. GIO gave a "permission denied" error while essentially executing:

ls /media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2

So... Why? When your external drive is mounted, I assume that folder is safely listable. But when it's not mounted, I assume the folder is owned by root and can't be listed. Is that right?

I notice that your file/type setting is "normal" instead of "volume" like I would expect. Did you ever manually edit that?

Changed in deja-dup:
status: New → Incomplete
summary: - Traceback on Deja Dup line 1239, 1232, 1133, 910
+ "Error: Permission denied" when listing other file system
Revision history for this message
Mark Preston (emarkpreston) wrote :

I apologize for having to ask, but:

I have no idea of how to determine the permission (of a device) whether mounted or unmounted. That's way beyond my geek-eee-ness. Please help.

As for "normal" vs. "volume" I didn't knowingly change this. That drive was formatted using GParted. As it is an external drive, I felt save in changing the file system, etc. without being in LiveCD mode. That is, I formatted the external drive while Ubuntu was running.

Again, I'm sorry for not being able to offer more help.

Revision history for this message
Michael Terry (mterry) wrote :

> I have no idea of how to determine the permission (of a device) whether mounted or unmounted.
> That's way beyond my geek-eee-ness. Please help.

What I'd like to see is the result of:

ls -ld /media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2

and

ls -l /media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2

after you unmount the drive.

Revision history for this message
Mark Preston (emarkpreston) wrote : Re: [Bug 624320] Re: "Error: Permission denied" when listing other file system

Thank you for your thought about me problems. About 1 month ago, I blew
up my OS (Natty). I had to do a re-install and no longer have a device
with the name you ask about.

Terminal output of ls /media is:

256-MEG 5c9a6ed1-2994-4549-b87c-735f94f1cb55 8-GIG TV

Will there be a time when DejaDup will preserve file and extended file
attributes in a backup? After blowing up my OS, I made a TAR of
the /home. On the reinstall of the replacement Natty, however, no
restore was required. Ubuntu found all the configs, and other settings
so other than re-installing Adobe Reader and other lost apps, it was all
working as before. It just gets better and better.

Thanks for your time and effort and let me know if I can help the Deja
project. I still like the program.

On Thu, 2011-06-16 at 02:22 +0000, Michael Terry wrote:
> > I have no idea of how to determine the permission (of a device) whether mounted or unmounted.
> > That's way beyond my geek-eee-ness. Please help.
>
> What I'd like to see is the result of:
>
> ls -ld /media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2
>
> and
>
> ls -l /media/2323a609-2d93-4b52-aaa5-9b0bb0fab7e2
>
> after you unmount the drive.
>

Revision history for this message
Michael Terry (mterry) wrote :

Deja Dup should already be preserving file attributes.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Déjà Dup because there has been no activity for 60 days.]

Changed in deja-dup:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.