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

At the end of capturing an image, FTP login incorrect...New Rocky Fog srv

Scheduled Pinned Locked Moved Unsolved
Linux Problems
3
6
257
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.
  • R
    RocksAndRolls
    last edited by RocksAndRolls Oct 25, 2024, 10:45 AM Oct 25, 2024, 4:43 PM

    Hi I am facing a block due to this error I am receiving after captures on our new fog server (migrated from debian to rocky)

    a8e72a8c-5cfd-47b0-8017-d2d7676f707b-image.png

    bzImage kernel downloads are No problem since I set the tftp password.

    Can anyone please tell me why it is logging into FTP at the end of a capture, after it captures over 120GB… Strange but I’d like to understand!

    Original post

    T 1 Reply Last reply Oct 25, 2024, 5:29 PM Reply Quote 0
    • T
      Tom Elliott @RocksAndRolls
      last edited by Oct 25, 2024, 5:29 PM

      @RocksAndRolls So NFS is mounted on the host and used as the place to put the files into a storage point separate of the deployable image point.

      After the capture completes, FTP (to the server from the server) is used to move the captured image to the actual image path.

      For example you have an existing image called: Windows 10, with a path of /images/Windows10

      You create a new “base” image for this and are in the process of capturing it anew. But at the same time another 2 machines are configured to be deployed in the mean time:

      You are capturing the new Windows10 in /images/dev/<mac_of_host_capturing> and the 2 other machines that are trying to be deployed can still run at the same time.

      The FTP you see called is to move the /images/dev/<mac_of_host_capturing> to /images/Windows10 once it completes.

      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
      • R
        RocksAndRolls
        last edited by Dec 12, 2024, 11:26 PM

        This post is deleted!
        T 1 Reply Last reply Dec 13, 2024, 10:50 AM Reply Quote 0
        • T
          Tom Elliott @RocksAndRolls
          last edited by Dec 13, 2024, 10:50 AM

          @RocksAndRolls I’m guessing, possibly, somebody changed the ftp path for the image location from /images to /home/fogproject/ftp?

          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

          R 1 Reply Last reply Dec 17, 2024, 7:07 PM Reply Quote 0
          • R
            RocksAndRolls @Tom Elliott
            last edited by Dec 17, 2024, 7:07 PM

            @Tom-Elliott Hey so did a lot of verifying and no one changed it but there WAS a filesystem issue on the /images drive (due to storage failure)

            So now /images is back and it can read images off the mount but I get ftp_put() -> Could not create file., Host: xxxx, Username: fogproject

            However theres is plenty of space on the /images volume and its mapped and works for regular file operations

            06d32e01-3468-4267-be4b-500704d66c17-image.png

            All passwords updated, ftp storage, fogproject user, and the credentials are updated credentials in file for ftp.

            G 1 Reply Last reply Dec 17, 2024, 8:42 PM Reply Quote 0
            • G
              george1421 Moderator @RocksAndRolls
              last edited by Dec 17, 2024, 8:42 PM

              @RocksAndRolls I’m not sure how much additional help I can provide here but where it failing is at the end of the imaging process, the target system logs into the ftp server on the FOG server using the fogproject user account. That fogproject user MUST be able to rename the captured file in /images/dev from the mac address and the move the directory from /images/dev/<mac_address> to /images/<image_name>.

              If you have verified you can log into the fog server via ftp as the fogproject user using the password saved in the fog ui then it has to be a permission issue on the /images directory.

              The image capture process is

              FOS Engine -> connects to /images/dev NFS share and creates a directory that matches it’s mac address
              FOS Engine -> Uploads the disk connect as the root user (on the FOS Engine)
              FOS Engine -> Connects to the FOG server as fogproject user and issues a mv command to move the directory from /images/dev/<mac_address> to /images/<image_name>
              FOS Engine -> Logs out of ftp and completes the cleanup before reboot.

              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!

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

              261

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project