Menu

[ERROR ] Command 'snapraid scrub' returned non-zero exit status 1

Help
Kevin Ong
2020-04-22
2020-04-25
  • Kevin Ong

    Kevin Ong - 2020-04-22

    So I'm running Snapraid every 4:00 AM in the morning and this is the first time I had this error:

    Error during SnapRAID job:
    
    
    2020-04-22 04:00:01,871 [INFO  ] ============================================================
    2020-04-22 04:00:01,874 [INFO  ] Run started
    2020-04-22 04:00:01,874 [INFO  ] ============================================================
    2020-04-22 04:00:01,874 [INFO  ] Running diff...
    2020-04-22 04:00:06,473 [INFO  ] ************************************************************
    2020-04-22 04:00:06,474 [INFO  ] Diff results: 5 added,  3 removed,  0 moved,  8 modified
    2020-04-22 04:00:06,474 [INFO  ] Running sync...
    2020-04-22 04:01:24,483 [INFO  ] ************************************************************
    2020-04-22 04:01:24,483 [INFO  ] Running scrub...
    2020-04-22 04:01:28,799 [OUTERR] Missing file '/mnt/disk1/shows/The Neighborhood (2018)/Season 01/The Neighborhood (2018) - S01E11 - Welcome to the Fundraiser - [WEBDL-720p] [EAC3 5.1ch] [h264 8bit] - NTb.en.srt'.
    2020-04-22 04:12:36,274 [OUTERR] WARNING! Unexpected file errors!
    2020-04-22 04:12:48,410 [ERROR ] Command 'snapraid scrub' returned non-zero exit status 1
    

    I expected that srt file to really be gone from my system. And when I remove files before snapraid runs I usually don't have any issues. It just tells me that in the diff results but the scrub pushes through.

    What does this specifically mean? If I had to guess, would it be possible that that srt was deleted after snapraid run the scheduled 'sync' and before the 'scrub'? Coincidence?

     
  • Walter Tuppa

    Walter Tuppa - 2020-04-22

    snapraid scrub checks, that all files are correct bz using a has over each file. The files to check are read from the snapraid.content file. Since you removed the file, snapraid complains, since the checksum is wrong for sure.
    you will have to run snapraid sync in advance to solve this problem. It is no problem for added files, since they are not in the snapraid.content file.

     
  • Kevin Ong

    Kevin Ong - 2020-04-25

    If you check the logs again, the sync was run before the scrub. So the sync should've picked up on that deletion already, why did it not?

     
  • Walter Tuppa

    Walter Tuppa - 2020-04-25

    what does snapraid diff says now. still some deleted files?
    do you have the output of sync and scrub available?
    maybe you are right, that the srt file was deleted after ´sync was already started...

     
  • Kevin Ong

    Kevin Ong - 2020-04-25
    4290 equal
       2 added
       2 removed
       1 updated
       0 moved
       0 copied
       0 restored
    

    There are differences!

    But I don't think this is accurate because I have snapraid-runner scheduled every day so the next sync that happened after I've reported this issue already synced that deleted file so that scrub won't detect it being gone.

     

Log in to post a comment.

MongoDB Logo MongoDB