Music Banter - View Single Post - The Official Computer Tech Support Thread
View Single Post
Old 08-07-2021, 09:15 PM   #2237 (permalink)
Stephen
I sleep in your hat
 
Stephen's Avatar
 
Join Date: Mar 2011
Location: Melbourne, Vic. Aus.
Posts: 1,846
Default

Quote:
Originally Posted by SoundgardenRocks View Post
Are you trying to copy the file from a Windows machine to a disparate Linux machine (VM or otherwise)? In that case, I'm guessing you're using something like pscp to do the copy?

have you tried making the path that you're writing to completely open in terms of permissions? e.g. chmod 777 /path/to/folder - it's possible that the issue could be coming from permissions on the folders that are parents to your target directory.

Have you messed around with the setuid/setgid bits?

This isn't an NFS share you're writing to, is it?

What kind of process do you have that's writing to this location? Is it a program? PHP? Python or something? Bash script set up as a cron job? For some reason, I remember having an issue very similar to this, with a PHP program doing a SFTP transfer using PHPSECLIB - not sure if it's at all related (I think it was a permissions issue), but if you haven't figured it out by now, I'll try to dig through my notes for ya. Let me know.
It’s a rather convoluted process. We have a Windows service that queues print uploads for preflighting. That launches a bat file which passes everything to a command line exe I wrote in C# that uses renci ssh to talk to a Linux box running cli preflighting software which outputs the results to a Windows network folder (the part I was having trouble with).

Anyway we managed to get it working by using smb instead of nfs to write the files to the Windows network. Thanks for the input.
Stephen is offline   Reply With Quote