Skip to content

attic list bombs with "ValueError: year is out of range" #139

@fukawi2

Description

@fukawi2

I'm trying to use attic to dump our design department NAS to our backup server. I have mounted the NAS over CIFS with the read-only option, and the dump ran fine (amazing compression/dedupe too; ~800gb resulted in a repo under 160gb!)

When I try to list the archive, I get this:

# attic list /bup/cobian/test-nas-dsn.attic::1416970025
drwxrwxrwx 171968813 171966977        0 Nov 25 10:32 mnt/nas-dsn1/WIP
-rw-rw-r-- 171968813 171966977    10244 Nov 14 09:06 mnt/nas-dsn1/WIP/.DS_Store
drwxrwxrwx 171968813 171966977        0 Jun 30 10:05 mnt/nas-dsn1/WIP/.TemporaryItems
<snipped about 30 files from here>
drwxrwxrwx 171968813 171966977        0 Mar 13  2012 mnt/nas-dsn1/WIP/Artwork Master Files/8. Reference
-rwxrwxrwx 171968813 171966977     6148 Mar 13  2012 mnt/nas-dsn1/WIP/Artwork Master Files/8. Reference/.DS_Store
Traceback (most recent call last):
  File "/root/build/prefix/lib/python3.4/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module>
  File "prefix/bin/attic", line 3, in <module>
  File "/root/build/prefix/lib/python3.4/site-packages/attic/archiver.py", line 715, in main
  File "/root/build/prefix/lib/python3.4/site-packages/attic/archiver.py", line 705, in run
  File "/root/build/prefix/lib/python3.4/site-packages/attic/archiver.py", line 275, in do_list
ValueError: year is out of range

It appears to be caused by this directory:

drwxrwxrwx 2 171968813 171966977 0 May 28 60056 BRIGHTON

I'm not sure exactly how the hell this folder has ended up with the year 60056 (goddam Apple!) and is something else I'll have to investigate, but not sure if there's a more graceful way attic could handle this? As it stands, I don't think I'll be able to restore from this archive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions