On successful backup duplicity exits with status 1

Bug #1691508 reported by Emmanuele Massimi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

Hi,

Duplicity: 0.7.12
OS: CentOS 5
Python: 2.6.8

I have set up duplicity to clear old files after it runs successfully, however I have noticed that even though the output doesn't show any errors, the exit status is always 1. Here is some sample output from my script (which basically reports the duplicity output and the exit status):

--- BEGIN ---

Reading globbing filelist /root/.duplicity/filelist.txt
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Sun May 7 06:37:20 2017
--------------[ Backup Statistics ]--------------
StartTime 1494998734.76 (Wed May 17 05:25:34 2017)
EndTime 1495005102.95 (Wed May 17 07:11:42 2017)
ElapsedTime 6368.19 (1 hour 46 minutes 8.19 seconds)
SourceFiles 2641072
SourceFileSize 5275317088344 (4.80 TB)
NewFiles 6
NewFileSize 98422 (96.1 KB)
DeletedFiles 0
ChangedFiles 12
ChangedFileSize 1381905357 (1.29 GB)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 18
RawDeltaSize 196055937 (187 MB)
TotalDestinationSizeChange 193748334 (185 MB)
Errors 0
-------------------------------------------------

Exit status: 1

--- END ---

As you can see, there are 0 reported errors, however the exit status is still 1. Due to this, old files are never actually removed, and I need to do that operation manually. This doesn't look like the intended behaviour, hence I'm reporting this as a bug.

Thank you for you time.

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote : Re: [Bug 1691508] [NEW] On successful backup duplicity exits with status 1
Download full text (3.5 KiB)

What is the command line?

On Wed, May 17, 2017 at 11:14 AM, Emmanuele Massimi <email address hidden>
wrote:

> Public bug reported:
>
> Hi,
>
> Duplicity: 0.7.12
> OS: CentOS 5
> Python: 2.6.8
>
> I have set up duplicity to clear old files after it runs successfully,
> however I have noticed that even though the output doesn't show any
> errors, the exit status is always 1. Here is some sample output from my
> script (which basically reports the duplicity output and the exit
> status):
>
> --- BEGIN ---
>
> Reading globbing filelist /root/.duplicity/filelist.txt
> Local and Remote metadata are synchronized, no sync needed.
> Last full backup date: Sun May 7 06:37:20 2017
> --------------[ Backup Statistics ]--------------
> StartTime 1494998734.76 (Wed May 17 05:25:34 2017)
> EndTime 1495005102.95 (Wed May 17 07:11:42 2017)
> ElapsedTime 6368.19 (1 hour 46 minutes 8.19 seconds)
> SourceFiles 2641072
> SourceFileSize 5275317088344 (4.80 TB)
> NewFiles 6
> NewFileSize 98422 (96.1 KB)
> DeletedFiles 0
> ChangedFiles 12
> ChangedFileSize 1381905357 (1.29 GB)
> ChangedDeltaSize 0 (0 bytes)
> DeltaEntries 18
> RawDeltaSize 196055937 (187 MB)
> TotalDestinationSizeChange 193748334 (185 MB)
> Errors 0
> -------------------------------------------------
>
> Exit status: 1
>
> --- END ---
>
> As you can see, there are 0 reported errors, however the exit status is
> still 1. Due to this, old files are never actually removed, and I need
> to do that operation manually. This doesn't look like the intended
> behaviour, hence I'm reporting this as a bug.
>
> Thank you for you time.
>
> ** Affects: duplicity
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> Duplicity.
> https://bugs.launchpad.net/bugs/1691508
>
> Title:
> On successful backup duplicity exits with status 1
>
> Status in Duplicity:
> New
>
> Bug description:
> Hi,
>
> Duplicity: 0.7.12
> OS: CentOS 5
> Python: 2.6.8
>
> I have set up duplicity to clear old files after it runs successfully,
> however I have noticed that even though the output doesn't show any
> errors, the exit status is always 1. Here is some sample output from
> my script (which basically reports the duplicity output and the exit
> status):
>
> --- BEGIN ---
>
> Reading globbing filelist /root/.duplicity/filelist.txt
> Local and Remote metadata are synchronized, no sync needed.
> Last full backup date: Sun May 7 06:37:20 2017
> --------------[ Backup Statistics ]--------------
> StartTime 1494998734.76 (Wed May 17 05:25:34 2017)
> EndTime 1495005102.95 (Wed May 17 07:11:42 2017)
> ElapsedTime 6368.19 (1 hour 46 minutes 8.19 seconds)
> SourceFiles 2641072
> SourceFileSize 5275317088344 (4.80 TB)
> NewFiles 6
> NewFileSize 98422 (96.1 KB)
> DeletedFiles 0
> ChangedFiles 12
> ChangedFileSize 1381905357 (1.29 GB)
> ChangedDeltaSize 0 (0 bytes)
> DeltaEntries 18
> RawDeltaSize 196055937 (187 MB)
> TotalDestinationSizeChange 193748334 (185 MB)
> Errors 0
> -------------------------------------------------
>
> Exit status: 1
>
> --- END ---
>
> As you can see, there are 0 reported err...

Read more...

Revision history for this message
Emmanuele Massimi (finferflu-b) wrote :

The command line is as follows:

duplicity \
    --timeout=50000 \
    --no-encryption \
    --verbosity notice \
    --archive-dir=/home/.cache/duplicity \
    --tempdir=/home/.tmp/duplicity \
    --include-filelist /root/.duplicity/filelist.txt \
    --log-file /root/.duplicity/notice.log

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

What schema do you use? You left out the source and target on the command line.

Revision history for this message
Emmanuele Massimi (finferflu-b) wrote :

Oops, sorry about that, here's the full command:

duplicity \
    --timeout=50000 \
    --no-encryption \
    --verbosity notice \
    --archive-dir=/home/.cache/duplicity \
    --tempdir=/home/.tmp/duplicity \
    --include-filelist /root/.duplicity/filelist.txt \
    --log-file /root/.duplicity/notice.log \
    --full-if-older-than 30D \
    --asynchronous-upload \
    --gpg-options '-z 3' \
    --volsize=750 \
    / /home

Revision history for this message
Emmanuele Massimi (finferflu-b) wrote :

Would you be able to tell me whether this issue has been confirmed? Thank you very much!

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

No, not confirmed yet.

Would you look to see if any errors were logged? Perhaps attach it?

Does your include filelist include /dev or /proc? Willing to attach it?

Revision history for this message
Emmanuele Massimi (finferflu-b) wrote :

Unfortunately, there is nothing relevant in my notice.log; all I've got is the error I've pasted in the original bug report.

As for the filelist.txt file:

+ /etc
+ /var/spool/cron
- /data/.tmp
- /data/.cache
- **cache/**
- **log/**
- **logs/**
- /data/home/www.domain.tld (there's a bunch of entries like that)
+ /data
- /home/user
+ /home
- **

Thanks again for your assistance.

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

I believe this is fixed in the trunk now.

Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.7.14
status: New → Fix Committed
Revision history for this message
Emmanuele Massimi (finferflu-b) wrote :

Thanks for that! I will confirm it is fixed once it is released.

Changed in duplicity:
status: Fix Committed → Fix Released
Revision history for this message
Emmanuele Massimi (finferflu-b) wrote :

Thanks for releasing the fix. I am going to test this and will report back.

Revision history for this message
Emmanuele Massimi (finferflu-b) wrote :

I have installed version 0.7.14 on that same server, and unfortunately, I've been experiencing the same buggy behaviour as before for several days. So I'm afraid the fix didn't solve my issue.

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

Do you have any error messages at all? I fixed the one case I could find, but I guess I missed something.

Changed in duplicity:
milestone: 0.7.14 → 0.7.15
status: Fix Released → In Progress
assignee: nobody → Kenneth Loafman (kenneth-loafman)
Revision history for this message
Emmanuele Massimi (finferflu-b) wrote :

Unfortunately, all I have is all I've provided so far: there's nothing new in terms of behaviour or output.

Changed in duplicity:
milestone: 0.7.15 → 0.7.16
Changed in duplicity:
milestone: 0.7.16 → none
milestone: none → 0.7.17
Changed in duplicity:
milestone: 0.7.17 → none
Revision history for this message
Emmanuele Massimi (finferflu-b) wrote :

Hi,

Could you please let me know what this change in the milestone means? Will this issue no longer be addressed in future releases?

Thank you.

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote : Re: [Bug 1691508] Re: On successful backup duplicity exits with status 1

It just means that I'm moving it. I needed to get these changes out and
the release could not wait on the rest of the bugs.

On Mon, Feb 26, 2018 at 11:01 AM, Emmanuele Massimi <email address hidden>
wrote:

> Hi,
>
> Could you please let me know what this change in the milestone means?
> Will this issue no longer be addressed in future releases?
>
> Thank you.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1691508
>
> Title:
> On successful backup duplicity exits with status 1
>
> Status in Duplicity:
> In Progress
>
> Bug description:
> Hi,
>
> Duplicity: 0.7.12
> OS: CentOS 5
> Python: 2.6.8
>
> I have set up duplicity to clear old files after it runs successfully,
> however I have noticed that even though the output doesn't show any
> errors, the exit status is always 1. Here is some sample output from
> my script (which basically reports the duplicity output and the exit
> status):
>
> --- BEGIN ---
>
> Reading globbing filelist /root/.duplicity/filelist.txt
> Local and Remote metadata are synchronized, no sync needed.
> Last full backup date: Sun May 7 06:37:20 2017
> --------------[ Backup Statistics ]--------------
> StartTime 1494998734.76 (Wed May 17 05:25:34 2017)
> EndTime 1495005102.95 (Wed May 17 07:11:42 2017)
> ElapsedTime 6368.19 (1 hour 46 minutes 8.19 seconds)
> SourceFiles 2641072
> SourceFileSize 5275317088344 (4.80 TB)
> NewFiles 6
> NewFileSize 98422 (96.1 KB)
> DeletedFiles 0
> ChangedFiles 12
> ChangedFileSize 1381905357 (1.29 GB)
> ChangedDeltaSize 0 (0 bytes)
> DeltaEntries 18
> RawDeltaSize 196055937 (187 MB)
> TotalDestinationSizeChange 193748334 (185 MB)
> Errors 0
> -------------------------------------------------
>
> Exit status: 1
>
> --- END ---
>
> As you can see, there are 0 reported errors, however the exit status
> is still 1. Due to this, old files are never actually removed, and I
> need to do that operation manually. This doesn't look like the
> intended behaviour, hence I'm reporting this as a bug.
>
> Thank you for you time.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/duplicity/+bug/1691508/+subscriptions
>

Revision history for this message
Emmanuele Massimi (finferflu-b) wrote :

Makes perfect sense. Thanks for clearing it up!

Changed in duplicity:
status: In Progress → Fix Released
assignee: Kenneth Loafman (kenneth-loafman) → nobody
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.