fsck now terminates with UNIQUE constraint failed: contents.parent_inode, 
contents.name_id

Running version 3.3.2
Server crashed while mounted.
Reboorted and needed fsck
fsck reported that 
ERROR: Local metadata is corrupted. Remove or repair the following files 
manually and re-run fsck:
...2 files listed...

Deleted those two files.

Re-ran fsck; the following is the log:

```Starting fsck of s3://ap-southeast-2/pjwcloudbackup/olympus
Backend reports that file system is still mounted elsewhere. Either
the file system has not been unmounted cleanly or the data has not yet
propagated through the backend. In the later case, waiting for a while
should fix the problem, in the former case you should try to run fsck
on the computer where the file system has been mounted most recently.
You may also continue and use whatever metadata is available in the
backend. However, in that case YOU MAY LOOSE ALL DATA THAT HAS BEEN
UPLOADED OR MODIFIED SINCE THE LAST SUCCESSFULL METADATA UPLOAD.
Moreover, files and directories that you have deleted since then MAY
REAPPEAR WITH SOME OF THEIR CONTENT LOST.
Enter "continue, I know what I am doing" to use the outdated data anyway:
continue, I know what I am doing
Downloading and decompressing metadata...
Reading metadata...
..objects..
..blocks..
..inodes..
..inode_blocks..
..symlink_targets..
..names..
..contents..
> ERROR: Uncaught top-level exception:
Traceback (most recent call last):
  File "src/s3ql/deltadump.pyx", line 531, in s3ql.deltadump.load_table
  File "src/s3ql/deltadump.pyx", line 186, in s3ql.deltadump.SQLITE_CHECK_RC
apsw.ConstraintError: UNIQUE constraint failed: contents.parent_inode, 
contents.name_id

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/fsck.s3ql", line 11, in <module>
    load_entry_point('s3ql==3.3.2', 'console_scripts', 'fsck.s3ql')()
  File 
"/usr/lib64/python3.6/site-packages/s3ql-3.3.2-py3.6-linux-x86_64.egg/s3ql/fsck.py",
 
line 1263, in main
    db = download_metadata(backend, cachepath + '.db')
  File 
"/usr/lib64/python3.6/site-packages/s3ql-3.3.2-py3.6-linux-x86_64.egg/s3ql/metadata.py",
 
line 307, in download_metadata
    return restore_metadata(tmpfh, db_file)
  File 
"/usr/lib64/python3.6/site-packages/s3ql-3.3.2-py3.6-linux-x86_64.egg/s3ql/metadata.py",
 
line 97, in restore_metadata
    load_table(table, columns, db=db, fh=fh)
  File "src/s3ql/deltadump.pyx", line 427, in s3ql.deltadump.load_table
  File "/usr/lib64/python3.6/contextlib.py", line 380, in __exit__
    raise exc_details[1]
  File "/usr/lib64/python3.6/contextlib.py", line 365, in __exit__
    if cb(*exc_details):
  File "/usr/lib64/python3.6/contextlib.py", line 314, in _exit_wrapper
    callback(*args, **kwds)
  File "src/s3ql/deltadump.pyx", line 473, in 
s3ql.deltadump.load_table.lambda11
  File "src/s3ql/deltadump.pyx", line 186, in s3ql.deltadump.SQLITE_CHECK_RC
apsw.ConstraintError: UNIQUE constraint failed: contents.parent_inode, 
contents.name_id
```


Any help would be apreciated, since I clearly lied and have no idea what 
I'm doing.

-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to s3ql+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/s3ql/0337b080-be29-4cff-bbff-d7bb64165d1a%40googlegroups.com.

Reply via email to