diodechain / diode_feedback

This is the place to Diode Drive users to give their feedback
3 stars 0 forks source link

Linux does not auto-sync files, so cannot reliably use Raspberry Pi as always-on peer #70

Closed hansr closed 7 months ago

hansr commented 3 years ago

Environment: Raspberry Pi 4, 32bit Raspbian GNU/Linux 10 (buster)

Description: If a new file is put into the shared folder on my Raspberry Pi, it will not sync it to other drives. This is a problem if I'm using the Pi to create / manage files, but especially when my Pi is the selected route for receiving a share upload. The file is successfully uploaded to the Pi, but it is never sync'd to my other systems.

Steps to reproduce:

  1. Create a zone on a non-Pi system and share it with a Pi
  2. Add files to it from the non-Pi system, observe the files sync to the Pi
  3. Add file to it from the Pi
  4. Observe the files added to the Pi are never sync'd
  5. Create a share
  6. Quit Diode Drive on the non-Pi system
  7. Upload a file to the share (it will be uploaded to the Pi)
  8. Observe the files uploaded via Share to the Pi are never sync'd

Desired behavior: Steps 3/4 and 7/8 should sync the files to the other team members the same as with Windows and Mac systems.

NOTE: If Diode Drive is restarted on the Pi/Linux system, it will pickup the file changes and finally sync.

hansr commented 3 years ago

This can be mostly address by installing inotify_tools: sudo apt-get install inotify-tools

Related to: https://github.com/diodechain/diode_drive_feedback/issues/14

hansr commented 3 years ago

A "quick fix" for the upload-via-share problem would be to launch a file scan upon web server receiving completed upload.

hansr commented 7 months ago

Must install inotify tools...