Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 453266 - app-backup/spideroak-bin-4.8.3 backup frequency on automatic fails to find newer files: fs_notify: Error starting notifier: /opt/SpiderOak/lib/inotify_dir_watcher: Permission denied
Summary: app-backup/spideroak-bin-4.8.3 backup frequency on automatic fails to find ne...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Dennis Schridde
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-21 02:39 UTC by Krzys Baranski
Modified: 2013-01-24 04:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krzys Baranski 2013-01-21 02:39:34 UTC
backup not working for new files when backup frequency is set to automatic.
But works after restart or using manual rescan button.

at least file /opt/SpiderOak/lib/inotify_dir_watcher should be set as executable
but it not realy helps.

Error log ~/.SpiderOak/spider_20130120020022.log:
2013-01-20 02:00:52,564 ERROR    fs_notify            Error starting notifier: /opt/SpiderOak/lib/inotify_dir_watcher: Permission denied


Reproducible: Always

Steps to Reproduce:
1. run SpiderOak
2. set backup frequency to automatic
2. update or add new file to backup folder
Actual Results:  
nothing happens, file is not uploaded.

Expected Results:  
new files should be immediately backed up.
Comment 1 Krzys Baranski 2013-01-21 20:45:12 UTC
After:
# chmod +x /opt/SpiderOak/lib/inotify_dir_watcher

it works, but I had to increase value max_user_watches
# echo 262144 > /proc/sys/fs/inotify/max_user_watches
can be set it permanently in file: /etc/sysctl.d/30-spideroak.conf

before changing max_user_watches I get following error:
~/.Spideroak/fs_notify__dir_watcher_ignore/error.txt
inotify_add_watch /home/user/dir 28 No space left on device

https://spideroak.com/forum/threads/id/643/?page=1#snap_post3848
Comment 2 Anthony Basile gentoo-dev 2013-01-21 23:10:12 UTC
(In reply to comment #1)
> After:
> # chmod +x /opt/SpiderOak/lib/inotify_dir_watcher
> 
> it works, but I had to increase value max_user_watches
> # echo 262144 > /proc/sys/fs/inotify/max_user_watches
> can be set it permanently in file: /etc/sysctl.d/30-spideroak.conf
> 
> before changing max_user_watches I get following error:
> ~/.Spideroak/fs_notify__dir_watcher_ignore/error.txt
> inotify_add_watch /home/user/dir 28 No space left on device
> 
> https://spideroak.com/forum/threads/id/643/?page=1#snap_post3848

Thanks for spotting this for us. Both look reasonable.  However, I will not run sysctl from an ebuild after dropping in 30-spideroak.conf.  I will put in an ewarn that the user should do it.

Comments before I make the magic happen?
Comment 3 Krzys Baranski 2013-01-21 23:47:19 UTC
> Comments before I make the magic happen?

I'm not sure about the change in max_user_watches,
I think that it's only needed when there
are large number of folders in backup.

Maybe default (65536) would be OK for most people.
Comment 4 Anthony Basile gentoo-dev 2013-01-24 04:33:49 UTC
Okay this is fixed with spideroak-bin-4.8.3-r1.  I'm going to skip the issue with sysctl on max_user_watches since this is documented in their forums.

Please test and reopen if its still a problem.  Thanks for the report!