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

    Latest FOG 0.33b

    Scheduled Pinned Locked Moved
    General
    77
    1.6k
    6.4m
    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
      rado
      last edited by

      Hi, I created (very) simple UML diagram of FOG 0.33. Just classes (that I found in /var/www/fog/lib/fog/) and their associations (no functions and variables of classes) and for now, doesn’t look nice, but it’s start. It’s been created in UMLet. I was not able to upload source (it has .uxf extension), so just .pdf. Is it possible to allow .uxf?

      [url=“/_imported_xf_attachments/0/512_fog_0.33_v01.pdf?:”]fog_0.33_v01.pdf[/url]

      1 Reply Last reply Reply Quote 0
      • T
        Troye Johnson
        last edited by

        Good morning all. Tom I am downloading new version as we speak will let you know if I have any problems.

        Fog Server information

        Cent OS 7
        Running Version 1.5.2

        1 Reply Last reply Reply Quote 0
        • F
          fabritrento
          last edited by

          [quote=“Tom Elliott, post: 21774, member: 7271”]It’s all good. You can decompress the init.gz with xz -d -c init.gz > init

          Then mount the init file created to another directory. I Usually create a tmp folder inside /tftpboot/fog/images/
          [code]
          mkdir tmp
          xz -d -c init.gz > init
          mount -o loop init tmp
          [/code]

          [/quote]

          i tryed to modify fog script.

          simply modified the line:

          partclone.${fs_type} -c -s $part -O /tmp/pigz1 -N -f 1 2>/tmp/status.fog

          with:

          part_fs_type=blkid $part | awk 'BEGIN {FS="\""} { print $4 }' ### row patch to use correct partclone.fstype
          partclone.${part_fs_type} -c -s $part -O /tmp/pigz1 -N -f 1 2>/tmp/status.fog

          in upload section. I think that must work, but to test i recreated init.gz with:

          umount ./init
          xz -z -c init > init.gz
          and overwrited original init.gz into tftp/fog dir : don’t boots 😞

          what i must do to recreate a working init.gz?

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            xz -C crc32 -z -c init > init.gz (I think)

            That said, I don’t think that command will work.

            extfs, ntfs, hfsp, btrfs, xfs are the partclone binary names. so if i read your script right, if it comes up as ext4, it’s going to try partclone.ext4 which is 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! 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
            • F
              fabritrento
              last edited by

              [quote=“Tom Elliott, post: 21829, member: 7271”]xz -C crc32 -z -c init > init.gz (I think)

              That said, I don’t think that command will work.

              extfs, ntfs, hfsp, btrfs, xfs are the partclone binary names. so if i read your script right, if it comes up as ext4, it’s going to try partclone.ext4 which is wrong.[/quote]

              administrator@fog:~/tmp/usr/sbin$ sudo ln -s partclone.extfs partclone.ext4
              administrator@fog:~/tmp/usr/sbin$ sudo ln -s partclone.extfs partclone.ext3
              administrator@fog:~/tmp/usr/sbin$ sudo ln -s partclone.extfs partclone.ext2

              works like a charm 😄

              1 Reply Last reply Reply Quote 0
              • F
                fabritrento
                last edited by

                [quote=“fabritrento, post: 21830, member: 21607”]administrator@fog:~/tmp/usr/sbin$ sudo ln -s partclone.extfs partclone.ext4
                administrator@fog:~/tmp/usr/sbin$ sudo ln -s partclone.extfs partclone.ext3
                administrator@fog:~/tmp/usr/sbin$ sudo ln -s partclone.extfs partclone.ext2

                works like a charm :D[/quote]
                exist a develop environment where i can access and do testing?

                1 Reply Last reply Reply Quote 0
                • F
                  fabritrento
                  last edited by

                  [quote=“fabritrento, post: 21828, member: 21607”]i tryed to modify fog script.

                  simply modified the line:

                  partclone.${fs_type} -c -s $part -O /tmp/pigz1 -N -f 1 2>/tmp/status.fog

                  with:

                  part_fs_type=blkid $part | awk 'BEGIN {FS="\""} { print $4 }' ### row patch to use correct partclone.fstype
                  partclone.${part_fs_type} -c -s $part -O /tmp/pigz1 -N -f 1 2>/tmp/status.fog

                  [/quote]

                  alternatively we can insert this:

                  else
                  part_fs_type=blkid $part | awk 'BEGIN {FS="\""} { print $4 }'| sed -e 's/1/fs/g' |sed -e 's/2/fs/g'|sed -e 's/3/fs/g'|sed -e 's/4/fs/g' ### row patch to use correct partclone.fstype
                  partclone.${part_fs_type} -c -s $part -O /tmp/pigz1 -N -f 1 2>/tmp/status.fog
                  partclone.${fstype} -c -s $part -O /tmp/pigz1 -N -f 1 2>/tmp/status.fog
                  fi
                  what is the more correct solution?

                  1 Reply Last reply Reply Quote 0
                  • T
                    Troye Johnson
                    last edited by

                    hey Tom I am getting a new error now. This is after dropping my old database because the currpted client would not let me access much and starting a new one I re inventory the computer whiched worked fine but now I am getting this.

                    Unable to determain snapin status because the MAC address was not correctly formated.

                    Fog Server information

                    Cent OS 7
                    Running Version 1.5.2

                    1 Reply Last reply Reply Quote 0
                    • F
                      fabritrento
                      last edited by

                      [quote=“fabritrento, post: 21833, member: 21607”]alternatively we can insert this:

                      else
                      part_fs_type=blkid $part | awk 'BEGIN {FS="\""} { print $4 }'| sed -e 's/1/fs/g' |sed -e 's/2/fs/g'|sed -e 's/3/fs/g'|sed -e 's/4/fs/g' ### row patch to use correct partclone.fstype
                      partclone.${part_fs_type} -c -s $part -O /tmp/pigz1 -N -f 1 2>/tmp/status.fog
                      partclone.${fstype} -c -s $part -O /tmp/pigz1 -N -f 1 2>/tmp/status.fog
                      fi
                      what is the more correct solution?[/quote]

                      i’m testing image upload right now, in some minutes i say to you if patch worked…

                      1 Reply Last reply Reply Quote 0
                      • T
                        Troye Johnson
                        last edited by

                        Tom,

                        Could my errors be related to hyper-v?

                        Fog Server information

                        Cent OS 7
                        Running Version 1.5.2

                        1 Reply Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott
                          last edited by

                          I don’t know, what kind of errors are you getting now?

                          I’m currently working to fix multiple snapins to be deployed, so it could be that’s broken at the moment. I only got individual snapins working.

                          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
                          • F
                            fabritrento
                            last edited by

                            [quote=“fabritrento, post: 21837, member: 21607”]i’m testing image upload right now, in some minutes i say to you if patch worked…[/quote]

                            there is a problem, the blkid inclluded in init.gz don’t print the fstype.

                            on my server:
                            blkid
                            /dev/loop0: UUID=“04291dff-b6e6-4815-8549-b1a83d66f145” TYPE=“ext2”
                            /dev/sda1: UUID=“b842abee-3fbf-4347-a451-ec9e0b3b3aa8” TYPE=“ext2”
                            /dev/sda5: UUID=“0Oxvj0-osLb-ilwF-e7d0-oJeK-Za9o-IEsjcW” TYPE=“LVM2_member”
                            /dev/mapper/fog–vg-root: UUID=“b3e21764-e54a-4bbb-9907-0b9d05555c58” TYPE=“ext4”
                            /dev/mapper/fog–vg-swap_1: UUID=“82810d84-f19c-40ee-a3e8-fa51d6f6e84f” TYPE=“swap”

                            on the client started with init.gz:

                            blkid
                            /dev/sda1: UUID=“b842abee-3fbf-4347-a451-ec9e0b3b3aa8”
                            /dev/sda2: UUID=“0Oxvj0-osLb-ilwF-e7d0-oJeK-Za9o-IEsjcW”

                            i try to copy the binary of blkid by hand from server and re-run fog script.

                            1 Reply Last reply Reply Quote 0
                            • Tom ElliottT
                              Tom Elliott
                              last edited by

                              That probably won’t work, but I’ll add it to the init.gz when I get a chance.

                              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
                              • T
                                Troye Johnson
                                last edited by

                                I am getting this error with out any snapins being deployed

                                Unable to determain snapin status because the MAC address was not correctly formated.

                                Fog Server information

                                Cent OS 7
                                Running Version 1.5.2

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Troye Johnson
                                  last edited by

                                  Is it because in fog the MAC address are using : and not -. I am not sure if that is the cause of the formatting error.

                                  Fog Server information

                                  Cent OS 7
                                  Running Version 1.5.2

                                  1 Reply Last reply Reply Quote 0
                                  • Tom ElliottT
                                    Tom Elliott
                                    last edited by

                                    No, if you look at the access.log on your fog server, you can actually see the command being sent. I think, in my testing late last night, I set up different error tags to see if I could get things working, or see where they were failing. #!im was the error as it was easily identifiable. I may have forgotten to remove it from the snapins.checkin.php. I’ll be updating here shortly.

                                    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
                                    • Tom ElliottT
                                      Tom Elliott
                                      last edited by

                                      r1132 released.

                                      Rewrite of the servicemodule-active script. Multiple snapins in deploy job works now. Error codes should be fixed.

                                      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
                                      • T
                                        Troye Johnson
                                        last edited by

                                        Hey Tom,

                                        Still getting invalid MAC error I attached fog service log.

                                        [url=“/_imported_xf_attachments/0/513_fog2.txt?:”]fog2.txt[/url]

                                        Fog Server information

                                        Cent OS 7
                                        Running Version 1.5.2

                                        1 Reply Last reply Reply Quote 0
                                        • Tom ElliottT
                                          Tom Elliott
                                          last edited by

                                          What’s your fog servers accesslog display for the snapins.checkin.php stuff?

                                          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
                                          • T
                                            Troye Johnson
                                            last edited by

                                            I attached the logs and access log is just the end of the log let me know if you need more.

                                            [url=“/_imported_xf_attachments/0/515_error.txt?:”]error.txt[/url][url=“/_imported_xf_attachments/0/516_accessupload.txt?:”]accessupload.txt[/url]

                                            Fog Server information

                                            Cent OS 7
                                            Running Version 1.5.2

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 28
                                            • 29
                                            • 30
                                            • 31
                                            • 32
                                            • 77
                                            • 78
                                            • 30 / 78
                                            • First post
                                              Last post

                                            206

                                            Online

                                            12.1k

                                            Users

                                            17.3k

                                            Topics

                                            155.3k

                                            Posts
                                            Copyright © 2012-2024 FOG Project