Koozali.org: home of the SME Server

Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: fpausp on February 23, 2012, 02:22:17 PM

Title: tftp not running with sail-3.1.0-145 ?
Post by: fpausp on February 23, 2012, 02:22:17 PM
Hi,

I installed sail with:

http://www.sailpbx.com/twiki/bin/view/Main/DocChapter03h
 (http://www.sailpbx.com/twiki/bin/view/Main/DocChapter03h)

I would like to have provisioning but tftp is not running.

Code: [Select]
/etc/rc.d/init.d/tftpd restart

Shutting down TFTP server:                                 [FEHLGESCHLAGEN]
Starting TFTP server:                                      [FEHLGESCHLAGEN]

Title: Re: tftp not running with sail-3.1.0-145 ?
Post by: fpausp on February 23, 2012, 02:41:54 PM
A 2nd Problem, I get this mail every minute:

Code: [Select]
Betreff:  Cron <root@tx150s4> perl /opt/sark/scripts/srkrestrtdm.pl

Can't locate IO/Socket/Multicast.pm in @INC (@INC contains: /opt/sark/perl/modules /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /opt/sark/scripts/responder.pl line 32.
BEGIN failed--compilation aborted at /opt/sark/scripts/responder.pl line 32.
Title: Re: tftp not running with sail-3.1.0-145 ?
Post by: SARK devs on February 26, 2012, 12:07:18 PM
Hi

There are a few extra rpms that need to go on.  They can all be found in the sail download directory

Code: [Select]
perl-Apache-Htpasswd-1.8-1.el5.rf.noarch.rpm
perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm
perl-IO-Interface-1.04-1.el5.rf.i386.rpm
perl-IO-Socket-Multicast-1.12-1.rhel5.i386.rpm]

These all need to be installed before V3 will work correctly.  Looks like we missed this in the wiki so please accept my apologies and I'll get it fixed asap.

Kind Regards

S
Title: Re: tftp not running with sail-3.1.0-145 ?
Post by: fpausp on February 29, 2012, 10:43:45 AM
Hi,

I have installed the perl-files but still cannot start tftpd:

Code: [Select]
yum list installed | grep tftp
tftp.i386                                0.49-2.el5.centos             installed
tftp-server.i386                         0.49-2.el5.centos             installed

/etc/rc.d/init.d/tftpd start
Starting TFTP server:                                      [FEHLGESCHLAGEN]
Title: Re: tftp not running with sail-3.1.0-145 ?
Post by: fpausp on February 29, 2012, 03:07:29 PM
Code: [Select]
cat /var/log/messages | grep tftp

Feb 29 14:37:10 tx150s4 php: PHP Deprecated:  Function split() is deprecated in /opt/sark/generator/tftpSQL.php on line 66
Feb 29 14:37:32 tx150s4 in.tftpd[3593]: cannot open IPv6 socket, disable IPv6: Address family not supported by protocol
Feb 29 14:37:32 tx150s4 in.tftpd[3593]: Cannot set nonblock flag on socket: Bad file descriptor

uname -r
2.6.18-274.18.1.el5PAE
Title: Re: tftp not running with sail-3.1.0-145 ?
Post by: SARK devs on February 29, 2012, 11:28:04 PM
Is this a new sme install? 

We don't actually do anything with tftp other than to create an entry in hosts.allow and to start/stop it.

From the error messages it looks like there may be a problem with /etc/xinetd.d/tftp.  In nay event that is where I would look first.   

Best

S
Title: Re: tftp not running with sail-3.1.0-145 ?
Post by: SARK devs on April 26, 2012, 06:15:24 PM
Hi

I figured out what this is.  It would seem that there was a change sometime in SME 8 with regard to whether or not the IPv6 modules get loaded.  In the 8b7 installs I have done, they don't.  If they aren't present then tftp will fail with the messages you show above.  This seems to be an oversight or perhaps a bug in the tftp-server code for 0.49-2.  Whatever the reason, it doesn't work.  You can fix it by removing a couple of lines from /etc/modprobe.conf.  Either comment them out or delete them.

Code: [Select]
alias ipv6 off
options ipv6 disable=1
reboot

alternatively (thanks compsos) you can add the switch  --ipv4 to the tftp start in tftpd

Code: [Select]
daemon /usr/sbin/in.tftpd -l --ipv4 -v -v -p -s /tftpboot

With either of these changes, tftp will behave itself and do what it does best.  Of course, this "fix" may break something else that I'm unaware of so YMMV

Best

S

 
Title: Re: tftp not running with sail-3.1.0-145 ?
Post by: fpausp on May 02, 2012, 04:18:49 PM
Hi,

At the moment I use sail-3.1.1-4 and tftpboot is working for me, thanks ...
Title: Re: tftp not running with sail-3.1.0-145 ?
Post by: SARK devs on May 16, 2012, 09:18:29 AM
I have implemented compsos' fix into smesailenv-1.0.0-30.  You can install this onto any 3.1.x sail system and it will fix the TFTP start problem. 

Kind Regards

S