1.5.2 FreePBX reload failure

Discussion in 'General' started by VoIPDoug, Jun 12, 2009.

  1. VoIPDoug

    Joined:
    Mar 1, 2009
    Messages:
    28
    Likes Received:
    0
    So I've done an update and loading of additional modules from unembeded FreePBX I get this message

    "Reload failed because retrieve_conf encountered an error:126"

    "exit 126"
    "sh: /var/lib/asterisk/bin/retrieve_conf: Permission denied"

    Why would this file be denied permission it's owned by asterisk, if someone can please assist, I'd hate to have to "re-install"

    this is a fresh install of Elastix 1.5.2 stable
     
  2. VoIPDoug

    Joined:
    Mar 1, 2009
    Messages:
    28
    Likes Received:
    0
    Okay so I did some digging around and I temporarily comented out the current password in /etc/amportal.conf it now looks like this:

    # AMPDBHOST: the host to connect to the database named 'asterisk'
    AMPDBHOST=localhost

    # AMPDBUSER: the user to connect to the database named 'asterisk'
    AMPDBUSER=asteriskuser

    # AMPDBENGINE: the type of database to use
    AMPDBENGINE=mysql

    # AMPDBPASS: the password for AMPDBUSER
    AMPDBPASS=admin #eLaStIx.asteriskuser.2oo7

    # AMPENGINE: the telephony backend engine to use
    AMPENGINE=asterisk

    # AMPMGRUSER: the user to access the Asterisk manager interface
    AMPMGRUSER=admin

    # AMPMGRPASS: the password for AMPMGRUSER
    AMPMGRPASS=admin #elastix456

    # AMPBIN: where command line scripts live
    AMPBIN=/var/lib/asterisk/bin

    #AMPSBIN: where (root) command line scripts live
    AMPSBIN=/usr/sbin

    # AMPWEBROOT: the path to Apache's webroot (leave off trailing slash)
    AMPWEBROOT=/var/www/html

    # AMPCGIBIN: the path to Apache's cgi-bin dir (leave off trailing slash)
    AMPCGIBIN=/var/www/cgi-bin

    Where red indicates changes,

    The error now reads:

    "Error: Did not recieve valid response from server"
     
  3. Bob

    Bob

    Joined:
    Nov 4, 2007
    Messages:
    2,400
    Likes Received:
    1
    VoIPDoug,

    Can you provide the exact steps you have taken to get to the fault. As you can appreciate from the lack of posts, not many have this issue, and the Elastix system, especially 1.5.2 is more stable than that. It has been reported recently on Freepbx, but this was mainly someone building their own system from the ground up.

    So we need to know the following at least and anything else that you have done.

    1) What ISO did you originally use (the full image name you burnt to disk with date suffix)
    2) Did you perform a YUM Update?
    3) Have you enabled other repositories such as Beta etc?
    4) Freepbx Module update, did you update after the YUM update or before
    5) Have you done any other minor changes to correct certain areas e.g. FOP trunk issue, made a modification to a file??

    At least if you answer these questions, others can run a test on test systems and try and reproduce, and if necessary provide you with a fix / enter a bug report.

    Anyhow, in the meantime just check the rights on the retrieve.conf file which should be the following
    -rwxrwxr-x asterisk:asterisk
    In fact this should be the rights on all the files in the directory, except for the Symbolic links in that directory

    Also reverse your changes to your Amportal.conf file as I believe you are running up the wrong track on that one.

    Regards

    Bob
     
  4. VoIPDoug

    Joined:
    Mar 1, 2009
    Messages:
    28
    Likes Received:
    0
    God, thanks Rob for the quick response I appreciate your diligence. I've used tbox for quite sometime and I'm sick of it. I've used elastix on my home lab for about 8mo now and I love it. I even put it in a freinds business. I was an S.E. for Nortel back in the EnterpriseEdge (BCM 1.0)days and have done VoIP for quite a number of years. Still a little rusty on the Opensource front but fast learning. Anyway thanks for the quick response.

    Anyhow, if you will look at your quoted statement I'll answer your questions in purple as best as possible. you can also PM me if you'd like my digits and we can talk full-duplex about it. I did follow your recommendations and all looks good from a rights perspective on the file. I also reversed my changes.

    Cheers,

    P.S. Mate, what are you doing working on a Saturday he?

    Douglas
     
  5. Bob

    Bob

    Joined:
    Nov 4, 2007
    Messages:
    2,400
    Likes Received:
    1
    VoiPDoug,

    Thanks for your quick replies, it helps keeping a thread moving.

    However, that is why I am explaining that I am going to be off air for the next 5-6 hours. I have an on-field refereeing (soccer/football) examination which I have to attend.

    When I get back I will quickly run up a fresh 1.5-2 and perform the same steps, and see if it is a Yum update causing the issue or a freepbx update (although before replying last - I updated one of our systems to the latest Freepbx updates and no issues).

    Will jump back back on when I get back, and see if any others have been able to help as well.

    Regards

    Bob
     
  6. VoIPDoug

    Joined:
    Mar 1, 2009
    Messages:
    28
    Likes Received:
    0
    thanks Rob, Long Live the Wallabies, RU all the way!
     
  7. VoIPDoug

    Joined:
    Mar 1, 2009
    Messages:
    28
    Likes Received:
    0
    Hey mate, get anywhere with your test?
     
  8. ramoncio

    Joined:
    May 12, 2010
    Messages:
    1,663
    Likes Received:
    0
    I think, as Bob says, it is a permissions problem.

    In a bash console type:

    Code:
    ls -la /var/lib/asterisk/bin/retrieve_conf
    
    In the output you should see this permissions:

    Code:
    -rwxrwxr-x 1 asterisk asterisk 27310 may  7 00:56 /var/lib/asterisk/bin/retrieve_conf
    
    If it doesn't, change them with:

    Code:
    chmod 775 /var/lib/asterisk/bin/retrieve*
    
     
  9. VoIPDoug

    Joined:
    Mar 1, 2009
    Messages:
    28
    Likes Received:
    0
    the permissions are as they should be, I've already checked it but I can do a chmod 755 manually just in case.
     
  10. VoIPDoug

    Joined:
    Mar 1, 2009
    Messages:
    28
    Likes Received:
    0
    Uh, yeah, did the chmod 755 on that file just in case and still get permission denied. I guess I'm going to have to do a re-install
     

Share This Page