Exception: Protocol 'tftp' is not enabled. Please enable in System Admin module

I got this error after making a change to an extension, turning off voicemail.
I think I’m running Asterisk 13 but not sure. I can’t get to the GUI!
I have purchased Sysadmin Pro and EPM.

Exception
HELP
Protocol ‘tftp’ is not enabled. Please enable in System Admin module

The following appears at the address of the pbx, and no navigation or access to the pbx is possible.

Server/Request Data
HTACCESS on
HTTP_HOST 192.168.10.38
HTTP_CONNECTION keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS 1
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
HTTP_ACCEPT_ENCODING gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.8,ru;q=0.6
HTTP_COOKIE lang=en_US; searchHide=1; PHPSESSID=tgn1km2p9ktqubabuegedfv7c7; _ga=GA1.1.1928842533.1475328000
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE Apache/2.2.15 (CentOS) Server at 192.168.10.38 Port 80
SERVER_SOFTWARE Apache/2.2.15 (CentOS)
SERVER_NAME 192.168.10.38
SERVER_ADDR 192.168.10.38
SERVER_PORT 80
REMOTE_ADDR 192.168.10.172
DOCUMENT_ROOT /var/www/html
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /var/www/html/admin/config.php
REMOTE_PORT 62099
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /admin/config.php
SCRIPT_NAME /admin/config.php
PHP_SELF /admin/config.php
REQUEST_TIME 1481347839
GET Data
empty
POST Data
empty
Files
empty
Cookies
lang en_US
searchHide 1
PHPSESSID tgn1km2p9ktqubabuegedfv7c7
_ga GA1.1.1928842533.1475328000
Session
langdirection ltr
module_name core
module_page extensions
AMP_user ampuser Object ( [username] => larry [id] => 1 [password:ampuser:private] => 621c71f72273ae6fb79e6b55b2d0c311c5e1a2ac [extension_high:ampuser:private] => [extension_low:ampuser:private] => [sections:ampuser:private] => Array ( [0] => * ) [mode:ampuser:private] => usermanager [opmode:ampuser:private] => [deptname] => [_lastactivity] => 1481347840 )
fwmsg Array ( [last_dest] => ext-group,299,1 )
epmWrite Array ( [ext] => 104 [brand] => polycom )
Environment Variables
empty
Registered Handlers
0. Whoops\Handler\PrettyPageHandler

If I remember correctly, the problem is caused by telling EPM that you want to use TFTP for configuration, but TFTP is not configured in the system. This is outside the normal scope of FreePBX (since it’s a Linux Configuration question), but the answer is to enable TFTP.

If you look back through the forum, you should find a few places where we’ve explained this. The most recent one was about three weeks ago.

That shouldn’t be appearing on EVERY page, and it may be a bug. Try this, from the command line:

fwconsole ma upgrade endpoint

See if it is upgradeable?

I had enabled tftp before posting this issue, but it had no effect.

I ran the following command but it also had no effect.

> [root@pbx ~]# fwconsole ma upgrade endpoint
> No repos specified, using: [commercial,extended,unsupported,standard] from last GUI settings

> Starting endpoint download..
> Processing endpoint
> Verifying local module download...Verified
> Extracting...Done
> Module endpoint successfully downloaded
> Checking database tables...Done
> Migrating tables as required...Done
> Checking Settings and Defaults...Done
> Generating Configs...Done
> Generating CSS...Done
> Module endpoint successfully installed
> Updating Hooks...Done
> Updating Hooks...Done
> [root@pbx ~]#

Please, any one have any other ideas? I cannot use get onto the web GUI. I am lost!

Hi Lars:

This appears to be an Endpoint issue, but I can’t figure out what’s going on from what you’ve provided. Can you open a commercial module support ticket so we can take a look:

This does appear to be some kind of bug. Disabling TFTP crashed GUI regardless of which section I went to. Expounding on this link:

Here are the commands to get the GUI back up, note this changes all templates to use http even if the GUI does not reflect that.

[root@server]# mysql
MariaDB [(none)]> use asterisk;
MariaDB [(none)]> select protocol from endpoint_templates;
±---------+
| protocol |
±---------+
| 2 |
| 1 |
±---------+
2 rows in set (0.00 sec)

MariaDB [(none)]> update endpoint_templates set protocol =2;
MariaDB [(none)]> select protocol from endpoint_templates;
±---------+
| protocol |
±---------+
| 2 |
| 2 |
±---------+
2 rows in set (0.00 sec)