Menu

Latest Framework locks out GUI

Trebor T
2016-09-20
2016-09-22
  • Trebor T

    Trebor T - 2016-09-20

    Not sure if this is a bug or I am a missing something obvious.

    Inexperienced user !!

    Notified of 3 updates to modules, Framework -UCP and one other sip
    settings I think.
    UCP needed latest framework so update that and got gpg error, so ran
    the refresh keys and it installed, then ran UCP update and all was well.

    About 2hours later went to check a peer connection but now get told
    invalid user or password !

    Tried,
    a2enmod rewrite
    service apache2 restart.

    Did a Google search but a lot of info seems to be rather old and I was
    reluctant to try some, however made a duplicate copy of sd card so I could try fixes.

    Tried amportal a u session id....no luck still locked out.

    so then did raspbx-upgrade ... still same problem.

    Then found fwconsole commands, tried fwconsole unlock sessionid
    no luck either

    Here is error when running the unlock

    directories are there and so is ss_p93saeeksqbqberhp1lhgqjf51

    root@raspbx2:/# fwconsole unlock p93saeeksqbqberhp1lhgqjf51
    Unlocking: p93saeeksqbqberhp1lhgqjf51
    Session Should be unlocked now
    Whoops\Exception\ErrorException: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5/sessions) in file Unknown on line 0
    Stack trace:

    1. () Unknown:0
      root@raspbx2:/# cd /var/lib/php5/sessions
      root@raspbx2:/var/lib/php5/sessions# ls
      sess_p93saeeksqbqberhp1lhgqjf51
      root@raspbx2:/var/lib/php5/sessions#

    However looking in php.ini, found in /etc/php5/apache2 I can see under [Session] that
    session.save_path = "/var/lib/php5/sessions" is commented out with a ;
    should I un-comment this line ?

    Has any one had this problem with the framework update and if so how did they get around the problem ?

    Running on Pi Zero which has been working fine for the past few weeks.

    Grateful for any advice.

     
    • Pascal Kreil

      Pascal Kreil - 2016-09-21

      I don't think it's something related to RASPBX. I had the same effect on one RASPBX. Reason: SD-Card damage which corrupted the Database. I restored a raspbx-backup on a new card and everything is fine again. Restored the CRD-Database which was intact (Asterisk was still working).

      There was a change in Update 24 to avoid to much wear of sd cards by reducing the polling interval for dashboard statistics to every hour.

       
  • Dave Fyfe

    Dave Fyfe - 2016-09-21

    I ran FreePBX module update for framework and seemed to stick on download. I thought it was my broadband connection but have tried twice now and both failed.

     
  • Trebor T

    Trebor T - 2016-09-22

    I have now got access to the GUI - but it has been a long trail of failures.

    The tutorial https://sourceforge.net/p/raspbx/discussion/tutorials/thread/25da3346/ on this site does not appear to work (for me at least) due to fwconsole interception.

    Howver I found from a posting on another site by Nerd Vittles, a way of adding user, so with a bit of modification and using some info from the tutorial I came up with the following.

    SSH log in with your credentials

    Copy and paste the following

    mysql -uroot -praspberry asterisk -e "INSERT INTO ampusers (username, password_sha1, sections)
    VALUES ('zzz', '40fa37ec00c761c7dbb6ebdee6d4a260b922f5f4', '*');"

    This gave me access to the gui with user zzz and password zzz

    once in, clicked on administrators, retyped the name and password you would have used originally, clicked submit.

    Logged out, then logged back in using the original name and password ,(not the zzz you just created) and it worked, also works with the zzz zzz..

     
    👍
    1

Log in to post a comment.

Auth0 Logo