From kry|ov@r00t @end|ng |rom gm@||@com  Sat Aug  5 22:47:43 2023
From: kry|ov@r00t @end|ng |rom gm@||@com (Ivan Krylov)
Date: Sat, 5 Aug 2023 23:47:43 +0300
Subject: [Rd] random network disconnects
In-Reply-To: <1cb2c074-ad70-6b47-aff0-957bb9a8a3e9@pburns.seanet.com>
References: <1cb2c074-ad70-6b47-aff0-957bb9a8a3e9@pburns.seanet.com>
Message-ID: <20230805234743.2621bfea@parabola>

? Mon, 31 Jul 2023 16:43:17 +0100
Patrick Burns <pburns at pburns.seanet.com> ?????:

> At work we are getting lots of issues with 'permission denied' or 
> 'network not found' and so forth when reading and writing between our 
> machines and a file server.  This happens randomly so the following 
> function solves the problem for 'cat' commands

These sound like error codes returned from the operating system, which
R has no choice but forward to the user. (Well, in this case the error
turns out to be transient, but files are unfortunately fraught with
peril with no easy solutions [*].)

Even using system call tracing or setting a symbolic debugger breakpoint
on an error return from cat() will only tell you the OS error code and
the file on which the operation failed, both of which you already know.
Getting to the root of the problem will likely involve drilling down
into the details of the exact networked filesystem used, which R is
supposed to know nothing about. Maybe you could ask on ServerFault or
on #linux / #windows / #<applicable server OS> on Libera.Char?

-- 
Best regards,
Ivan

[*] https://danluu.com/deconstruct-files/



[Rd] random network disconnects
Ivan Krylov