ftp will not startup

Status
Not open for further replies.

labtopia

Dabbler
Joined
May 31, 2011
Messages
47
i have having an issue where i am trying to setup the ftp service and when i choose to configure it with the little wrench, it give an error

Sorry, an error occured.

if i turn the switch on it says at the top that the service could not be started, this is in the console:

Code:
1964]: Executing: /usr/sbin/service proftpd restart
Jun 15 14:42:40 labpod1 freenas: proftpd not running?
Jun 15 14:42:40 labpod1 freenas: Starting proftpd.
Jun 15 14:42:40 labpod1 freenas:  - Fatal: Umask: '18' is not a valid umask on line 9 of '/usr/local/etc/proftpd.conf'
Jun 15 14:42:40 labpod1 root: /usr/local/etc/rc.d/proftpd: WARNING: failed to start proftpd
Jun 15 14:42:40 labpod1 freenas: /usr/local/etc/rc.d/proftpd: WARNING: failed to start proftpd
Jun 15 14:42:40 labpod1 freenas[1964]: Executing: sleep 1
Jun 15 14:42:41 labpod1 freenas[1964]: Executing: /bin/pgrep -F /var/run/proftpd.pid proftpd 


any ideas? otherwise the installation is running fine, i currently have 8.0.1b2 installed
 
Joined
May 27, 2011
Messages
566
Jun 15 14:42:40 labpod1 freenas: - Fatal: Umask: '18' is not a valid umask on line 9 of '/usr/local/etc/proftpd.conf'

there is your problem. did you add 'umask 18' to your FTP auxiliary configurations? 18 is not a valid option for umask.
 

labtopia

Dabbler
Joined
May 31, 2011
Messages
47
no this was a fn8 rc install that was brought forward into the release. i have not made any modifications to any conf files. what should this be? i could i guess go into the cli and try to fix it if i knew what should be in the file.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
This is a bug bought by one of the 8.0-RC's...
to fix it in 8.0-release manually change the database:

# sqlite3 /data/freenas-v1.db "update services_ftp set ftp_filemask=444, ftp=444;"
 

labtopia

Dabbler
Joined
May 31, 2011
Messages
47
thanks,
when i run this command from a root prompt i get
ERROR: no such column: ftp

dave
 

labtopia

Dabbler
Joined
May 31, 2011
Messages
47
thanks william! that one did the trick and ftp now will startup, thanks for your help!

dave
 
Joined
May 31, 2011
Messages
8
Thanks for the info in this thread. I had the exact same problem with an invalid umask after an update from 8.0 to 8.0.1, and running the sqlite3 command did the trick, and the FTP service could start so I can configure it correctly.
However, it appears when I updated and reloaded my config, that my previous FTP settings was not loaded. Is this a known error? Thanks again...
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Thanks for the info in this thread. I had the exact same problem with an invalid umask after an update from 8.0 to 8.0.1, and running the sqlite3 command did the trick, and the FTP service could start so I can configure it correctly.
However, it appears when I updated and reloaded my config, that my previous FTP settings was not loaded. Is this a known error? Thanks again...

Kind of, could you please post your 8.0 db config to https://support.freenas.org/ticket/615 ?

Thank you
 
Joined
May 31, 2011
Messages
8
I will give it a shot later - thanks..
 
Status
Not open for further replies.
Top