Sqlite3: Sleeping for 200ms to retry busy DB

Hi, I am running rclone in docker and working fine but with one issue which I notice from time to time. I get these errors when I click on Scan Library Files in Plex (doesn't happen all the time but randomly). I am not sure how to avoid it as I couldn't find a solution.

* today at 07:42 Starting Plex Media Server.
* today at 07:42 [services.d] done.
* today at 10:07 Sqlite3: Sleeping for 200ms to retry busy DB.
* today at 10:07 Sqlite3: Sleeping for 200ms to retry busy DB.
* today at 10:07 Sqlite3: Sleeping for 200ms to retry busy DB.
* today at 10:07 Sqlite3: Sleeping for 200ms to retry busy DB.
* today at 10:07 Sqlite3: Sleeping for 200ms to retry busy DB.

This is my compose

  rclone:
    image: ghcr.io/hotio/rclone:release
    hostname: ${DOCKERHOSTNAME}
    container_name: rclone
    environment:
      - RCLONE_CONFIG=/config/rclone.conf
    security_opt:
      - apparmor:unconfined
    cap_add:
      - SYS_ADMIN
    devices:
      - /dev/fuse
    logging:
      driver: json-file
      options:
        max-file: ${DOCKERLOGGING_MAXFILE}
        max-size: ${DOCKERLOGGING_MAXSIZE}
    restart: unless-stopped
    volumes:
      - /mnt/gdrive:/mnt/gdrive:shared
      - ${DOCKERCONFDIR}/rclone:/config
    command: mount "gdrive:"  "/mnt/gdrive" --allow-other --uid "1000" --gid "1000" --umask "022" --rc --rc-addr localhost:5572 --rc-no-auth --drive-skip-gdocs --fast-list --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 2048M --buffer-size 64M --poll-interval 1m --dir-cache-time 168h --timeout 10m --drive-chunk-size 64M

I am not sure adding this will help me out or not --vfs-cache-mode full or something else you guys recommend.

Thank you

That error means your plex is busy and not a rclone item.

Some examples:

Thank you so much for the response. Much appreciated.

I thought it was due to rclone settings :slight_smile: apologise.

I have Samsung 850 Pro 1TB and its not like these errors are continuously turn up after every refresh. Its just random e.g. if I refresh tomorrow then it will be okay and might comes up again after few days.

But definitely not related to rclone. So I am not sure how but is it possible to mark this as closed :slight_smile:

Just to improve my current setup. Can I ask, vfs-cache-mode full will give any benefit how my current configurations are setup. (Generally asking and nothing to do with sqlite issue). Thank you

When I last tested running sqlite3 on an rclone mount, I had to use some kind of cache. But, FWIW, while it may work, SQLite is, in my opinion, an anti-example for rclone. Cloud storage is, by definition, immutable (or treated as such by rclone). That means its good for files that do not change much. But sqlite3 is constantly changing.

Don't get me wrong. It clearly works (assuming Plex uses it. I don't know for sure). But it's a tough use-case.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.