[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FIXED: Host is not a tftp server
Author Message
hckeith Offline
Junior Member
**

Posts: 4
Joined: Nov 2016
Reputation: 0
Post: #1
FIXED: Host is not a tftp server
Hi,

I'm attempting to provision a T23G via TFTP with FreePBX. I can see the TFTP request come in on the TFTP server, and it requests its two config files, however the phone is not updating with its config.

I downloaded the log from the handset itself and it is full of TFTP errors like below:

Quote:ATP [399]: ATP <3+error > tftp to file failed, code = -16, msg = Host is not a tftp server, retry = 1

I can't understand this. If the handset is requesting the files via TFTP, I can see the files being provided to the handset on the TFTP server, then why does the handset think it's not a TFTP server?

I've tried this with a couple of handsets now, one being a T22P, and I'm getting this error in all of their logs, each time though I can see the files being requested on the server.

What would cause the handset to not recognise a TFTP server as a TFTP server? If I can understand this, I may be able to get closer to resolving this.

Thanks for anyone's help they may be able to offer. I'll continue playing around with it in the meantime.
(This post was last modified: 11-22-2016 08:14 PM by hckeith.)
11-18-2016 11:46 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Karl_Yealink Offline
Super Moderator
******

Posts: 673
Joined: Apr 2015
Reputation: 5
Post: #2
RE: Host is not a tftp server
can you send the whole log of phone to us, so we can check more.
11-21-2016 09:39 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
hckeith Offline
Junior Member
**

Posts: 4
Joined: Nov 2016
Reputation: 0
Post: #3
RE: Host is not a tftp server
Hi Karl,

Happy to do this, but can you PM me an e-mail address to send the log to? The forum e-mail system is timing out on me.
11-21-2016 12:10 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
mivk Offline
Banned

Posts: 9
Joined: Nov 2016
Post: #4
RE: Host is not a tftp server
You could first try to get the file with a plain tftp client. On my Ubuntu system, the command is like
Code:
tftp your.tftp.server -c get your_file.cfg
(With a different client, the options may be different)
11-21-2016 09:50 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
hckeith Offline
Junior Member
**

Posts: 4
Joined: Nov 2016
Reputation: 0
Post: #5
RE: Host is not a tftp server
Thanks for that tip mivk.

I used the TFTP client feature in Windows and tried to download a file. I'm seeing the request come into the TFTP server on FreePBX multiple times (with no errors), but I'm not getting the file back.

This could be why the phone is reporting that it's "not a TFTP server", as it's not getting anything back from its request. This is starting to look like it's a TFTP server issue on FreePBX rather than the phone.
I've further confirmed this by spinning up a FreePBX server as a VM at home and TFTP is working fine on this one with a Yealink handset.

I'll do some more investigating around that and report back with my findings in the hope it will help someone else out!
11-22-2016 12:24 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
hckeith Offline
Junior Member
**

Posts: 4
Joined: Nov 2016
Reputation: 0
Post: #6
RE: Host is not a tftp server
Just a quick update.

I've been reading up on the TFTP protocol, and it's not firewall friendly. The issue appears to be firewall related.

Rather than using TFTP, I'm trying out provisioning via other protocols. HTTP provisioning is working fine (ultimately will use HTTPS and/or authentication).

So, the phone responding with 'Host is not a TFTP server', appears to be the error you get when no response is received by the phone from the TFTP server. The way I'd try and explain this is, if your phones are behind a firewall, they request a TFTP connection on UDP 69, but the file transfer can then take place on a random (but dynamically negotiated) UDP port. You'd have to NAT all UDP ports through to your phone for TFTP provisioning to work.
Indeed, I did test this by NAT'ing all UDP traffic from the server to the phone, and it did actually provision via TFTP. Obviously unless you only have one phone on your internal network, with an internal static IP, NAT'ing traffic from one server to multiple phones is not possible, so in the scenario where your TFTP server is on a separate network to your phones with a firewall inbetween, an alternative provisioning protocol (that uses only a single port for everything - FTP probably wouldn't work either), is the way to go.

I'll mark this as 'fixed' as the issue wasn't really phone related (but the error in the logs didn't make much sense at the time). Hopefully this will help someone else out who's stuck.

Perhaps a more meaningful error in the logs such as 'no reply from TFTP server' would be appropriate?
(This post was last modified: 11-22-2016 08:16 PM by hckeith.)
11-22-2016 08:13 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Karl_Yealink Offline
Super Moderator
******

Posts: 673
Joined: Apr 2015
Reputation: 5
Post: #7
RE: FIXED: Host is not a tftp server
Great to hear that this problem fixed. I check the complete log.

TFTP<5+notice> tftp open begin, host: 94.228.41.239, port:69, remote_name:00156583cb03.cfg
TFTP<6+info > Send Request Packet
Nov 19 23:54:02 ATP [399]: ATP <3+error > tftp to file failed, code = -16, msg = Host is not a tftp server, retry = 1
Nov 19 23:54:02 ATP [399]: ATP <4+warnin> Download mac.cfg fail

From the first line, we can know the tftp server address is 94.228.41.239 and the port is 69.
Request file is 00156583cb03.cfg. Then the third line, we can see that phone fail to download the mac.cfg file.
The phone send TFTP request packet, and phone don't receive any replay, the phone show error message ' Host is not a tftp server'.

Sound 'no reply from TFTP server' it's better than ' Host is not a tftp server', I will give suggestion to our RD.
11-23-2016 07:29 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  T46U Not Contacting Provisioning Server 88fingerslukee 0 2,847 09-06-2022 11:43 PM
Last Post: 88fingerslukee
  settings are not updating from autoprovision server AdmshipYard 1 6,983 02-20-2021 04:20 PM
Last Post: AdmshipYard
  PROBLEM WITH W80B AND W80DM certificate server acces TWT_Support 1 8,651 02-18-2021 06:55 AM
Last Post: bitblock
  Is it possible to set auto_provision.server.url via a servlet call? scully 2 8,878 05-01-2020 01:53 PM
Last Post: richardoux
  Repeated AutoProvision TFTP/HTTP Issue patrick_keys 1 6,549 02-10-2020 05:04 PM
Last Post: jolouis
  need complete list of yealink rps server IP's for firewall DanH 1 11,305 07-26-2019 07:00 AM
Last Post: anonymous1718628087441
  T23G won't donwload y000000000044.cfg from Provisioning Server rsardinha 3 11,451 04-12-2019 06:13 PM
Last Post: rsardinha
  Bulk Manual config Tx Series ( With Server URL, Username & Password ) stéphane 2 9,513 01-28-2019 04:01 PM
Last Post: jolouis
  rps server is down jonathon@californiatelecom.com 4 12,529 01-18-2019 06:42 PM
Last Post: jolouis
  Ni file name in POST URLs [Was: How exactly are -local.cfg files POSTed to server ?] oliv 8 23,737 11-09-2018 01:58 PM
Last Post: jolouis

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication