Forums

Resolved
0 votes
Hey Folks,

I have a v7 install that's been chugging along with no issues for a while. Tried to hit Webconfig to it today and I am getting a 500 Error in the browser and this in the log:


[Thu Nov 16 09:43:35.832434 2017] [:error] [pid 1717] [client 10.101.1.215:54481] PHP Fatal error: Call to a member function where() on a non-object in /usr/clearos/framework/system/libraries/Session.php on line 288


Applicable line from the listed file:
                // Run the update query
$this->CI->db->where('session_id', $this->userdata['session_id']);


SSH and all servers working just fine - only Webconfig impacted.

As far as I know nothing has changed. No updates pending and a reboot did not help. Clearing browser cache/fresh browser still results in the same error.

Hoping someone here can shed some light on the issue?

Appreciate any thoughts.

Jim
Thursday, November 16 2017, 02:55 PM
Share this post:

Accepted Answer

Friday, November 17 2017, 12:58 AM - #Permalink
Resolved
0 votes
Jim,

Can you run:

package-cleanup --cleandupes
service webconfig restart


Yes...it's OK to confirm the removal of a large list of packages...these are duplicates (older) that have already been replaced by the newer ones, but somehow (I'll be asking Pete to see if he has any insights) a yum upgrade left your server (and a few others apparently) in a state where the upgrade wasn't completed.

And report back here...I think this will solve your issues.

Ben
The reply is currently minimized Show
Responses (25)
  • Accepted Answer

    Thursday, December 14 2017, 06:07 PM - #Permalink
    Resolved
    0 votes
    It is much easier not to use the console if you can avoid it. My server is in the attic and effectively runs headless. If you use Windows, get yourself a copy of PuTTy and WinSCP - they are both free. PuTTy will give you a remote terminal. You can copy from it by selecting text and paste into it by right-clicking. WinSCP will give you a graphical file manager and a basic text editor (or you can configure it to use a text editor of your choice like Notepad++). WinSCP even has a button to launch PuTTy.

    There is no obvious reason for bash not to find those commands and you can copy them from the forum and paste them into PuTTy.
    The reply is currently minimized Show
  • Accepted Answer

    Earl Marks
    Earl Marks
    Offline
    Thursday, December 14 2017, 04:03 PM - #Permalink
    Resolved
    0 votes
    Morning... so the updates were done through web conf. still no dhcp screen and other screens. the command return bash command not found. just to make sure i am on the right place log into Clearos Alt F2 enter the scrip after log in....

    feeling a reinstall the only fix
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 12 2017, 09:35 AM - #Permalink
    Resolved
    0 votes
    So you are saying Webconfig > Network > Infrastructure > DCHP Server comes up with a 404? If so, please try a:
    yum reinstall app-dhcp*
    service webconfig restart
    If it works, please then check your DHCP settings are still OK.
    The reply is currently minimized Show
  • Accepted Answer

    Earl Marks
    Earl Marks
    Offline
    Monday, December 11 2017, 11:20 PM - #Permalink
    Resolved
    0 votes
    did not work...This is above my knowledge level. the system been working so well to
    Ideas?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 11 2017, 08:06 AM - #Permalink
    Resolved
    0 votes
    Can you try another manual update then restart the webconfig:
    yum update
    service webconfig restart
    Or reboot afterwards instead of restarting the webconfig.
    The reply is currently minimized Show
  • Accepted Answer

    Earl Marks
    Earl Marks
    Offline
    Monday, December 11 2017, 12:52 AM - #Permalink
    Resolved
    0 votes
    So the log in works web access but now have no DHCP list. come up 404 page not found ? gateway seem to be working
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, December 10 2017, 06:55 PM - #Permalink
    Resolved
    0 votes
    Good, I was just about to post with instructions. BTW it does not roll back the update - it completes it as it failed part way through or some reason.
    The reply is currently minimized Show
  • Accepted Answer

    Earl Marks
    Earl Marks
    Offline
    Sunday, December 10 2017, 06:43 PM - #Permalink
    Resolved
    0 votes
    OK !! surprised
    myself i got it!! Thanks ... back running and rolled back the update
    The reply is currently minimized Show
  • Accepted Answer

    Earl Marks
    Earl Marks
    Offline
    Sunday, December 10 2017, 05:57 PM - #Permalink
    Resolved
    0 votes
    sorry not good at this os ..... need some help I can not log in. seems to be locked out.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, December 10 2017, 01:36 PM - #Permalink
    Resolved
    0 votes
    Have you seen and tried the Accepted Answer?
    The reply is currently minimized Show
  • Accepted Answer

    Earl Marks
    Earl Marks
    Offline
    Sunday, December 10 2017, 11:02 AM - #Permalink
    Resolved
    0 votes
    Have the same issue! In the past i have to rollback updates as it will not let some site load.
    Is a re load the only resolve to this?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, November 17 2017, 04:26 PM - #Permalink
    Resolved
    0 votes
    Ah - nice Ben. Cleaned up 240+ packages and Webconfig working again.
    Appreciate you guys as always.
    Jim
    The reply is currently minimized Show
  • Accepted Answer

    Stephen
    Stephen
    Offline
    Thursday, November 16 2017, 11:09 PM - #Permalink
    Resolved
    0 votes
    I've just realised that I only have a Silver business subscription - I don't know if that will be a problem.

    Steve
    The reply is currently minimized Show
  • Accepted Answer

    Stephen
    Stephen
    Offline
    Thursday, November 16 2017, 10:58 PM - #Permalink
    Resolved
    0 votes
    Ticket lodged. Hopefully I've done it correctly, it's the first time I've raised a ticket.

    Cheers
    Steve
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 16 2017, 10:50 PM - #Permalink
    Resolved
    0 votes
    Glad I didn't cause this with mail archive update.

    Need one volunteer to give me remote access... please create a support ticket and mention this post and request SSH remote login on the ticket.

    I'll figure out what's happened and report back here for anyone else who might have this issue.

    B
    The reply is currently minimized Show
  • Accepted Answer

    Stephen
    Stephen
    Offline
    Thursday, November 16 2017, 10:25 PM - #Permalink
    Resolved
    0 votes
    Just in case this helps, I have had a look through the error logs and the

    PHP Fatal error:  Call to a member function where() on a non-object in /usr/clearos/framework/system/libraries/Session.php on line 288


    error listed against every client ip address on the network, even though only one is ever used to connect to the webconfig. So I am guessing this is not limited to webconfig access but that is the one it is affecting.

    Steve
    The reply is currently minimized Show
  • Accepted Answer

    Stephen
    Stephen
    Offline
    Thursday, November 16 2017, 10:14 PM - #Permalink
    Resolved
    0 votes
    Is there any way of rolling back to 7.3 without reinstalling ?

    Steve
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 16 2017, 10:13 PM - #Permalink
    Resolved
    0 votes
    3rd Nov was the huge 7.3 -> 7.4 update
    The reply is currently minimized Show
  • Accepted Answer

    Stephen
    Stephen
    Offline
    Thursday, November 16 2017, 09:50 PM - #Permalink
    Resolved
    0 votes
    Also checking back through the logs, the error started on 7th November so I'm not sure if that fits in with any update. I am going to see if I can pin down any updates that happened at the same time.

    Steve
    The reply is currently minimized Show
  • Accepted Answer

    Stephen
    Stephen
    Offline
    Thursday, November 16 2017, 06:35 PM - #Permalink
    Resolved
    0 votes
    I don't know if this will help diagnose the issue but if I comment out lines 288 and 289 of /usr/clearos/framework/system/libraries/Session.php I can get to the login page. However it won't let me log in (presumably because the session is not being passed forward). Un-commenting the two lines brings back the "unable to handle this request" error page.

    Steve
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 16 2017, 06:13 PM - #Permalink
    Resolved
    0 votes
    Hey Dave/Ben,

    I don't ever get the chance to login but yes - same issue on all those URLs (Dave).
    I do not have the Mail Archive on this install that I recall.

    Jim
    The reply is currently minimized Show
  • Accepted Answer

    Stephen
    Stephen
    Offline
    Thursday, November 16 2017, 05:02 PM - #Permalink
    Resolved
    0 votes
    Hi Ben

    No mail archive, to be honest I haven't changed anything for over a year.

    Steve
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 16 2017, 04:56 PM - #Permalink
    Resolved
    0 votes
    I have a feeling that if we dig deeper, this is going to be my fault.

    Do you two guys happen to have purchased the mail archive app on these to boxes?

    B
    The reply is currently minimized Show
  • Accepted Answer

    Stephen
    Stephen
    Offline
    Thursday, November 16 2017, 04:40 PM - #Permalink
    Resolved
    0 votes
    Hiya

    I am getting exactly the same problem and error. I have no access to the webconfig, none of the pages. The standard http 'congratulations your web server is running' page is fine. the line 288 error is in my logs as well.

    It has been running fine ever since install (over a year ago).

    This has been like this for the past week or so. Does anyone have any suggestions that I can try to get it back ?

    Steve
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 16 2017, 03:40 PM - #Permalink
    Resolved
    0 votes
    Do you get this on all pages in webconfig or just some? Try these:

    https://serverip:81/app/dns
    https://serverip:81/app/users
    https://serverip:81/app/network
    The reply is currently minimized Show
Your Reply