Error : attempting to update database failed



  • 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…



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



  • 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


  • Senior Developer

    Please run:

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


Log in to reply
 

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.