R.I.P. PIAF Endpoint Manager

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
First do what darmock said. Next try this version:

http://www.the159.com/endpointman/endpointman-2.10.3.2.tgz

I'm having some strange issues that seem to related to the files in the tftpboot directory. I've attempted to provision a 942 and a T28, and they both appear to fail to download the required files. I can see the requests come in for the appropriate files /spa942.cfg and y00...cfg, but see the request 4 times, and then nothing. The SPA942 will reattempt every hour.

I am certain that the t*f*t*p server is correct, as all of our Aastra phones are working correctly and can pull files/updates over the t*f*t*p. We're not using EPM for the Aastra phones.

Using 2.9.3.2 of the EPM on asterisk 1.6.2.22, freepbx 2.9

TIA,

Carlos.
 

carlosmp

Member
Joined
Jan 20, 2008
Messages
120
Reaction score
1
Yes, just double checked it, and the root is /tftpboot. It's working fine for the Aastra phones, which is the really strange part.

Is it safe to use 2.10.x modules in a freepbx 2.9 environment?
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Yes. it's fine.

But that ONLY applies to my modules.

Yes, just double checked it, and the root is /tftpboot. It's working fine for the Aastra phones, which is the really strange part.

Is it safe to use 2.10.x modules in a freepbx 2.9 environment?
 

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
Hey are the permissions/ownership on the files in tftpboot all the same? I have run across this problem also


Tom
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
EPM tells you if it can't write new files or old files. So they'd have to be correct

Hey are the permissions/ownership on the files in tftpboot all the same? I have run across this problem also


Tom
 

carlosmp

Member
Joined
Jan 20, 2008
Messages
120
Reaction score
1
Yes, permissions and owner are fine. When I first installed the 2.9 current from the159.com, it didn't have the right permissions on the spa942 file, so I changed it to asterisk:asterisk. I'm going to try removing it altogether, removing the files it created

A few more observations:I didn't notice any firmware being downloaded for the yealink. Looking through the y0...cfg file, there should be some subfolders like config, tmp for the settings, or am I reading it incorrectly.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
You are reading that incorrectly. Those are internal file references, not external ones. It tells the linux provisioning server (on the phone) where to place the contents of each section in the phone itself.

You should try 2.10.3.2 because I can work with your directly on problems. Specifically spa942 <-- I just fixed numerous issues with this model

A few more observations:I didn't notice any firmware being downloaded for the yealink. Looking through the y0...cfg file, there should be some subfolders like config, tmp for the settings, or am I reading it incorrectly.
 

carlosmp

Member
Joined
Jan 20, 2008
Messages
120
Reaction score
1
You are reading that incorrectly. Those are internal file references, not external ones. It tells the linux provisioning server (on the phone) where to place the contents of each section in the phone itself.

Got it.

Ok, just ripped the module all out, removed the epm directories and uploaded 2.10.3.2. Files were created with the correct permissions/owner.

Still seeing this in the t*f*t*p logs
Code:
Feb  9 15:17:19 rundc1-svoip44 in.tftpd[2740]: RRQ from 127.0.0.1 filename TEST 
Feb  9 15:23:13 rundc1-svoip44 in.tftpd[6113]: RRQ from <OfficeIP> filename /spa942.cfg 
Feb  9 15:23:16 rundc1-svoip44 in.tftpd[6114]: RRQ from <OfficeIP> filename /spa942.cfg 
Feb  9 15:23:18 rundc1-svoip44 in.tftpd[6115]: RRQ from <OfficeIP> filename /spa942.cfg 
Feb  9 15:23:21 rundc1-svoip44 in.tftpd[6117]: RRQ from <OfficeIP> filename /spa942.cfg

The phone has the right URL:

Profile - t*f*t*p://<PBXIP>/spa942.cfg
Status - Failed
Reason - Download Failed

The phone is on version 6.1.5(a) of the software...

Freepbx is in device and users mode. not sure if this has anything to do with it...
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Device and user mode doesn't make a bit of difference at all and especially not at this step.

Unfortunately this is looking more like a 'system' issue than an 'endpoint manager' issue.

What I mean by that is that the file is there. And the xml is in the file. The phone is requesting that file from the t*f*t*p server but the phone is not getting the file (download failed, not parse error)

Since the problem seems to be happening between your phone and the t*f*t*p server I can't really be of more help.

Steps to check:
-Is there data in that file on the t*f*t*p server? If so paste the spa942.cfg file up here for me to review
-yum install t*f*t*p*
--run t*f*t*p (this is the client version) and then connect to 127.0.0.1 and try to 'get' the file in question, read it on your local machine to make sure it is correct

-factory reset the spa942.

Again I say its more of an issue with your spa and your system than EPM because the spa942 file only has three lines of code in it, one line tells the phone to look for it's mac specific file, your phone (according to your t*f*t*p logs) is not even attempting to request that file. It's really that simple...

PS: You didnt need to sanitize your officeip if it's NAT'd because that would have been meaningless to anyone anyways.
 

sub0

Member
Joined
Feb 21, 2011
Messages
73
Reaction score
1
I took the plunge, rebuilt the templates and imported the end points. Problem is; I am not able to check the "Allow Saving to Hard-Drive Configuration Files" option. When I update the globals, the check box does not stick. When i attempt to update or add new end point it says "File not written to Hard drive!" (permissions in /tftpboot/ are correct)

From /var/log/httpd/error.log:


[Thu Feb 09 12:29:29 2012] [error] [client xxxxxxxxx] PHP Notice: Undefined index: edit_id in /var/www/html/admin/modules/endpointman/templates/freepbx/compiled/devices_manager_1317849422.php on line 210, referer: http://xxxxxxxxx/admin/config.php?type=tool&display=epm_advanced

Another error from the log is:

[Thu Feb 09 12:26:07 2012] [error] [client xxxxxxxxxxxxxx] PHP Notice: Undefined index: edit_id in /var/www/html/admin/modules/endpointman/templates/freepbx/compiled/devices_manager_1317849422.php on line 210, referer: http://xxxxxxxxxxxxx/admin/config.php?type=tool&display=epm_devices
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
The option "Allow Saving to Hard-Drive Configuration Files" does not do what you think it does. It means allow saving over top of the template files. I suppose I should explain that better. In the end it doesnt matter if it's checked or not, the files writing to the tftpboot folder is determined by the option 'HTTP' or 'FILE' in the above drop down.

"File not written to hard drive" can also mean a few things, if I get a file creation or overwrite error from the system then I report that back to you. Hence you probably have some files in there that only root can write to and therefore you are getting that error. It doesn't help to just chmod and chown the directory unless you are doing a recursive one! so please use option -r next time.

Side note: 'PHP Notice' is not an error. just a notice.

I took the plunge, rebuilt the templates and imported the end points. Problem is; I am not able to check the "Allow Saving to Hard-Drive Configuration Files" option. When I update the globals, the check box does not stick. When i attempt to update or add new end point it says "File not written to Hard drive!" (permissions in /tftpboot/ are correct)

From /var/log/httpd/error.log:


[Thu Feb 09 12:29:29 2012] [error] [client xxxxxxxxx] PHP Notice: Undefined index: edit_id in /var/www/html/admin/modules/endpointman/templates/freepbx/compiled/devices_manager_1317849422.php on line 210, referer: http://xxxxxxxxx/admin/config.php?type=tool&display=epm_advanced

Another error from the log is:

[Thu Feb 09 12:26:07 2012] [error] [client xxxxxxxxxxxxxx] PHP Notice: Undefined index: edit_id in /var/www/html/admin/modules/endpointman/templates/freepbx/compiled/devices_manager_1317849422.php on line 210, referer: http://xxxxxxxxxxxxx/admin/config.php?type=tool&display=epm_devices
 

gregpadgett

Member
Joined
Feb 15, 2008
Messages
36
Reaction score
0
Endpoint Manager Not Working

I killed an older install of PIAF that was working and upgraded to PIAF 2.

Endpint Manager installs, but will not get any updates or provision files. I manually installed some and when I submit to provision a phone, I get a blank page with an Error 500 Internal server error. This is the only module in FreePbx that gives me this problem.

I have 80 phones to provision and would love to use this module as I have used it in the past and it was great.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
As has been stated several times in this thread please uninstall endpoint manager

then install this version http://www.the159.com/endpointman/endpointman-2.10.3.2.tgz

I killed an older install of PIAF that was working and upgraded to PIAF 2.

Endpint Manager installs, but will not get any updates or provision files. I manually installed some and when I submit to provision a phone, I get a blank page with an Error 500 Internal server error. This is the only module in FreePbx that gives me this problem.

I have 80 phones to provision and would love to use this module as I have used it in the past and it was great.
 

gregpadgett

Member
Joined
Feb 15, 2008
Messages
36
Reaction score
0
Sorry for not clarifying, but I have already done that. No go.


I still cannot get it to automatically update. - Server Replied with error ''. Unable to download files
Not able to connect to repository. Using local master file instead.

Aborting Brand Downloads. Can't Get Master File, Assuming Timeout Issues!


Manually updated Yealink files. EPM picks up all phones just fine. Set one to an extension and put a template on and click, then goes to a blank page. Same as the previous version.

Very strange, I had no problems prior to upgrading to PIAF2.





As has been stated several times in this thread please uninstall endpoint manager

then install this version http://www.the159.com/endpointman/endpointman-2.10.3.2.tgz
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Why can't you just connect this machine to the internet and give it proper DNS.

Also where are you getting the files to upload manually from?

also 'tail -f /var/log/httpd/error_log' then making the blank page happen would be helpful to me.
 

gregpadgett

Member
Joined
Feb 15, 2008
Messages
36
Reaction score
0
Why can't you just connect this machine to the internet and give it proper DNS.

Also where are you getting the files to upload manually from?

also 'tail -f /var/log/httpd/error_log' then making the blank page happen would be helpful to me.
My machine is connected to the internet and DNS seems to be working as I can ping any domain I try. I can get updates from FreePBX with no problem as well as wget files.

I found the link to the files in one of these forums, I honestly don't remember now I have worked on this so much the last couple of days.

I uninstalled and reinstalled just to try one more time so I do not have the files I uploaded here at home. I will re-upload the files and do the tail..... at work tomorrow.

Thanks for your quick responses.
 

gregpadgett

Member
Joined
Feb 15, 2008
Messages
36
Reaction score
0
My machine is connected to the internet and DNS seems to be working as I can ping any domain I try. I can get updates from FreePBX with no problem as well as wget files.

I found the link to the files in one of these forums, I honestly don't remember now I have worked on this so much the last couple of days.

I uninstalled and reinstalled just to try one more time so I do not have the files I uploaded here at home. I will re-upload the files and do the tail..... at work tomorrow.

Thanks for your quick responses.
I found the files I was using. I downloaded them from http://www.provisioner.net/release/v3/yealink/
 

gregpadgett

Member
Joined
Feb 15, 2008
Messages
36
Reaction score
0
I found the files I was using. I downloaded them from http://www.provisioner.net/release/v3/yealink/
I uninstalled, reinstalled, and uploaded the files. Now instead of a blank page I am getting....

Error Returned From Provisioner Library: Could not load: /var/www/html/admin/modules/_ep_phone_modules/endpoint//global_template_data.json

I also still cannot update automatically.
 

gregpadgett

Member
Joined
Feb 15, 2008
Messages
36
Reaction score
0
Fixed

Ok - after hours of trying to figure out my problem I finally have it fixed.

I decided to take a couple of hours and read each post in this thread. I have already skimmed most of it, but decided to read in detail.

My problem the entire time was my Sonic Wall content filter.

Was there must have been a change in the way the module works? I never had this problem in previous versions and have had Sonic Wall content filtering for a couple of years.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Only change was stop using php cURL and start using system native wget. If wget didnt work then it wouldn't have worked for you I suppose.

However even php was not returning a response code from the server.

Most people would agree that sonicwall is not a good router choice and since I don't have it here in my lab there's nothing much I can do unfortunately.

I could switch between curl and wget, maybe that would help.
 
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top