Skip to content

[BUG] SMB shares have to be remounted in order to create a successful backup #695

@mfreu

Description

@mfreu

Prerequisites

Rclone Pre-flight Checklist (if applicable)

  • This issue is NOT related to rclone (skip if not using rclone)
  • I have tested rclone listremotes and rclone lsd remote: on the host and they work
  • I have verified the rclone config is mounted into the container
  • I have restarted the container after config changes

Bug Description

After getting the error message from restic in the GUI - there seems to be a problem with smb shares. A SMB share on my UNRAID nas shows a strange behavior during backup. It seems that zerobyte somehow loses the SMB connection. Because I'm getting this error during backup:

{"message_type":"error","error":{"message":"lstat /var/lib/zerobyte/volumes/8NWb15R8/_data: stale file handle"},"during":"scan","item":"/var/lib/zerobyte/volumes/8NWb15R8/_data"}
{"message_type":"error","error":{"message":"lstat /var/lib/zerobyte/volumes/8NWb15R8/_data: stale file handle"},"during":"archival","item":"/var/lib/zerobyte/volumes/8NWb15R8/_data"}
{"message_type":"exit_error","code":3,"message":"Warning: at least one source file could not be read"}

When I unmount and mount the volume again - I can backup the volume without any issues...

Steps to Reproduce

  1. Create a SMB Share to read from
  2. Create a backup-task
  3. Schedule a backup
  4. Wait for a specific amount of time (here 1 day is enough)
  5. The backup task will fail. Even when I start it using the GUI. Same error message. Only Unmount and Mount volume helps.

Expected Behavior

Backup will succeed without having to unmount and mount the smb share again.

Zerobyte version / commit

0.32.2

Deployment Method

Docker

Backup/Repository Context

No response

Logs / Error Messages

{"message_type":"error","error":{"message":"lstat /var/lib/zerobyte/volumes/8NWb15R8/_data: stale file handle"},"during":"scan","item":"/var/lib/zerobyte/volumes/8NWb15R8/_data"}
{"message_type":"error","error":{"message":"lstat /var/lib/zerobyte/volumes/8NWb15R8/_data: stale file handle"},"during":"archival","item":"/var/lib/zerobyte/volumes/8NWb15R8/_data"}
{"message_type":"exit_error","code":3,"message":"Warning: at least one source file could not be read"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions