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

    ClamAV not finisihing download on Host PC

    Scheduled Pinned Locked Moved
    FOG Problems
    4
    16
    4.0k
    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.
    • N
      Nickn0ck
      last edited by

      Hi i am having problem with my FoG server. i can see that its downloading the file on host PC the problem is when it reaches around 70++ percent. It will show an error that unable to write some bytes to file. i have googled everything about this and to no avail. Please help… Thanks!

      1 Reply Last reply Reply Quote 0
      • N
        Nickn0ck
        last edited by

        By the way i am using ubuntu 12.04 LTS and my FOG server version is 0.32 THanks!

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          Maybe your disk space is exceeded? Run this command on your FOG server to see how much space is left:
          [CODE]df -h[/CODE]

          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
          • JunkhackerJ
            Junkhacker Developer
            last edited by

            could there be a problem with the disk you’re trying to download to?

            signature:
            Junkhacker
            We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

            1 Reply Last reply Reply Quote 0
            • N
              Nickn0ck
              last edited by

              Hi Thanks for the Reply Junkhacker on the FOG Home page i am only using 4 percent of the hard drive. it doesnt have any images or what so ever. im kinda having trouble making this work. i think i am only using around 5GB of space on my hard drive. and it has a total of 50 GB

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

                What version of FOG are you using?

                It sounds like you’re using a version where clamav is embedded in the init.gz/xz file. This issue isn’t due to the hard disk directly. It’s most likely due to it trying to put the clamav database file on the init sections itself. The Init is capped at a specific size. Minor text edits can be done, but files over say 10mb will have issues.

                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
                • N
                  Nickn0ck
                  last edited by

                  [quote=“Tom Elliott, post: 41890, member: 7271”]What version of FOG are you using?

                  It sounds like you’re using a version where clamav is embedded in the init.gz/xz file. This issue isn’t due to the hard disk directly. It’s most likely due to it trying to put the clamav database file on the init sections itself. The Init is capped at a specific size. Minor text edits can be done, but files over say 10mb will have issues.[/quote]

                  Hi sir is there a way to work around on this? how do i resize the init.gz file? i am using fog 0.32 with ubuntu 12.04 LTS

                  1 Reply Last reply Reply Quote 0
                  • N
                    Nickn0ck
                    last edited by

                    Is there a way to increase the size of init.gz on fog 0.32?

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by

                      This is untested and probably not supported but you can give it a try. You’ll find that file in ‘/var/www/fog/service/ipxe’ (this is in version 1.2.0, hope it hasn’t changed).
                      [CODE]# cd /var/www/fog/service/ipxe

                      gunzip init.gz

                      mkdir original

                      mount -o loop init original[/CODE]

                      Now you can see and change the files in init.gz. But to increase the size you’d have to create a new one. So check the size of the old one first, create a new bigger one, mount that and copy all contents:
                      [CODE]# df -h
                      …
                      /dev/loop0 57M 49M 4.7M 92% var/www/fog/service/ipxe/original

                      dd if=/dev/zero of=new.img bs=1M count=100

                      mkdir new

                      mount -o loop new.img new

                      df -h

                      …

                      rsync -av original/ new/[/CODE]

                      [B]Make sure that you have the slashes right when running ‘rsync’ or you’ll end up with a broken directory structure inside the init-file.[/B]
                      [CODE]# unmount original

                      unmount new

                      mv init init_original

                      gzip init_original

                      mv new.img init

                      gzip init[/CODE]

                      Try booting your clients…

                      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

                        [quote=“Uncle Frank, post: 41904, member: 28116”]This is untested and probably not supported but you can give it a try. You’ll find that file in ‘/var/www/fog/service/ipxe’ (this is in version 1.2.0, hope it hasn’t changed).
                        [/quote]

                        Yes it has changed, but to help out the location for 0.32 is:
                        [CODE]# cd /tftpboot/fog/images/

                        gunzip init.gz

                        mkdir original

                        mount -o loop init original[/CODE]

                        Now you can see and change the files in init.gz. But to increase the size you’d have to create a new one. So check the size of the old one first, create a new bigger one, mount that and copy all contents:
                        [CODE]# df -h
                        …
                        /dev/loop0 57M 49M 4.7M 92% /tftpboot/fog/images/original

                        dd if=/dev/zero of=new.img bs=1M count=100

                        mkdir new

                        mount -o loop new.img new

                        df -h

                        …

                        rsync -av original/ new/[/CODE]

                        [B]Make sure that you have the slashes right when running ‘rsync’ or you’ll end up with a broken directory structure inside the init-file.[/B]
                        [CODE]# unmount original

                        unmount new

                        mv init init_original

                        gzip init_original

                        mv new.img init

                        gzip init[/CODE]

                        Try booting your clients…[/quote]

                        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
                        • N
                          Nickn0ck
                          last edited by

                          [quote=“Tom Elliott, post: 41906, member: 7271”]Yes it has changed, but to help out the location for 0.32 is:
                          [CODE]# cd /tftpboot/fog/images/

                          gunzip init.gz

                          mkdir original

                          mount -o loop init original[/CODE]

                          Now you can see and change the files in init.gz. But to increase the size you’d have to create a new one. So check the size of the old one first, create a new bigger one, mount that and copy all contents:
                          [CODE]# df -h
                          …
                          /dev/loop0 57M 49M 4.7M 92% /tftpboot/fog/images/original

                          dd if=/dev/zero of=new.img bs=1M count=100

                          mkdir new

                          mount -o loop new.img new

                          df -h

                          …

                          rsync -av original/ new/[/CODE]

                          [B]Make sure that you have the slashes right when running ‘rsync’ or you’ll end up with a broken directory structure inside the init-file.[/B]
                          [CODE]# unmount original

                          unmount new

                          mv init init_original

                          gzip init_original

                          mv new.img init

                          gzip init[/CODE]

                          Try booting your clients…[/quote][/quote]

                          Hi sir tom Thanks,

                          im having trouble mounting the new image that will replace the init.gz it always says that it needs to specify a file type please see the picture for reference i dont know what file system init.gz use

                          [url=“/_imported_xf_attachments/1/1668_mounting.JPG?:”]mounting.JPG[/url]

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

                            I think you have to first format the img file you’re working with:

                            [code]mkfs.ext2 new.img[/code]

                            Then you can mount it with:

                            [code]mount -o loop new.img new[/code]

                            run your commands to rsync the data.

                            Then you can unmount.

                            Run fsck on the new img file with:

                            [code]fsck.ext2 new.img[/code]

                            Then rename the file to make gzip easier and knowledgable:

                            [code]mv new.img init
                            gzip -9 init[/code]

                            Hopefully this helps.

                            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
                            • N
                              Nickn0ck
                              last edited by

                              Thanks sir Tom. i have manage to resize the init.gz files with the instructions that you have provided. will try later if i could sucessfully download the clamAV

                              [url=“/_imported_xf_attachments/1/1669_resized init.JPG?:”]resized init.JPG[/url]

                              1 Reply Last reply Reply Quote 0
                              • N
                                Nickn0ck
                                last edited by

                                well now i have tried it on 100mb and still having problems on 80 percent. it says failed to write again. i raised the capacity to 150 and this error shows up. even if i raised it up until 500mb i still have this same error please see the picture for references thanks!

                                [url=“/_imported_xf_attachments/1/1670_init.gz problem.JPG?:”]init.gz problem.JPG[/url]

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

                                  You can maintain the same size at 150, or 500.

                                  However, you will need to upsize the amount of ram. I forget if this is even possible on 0.32. Basically FOG Configuration->FOG Settings->General Settings->TFTP Server->FOG_KERNEL_RAMDISK_SIZE

                                  Change it from 127000 to say 600000 (to allow the size of 500MB if you wanted 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! 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
                                  • N
                                    Nickn0ck
                                    last edited by

                                    [quote=“Tom Elliott, post: 41986, member: 7271”]You can maintain the same size at 150, or 500.

                                    However, you will need to upsize the amount of ram. I forget if this is even possible on 0.32. Basically FOG Configuration->FOG Settings->General Settings->TFTP Server->FOG_KERNEL_RAMDISK_SIZE

                                    Change it from 127000 to say 600000 (to allow the size of 500MB if you wanted it.[/quote]

                                    Thanks again sir tom, i have tried it again and it always failed around 80 percent again failed to write again. the space is @ 250mb is it still the size of the acocated space on tftp that causes this? if i cant make this work can you recommend me some newer version of fog that doesn’t need to update the ClamAV

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

                                    182

                                    Online

                                    12.1k

                                    Users

                                    17.3k

                                    Topics

                                    155.3k

                                    Posts
                                    Copyright © 2012-2024 FOG Project