• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. natefog
    N
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    natefog

    @natefog

    0
    Reputation
    182
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    natefog Unfollow Follow

    Latest posts made by natefog

    • RE: Backing up database... failed!

      @wayne-workman

      Should have known, php7, ugh. I tried earlier following a few forum posts on updating the references to php5 to 7, but they didn’t seem applicable to what I had going on, but apparently not.

      I found another thread where you gave some steps on how to deal with this, so I’m going to try those: https://forums.fogproject.org/topic/7131/fog-on-ubuntu-16-04-php7/26

      [Thu Sep 07 12:14:41.291700 2017] [php7:error] [pid 7562] [client 10.0.0.31:50282] PHP Fatal error:  Uncaught Error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php:443\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogcontroller.class.php(527): PDODB->insertId()\n#1 /var/www/html/fog/lib/fog/hookmanager.class.php(59): FOGController->save()\n#2 /var/www/html/fog/lib/fog/reportmaker.class.php(75): HookManager->processEvent('REPORT_TYPES', Array)\n#3 [internal function]: ReportMaker->__construct()\n#4 /var/www/html/fog/lib/fog/fogbase.class.php(457): ReflectionClass->newInstanceArgs(Array)\n#5 /var/www/html/fog/maintenance/backup_db.php(23): FOGBase::getClass('ReportMaker')\n#6 {main}\n  thrown in /var/www/html/fog/lib/db/pdodb.class.php on line 443
      
      
      posted in Linux Problems
      N
      natefog
    • RE: Backing up database... failed!

      Anyone get this working? I’m having the same issue when trying to upgrade to the latest stable release v1.4.4, although my instance is local (and am using the wiki installation guide).

      I’ve upgraded FOG a few times before with the same method in the past and never had an issue, but now I’m getting the backup database error message (what’s up with the two front slashes?). I tried using the ignore error switch (-X), but when it asks me to go to the website to update the schema and I’m just getting a -500 error.

      A point in any direction would be great as I’ve been playing around with various posts ideas for about an hour and haven’t had any luck. I’m running ubuntu 16.04 lts with php 7.1.

      Backing up database.........................................Failed!
      
      ##above is last line from install script, below is last part of the error log
      
      Sep 07 11:06:09 BHAMFOG01 systemd[1]: Started The PHP 7.1 FastCGI Process Manager.
      --2017-09-07 11:06:11--  http://10.0.0.31//fog//maintenance/backup_db.php
      Connecting to 10.0.0.31:80... connected.
      HTTP request sent, awaiting response... 302 Found
      Could not parse String-Transport-Security header
      Location: ?node=schema [following]
      --2017-09-07 11:06:11--  http://10.0.0.31//fog//maintenance/backup_db.php?node=schema
      Connecting to 10.0.0.31:80... connected.
      HTTP request sent, awaiting response... 500 Internal Server Error
      2017-09-07 11:06:11 ERROR 500: Internal Server Error.
      

      Thanks for everything so far, I love this project and due to the wiki and forums have been fairly self-sufficient thus far, but this one has me scratching my head.
      Nate

      posted in Linux Problems
      N
      natefog