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

Segmentation fault when "updating database..." after upload

Scheduled Pinned Locked Moved Solved
FOG Problems
upload database segfault
2
10
3.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.
  • J
    JJ Fullmer Testers
    last edited by JJ Fullmer Feb 29, 2016, 3:34 PM Feb 29, 2016, 9:33 PM

    I am trying to update my base image as I have done many times (so I’m pretty sure the issue isn’t the image or vm as the last successful upload for this image from this vm was 6 days ago)
    I am suddenly getting this message in the apache error log

    [Mon Feb 29 14:27:11.998127 2016] [core:notice] [pid 1027] AH00052: child pid 2371 exit signal Segmentation fault (11)
    [Mon Feb 29 14:26:50.971240 2016] [core:notice] [pid 1027] AH00052: child pid 4057 exit signal Segmentation fault (11)
    [Mon Feb 29 14:26:30.951298 2016] [core:notice] [pid 1027] AH00052: child pid 2368 exit signal Segmentation fault (11)
    

    While the upload is hanging here…
    0_1456781347417_Capture.PNG

    This is the output of top on the server
    0_1456781434110_Capture.PNG

    Running on centos 7 ver 6505 with php 7

    Is this just me or are others having this problem?

    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

    1 Reply Last reply Reply Quote 0
    • J
      JJ Fullmer Testers
      last edited by Feb 29, 2016, 9:38 PM

      I just remembered, I recently changed my bootfile to ipxe.kkpxe to test compatibility with some older machines.
      Could that have anything to do with it?

      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

      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott
        last edited by Feb 29, 2016, 10:12 PM

        I’m testing what I hope will fix. The segmentation fault, I don’t think, was the problem (directly).

        It was the recent changes to the fogftp class. I’ve pushed what I hope will fix the issues, and am running a personal test at the moment.

        I’ll keep you updated as I see more info as well.

        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

        T 1 Reply Last reply Feb 29, 2016, 10:19 PM Reply Quote 1
        • T
          Tom Elliott @Tom Elliott
          last edited by Feb 29, 2016, 10:19 PM

          @Tom-Elliott My fix didn’t fix the issue, though it does properly complete the tasking now, it’s failing to rename/put the file.

          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
          • J
            JJ Fullmer Testers
            last edited by Feb 29, 2016, 10:39 PM

            I will test you fix as well deleting the current failed to move image first

            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

            T 1 Reply Last reply Mar 1, 2016, 12:25 AM Reply Quote 0
            • T
              Tom Elliott @JJ Fullmer
              last edited by Mar 1, 2016, 12:25 AM

              @Arrowhead-IT fix pushed, after you test please let us know if it is indeed 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
              • J
                JJ Fullmer Testers
                last edited by Mar 1, 2016, 3:57 PM

                Testing now,
                First thing I’m noticing is a bit of a speed decrease on the upload. It use to stay around 2 GB/min give or take
                This time it dropped from 2 down to 800 MB/min but is speeding back up and settling around 1.4 GB/min. Not a huge deal since my image is only ~23 GB. But it’s just odd that this would change. Might also be the kernel update or something.

                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

                J 1 Reply Last reply Mar 1, 2016, 4:02 PM Reply Quote 0
                • J
                  JJ Fullmer Testers @JJ Fullmer
                  last edited by JJ Fullmer Mar 1, 2016, 10:11 AM Mar 1, 2016, 4:02 PM

                  Well it kept speeding up and ended up finishing about the same time as before, so there was more speed fluctuation than I usually see. So lets just ignore that.

                  Anyway it is back to hanging at updating database =(
                  So sadly no, not fixed.

                  Wait… what.
                  So while I was editing this post I decided to check the permissions of the images directories.
                  I noticed they were all set to 777 but owner and group was root.
                  From /images I ran chown _R fog.root ./ && chmod -R 775 ./ (from an alias if it matters)
                  Then suddenly I noticed the vm screen started doing things…And boom! it finished successfully.

                  Perhaps the permissions change in the upload image process needs to also change the owner to the fog user?
                  That or the updating database part now takes like 10 minutes and it was just coincidence that it worked after changing permissions

                  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

                  J 1 Reply Last reply Mar 1, 2016, 4:14 PM Reply Quote 0
                  • J
                    JJ Fullmer Testers @JJ Fullmer
                    last edited by Mar 1, 2016, 4:14 PM

                    In summary

                    Not quite working.
                    I think a simple change to the “changing permissions” part of the upload adding a chown -R fog.root /images
                    to the chmod -R 777 /images would do the trick. Or maybe just add that right before updating the database or moving the files.

                    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

                    1 Reply Last reply Reply Quote 0
                    • J
                      JJ Fullmer Testers
                      last edited by Mar 3, 2016, 6:42 PM

                      Updated to ver 6525 before updating the image again.
                      This time around it worked flawlessly as it should.

                      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

                      1 Reply Last reply Reply Quote 1
                      • 1 / 1
                      1 / 1
                      • First post
                        5/10
                        Last post

                      185

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project