LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-27-2018, 08:21 PM   #1
mawmanager
LQ Newbie
 
Registered: Aug 2018
Posts: 20

Rep: Reputation: Disabled
Starting Vsftpd pasv_address to fill in the domain name is considered an invalid variable


Hey,I think it's a strange BUG..

If pasv_address is in a format like "localhost" or "8.8.8.8", this problem will not occur
But if pasv_address is in a format like "myhost.com.net", the following exception occurs when the boot is started:
Code:
Aug 27 13:05:39 mawserver systemd[1]: vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 27 13:05:39 mawserver systemd[1]: vsftpd.service: Failed with result 'exit-code'.
If I run the command:"service vsftpd restart" after my server started,
the status of vsftpd will be Active.

This means that the domain name "myhost.com.net" is treated as an illegal variable only at boot time

I didn't know why my VSFTPD couldn't boot up until I tried to turn off pasv_addr_resolve, which is to invalidate pasv_address.

But if I turn it off and I can't connect to my FTP, he will return an illegal address
 
Old 08-27-2018, 08:28 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
How do you know that’s the cause of the error?

myhost.com.net means you have a domain com.net with a subdomain of myhost.
Is that true? I suspect not. Set the value to a resolvable TLD

Last edited by scasey; 08-27-2018 at 08:30 PM.
 
Old 08-27-2018, 08:58 PM   #3
mawmanager
LQ Newbie
 
Registered: Aug 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
How do you know that’s the cause of the error?

myhost.com.net means you have a domain com.net with a subdomain of myhost.
Is that true? I suspect not. Set the value to a resolvable TLD
Thank you for your answer.

"myhost.com.net" just a demonstration of the domain name format,which I am typing blind.

I mean like "xxx.xxx. XXX" or "XXX. Xx", when the domain name with "."starts up, VSFTPD will send out the error of illegal variable
(I'm sorry I can't provide my domain name)

But after I started up, if I use "services VSTPD restart" command, everything will be normal again. The name of the domain does not change

--------------------------------------
Such as Pasv_address into "gdhkfksjhsjklgahlk",I can boot on without error
But if I change it into "gdhkfksjhs.jklgahlk",the mistake came again.

Last edited by mawmanager; 08-27-2018 at 09:03 PM. Reason: Wrong word
 
Old 08-27-2018, 09:11 PM   #4
mawmanager
LQ Newbie
 
Registered: Aug 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Is there any other recommended FTP server?
 
Old 08-27-2018, 09:55 PM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by mawmanager View Post
Is there any other recommended FTP server?
Recommended? Don't use ftp at all.

Use sftp instead, which is included with ssh. Secure. No ftp server required.

Why are you trying to set up an ftp server?
What are you needing to transfer from/to?
Is the remote Linux or Windows?
 
Old 08-27-2018, 11:19 PM   #6
mawmanager
LQ Newbie
 
Registered: Aug 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
Recommended? Don't use ftp at all.

Use sftp instead, which is included with ssh. Secure. No ftp server required.

Why are you trying to set up an ftp server?
What are you needing to transfer from/to?
Is the remote Linux or Windows?
I'will give it a try,thank you.
It's the ubuntu server
 
Old 07-23-2021, 10:05 PM   #7
luchalibre
LQ Newbie
 
Registered: Jul 2021
Posts: 1

Rep: Reputation: Disabled
Finally!

Since this is literally the only thread on the internet that identifies the proper config entry that causes this particular 'won't start, but will restart' INVALIDARGUMENT problem, I'm necroing this for future users.

The problem is that the service is starting too quickly, and whatever service is needed to parse the hostname is not running at the necessary moment.

The most robust fix would probably involve changing the service's dependencies, but for a quick and dirty fix, add a line to the [Service] section of the unit file to delay its start for a few seconds.

/lib/systemd/system/vsftpd.service
Code:
ExecStartPre=/bin/sleep 5

Last edited by luchalibre; 07-23-2021 at 10:06 PM.
 
  


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
Starting vsftpd for vsftpd: 500 OOPS linuxquestions_forum_use Linux - Software 5 04-11-2013 09:13 PM
Starting vsftpd for vsftpd: 500 OOPS: SSL: cannot load RSA certificate MisterTickle Linux - Server 2 02-11-2011 07:41 PM
[SOLVED] How to get invalid user input into a variable TheNewVegas Linux - Newbie 9 04-09-2010 02:43 AM
export - Invalid identifier for environment variable ryan.greenwood Linux - Desktop 2 05-27-2007 10:22 PM
VSFTPD Debian VSFTPD "unrecognised variable in config file" DCT Linux - Software 0 05-29-2004 11:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:04 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