View previous topic :: View next topic |
Author |
Message |
ZW n00b
Joined: 16 Jan 2008 Posts: 4
|
Posted: Wed Jan 16, 2008 8:38 pm Post subject: [SOLVED] openssh / sftp-server problem ... |
|
|
Hi,
I'm trying to upload some files using SFTP. However my SFTP-client tells me that my upload failed and there is an empty file created in my uploadfolder. Downloading works fine.
In my /var/log/messages I find the following:
Code: |
Jan 16 21:36:22 myserver sftp-server[3385]: error: process_write: write failed
Jan 16 21:36:22 myserver sftp-server[3385]: error: process_write: write failed
Jan 16 21:36:22 myserver sftp-server[3385]: error: process_write: write failed
|
Last edited by ZW on Fri Jan 18, 2008 8:27 pm; edited 1 time in total |
|
Back to top |
|
|
mwspitzer n00b
Joined: 21 Nov 2006 Posts: 38
|
Posted: Wed Jan 16, 2008 9:24 pm Post subject: |
|
|
Have you verified that you have write permissions to the directory you're uploading to? Try uploading something to /tmp. That should be 777.
Mike |
|
Back to top |
|
|
ZW n00b
Joined: 16 Jan 2008 Posts: 4
|
Posted: Thu Jan 17, 2008 5:40 am Post subject: |
|
|
mwspitzer wrote: | Have you verified that you have write permissions to the directory you're uploading to? Try uploading something to /tmp. That should be 777.
Mike |
Yes, I tested it with the home-directory of my user and with /tmp. Both times the upload fails. |
|
Back to top |
|
|
manaka Apprentice
Joined: 23 Jul 2007 Posts: 178 Location: Spain
|
Posted: Thu Jan 17, 2008 8:04 pm Post subject: |
|
|
Try increasing the log verbosity of the sftp-server subsystem. Adding this line to /etc/ssh/sshd_config would set a DEBUG loglevel.
Subsystem sftp /usr/lib/misc/sftp-server -l DEBUG
This should help you to find the problem. _________________ Javier Miqueleiz
"Listen to your heart. It knows all things, because it came from the Soul of the World, and it will one day return there." |
|
Back to top |
|
|
ZW n00b
Joined: 16 Jan 2008 Posts: 4
|
Posted: Thu Jan 17, 2008 9:09 pm Post subject: |
|
|
manaka wrote: | Try increasing the log verbosity of the sftp-server subsystem. Adding this line to /etc/ssh/sshd_config would set a DEBUG loglevel.
Subsystem sftp /usr/lib/misc/sftp-server -l DEBUG
This should help you to find the problem. |
I'm still getting the same messages in my logs...
Code: |
Jan 17 22:04:40 myserver sshd[27838]: subsystem request for sftp
Jan 17 22:05:31 myserver sftp-server[27839]: error: process_write: write failed
Jan 17 22:05:31 myserver sftp-server[27839]: error: process_write: write failed
Jan 17 22:05:31 myserver sftp-server[27839]: error: process_write: write failed
|
And that's all |
|
Back to top |
|
|
infinite1der n00b
Joined: 31 Jan 2006 Posts: 52 Location: Atlanta, GA
|
Posted: Thu Jan 17, 2008 11:01 pm Post subject: |
|
|
Does SCP work?
Can you strace the process on the server side to watch what happens? _________________ ----------------------
James A. Thornton
Atlanta, GA
How To Ask Questions the Smart Way |
|
Back to top |
|
|
ZW n00b
Joined: 16 Jan 2008 Posts: 4
|
Posted: Fri Jan 18, 2008 8:27 pm Post subject: |
|
|
infinite1der wrote: | Does SCP work?
Can you strace the process on the server side to watch what happens? |
I found my problem:
No problem with processes, libraries, etc...
I simply ran out of space... |
|
Back to top |
|
|
|