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

    FTP Windows Storage Node

    Scheduled Pinned Locked Moved
    General Problems
    2
    12
    1.2k
    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.
    • V
      Victor.R
      last edited by Victor.R

      Hello,

      I have a problem with the FTP works of Windows Storage Node.

      When I start the Fog capture, the capture of image works properly, but it is at the time of copy of Image in the Windows Storage with FTP that the process fail. The process execute the command FTP “CHMOD 777 /images/VM-Win10-Gen1” but it doesn’t work over Windows. (see below the screenshots).

      Can you help me please?

      Here the error:
      FileZilla log: 2021-01-14_21h03_49.png
      Created file: 2021-01-14_21h05_09.png

      Here my configurations:
      Storage Node: 2021-01-14_21h00_01.png
      Image: 2021-01-14_21h00_54.png
      FileZilla serveur: 2021-01-14_21h07_57.png

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @Victor.R
        last edited by

        @victor-r When you add the storage node to a master node it should update the management user ID and password correctly. If you suspect the password is wrong for some reason you can

        1. On the storage node, there is a hidden file /opt/fog/.fogsettings Look at that file and glean the password.
        2. On a windows computer ftp to the storage node using the fogproject user ID and the password you gleaned from the .fogsettings file. If you can log in then the password is still accurate. Update the storage node management password with what you gleaned from the file. This password is unique to each install of FOG.
        3. While you still have an open ftp session to the storage node, key in cd /images then mkdir test1 then ls does the test1 directory exist? If no then you need to look into permissions. If yes then key in rmdir test1 and you are done.

        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!

        V 1 Reply Last reply Reply Quote 0
        • V
          Victor.R @george1421
          last edited by

          @george1421 it is not a problem of identification or permissions. Because in FTP connection, cd /images, mkdir (I finds well the folder created in the windows storage) and ls is good works.

          The problem is that windows is not managed by the CHMOD.

          Is it possible to remove the CHMOD function from the capture process?

          george1421G 2 Replies Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @Victor.R
            last edited by george1421

            @victor-r said in FTP Windows Storage Node:

            The problem is that windows is not managed by the CHMOD.
            Is it possible to remove the CHMOD function from the capture process?

            OK I totally missed something here, how did windows get involved with the FOG imaging or replication process? Are you using a windows server as a storage node?

            Edit: duh, the very first line of your post. I do have to say that FOG doesn’t support Windows storage node even if I created a tutorial on it. That tutorial is several years old.

            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!

            V 1 Reply Last reply Reply Quote 0
            • V
              Victor.R @george1421
              last edited by

              @george1421 said in FTP Windows Storage Node:

              FOG doesn’t support Windows storage node

              All right, so at the present time FOG doesn’t support Windows storage node and so there is no sollution for my problem.
              Will Fog ever support storage windows?

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @Victor.R
                last edited by

                @victor-r So if you want to hack up fog there is a way.

                vi /var/www/html/fog/lib/fog/fogftp.class.php

                This section of code

                    126     public function chmod(
                    127         $mode,
                    128         $filename
                    129     ) {
                    130         if (!$mode) {
                    131             $mode = $this->get('mode');
                    132         }
                    133         @ftp_chmod(
                    134             $this->_link,
                    135             $mode,
                    136             $filename
                    137         );
                    138         return $this;
                    139     }
                
                

                remove lines 133 to 137
                save the file and reboot the master node.

                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!

                V 1 Reply Last reply Reply Quote 0
                • george1421G
                  george1421 Moderator @Victor.R
                  last edited by

                  @victor-r said in FTP Windows Storage Node:

                  Will Fog ever support storage windows?

                  There is no plans as far as I know to allow Windows to function as a FOG storage node unless you can run a linux subsystem on it.

                  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!

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    Victor.R @george1421
                    last edited by Victor.R

                    @george1421 I think the best sollution is a NAS.

                    1 Reply Last reply Reply Quote 0
                    • V
                      Victor.R @george1421
                      last edited by

                      @george1421 I will try this.

                      george1421G 1 Reply Last reply Reply Quote 0
                      • george1421G
                        george1421 Moderator @Victor.R
                        last edited by

                        @victor-r said in FTP Windows Storage Node:

                        I will try this.

                        Worst you can do is break your FOG server…

                        Just rerun the installer and it will fix everything you tweak in the code.

                        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!

                        V 1 Reply Last reply Reply Quote 0
                        • V
                          Victor.R @george1421
                          last edited by

                          @george1421 said in FTP Windows Storage Node:

                          Worst you can do is break your FOG server…

                          Editing the file (remove lines 133 to 137) does not work?

                          george1421G 1 Reply Last reply Reply Quote 0
                          • george1421G
                            george1421 Moderator @Victor.R
                            last edited by

                            @victor-r Interesting… there must be some other code that is doing that. Rerun the fog installer to put things back.

                            Just to be sure I’m looking in the right area, you are trying to replicate your images from the FOG server to the windows storage node or are you trying to capture directly to a windows storage node?

                            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

                            221

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project