• 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

      HI I am a prat and whilst clearing out old images, i deleted one called Dev, now i cant upload images, is this the reason? If so how do i fix it? I am a bit of a linux moron so simple instructions work best

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

        @Trev-lchs having had a read and the Dev is where it places images that are uploading prior to moving them to the images folder i guess i have broken it, any help in recreating the Dev folder would be much appreciated.

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

          @Trev-lchs

          mkdir /images/dev
          touch /images/dev/.mntcheck
          chmod -R 777 /images/dev
          chown -R fogproject:root /images/dev
          
          1 Reply Last reply Reply Quote 0
          • 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
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            182

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project