Re: [go-nuts] Gob encoding not working to NFS

2019-06-14 Thread Rob Pike
The problem is that os.NewFile makes a new File struct; it doesn't create a file. Also, the first argument should be an open file descriptor, not a flag. I think you want to use os.Create. You certainly don't want NewFile. -rob On Sat, Jun 15, 2019 at 12:21 AM wrote: > I have been writing metr

[go-nuts] Gob encoding not working to NFS

2019-06-14 Thread alex
I have been writing metrics to a NFS, then reading them from another server. In my unit tests everything works fine on a local disk, but not when I deploy. I was previously using JSON streams on NFS, (one object per line), but gob seems like the idiomatic solution. Since no errors were being t