Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Files not Syncing - NFS.output shows "unable to send RPC reply" #271

Open
josvazg opened this issue Mar 9, 2018 · 10 comments
Open

Files not Syncing - NFS.output shows "unable to send RPC reply" #271

josvazg opened this issue Mar 9, 2018 · 10 comments

Comments

@josvazg
Copy link

josvazg commented Mar 9, 2018

cat /usr/local/Cellar/dinghy/4.5.0/local/var/dinghy-NFS.output 
unable to send RPC reply
unable to send RPC reply
unable to send RPC reply
unable to send RPC reply
unable to send RPC reply
unable to send RPC reply
unable to send RPC reply
unable to send RPC reply
unable to send RPC reply
$ dinghy version
Dinghy 4.5.0

Nothing relevant in logs

docker@dinghy:~$ cat /var/log/* |grep nfs
docker@dinghy:~$

Why? How can I debug?

@josvazg
Copy link
Author

josvazg commented Mar 12, 2018

Not sure, but I think I got to see 2 nfs process running at the same time on my mac host when this was happening. Once I restarted and there was a single process, it seemed to work properly again.

@codekitchen
Copy link
Owner

Have you run into this again? Were both NFS processes the unfs3 daemon or was one system NFS?

@josvazg
Copy link
Author

josvazg commented Apr 5, 2018

I must admit it has been quite stable since last time... Maybe it is some usage pattern. I hit it more often when I run a webserver deployment with several containers (incldue dbs etc) but it is more stable when I just run a simple comtainer with a CLI tool.

Anyway, if it happens again I will check that. I seem to recall they were 2 unfs processes, but I can't be quite sure now.

@josvazg
Copy link
Author

josvazg commented Apr 25, 2018

Happened again, here is the ps dump:

$ ps aux |grep nfs
josvaz           23592   0,0  0,0  2465752    736   ??  S    18abr18   0:34.84 /usr/local/sbin/unfsd -e /Users/josvaz/.dinghy/machine-nfs-exports-dinghy -n 19930 -m 19930 -l 192.168.99.1 -p -d
josvaz            3738   0,0  0,0  2465752   4580   ??  S     7abr18  11:10.09 /usr/local/sbin/unfsd -e /Users/josvaz/.dinghy/machine-nfs-exports-dinghy -n 19299 -m 19299 -l 192.168.99.1 -p -d
josvaz           94844   0,0  0,0  2442376   2472 s001  S+    6:54PM   0:00.01 grep nfs

@ddonahue99
Copy link

I may be encountering the same issue. I see the same log output (unable to send RPC reply). I noticed this issue because webpack-dev-server wasn't picking up file changes.

My dinghy status shows everything is running, and I see nothing out of the ordinary when starting dinghy.

Interestingly, if I invoke fsevents_to_vm alongside dinghy while it's running, webpack-dev-server works great. I know of at least one other person encountering the same problem currently. I am on dinghy 4.6.5.

@codekitchen
Copy link
Owner

Perhaps you've hit a state where the fsevents_to_vm daemon is still running but not functioning... do you see any relevant log output at /usr/local/Cellar/dinghy/4.6.5/local/var/dinghy-FsEvents.output?

@ddonahue99
Copy link

From a fresh dinghy start (with fsevents_to_vm not running separately), there's nothing interesting in the FsEvents log. Just this:

=== Starting FsEvents at 2019-04-24T11:27:59-07:00 ===

Triggering some events doesn't produce any log output.

If I do run fsevents_to_vm separately, I do get output in that process showing all the files that have been touched.

@codekitchen
Copy link
Owner

That's expected that you won't see touched files in the log, fsevents_to_vm is silent by default and only prints touch events if you pass --debug. That's too bad that there's no relevant crash information though. I don't have a great theory for why the daemon process wouldn't work but a manually-run process would.

Maybe I should add an option to dinghy to pass the --debug option through to the daemon process. In the meantime you could modify /usr/local/Cellar/dinghy/4.6.5/cli/dinghy/fsevents_to_vm.rb and add --debug to the args array near the bottom, then dinghy restart. That should print touch events to FsEvents.output and we can at least verify if events are being generated.

@ddonahue99
Copy link

Good thinking. Can confirm that with --debug output in the dinghy fsevents process, I'm seeing output for touched files. (Also verified I'm still seeing the same behavior)

@codekitchen
Copy link
Owner

hmm if it's logging the file touches but not logging any errors, I really don't know how it could be failing in a way that wouldn't also affect an independently-run process. Is the problem consistent, or does it sometimes work on the affected macs?

Also, how long did you watch the log output for? I'm just thinking that I'm not entirely sure what the default timeout is for Net::SSH if it is having trouble connecting. Could be 30-60 seconds or something.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants