Page 1 of 1

Unknown error chmod, stat

Posted: Tue Aug 27, 2024 7:10 am
by PdFUser5000
I have a custom nodejs script, that moves files from switch to a local network drive. For a few times i have been getting the following errors:

Code: Select all

UNKNOWN: unknown error, chmod 'filename.pdf'

Code: Select all

UNKNOWN: unknown error, stat 'network drive location'
In the last error, it doesn't give me a file name, but only the network drive location where it's supposed to copy the files.

At the time of the errors, the script was under a very heavy load because of the amount of the files it had to copy at once. Could that have caused it?

Re: Unknown error chmod, stat

Posted: Tue Aug 27, 2024 10:49 am
by WDBonline
hello, is there a specific reason why you want a script to copy the files to a network drive?
Copying files (duplicate) is pretty basic using Switch without a script...

Re: Unknown error chmod, stat

Posted: Thu Aug 29, 2024 12:57 pm
by PdFUser5000
WDBonline wrote: Tue Aug 27, 2024 10:49 am hello, is there a specific reason why you want a script to copy the files to a network drive?
Copying files (duplicate) is pretty basic using Switch without a script...
Not really. I was a beginner in Switch when I started this flow and since the archive hierarchy description sounded not so safe to keep a network drive connected to it, i resorted to writing a script for this. But i guess that was just my bad english and i misunderstood that description and instead of doing more research i went the easier way to create a script for this.

I replaced the script with archive hierachy and it works just as fine.