LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-25-2015, 08:02 PM   #1
Sivam
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
Ftp to /dev/null fails with 500 OOPS: ftruncate


While trying to do ftp to /dev/null of remote server, it fails with the below error. Any suggestions what could be going wrong. The same thing to a different server works. So I am assuming some config on the server that needs to be changed. Compared the config from both machines and they look the same. Not able to figure out if any other dependency for this to work. As shown below normal PUT works bur PUT to /dev/null fails.

[root@hst02 ~]# ftp x.x.x.x
Connected to x.x.x.x.
220 (vsFTPd 3.0.2)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (x.x.x.x:root): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put 5MB
local: 5MB remote: 5MB
227 Entering Passive Mode (10,199,73,32,142,229).
150 Ok to send data.
226 Transfer complete.
ftp> put 5MB /dev/null
local: 5MB remote: /dev/null
227 Entering Passive Mode (10,199,73,32,230,9).
500 OOPS: ftruncate
ftp>
 
Old 02-26-2015, 02:31 PM   #2
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Can you please let us know what is the purpose here? Why do you want to put to /dev/null?
 
Old 02-26-2015, 03:09 PM   #3
Sivam
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Put to /dev/null helps measure throughput in better way and ignores the disk i/o limitation
 
Old 02-26-2015, 03:22 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
/dev/null is a char device, not a file, so does not support ftruncate. FTP does file transfer.
 
Old 02-26-2015, 03:57 PM   #5
Sivam
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
@smallpond: If I point to a different server with ftp put to /dev/null it works, and I have seen quite a few examples on web where people use ftp to /dev/null and I have been using it quite often. Unable to get it to work with this server.
 
Old 02-12-2019, 10:11 AM   #6
brossob
LQ Newbie
 
Registered: Feb 2019
Posts: 1

Rep: Reputation: Disabled
try and use append instead of put, this is a known bug
 
Old 02-12-2019, 10:33 PM   #7
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,790

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Is the bug in the kernel? IMHO the /dev/null device driver should allow a truncate.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP login Error 500 OOPS: cannot change directory:/homes/binojs binojadoor Linux - Newbie 4 05-03-2013 11:34 AM
ftp 500 OOPS: cannot change directory yhus Linux - Networking 24 03-24-2013 09:41 PM
Cannot FTP file to server: 500 OOPS: vsftpd: cannot locate user specified in 'chown_u bpeacocke Linux - Newbie 1 10-08-2011 03:42 AM
FTP users get: 500 OOPS: reading non-root config file tstrong12 Linux - Networking 10 07-21-2008 02:34 AM
FTP 500 OOPS: could not bind listening IPv4 socket blipp Linux - Networking 11 07-06-2007 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration