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

Capture : Update Database Failed but :

Scheduled Pinned Locked Moved Solved
FOG Problems
2
5
195
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.
  • G
    guyfox
    last edited by Jan 17, 2025, 1:42 PM

    Hello ,

    I’ve an infrastructure with 1 fogserver and several separate nodes . All was perfectly working but :

    Since update from 1.5.9.x to 1.5.10.1629, i met an error when capturing images .

    Update database failed ; failed to open stream …

    I met this issue before and solved it , but in this case there is something i don’t understand :

    -Each time i launch a capture : the folder /images/dev/‘macaddresscaptured’ is created with root : root privileges .
    If i edit rights during capture and do : chown -R fogproject:root /images/dev/macaddresscaptured ,
    Update Database is successfull after capturing .

    ??
    I never met this error before , what i’m doing wrong .
    I’ve Check all the KB’s on UpdateDatabase Failed, and all password in my config seem’s to be ok .

    For information The error returned :
    Error returned : Type: 2, file /var/www/html/fog/lib/fog/fogftp.class.php LIne : 714, Message ftp_put(/images:dev/‘macaddresscaptured’): failed to open stream : NO such file or directory , Host : ‘Ip ofnodeserver’, Username; fogproject

    Thanks in advanced guys .

    T 1 Reply Last reply Jan 17, 2025, 2:53 PM Reply Quote 0
    • G
      guyfox
      last edited by Mar 18, 2025, 10:17 AM

      Finally , @Tom-Elliott

      Reinstallation of fog solved the problem . I think the issue was linked to the fogproject account. This issue can be closed.

      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott @guyfox
        last edited by Jan 17, 2025, 2:53 PM

        @guyfox 1.5.10.x and forward adjusted permissions from /images (recursively) to use fogproject

        So I might suggest:

        chown -R fogproject:fogproject /images
        chmod -R 775 /images
        

        This is to make sure security is much better than it was in the past.

        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

        G 1 Reply Last reply Feb 3, 2025, 9:12 AM Reply Quote 0
        • G
          guyfox @Tom Elliott
          last edited by Feb 3, 2025, 9:12 AM

          @Tom-Elliott Thanks .

          But this has not solved my problem .
          Update Database after capturing is only success if i edit rights from root to fogproject during capture on the folder : images/dev/macad

          I’ll try to relaunch installer to check .

          G 1 Reply Last reply Mar 18, 2025, 10:14 AM Reply Quote 0
          • G
            guyfox @guyfox
            last edited by Mar 18, 2025, 10:14 AM

            Finally , @Tom-Elliott

            Reinstallation of fog solved the problem . I think the issue was linked to the fogproject account. This issue can be closed.

            1 Reply Last reply Reply Quote 0
            • G
              guyfox
              last edited by Mar 18, 2025, 10:17 AM

              Finally , @Tom-Elliott

              Reinstallation of fog solved the problem . I think the issue was linked to the fogproject account. This issue can be closed.

              1 Reply Last reply Reply Quote 0
              • [[undefined-on, T Tom Elliott, Mar 18, 2025, 1:03 PM]]
              • 1 / 1
              • First post
                Last post

              154

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project