Unknown error chmod, stat

Post Reply
PdFUser5000
Member
Posts: 134
Joined: Fri Jun 12, 2020 11:23 am

Unknown error chmod, stat

Post 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?
WDBonline
Newbie
Posts: 3
Joined: Mon Jan 29, 2024 9:10 am

Re: Unknown error chmod, stat

Post 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...
PdFUser5000
Member
Posts: 134
Joined: Fri Jun 12, 2020 11:23 am

Re: Unknown error chmod, stat

Post 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.
Post Reply