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

    FOG IMAGES- Deleted Dev

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    23
    3.4k
    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.
    • T
      Trev-lchs
      last edited by

      @Quazz said in FOG IMAGES- Deleted Dev:

      chown -R fogproject:root /images/dev

      Thank you just going to try and see if that fixed it, thanks very much

      1 Reply Last reply Reply Quote 0
      • T
        Trev-lchs
        last edited by

        Hi Quazz we don’t get past “running init scripts” on attempting to upload an image, are the scripts missing from the dev folder? If so how do i put them back?

        1 Reply Last reply Reply Quote 0
        • T
          Trev-lchs
          last edited by

          i have tried this but it fails with !/bin/bash: event not found after the first echo command

          mkdir -p /images/dev
          touch /images/dev/.mntcheck
          mkdir -p /images/dev/postinitscripts
          echo “#!/bin/bash” > /images/dev/postinitscripts/fog.postinit

          echo “## This file serves as a starting point to call your custom pre-imaging/post init loading scripts.” >> /images/dev/postinitscripts/fog.postinit
          echo “## <SCRIPTNAME> should be changed to the script you’re planning to use.” >> /images/dev/postinitscripts/fog.postinit
          echo “## Syntax of post init scripts are” >> /images/dev/postinitscripts/fog.postinit
          echo “#. ${postinitpath}<SCRIPTNAME>” >> /images/dev/postinitscripts/fog.postinit
          chown -R fog:root /images
          chmod -R 777 /images

          Q 1 Reply Last reply Reply Quote 0
          • Q
            Quazz Moderator @Trev-lchs
            last edited by

            @Trev-lchs Use single quotes instead of double round your echo command so the literal string is passed.

            Or paste the script in its entirety using a text editor.

            1 Reply Last reply Reply Quote 0
            • T
              Trev-lchs
              last edited by

              @Trev-lchs said in FOG IMAGES- Deleted Dev:
              Unfortunately still sticks on Running post Init scripts

              Any ideas?

              Q 1 Reply Last reply Reply Quote 0
              • Q
                Quazz Moderator @Trev-lchs
                last edited by

                @Trev-lchs You may need to set the owner and permissions again since you’ve made a new folder and file.

                So run the chmod and chown commands again.

                T 1 Reply Last reply Reply Quote 0
                • T
                  Trev-lchs @Quazz
                  last edited by

                  @Quazz still the same, any other things you can think of?

                  1 Reply Last reply Reply Quote 0
                  • T
                    Trev-lchs
                    last edited by

                    would i need to run those permissions on the actual postinitscripts folder?

                    Q 1 Reply Last reply Reply Quote 0
                    • Q
                      Quazz Moderator @Trev-lchs
                      last edited by

                      @Trev-lchs No; they are applied recursively (-R)

                      Can you share a picture of where it hangs?

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

                        What version of FOG is installed?

                        Why not just rerun the installation script? This should recreate the missing dev folder and files as well as make sure they’re set to the proper permissions.

                        @Quazz is giving the right information, but If you’re using a fog version of 1.5.7 or earlier (I believe this was where we added fogproject as opposed to fog user) then the likely issue is here.

                        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 7 Replies Last reply Reply Quote 1
                        • T
                          Trev-lchs @Tom Elliott
                          last edited by

                          @Tom-Elliott hi Tom thanks for the reply

                          we are running 1.5.7.2 i did consider upgrading to 1.5.8 but i am sure i did this last time with git, but cannot remember the commands to do so. Could you please tell me what are the commands to rerun the install script?

                          as to where is stops it is on the first screen i will send a picture shortly

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            Trev-lchs @Trev-lchs
                            last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • T
                              Trev-lchs @Tom Elliott
                              last edited by

                              @Tom-Elliott fogissue.png

                              1 Reply Last reply Reply Quote 0
                              • T
                                Trev-lchs @Tom Elliott
                                last edited by

                                @Tom-Elliott i think i have it
                                cd /root/fogproject
                                cd bin
                                ./installfog.sh

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Trev-lchs @Tom Elliott
                                  last edited by

                                  @Tom-Elliott id still like very much to install 1.5.8 if you have the time to let me know what i need to do with git please? git is installed on the server.

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    Trev-lchs @Tom Elliott
                                    last edited by

                                    @Tom-Elliott ea78f370-8257-4c77-9af7-7a75d6ccc3e5-image.png

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      Trev-lchs @Tom Elliott
                                      last edited by

                                      @Tom-Elliott
                                      that seems to have killed it completely

                                      Tom ElliottT 1 Reply Last reply Reply Quote 0
                                      • Tom ElliottT
                                        Tom Elliott @Trev-lchs
                                        last edited by Tom Elliott

                                        @Trev-lchs
                                        Please, in the future, ask a question and be a little patient?

                                        I understand wanting to get this fixed and all, but you kind of got ahead of yourself there.

                                        To update to the latest master version (1.5.9-RC2 I believe currently)

                                        cd /root/fogproject
                                        git pull
                                        cd bin
                                        ./installfog.sh -y
                                        

                                        Let it run all the way through. Once it’s complete, it should have restarted all the services for you automatically.

                                        If you really want 1.5.8 run these commands:

                                        cd /root/fogproject
                                        git checkout tags/1.5.8 -b v1.5.8-branch
                                        cd bin
                                        ./installfog.sh -y
                                        

                                        Again, wait for the install to complete.

                                        Thank you,

                                        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
                                          Trev-lchs @Tom Elliott
                                          last edited by

                                          @Tom-Elliott all is well, fog install halted as my colleges had the website open, once he closed it , the install continued, all up and running now, thank you both. if you happen to know those install commands for 1.5.8 that would be great using git

                                          T 1 Reply Last reply Reply Quote 0
                                          • T
                                            Trev-lchs @Trev-lchs
                                            last edited by

                                            @Trev-lchs Thanks Tom, yea i did get a bit ahead, but time is a bit against me today, you know how it is, I will upgrade next week thanks for all your help.

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

                                            168

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project