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

    Odd NFS issue

    Scheduled Pinned Locked Moved
    Linux Problems
    5
    34
    12.3k
    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.
    • P
      pugnacious
      last edited by

      If i connect to the FTP server, type the command to change directory to the root, it defaults to inside the images folder. Should it be one directory up?

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @pugnacious
        last edited by

        @pugnacious That’s fine. That means your FTP Path is /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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • P
          pugnacious
          last edited by

          Well, it failed to work yet again. Is there anything I can check to find out what’s not working? I’m trying a debug capture now.

          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
          • Wayne WorkmanW
            Wayne Workman @pugnacious
            last edited by Wayne Workman

            @pugnacious said:

            I’m trying a debug capture now.

            That’s what I would probably have suggested next.

            Since you’ve already uploaded, you don’t need to again. Just try to manually move it yourself via command line using the host’s debug environment.

            Also, pay attention to the variable dump. Maybe something is screwed up there?

            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!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            1 Reply Last reply Reply Quote 0
            • P
              pugnacious
              last edited by

              What command does fog use to move it? Also, Ctrl + C to drop out of the script, correct?

              Wayne WorkmanW 3 Replies Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @pugnacious
                last edited by

                @pugnacious said:

                What command does fog use to move it?

                I’ll find out… stand by…

                Also, Ctrl + C to drop out of the script, correct?

                Yes.

                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!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                1 Reply Last reply Reply Quote 0
                • P
                  pugnacious
                  last edited by

                  standing by. I’m taking notes as I run into issues, so perhaps in the future, some other person might benefit from my roadblocks.

                  Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                  • JJ FullmerJ
                    JJ Fullmer Testers
                    last edited by

                    I mount my /images from an attached array straight into the /images folder and it works without issue. But I’m using ubunutu 14.04 and the drive is formatted as ext4. But regardless I imagine it would still work.

                    What does your /etc/exports look like?

                    cat /etc/exports
                    

                    what does your /etc/fstab say? That’s where the options for mounting it in the os would be

                    cat /etc/fstab
                    

                    what are the permissions currently on /images?

                    ls -l /images
                    

                    Are you on the latest trunk of FOG 1.2? I think FOG 1.2 had a fogstorage user that needed permissions to the storage nodes and its password needs to be set correctly in the gui storage node settings.

                    Does the graph of the space usage display on the fog gui homepage?

                    Are you able to mount the nfs drive elsewhere?
                    for example if you happen to have an enterprise version of windows install the
                    “client for NFS” in the “turn windows features on and off” found in the “add or remove programs” control panel.

                    If that client is installed you can mount an NFS share in windows by either
                    running this command in a run prompt…

                    \fog-server\images

                    or
                    In command line

                    mount \\fog-server\images Z:
                    cd /d Z:
                    Z:\>dir
                    images directory listing pops up
                    

                    Granted @Wayne-Workman is probably right saying you should add it as a separate storage node since its hosted on a different machine and a different OS and all. But some of this might help troubleshoot this if getting it to work is possible through your current configuration

                    Have you tried the FogApi powershell module? It's pretty cool IMHO
                    https://github.com/darksidemilk/FogApi
                    https://fogapi.readthedocs.io/en/latest/
                    https://www.powershellgallery.com/packages/FogApi
                    https://forums.fogproject.org/topic/12026/powershell-api-module

                    Wayne WorkmanW 1 Reply Last reply Reply Quote 1
                    • Wayne WorkmanW
                      Wayne Workman @JJ Fullmer
                      last edited by

                      @Arrowhead-IT He’s working on making a storage node work on Windows. 🙂

                      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!
                      Daily Clean Installation Results:
                      https://fogtesting.fogproject.us/
                      FOG Reporting:
                      https://fog-external-reporting-results.fogproject.us/

                      1 Reply Last reply Reply Quote 1
                      • Wayne WorkmanW
                        Wayne Workman @pugnacious
                        last edited by

                        @pugnacious said:

                        What command does fog use to move it?

                        The file that does it is /var/www/html/fog/service/Post_Stage2.php

                        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!
                        Daily Clean Installation Results:
                        https://fogtesting.fogproject.us/
                        FOG Reporting:
                        https://fog-external-reporting-results.fogproject.us/

                        1 Reply Last reply Reply Quote 0
                        • Wayne WorkmanW
                          Wayne Workman @pugnacious
                          last edited by Wayne Workman

                          @pugnacious Looks like it’s two commands, back to back. a rename, and then a put.

                          if (!$FOGFTP->rename($dest,$src) && !$FOGFTP->put($dest,$src)) throw new Exception(_('Move/rename failed'));

                          We’re going to do this the easy way.

                          Edit this file: /var/www/html/fog/service/Post_Stage2.php and around line 23 where you see this:
                          if (!$FOGFTP->rename($dest,$src) && !$FOGFTP->put($dest,$src)) throw new Exception(_('Move/rename failed'));

                          Change that to:

                          if (!$FOGFTP->rename($dest,$src) && !$FOGFTP->put($dest,$src)) throw new Exception(_('FAILURE-- Destination: ' . $dest . 'Source: ' . $src));

                          That will output the destination and source on the screen. This will help us figure out what’s wrong.

                          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!
                          Daily Clean Installation Results:
                          https://fogtesting.fogproject.us/
                          FOG Reporting:
                          https://fog-external-reporting-results.fogproject.us/

                          1 Reply Last reply Reply Quote 0
                          • Wayne WorkmanW
                            Wayne Workman @pugnacious
                            last edited by

                            @pugnacious This is probably a good time to ask… what error are you getting at the end of the upload? FTP Connection has failed! or Move/rename failed

                            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!
                            Daily Clean Installation Results:
                            https://fogtesting.fogproject.us/
                            FOG Reporting:
                            https://fog-external-reporting-results.fogproject.us/

                            1 Reply Last reply Reply Quote 0
                            • P
                              pugnacious
                              last edited by

                              I just got back to the office. I’m running it again now and i’ll know in a few minutes. Thanks for checking up.

                              1 Reply Last reply Reply Quote 0
                              • P
                                pugnacious
                                last edited by

                                It’s moving too fast for me to see the error message. Would a copy of the FTP logs help (edited to remove security details of course)?

                                From this, it looks like it’s deleting the files, and directory and then quitting instead of moving the files.

                                Anyway, I won’t be back until monday. I’ll check any reply then.

                                Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                • Wayne WorkmanW
                                  Wayne Workman @pugnacious
                                  last edited by

                                  @pugnacious Take a video, upload it to youtube for us to see. From start to finish.

                                  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!
                                  Daily Clean Installation Results:
                                  https://fogtesting.fogproject.us/
                                  FOG Reporting:
                                  https://fog-external-reporting-results.fogproject.us/

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    pugnacious
                                    last edited by

                                    Alright, after a full debug capture, stepping through the steps, it shows no message related to FTP at all. I was thinking it was just too fast, but, it’s simply not there. It says Image Uploaded, restoring MBR, Resizing NTFS Volume, clearing ntfs flag, stopping fog status reporter.

                                    Any suggestions on how I can make it report the error?

                                    Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                    • Wayne WorkmanW
                                      Wayne Workman @pugnacious
                                      last edited by

                                      @pugnacious I wonder if Linux FTP commands and Windows FTP commands are the same?

                                      That’d cause an issue.

                                      @Developers Can you help out and give us the FTP commands that are used?

                                      The source directory is /images/dev/<mac> and destination is /images/<imageName>

                                      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!
                                      Daily Clean Installation Results:
                                      https://fogtesting.fogproject.us/
                                      FOG Reporting:
                                      https://fog-external-reporting-results.fogproject.us/

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        pugnacious
                                        last edited by

                                        I’ve got three machines that I’ve been waiting to image. We need to put those in production and the work is already done creating the images for them. We just need to do a quick clone. I’m thinking it’s either the ftp commands or possibly the NTFS file system on the NFS share. To bypass the problem, i threw together a system and stashed it under my desk running CentOS 7 and with a decently sized hard drive. Now i’m running into another issue installing fog to the machine. It’s running trunk (svn) and it’s freezing at “Downloading inits, kernels, and the fog client”.

                                        I did notice that the svn build was behind what i’m using on the other server. I did use the command to update the svn, and it said it was the same build. I’m going to try and download a fresh copy through git instead as that seems to be the most updated.

                                        Wayne WorkmanW Q 2 Replies Last reply Reply Quote 0
                                        • Wayne WorkmanW
                                          Wayne Workman @pugnacious
                                          last edited by Wayne Workman

                                          @pugnacious git and svn have identical files, both are valid. hanging at the downloading inits and such, that could be a DNS problem, or it could just be busy right now, or maybe a slow internet connection. Give it time, be patient. At my work, that normally takes about 30 seconds.

                                          Just to get yourself going, you can manually move the image on the other server. In the web interface, if you look at the image definition, it’ll have a “Image Path” field. Rename your image to that, and just move it from /images/dev/ to /images and then try to deploy the image to those computers you need to image.

                                          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!
                                          Daily Clean Installation Results:
                                          https://fogtesting.fogproject.us/
                                          FOG Reporting:
                                          https://fog-external-reporting-results.fogproject.us/

                                          1 Reply Last reply Reply Quote 0
                                          • Q
                                            Quazz Moderator @pugnacious
                                            last edited by

                                            @pugnacious Did you disable the firewall and SELinux on the CentOS one? From what I’ve read, they can cause a host of issues on that OS in relation to FOG.

                                            Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            216

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project