Page 1 of 1

vsftp broke in Vicibox 3.0.9

PostPosted: Wed Dec 08, 2010 8:54 pm
by Jif19
I noticed vsftpd would not start from command line or using yast.
I simply removed and reinstalled it and it worked fine.
zypper rm vsftpd
zypper in vsftpd

In case anyone cares :)


Vicibox 3.0.9 64bit from iso | Single Server | Sangoma PRI card | No Extra Software After Installation

PostPosted: Thu Dec 09, 2010 7:21 am
by Trying
Hi

Do you perhaps have any advice for me on this problem? http://www.vicidial.org/VICIDIALforum/v ... hp?t=14736

It seems you are the only other person using vsftpd from the Redux installation.

PostPosted: Thu Dec 09, 2010 10:30 am
by williamconley
you may want to post this as a comment in the 3.0.10 thread that kumba is running for suggestions. he's very interested in broken packages.

PostPosted: Sat Dec 11, 2010 12:41 am
by williamconley
check
Code: Select all
 /usr/sbin/vsftpd

if the result is
Code: Select all
500 OOPS: config file not owned by correct user, or not a file

then
Code: Select all
chown root:root /etc/vsftpd.conf

because
Code: Select all
ls /etc/vs* -l
-rw-r--r-- 1 nobody nobody 6547 Dec 11 00:35 /etc/vsftpd.conf

PostPosted: Sat Dec 11, 2010 5:00 am
by Trying
Still not working for me :(

PostPosted: Sat Dec 11, 2010 10:41 am
by williamconley
you wouldn't want to be a little more specific about what doesn't work right now would you? :)

PostPosted: Sat Dec 11, 2010 10:49 am
by Trying
LOL, well I still cannot access any recordings and there are still nothing inside my archive server /home/archive. Maybe it is there somewhere, dunno. I have been trying and looking for days now. :)

PostPosted: Sat Dec 11, 2010 11:15 am
by williamconley
can you ftp from the "sending" server to the "receiving" server?

PostPosted: Sat Dec 11, 2010 11:59 am
by Trying
Hmmm, how do I know that? If I try to access the archive server via Filezilla from my own pc i get a username/password error.

PostPosted: Sat Dec 11, 2010 12:24 pm
by williamconley

PostPosted: Sat Dec 11, 2010 4:34 pm
by Trying
No luck. I did what you suggested but still no recordings on the archive server.

PostPosted: Sat Dec 11, 2010 5:16 pm
by williamconley
no magic buttons!

you keep skippin ahead. until you can LOG IN to the ftp server, it won't work. there may be other steps after that.

so ... after you "did what i suggested" ... can you log in? (and what is it that you did, exactly?)

PostPosted: Sun Dec 12, 2010 10:55 am
by Trying
I did a chown root:root /etc/vsftpd.conf on my archive server and then removed root from the ftpusers file. I can now log in with username root and the password I set up originally. I still cannot log in with the username I set up though. Logging in as root takes me to an empty /bin folder.

PostPosted: Sun Dec 12, 2010 11:30 am
by williamconley
Code: Select all
chroot_local_user=NO


then see if you can "cd" to the folder you want to put your recordings in

PostPosted: Sun Dec 12, 2010 12:12 pm
by Trying
Sorry, I am not sure how to change the directory? I have done chroot_local_user=NO but when I FTP as root into the archive server it still takes me to /bin with no other options.

Here are my FTP settings on the dialers at the moment:

# FTP recording archive connection information
VARFTP_host => 192.168.0.237
VARFTP_user => root
VARFTP_pass => xxxx
VARFTP_port => 21
VARFTP_dir => archive
VARHTTP_path => http://192.168.0.237

PostPosted: Sun Dec 12, 2010 12:54 pm
by williamconley
Code: Select all
cd /home/RECORDINGS/
substitute the full path for the folder you are attempting to enter

PostPosted: Tue Dec 14, 2010 3:09 am
by Trying
http://www.linuxhomenetworking.com/wiki ... rver_Setup

By using this guide I managed to create a group and user called "archive" I can now also log in with my username and password and access /home/archive. However, now the problem becomes even more weird. Under user stats the recording file names are there but the actual recording path does not show at all anymore. The recordings are still not writing to home/etc. I also realize that the recording seconds never showed since installation.

# LEAD DATE/TIME SECONDS RECID FILENAME LOCATION
1 60102 2010-12-14 10:00:50 251 20101214-100049_0823449100

PostPosted: Tue Dec 14, 2010 8:35 am
by williamconley
edit the move recordings perl script and change the "max files" and "max list" from 1000 to 2.

then execute the script in debugX mode and find out what is going wrong. :)

PostPosted: Tue Dec 14, 2010 12:23 pm
by Trying
Thanks William, I will do that as soon as I get to the office tomorrow morning.

I noticed the following in the root mail so it seems the username/password is still an issue:

|select recording_id,start_time from recording_log where filename='20101214-171505_0823449100' order by recording_id desc LIMIT 1;|
Can't call method "login" on an undefined value at /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl line 380.


Line 380:

$ftp->login("$VARFTP_user","$VARFTP_pass");

PostPosted: Tue Dec 14, 2010 1:55 pm
by williamconley
you aren't trying to use a user without a password, are you?

PostPosted: Tue Dec 14, 2010 2:12 pm
by Trying
No, these are still my settings:

# FTP recording archive connection information
VARFTP_host => 192.168.0.237
VARFTP_user => archive
VARFTP_pass => XXXX
VARFTP_port => 21
VARFTP_dir => archive
VARHTTP_path => http://192.168.0.237

I also created this user (archive) on VSFTPD with the same password and I can log into that account via Filezilla and are taken to home/archive. In Filezilla I can download and upload in that directory.

PostPosted: Tue Dec 14, 2010 2:47 pm
by williamconley
it may be thinking $ftp is blank instead of user or pass.

PostPosted: Thu Dec 16, 2010 3:59 am
by Kumba
The archive-setup script wasn't setting up the password correctly. to fix this after install just type the following:

password <archive-user>

When it asks, enter in the password you want.