Topic "problem copying to samba server with winscp"

Author Message
GTCG
[View user's profile]

Joined: 2013-07-07
Posts: 3
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
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 http://winscp.net/eng/docs/requirements#scp
GTCG
[View user's profile]

Joined: 2013-07-07
Posts: 3
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:

Code:
. 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
GTCG
[View user's profile]

Joined: 2013-07-07
Posts: 3
bump
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
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.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License