• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Error : attempting to update database failed

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    4
    2.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      froydo
      last edited by

      Server
      • FOG Version: 1.3.0RC36
      • OS: Ubuntu14
      Client
      • Service Version:
      • OS: Windows 10
      Description

      Toward to end of capturing my first image from a laptop - I suddeny saw “Error: attempting to update database failed” many times and then it rebooted and attempted the image task again - I stopped the process immediately - as I think it will surely fail again. I saw there’s a similar issue on this post :

      https://forums.fogproject.org/topic/8201/error-returned-reattempting-to-update-database-failed/16

      I’ve just chmod 777 images folder.
      But the logs are a little different:
      Host: Username: fog in /var/www/html/fog/lib/fog/fogftp.class.php:367\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogftp.class.php(772): FOGFTP->ftperror(Array)\n#1 /var/www/html/fog/lib/reg-task/taskqueue.class.php(366): FOGFTP->rename(‘/images/dev/54e…’, ‘/images/win10le…’)\n#2 /var/www/html/fog/lib/reg-task/taskqueue.class.php(412): TaskQueue->_moveUpload()\n#3 /var/www/html/fog/service/Post_Stage2.php(24): TaskQueue->checkout()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/fogftp.class.php on line 367
      [Fri Dec 16 16:01:03.071469 2016] [php7:warn] [pid 16266] [client ] PHP Warning: ftp_rename(): Rename failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 769
      [Fri Dec 16 16:01:03.071998 2016] [php7:warn] [pid 16266] [client ] PHP Warning: ftp_put(): Could not create file. in /var/www/html/fog/lib/fog/fogftp.class.php on line 703
      [Fri Dec 16 16:01:03.072180 2016] [php7:error] [pid 16266] [client ] PHP Fatal error: Uncaught Exception: Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, Line: 703, Message: ftp_put(): Could not create file., Host: , Username: fog in /var/www/html/fog/lib/fog/fogftp.class.php:367\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogftp.class.php(772): FOGFTP->ftperror(Array)\n#1 /var/www/html/fog/lib/reg-task/taskqueue.class.php(366): FOGFTP->rename(‘/images/dev/54e…’, ‘/images/win10le…’)\n#2 /var/www/html/fog/lib/reg-task/taskqueue.class.php(412): TaskQueue->_moveUpload()\n#3 /var/www/html/fog/service/Post_Stage2.php(24): TaskQueue->checkout()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/fogftp.class.php on line 367

      I deleted the ips - but just wondering if its related…

      F 1 Reply Last reply Reply Quote 0
      • F
        froydo @froydo
        last edited by

        @froydo
        Many thanks Tom, that helped fixed the problem It works now and I have the image now in the server 🙂

        1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott
          last edited by

          Please run:

          sudo chmod -R 777 /images && sudo chown -R fog:root /images

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • F
            froydo
            last edited by

            Thanks Tom,

            Its now
            drwxrwxrwx 4 fog root 4096 Dec 16 13:13 images

            I’m trying the imaging process again. fingers and toes crossed

            1 Reply Last reply Reply Quote 0
            • F
              froydo @froydo
              last edited by

              @froydo
              Many thanks Tom, that helped fixed the problem It works now and I have the image now in the server 🙂

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              204

              Online

              12.1k

              Users

              17.3k

              Topics

              155.3k

              Posts
              Copyright © 2012-2024 FOG Project