Cloudbox / autoscan

Autoscan replaces the default Plex and Emby behaviour for picking up changes on the file system.
MIT License
616 stars 55 forks source link

"ID does not exist from hook" error? #57

Closed imjuzcy closed 3 years ago

imjuzcy commented 3 years ago

Retryable error occurred while syncing drive error="XXXXXXXXXXXXX: performing partial sync: ID does not exist from hook: datastore: data anomaly" attempts=2 drive_id=XXXXXXXXXXXXX drive_name="Shared Drive" trigger=bernard

I'm getting this error for bernard. What does that mean?

config:

  bernard:
    - account: /config/app/sa.json
      cron: "*/5 * * * *" # every five minutes (the "" are important)
      drives:
        - id: XXXXXXXXXXXXX

      # rewrite drive to the local filesystem
      rewrite:
        - from: ^/unencrypted/
          to: /data/m/

      # filter with regular expressions
      include:
        - ^/data/m/tv-shows/
        - ^/data/m/movies/
      exclude:
        - '\.srt$'
m-rots commented 3 years ago

Nothing to worry about! Retry-able errors are, well, retried automatically.

If you want to get specific: Sometimes Google Drive provides incomplete events when Bernard searches for changes in your Shared Drive. Whenever this happens, this error will occur as Bernard tries to have a consistent datastore at all times.

Only when a retry-able error fails multiple times (I believe we have set it to 5 times), then a fatal error will pop up and then you will have to delete your autoscan.db to re-fetch a consistent state of your Shared Drive.