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

FOG IMAGES- Deleted Dev

Scheduled Pinned Locked Moved
FOG Problems
3
23
3.2k
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 Aug 21, 2020, 8:33 AM

    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 Aug 21, 2020, 8:50 AM Reply Quote 0
    • T
      Trev-lchs @Trev-lchs
      last edited by Aug 21, 2020, 8:50 AM

      @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 Aug 21, 2020, 9:14 AM Reply Quote 0
      • Q
        Quazz Moderator @Trev-lchs
        last edited by Aug 21, 2020, 9:14 AM

        @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 Aug 21, 2020, 9:16 AM

          @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 Aug 21, 2020, 9:21 AM

            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 Aug 21, 2020, 9:31 AM

              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 Aug 21, 2020, 9:49 AM Reply Quote 0
              • Q
                Quazz Moderator @Trev-lchs
                last edited by Aug 21, 2020, 9:49 AM

                @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 Aug 21, 2020, 9:57 AM

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

                  Any ideas?

                  Q 1 Reply Last reply Aug 21, 2020, 10:00 AM Reply Quote 0
                  • Q
                    Quazz Moderator @Trev-lchs
                    last edited by Aug 21, 2020, 10:00 AM

                    @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 Aug 21, 2020, 10:36 AM Reply Quote 0
                    • T
                      Trev-lchs @Quazz
                      last edited by Aug 21, 2020, 10:36 AM

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

                      1 Reply Last reply Reply Quote 0
                      • T
                        Trev-lchs
                        last edited by Aug 21, 2020, 10:38 AM

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

                        Q 1 Reply Last reply Aug 21, 2020, 11:22 AM Reply Quote 0
                        • Q
                          Quazz Moderator @Trev-lchs
                          last edited by Aug 21, 2020, 11:22 AM

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

                          Can you share a picture of where it hangs?

                          1 Reply Last reply Reply Quote 0
                          • T
                            Tom Elliott
                            last edited by Aug 21, 2020, 11:56 AM

                            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 Aug 21, 2020, 12:32 PM Reply Quote 1
                            • T
                              Trev-lchs @Tom Elliott
                              last edited by Aug 21, 2020, 12:32 PM

                              @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 Aug 21, 2020, 12:44 PM Reply Quote 0
                              • T
                                Trev-lchs @Trev-lchs
                                last edited by Aug 21, 2020, 12:44 PM

                                This post is deleted!
                                1 Reply Last reply Reply Quote 0
                                • T
                                  Trev-lchs @Tom Elliott
                                  last edited by Aug 21, 2020, 12:46 PM

                                  @Tom-Elliott fogissue.png

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    Trev-lchs @Tom Elliott
                                    last edited by Aug 21, 2020, 12:50 PM

                                    @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 Aug 21, 2020, 12:52 PM

                                      @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 Aug 21, 2020, 12:59 PM

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

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          Trev-lchs @Tom Elliott
                                          last edited by Aug 21, 2020, 1:00 PM

                                          @Tom-Elliott
                                          that seems to have killed it completely

                                          T 1 Reply Last reply Aug 21, 2020, 1:06 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            14/23
                                            Last post

                                          165

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project