vsftp broke in Vicibox 3.0.9

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

vsftp broke in Vicibox 3.0.9

Postby Jif19 » Wed Dec 08, 2010 8:54 pm

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
Jif19
 
Posts: 29
Joined: Sun Nov 28, 2010 12:06 am

Postby Trying » Thu Dec 09, 2010 7:21 am

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.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Thu Dec 09, 2010 10:30 am

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby williamconley » Sat Dec 11, 2010 12:41 am

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
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Sat Dec 11, 2010 5:00 am

Still not working for me :(
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Sat Dec 11, 2010 10:41 am

you wouldn't want to be a little more specific about what doesn't work right now would you? :)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Sat Dec 11, 2010 10:49 am

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. :)
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Sat Dec 11, 2010 11:15 am

can you ftp from the "sending" server to the "receiving" server?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Sat Dec 11, 2010 11:59 am

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.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Sat Dec 11, 2010 12:24 pm

Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Sat Dec 11, 2010 4:34 pm

No luck. I did what you suggested but still no recordings on the archive server.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Sat Dec 11, 2010 5:16 pm

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?)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Sun Dec 12, 2010 10:55 am

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.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Sun Dec 12, 2010 11:30 am

Code: Select all
chroot_local_user=NO


then see if you can "cd" to the folder you want to put your recordings in
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Sun Dec 12, 2010 12:12 pm

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
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Sun Dec 12, 2010 12:54 pm

Code: Select all
cd /home/RECORDINGS/
substitute the full path for the folder you are attempting to enter
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Tue Dec 14, 2010 3:09 am

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
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Tue Dec 14, 2010 8:35 am

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. :)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Tue Dec 14, 2010 12:23 pm

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");
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Tue Dec 14, 2010 1:55 pm

you aren't trying to use a user without a password, are you?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Trying » Tue Dec 14, 2010 2:12 pm

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.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Tue Dec 14, 2010 2:47 pm

it may be thinking $ftp is blank instead of user or pass.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby Kumba » Thu Dec 16, 2010 3:59 am

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.
Kumba
 
Posts: 939
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 55 guests