Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would copy the content of a directory mounted remotely in my tmp folder. Using the command: CTNML003[50] cp -r /p/demofolder .

i obtain only for some file this kind of erro: cp: cannot stat `/p/demofolder/layout/blabla/bb/sdf/sdf/fsdf/sdfds/master.tag': No such file or directory

cp: cannot stat

but the master.tag file exists... could be a network problem or a cp problem?

share|improve this question
add comment

2 Answers 2

If it were a general network issue I would not expect it to always error at the same location.

The first thing I would suggest looking at is access rights. The user account used for accessing the network share might have the right to read the directory (and so see the file exists) but not access the file itself at all. It could also be that the file is locked by another process elsewhere. While both of these issues would normally result in an explicit "permission denied" error condition, depending on the network file access protocol you are using the condition could be being misreported.

Another possibility is that the path is too long for something along the way to handle - the example you give implies that the directory structure is quite deep. What protocols are you using and how long is the real path to the file? Does the operation succeed for files with the same or longer full path?

share|improve this answer
add comment

yes its likely to be a network issue

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.