Problem copying to Samba server with WinSCP

Advertisement

GTCG
Joined:
Posts:
2

Problem copying to Samba server with WinSCP

Hello,

I've been looking for an efficient way to copy files from my Windows 7 machine to my Samba server, running a small linux distro called "busybox". In the past I've been using command-based solutions to do this, but now I'd like to use a GUI, just for the ease of use.

However, when trying to copy files I get the following error message:
Cannot execute SCP to start transfer. Please make sure that SCP is installed on the server and path to it is included in PATH. You may also try SFTP instead of SCP.
Command failed with return code 1.
Error 1 seem to be:
1 EOF An attempt to read past the end-of-file was made; or, there are no more directory entries to return.
What could be the cause of this error and how do I solve this? Using SSH via PuTTY works fine, and I've used pscp in the past to copy files, which also went fine. I'm quite new to this kind of stuff so I bet I'm probably missing something obvious here...

Any help would be greatly appreciated!
Last edited by GTCG on 2013-07-09 20:39; edited 1 time in total

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: problem copying to samba server with winscp

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

Also see https://winscp.net/eng/docs/requirements#scp

Reply with quote

GTCG
Joined:
Posts:
2

Hello Prikryl,

I have done as requested in your post. First I created a folder called test, after that I copied a file to it, with the same error as a result. The log is rather small, so I'll post it here:
. 2013-07-09 21:44:28.238 Changing directory to "test".
> 2013-07-09 21:44:28.238 cd "test" ; echo "WinSCP: this is end-of-file:$?"
< 2013-07-09 21:44:28.287 WinSCP: this is end-of-file:0
. 2013-07-09 21:44:28.287 Getting current directory name.
> 2013-07-09 21:44:28.287 pwd ; echo "WinSCP: this is end-of-file:$?"
< 2013-07-09 21:44:28.335 /tmp/.cemnt/mnt_sdb5/m****/test
< 2013-07-09 21:44:28.335 WinSCP: this is end-of-file:0
. 2013-07-09 21:44:28.336 Listing current directory.
> 2013-07-09 21:44:28.336 ls -la  ; echo "WinSCP: this is end-of-file:$?"
< 2013-07-09 21:44:28.389 drwxr-xr-x    2 thomas   samba        4096 Jul  9 19:44 .
< 2013-07-09 21:44:28.389 drwxrwxr-x   90 thomas   samba        4096 Jul  9 19:44 ..
< 2013-07-09 21:44:28.390 WinSCP: this is end-of-file:0
. 2013-07-09 21:44:28.390 ..;d;4096;2013-07-09T17:44:00.000Z;"thomas" [0];"samba" [0];rwxrwxr-x;0
. 2013-07-09 21:44:38.181 Copying 1 files/directories to remote directory "/tmp/.cemnt/mnt_sdb5/m*****/test/"
. 2013-07-09 21:44:38.181   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2013-07-09 21:44:38.181   TM: B; ClAr: No; CPS: 0; InclM: 
. 2013-07-09 21:44:38.181   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
> 2013-07-09 21:44:38.182 echo "WinSCP: this is begin-of-file" ; scp -r  -d -t "/tmp/.cemnt/mnt_sdb5/m*****/test" ; echo "WinSCP: this is end-of-file:$?"
< 2013-07-09 21:44:38.224 WinSCP: this is begin-of-file
< 2013-07-09 21:44:38.228 inSCP: this is end-of-file:1
! 2013-07-09 21:44:38.228 Couldn't open /dev/null: Permission denied
. 2013-07-09 21:44:38.228 Cached directory not reloaded.
. 2013-07-09 21:44:38.229 Listing current directory.
> 2013-07-09 21:44:38.229 ls -la  ; echo "WinSCP: this is end-of-file:$?"
< 2013-07-09 21:44:38.282 drwxr-xr-x    2 thomas   samba        4096 Jul  9 19:44 .
< 2013-07-09 21:44:38.282 drwxrwxr-x   90 thomas   samba        4096 Jul  9 19:44 ..
< 2013-07-09 21:44:38.282 WinSCP: this is end-of-file:0
. 2013-07-09 21:44:38.283 ..;d;4096;2013-07-09T17:44:00.000Z;"thomas" [0];"samba" [0];rwxrwxr-x;0
* 2013-07-09 21:44:38.304 (ECommand) Copying files to remote side failed.
* 2013-07-09 21:44:38.304 Cannot execute SCP to start transfer. Please make sure that SCP is installed on the server and path to it is included in PATH. You may also try SFTP instead of SCP.
* 2013-07-09 21:44:38.304 Command failed with return code 1. 

Thanks in advance

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

GTCG wrote:

> 2013-07-09 21:44:38.182 echo "WinSCP: this is begin-of-file" ; scp -r -d -t "/tmp/.cemnt/mnt_sdb5/m*****/test" ; echo "WinSCP: this is end-of-file:$?"
< 2013-07-09 21:44:38.224 WinSCP: this is begin-of-file
< 2013-07-09 21:44:38.228 inSCP: this is end-of-file:1
! 2013-07-09 21:44:38.228 Couldn't open /dev/null: Permission denied
I have no idea why your server issues this error message, but it definitely does not look like a problem on WinSCP-side.

Reply with quote

Advertisement

You can post new topics in this forum