photOS icon indicating copy to clipboard operation
photOS copied to clipboard

Removal of pictures when webdav server is offline

Open b3nsk0 opened this issue 3 years ago • 7 comments

Hi, it seems that if the webdav server is offline, all local pictures were removed. Is it possible to change this behavior so that pictures were only synchronized (removed/changed) when the webdav server is online?

b3nsk0 avatar Dec 05 '21 13:12 b3nsk0

Hm, photOS should check if webdav is mounted before initiating the sync: https://github.com/avanc/photOS/blob/66e42b553b47b78b6254827ae251c1df50ace44f/package/photoframe/photoframe.sh#L85-L95

So I'm not quite sure what happens in your case. Can you give me some additional information to investigate further? Was the server not reachable or down?

avanc avatar Dec 05 '21 20:12 avanc

of course. I'm hosting the server on my synology nas and when the server is down, all synced pictures were removed, when I turn the server on the synchronization starts and after downloading everything is normal again.

b3nsk0 avatar Dec 05 '21 21:12 b3nsk0

Thanks, I could reproduce the problem. I'm still investigating...

avanc avatar Dec 09 '21 16:12 avanc

mount.davfs: connection timed out two times;
trying one last time
mount.davfs: server temporarily unreachable;
mounting anyway

Why the hell is davfs "mounting anyway" if the server is unreachable?

Created a ticket: http://savannah.nongnu.org/support/index.php?110576

avanc avatar Dec 09 '21 16:12 avanc

What's about rclone, maybe a better way?

cs301cs301 avatar Jan 07 '22 19:01 cs301cs301

Possibly add check of the mount location for any files?

michkrom avatar Jul 08 '22 14:07 michkrom

This would mean that you cannot wipe all images remotely. But I agree the impact is smaller than the current situation.

avanc avatar Jul 18 '22 10:07 avanc