Unable to save setting for device in UCP

FreePBX 14.0.13.4 installed via SNG7 distro.
I am able to get to the UCP, login, and add widgets to dashboard. I have added the Device Managment widget but after clicking the gear icon to get to Device Managment Settings and filling in speed dial info, when I click the save button nothing happens. In /var/log/httpd/access.log i can see:
ip.addrsss.of.client - - [18/Jul/2019:11:34:55 -0800] “POST /ucp/ajax.php HTTP/1.1” 200 146764 “http:///ucp/” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.3
6 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36”
everythine i click the save button. Thsi is all via http and not https.

I am gettin errors on https:
Unable to connect to the UCP Node Server because: ‘Error: xhr poll error’
Bu t I believe that is a different issue, only mentioned it here for compleateness.
Any suggestions?
Thanks,
John

Ok, I solved the https issue so now I am accessing the UCP via https. I genertaed a new certificate after deleting the CA. then updated the default cert in sysadmin and cert managment.
Still unable to save settings in the device managment settings widget. In /var/log/httpd/access_log i get:
192.168.7.97 - - [23/Jul/2019:15:36:42 -0800] “POST /ucp/index.php?quietmode=1&module=endpoint&command=savesettings HTTP/
1.1” 200 29 “https://my.fqdn/ucp/” "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko
) Chrome/69.0.3497.100 Safari/537.36
when i click the save button.
Nestat shows ports 8001 and 8003 are listening.
ps -ef | grep node
asterisk 11852 10666  0 15:30 ?        00:00:00 node /var/www/html/admin/modules/ucp/node/index.js
ls -la /var/www/html/admin/modules/ucp/node/
total 20
drwxrwxr-x   6 asterisk asterisk  100 Jul 23 15:16 .
drwxrwxr-x   9 asterisk asterisk 4096 Jul  8 02:07 …
-rw-rw-r--   1 asterisk asterisk  791 Feb 21 02:09 index.js
drwxrwxr-x   2 asterisk asterisk   96 Feb 21 02:09 lib
drwxrwxr-x   2 asterisk asterisk   25 Jul 23 15:16 logs
drwxrwxr-x   2 asterisk asterisk   70 Feb 21 02:09 modules
drwxrwxr-x 141 asterisk asterisk 4096 Apr 18 13:56 node_modules
-rw-rw-r--   1 asterisk asterisk  481 Feb 21 02:09 package.json
ls -la /tftpboot/
total 408
drwxr-xr-x.  8 asterisk asterisk   4096 Jul 15 16:15 .
dr-xr-xr-x. 18 root     root        240 Jun 20 07:05 …
-rw-r–r--   1 asterisk asterisk  39174 Jul 23 08:52 00085D71CECA.cfg
-rw-r–r--   1 asterisk asterisk  39174 Jul 23 08:52 01085D71C979.cfg
-rw-r–r--   1 asterisk asterisk  39174 Jul 23 08:52 02085D71CBF1.cfg
-rw-r–r--   1 asterisk asterisk  39174 Jul 23 08:52 03085D71CE17.cfg
ps -ef | grep httpd
root      1030     1  0 15:29 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
asterisk  1527  1030  0 15:29 ?        00:00:02 /usr/sbin/httpd -DFOREGROUND
asterisk  1528  1030  0 15:29 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
asterisk  1531  1030  0 15:29 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
asterisk  1532  1030  0 15:29 ?        00:00:02 /usr/sbin/httpd -DFOREGROUND
asterisk 13182  1030  0 15:33 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
asterisk 13187  1030  0 15:33 ?        00:00:03 /usr/sbin/httpd -DFOREGROUND
asterisk 13188  1030  0 15:33 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
asterisk 13278  1030  0 15:33 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND
asterisk 13279  1030  2 15:33 ?        00:00:11 /usr/sbin/httpd -DFOREGROUND
asterisk 13280  1030  0 15:33 ?        00:00:01 /usr/sbin/httpd -DFOREGROUND
asterisk 14096  1030  0 15:35 ?        00:00:00 /usr/sbin/httpd -DFOREGROUND

As a test I upgraded ucp to edge and still no luck.
Hoping for some guidece here as I am not figuring this out.

John

Try upgrading endpoint to edge

Thak You PitzKey.
fwconsole ma --edge upgrade endpoint
endpoint | 14.0.18 | Enabled | Commercial |
fwconsole restart
Unfortunatly this did not change the behaviour.

You don’t need to restart Asterisk after updating a module.

You need to run

fwconsole reload

After upgrading modules.

Anyways, did you try clearing browser cache.

yes, I cleared cache.

Even tho this is in UCP, but I think this is part of the commercial module EPM, so I think you need to contact support for that.

Ok. Thanks for you help.

FYI: I talked with support on this, they responded very fast and were great. I was told that the fix for this was just added to endpoint 4.0.19. Ended up upgrading to 4.0.20 and now all is good.
Thank You Sangoma/FreePBX support!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.