Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inotifywait error in FreeBSD. #119

Closed
emanzx opened this issue Nov 17, 2017 · 3 comments
Closed

inotifywait error in FreeBSD. #119

emanzx opened this issue Nov 17, 2017 · 3 comments
Labels
Milestone

Comments

@emanzx
Copy link

emanzx commented Nov 17, 2017

Hi osync is throwing this error when I try to run it in monitor mode in FreeBSD.

Fri Nov 17 15:00:36 MYT 2017 - -------------------------------------------------------------
Fri Nov 17 15:00:36 MYT 2017 - Fri Nov 17 15:00:36 MYT 2017 - osync 1.2 script begin.
Fri Nov 17 15:00:36 MYT 2017 - -------------------------------------------------------------
Fri Nov 17 15:00:36 MYT 2017 - Sync task [sync_bind_slave] launched as system@dnsvnode1 (PID 7906)
Fri Nov 17 15:00:36 MYT 2017 - #### Running osync in file monitor mode.
TIME: 0 - -------------------------------------------------------------
TIME: 0 - Fri Nov 17 15:00:36 MYT 2017 - osync 1.2 script begin.
TIME: 0 - -------------------------------------------------------------
TIME: 0 - Sync task [sync_bind_slave] launched as system@dnsvnode1 (PID 7947)
TIME: 0 - Checking minimum disk space in local replica [/home/system/bind/etc/].
TIME: 0 - Checking minimum disk space in remote replica [/home/system/configs/bind/dnsvnode1/].
TIME: 3 - Starting synchronization task.
TIME: 3 - Creating initiator replica file list [/home/system/bind/etc/].
TIME: 3 - Creating target replica file list [/home/system/configs/bind/dnsvnode1/].
TIME: 5 - Creating initiator replica deleted file list.
TIME: 5 - Creating target replica deleted file list.
TIME: 5 - Updating target replica.
TIME: 6 - Updating target replica succeded.
TIME: 6 - Updating initiator replica.
TIME: 8 - Updating initiator replica succeded.
TIME: 8 - Propagating deletions to initiator replica.
TIME: 8 - Propagating deletions to target replica.
TIME: 9 - Creating initiator replica file list [/home/system/bind/etc/].
TIME: 9 - Creating target replica file list [/home/system/configs/bind/dnsvnode1/].
TIME: 10 - Finished synchronization task.
TIME: 10 - Running conflict backup cleanup.
TIME: 10 - Removing files older than 30 days on initiator replica for conflict backup deletion.
TIME: 10 - File cleanup complete on initiator replica.
TIME: 10 - Directory cleanup complete on initiator replica.
TIME: 11 - Removing files older than 30 days on target replica for conflict backup deletion.
TIME: 12 - Cleanup complete on target replica.
TIME: 12 - Running soft deletion cleanup.
TIME: 12 - Removing files older than 30 days on initiator replica for softdelete deletion.
TIME: 12 - File cleanup complete on initiator replica.
TIME: 12 - Directory cleanup complete on initiator replica.
TIME: 13 - Removing files older than 30 days on target replica for softdelete deletion.
TIME: 13 - Cleanup complete on target replica.
TIME: 15 - osync finished.
Fri Nov 17 15:00:51 MYT 2017 - #### Monitoring now.
include and exclude regexp cannot both be specified.
Fri Nov 17 15:00:51 MYT 2017 - #### inotify error detected, waiting 60 seconds before running next sync.

I try to remove the --exclude but it just break the whole thing. any help?

@deajan
Copy link
Owner

deajan commented Nov 20, 2017

On the line that states inotifywait $RSYNC_PATTERNS $RSYNC_PARTIAL_EXCLUDE --exclude "$OSYNC_DIR" -qq -r -e create -e modify -e delete -e move -e attrib --timeout "$MAX_WAIT" "$INITIATOR_SYNC_DIR" &
Could you try to remove $RSYNC_PATTERNS ?
If it doesn't work, also remove $RSYNC_PARTIAL_EXCLUDE

I don't have a FreeBSD to check right now. Does this work ?

@deajan deajan added the bug label Nov 20, 2017
@clawoflight
Copy link

@deajan inotify is a Linux extension. I'm pretty sure no other *NIX has it.

@deajan
Copy link
Owner

deajan commented Jan 19, 2018

Nope, you may install it using pkg install inotify-tools
The main difference is that the BSD version doesn't take include and exclude arguments toghether.

@deajan deajan added this to the v1.3 release milestone Jun 25, 2018
deajan added a commit that referenced this issue Jul 8, 2018
@deajan deajan closed this as completed Jul 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants