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

    Image replication loop - incorrect file size calculation

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    3
    15
    2.7k
    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.
    • Mark SheltonM
      Mark Shelton @Tom Elliott
      last edited by

      @Tom-Elliott Yes 32 bit. However it reads the remote image size accurately which is also 32 bit.

      Tom ElliottT Wayne WorkmanW 2 Replies Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @Mark Shelton
        last edited by

        @Mark-Shelton And both nodes are at the same version?

        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

        Mark SheltonM 1 Reply Last reply Reply Quote 0
        • Mark SheltonM
          Mark Shelton @Wayne Workman
          last edited by

          @Wayne-Workman I will try that, but this issue has been happening for a few releases. I’ve not noticed anyone else reporting the problem so not sure if it has been addressed.

          1 Reply Last reply Reply Quote 0
          • Mark SheltonM
            Mark Shelton @Tom Elliott
            last edited by

            @Tom-Elliott Yes all are FOG 1.3.0 RC4 SVN 5941. All have Ubuntu 14.04 installed. Interesting that the local file size is always incorrect for the large files. This has been happening for a while, I’ve only just realised why.

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

              @Mark-Shelton said in Image replication loop - incorrect file size calculation:

              Yes 32 bit. However it reads the remote image size accurately which is also 32 bit.

              But, it’s requesting the data from the remote server, which is 64 bit I presume. The remote server is the one doing the measuring on it’s files.

              32 bit OSs have a file size limit of 2GB. There’s nothing we can do about that.

              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/

              Tom ElliottT Mark SheltonM 2 Replies Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @Wayne Workman
                last edited by

                @Wayne-Workman It’s requesting the filesize from the remote server using ftp. Locally it is using the filesize php command.

                I’ve created an arch agnostic filesize getter which should fix this issue.

                Will be in RC-6.

                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

                Mark SheltonM 1 Reply Last reply Reply Quote 1
                • Mark SheltonM
                  Mark Shelton @Wayne Workman
                  last edited by

                  @Wayne-Workman It worked in the past. I have always used 32 bit filesystems, and the remote server is also 32 bit.

                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                  • Mark SheltonM
                    Mark Shelton @Tom Elliott
                    last edited by

                    @Tom-Elliott Thanks Tom. I’ll wait a few days for RC-6. Regards, Mark

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

                      @Mark-Shelton basically, the remote was working because I get the size using a raw from look at the content. This is why the remote worked even on 32 bit remotes. However, I was using the filesize php function to get the local filesize.

                      The ftp essentially just reads the size as a string. So displaying it is proper as it’s not converting to an integer. The local was returning an integer.

                      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

                      Mark SheltonM 1 Reply Last reply Reply Quote 1
                      • Mark SheltonM
                        Mark Shelton @Tom Elliott
                        last edited by

                        @Tom-Elliott I’m so pleased you found the issue so quickly! I’ve had to turn off replication for the last number of releases and upload them when at the sites. Didn’t want to post about it until I had done some investigation and had evidence of the exact issue.

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

                          Fedora project isn’t making 32 bit builds anymore. What does that tell you about the next release of RHEL and CentOS? I doubt Debian would ever stop building 32 bit versions though, so Ubuntu may or may not have a future in 32 bit.

                          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/

                          Mark SheltonM 1 Reply Last reply Reply Quote 0
                          • Mark SheltonM
                            Mark Shelton @Wayne Workman
                            last edited by

                            @Wayne-Workman Thanks, yes I may move to 64 bit. However it’s good that my issue has highlighted the inconsistency in the code which sounds like it only shows up in 32 bit OS’s. I’m guessing there mustn’t be too many others with my setup out there, otherwise this would have been reported a while ago. Glad its a relatively easy fix, I’ve rebuilt these boxes a few times recently and didn’t wish to have to do it again. Regards, Mark

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

                            193

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project