Scheduled cron tasks don't start
-
FOG Version Information
Version: 1.2.0
svn 5453 -
@raymondub What? In the cloud it shows you the version.
FOG Version Information Version: 1.2.0 does not make sense unless you’re updating constantly but still on FOG 1.2.0 as the cloud version.
-
I forgot to tell:
5. FOG_TZ_INFO:
In svn, you can change the TimeZone in the webinterface and it s done
FOG_TZ_INFO = Europe/Brussels [CEST +02:00] -
FOG Version Information
Version: 5453You are not running the most current version of FOG!
You are currently running version: 5453Latest stable version is 1.2.0
Latest svn version is 5301
Latest git version is 7312
Kernel Versions
DefaultMember
bzImage Version: 4.3.0
bzImage32 Version: 4.3.0=> i started from the 1.2.0 and installed the svn 5453
-
If i add or delete a task and if i have in a putty window the command
tail -100f /var/log/fog/fogscheduler.log
than i can see the update of my task in the log. So i believe that the service is running … -
@raymondub You’ve been running version 5453 this whole time?
What are your “steps” to updating to the latest?
-
@Tom-Elliott
wget --no-check-certificate http://mastacontrola.com/fog_trunk.tar.bz2
tar -xjf fog_trunk.tar.bz2
cd XXX
./installfog.sh
and followed the instructions like i saw somewhere on the wiki.
But when i check the history, i remember that i had to reinstall some package:
sudo apt-get update && sudo apt-get --purge --reinstall install apache2 libapache2-mod-php5I red that with the svn, it was possible to backup/restore only a partition and it was what i needed. Cause it was stable, i stayed in that version 5453
-
@raymondub Here is how you usually to upgrades: https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk (I prefer using git over svn but they both work!)
I red that with the svn, it was possible to backup/restore only a partition and it was what i needed.
Have you ever tried doing just one partition? If I remember correctly we just fixed a major bug with single partition restore!
-
hi,
i just did… and same problem. The computer doesn t power on and fog doesn t not start.
But nothing happen… I choose a “normal” task, than everything is working fine, the computer is switch on and fog is started.[04-27-16 10:44:27 am] * 1 task(s) found. [04-27-16 10:44:27 am] * Task run time: Wed, 27 Apr 2016 10:45:27 +0200 [04-27-16 10:44:27 am] * Task does not run now [04-27-16 10:45:27 am] * 0 active task(s) awaiting check-in. [04-27-16 10:45:27 am] * 1 task(s) found. [04-27-16 10:45:27 am] * Task run time: Wed, 27 Apr 2016 10:45:27 +0200 [04-27-16 10:45:27 am] * Found a task that should run... [04-27-16 10:45:27 am] - Is a host based task. [04-27-16 10:45:27 am] - Task Started for host TESTTESTTEST! [04-27-16 10:45:27 am] - Cron style - No cleaning! [04-27-16 10:46:27 am] * 1 active task(s) awaiting check-in. [04-27-16 10:46:27 am] | Sending WOL Packet(s) [04-27-16 10:46:27 am] - Host: TESTTESTTEST WOL sent to all macs associated [04-27-16 10:46:27 am] * 1 task(s) found. [04-27-16 10:46:27 am] * Task run time: Thu, 28 Apr 2016 10:45:27 +0200 [04-27-16 10:46:27 am] * Task does not run now
Some info about my image:
mp-V1-Part - 34 default: Windows 7 Multiple Partition Image - All Disks (Not Resizable) Partition 2 only <= **is that what you mean ?**
Is there somewhere another error file with more derails than /var/log/fog/fogscheduler.log ?
thx ! -
@raymondub Can you simply update to the latest? Using SVN or GIT would be better than the tarball, as I don’t know the exact steps you’re using. Wget, often, creates a new file in the form of:
nameofFile.ext
nameofFile.ext.1
nameofFile.ext.2So if you are in the same directory that you downloaded fog_trunk.tar.bz2 on, you can probably run:
ls -lhart
and you’ll likely find something along the lines of:fog_trunk.tar.bz2 fog_trunk.tar.bz2.1 fog_trunk.tar.bz2.2 fog_trunk.tar.bz2.3 fog_trunk.tar.bz2.4
I’m guessing you’re not updating anything (ever) and simply reinstalling the original first downloaded file.
-
Steps to install:
- clean install 1.2.0:
download from https://sourceforge.net/projects/freeghost/files/latest/download
tar xzf fog_1.2.0.tar.gz
cd fog_1.2.0/bin
./installfog.sh
Installation steps:
..#######:. ..,#,.. .::##::. .:###### .:;####:......;#;.. ...##... ...##;,;##::::.##... ,# ...##.....##:::## ..:: ## .::###,,##. . ##.::#.:######::. ...##:::###::....#. .. .#...#. #...#:::. ..:####:.. ..##......##::## .. # # . ...##:,;##;:::#: ... ##.. .# . .:;####;::::.##:::;#:.. # ..:;###.. ########################################### # FOG # # Free Computer Imaging Solution # # # # http://www.fogproject.org/ # # # # Developers: # # Chuck Syperski # # Jian Zhang # # Peter Gilchrist # # Tom Elliott # # GNU GPL Version 3 # ########################################### Version: 1.2.0 Installer/Updater What version of Linux would you like to run the installation for? 1) Redhat Based Linux (Redhat, CentOS, Mageia) 2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu) Choice: [2] Starting Debian / Ubuntu / Kubuntu / Edubuntu Installtion. FOG Server installation modes: * Normal Server: (Choice N) This is the typical installation type and will install all FOG components for you on this machine. Pick this option if you are unsure what to pick. * Storage Node: (Choice S) This install mode will only install the software required to make this server act as a node in a storage group More information: http://www.fogproject.org/wiki/index.php?title=InstallationModes What type of installation would you like to do? [N] What is the IP address to be used by this FOG Server? [adr:X.X.X.X Would you like to setup a router address for the DHCP server? [Y/n] What is the IP address to be used for the router on the DHCP server? [X.X.X.X] Would you like to setup a DNS address for the DHCP server and client boot image? [Y/n] What is the IP address to be used for DNS on the DHCP server and client boot image? [X.X.X.X] Would you like to change the default network interface from eth0? If you are not sure, select No. [y/N] Would you like to use the FOG server for DHCP service? [Y/n] n This version of FOG has internationalization support, would you like to install the additional language packs? [y/N] Would you like to donate computer resources to the FOG Project to mine cryptocurrency? This will only take place during active tasks and should NOT have any impact on performance of your imaging or other tasks. The currency will be used to pay for FOG Project expenses and to support the core developers working on the project. For more information see: http://fogproject.org/?q=cryptocurrency Would you like to donate computer resources to the FOG Project? [y/N] ##################################################################### FOG now has everything it needs to setup your server, but please understand that this script will overwrite any setting you may have setup for services like DHCP, apache, pxe, tftp, and NFS. It is not recommended that you install this on a production system as this script modifies many of your system settings. This script should be run by the root user on Redhat or with sudo on Ubuntu. ** Notice ** Redhat users will need to disable SELinux and iptables in order to use FOG Please see our wiki for more information at http://www.fogproject.org/wiki Here are the settings FOG will use: Base Linux: Debian Detected Linux Distribution: Ubuntu Installation Type: Normal Server Server IP Address: X.X.X.X DHCP router Address: X.X.X.X DHCP DNS Address: X.X.X.X Interface: eth0 Using FOG DHCP: 0 Internationalization: 0 Donate: 0 DHCP will NOT be setup but you must setup your current DHCP server to use FOG for PXE services. On a Linux DHCP server you must set: next-server On a Windows DHCP server you must set: option 066 & 067 Option 066 is the IP of the FOG Server: (e.g. X.X.X.X) Option 067 is the undionly.kpxe file: (e.g. undionly.kpxe) Are you sure you wish to continue (Y/N)
Run the command for the database
1.2.0 is working…
I updated some password for fog user and tftp
- svn
sudo apt-get update && apt-get install git
cd /root/fogproject
git pull
cd bin
./installfog.sh
+------------------------------------------+ | ..#######:. ..,#,.. .::##::. | |.:###### .:;####:......;#;.. | |...##... ...##;,;##::::.##... | | ,# ...##.....##:::## ..:: | | ## .::###,,##. . ##.::#.:######::.| |...##:::###::....#. .. .#...#. #...#:::. | |..:####:.. ..##......##::## .. # | | # . ...##:,;##;:::#: ... ##.. | | .# . .:;####;::::.##:::;#:.. | | # ..:;###.. | | | +------------------------------------------+ | Free Computer Imaging Solution | +------------------------------------------+ | Credits: http://fogproject.org/Credits | | http://fogproject.org/Credits | | Released under GPL Version 3 | +------------------------------------------+ Version: 7334 Installer/Updater * Found FOG Settings from previous install at: /opt/fog/.fogsettings * Performing upgrade using these settings Starting Debian based Installation ###################################################################### # FOG now has everything it needs for this setup, but please # # understand that this script will overwrite any setting you may # # have setup for services like DHCP, apache, pxe, tftp, and NFS. # ###################################################################### # It is not recommended that you install this on a production system # # as this script modifies many of your system settings. # ###################################################################### # This script should be run by the root user. # # It will prepend the running with sudo if root is not set # ###################################################################### # ** Notice ** FOG is difficult to setup securely # # SELinux and IPTables are usually asked to be disabled # # There have been strides in adding capabilities # # The recommendations would now be more appropriate # # to set SELinux to permissive and to disable firewall for now. # # You can find some methods to enable SELinux and maintain firewall # # settings and ports. If you feel comfortable doing so please do # ###################################################################### # Please see our wiki for more information at: # ###################################################################### # https://wiki.fogproject.org/wiki/index.php # ###################################################################### * Here are the settings FOG will use: * Base Linux: Debian * Detected Linux Distribution: Ubuntu * Server IP Address: 172.23.3.68 * Server Subnet Mask: * Interface: eth0 * Installation Type: Normal Server * Donate: 0 * Internationalization: 0 * Image Storage Location: /images * Using FOG DHCP: No * DHCP will NOT be setup but you must setup your | current DHCP server to use FOG for PXE services. * On a Linux DHCP server you must set: next-server and filename * On a Windows DHCP server you must set options 066 and 067 * Option 066/next-server is the IP of the FOG Server: (e.g. X.X.X.X) * Option 067/filename is the bootfile: (e.g. undionly.kpxe) * Are you sure you wish to continue (Y/N) y * Installation Started * Installing required packages, if this fails | make sure you have an active internet connection. * Adding needed repository....................................OK * Preparing Package Manager...................................OK * Packages to be installed: apache2 php5 php5-json php5-gd php5-cli php5-curl mysql-server mysql-client tftpd-hpa tftp-hpa nfs-kernel-server vsftpd net-tools wget xinetd sysv-rc-conf tar gzip build-essential cpp gcc g++ m4 htmldoc lftp openssh-server php-gettext php5-mcrypt php5-mysqlnd curl libc6 libcurl3 zlib1g php5-fpm libapache2-mod-php5 libapache2-mod-evasive * Skipping package: apache2...................................(Already Installed) * Skipping package: php5......................................(Already Installed) * Installing package: php5-json...............................Failed! root@ubufog2:~/fogproject/bin# apt-get install php5-json Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait php5-json est déjà la plus récente version disponible. Le paquet suivant a été installé automatiquement et n'est plus nécessaire : libbsd0 Veuillez utiliser « apt-get autoremove » pour les supprimer. 0 mis à jour, 0 nouvellement installés, 0 à enlever et 127 non mis à jour. 12 partiellement installés ou enlevés. Après cette opération, 0 o d'espace disque supplémentaires seront utilisés. Souhaitez-vous continuer [O/n] ? Paramétrage de libapr1 (1.5.2-2+deb.sury.org~precise+1) ... Paramétrage de libaprutil1 (1.5.4-1+deb.sury.org~precise+1) ... Paramétrage de libvpx1 (1.0.0-1) ... Paramétrage de libgd3 (2.1.1-4.1+deb.sury.org~precise+1) ... Paramétrage de liblua5.2-0 (5.2.0-2ubuntu0.1) ... Paramétrage de apache2-utils (2.4.20-1+deb.sury.org~precise+3) ... Paramétrage de libaprutil1-dbd-sqlite3 (1.5.4-1+deb.sury.org~precise+1) ... Paramétrage de libaprutil1-ldap (1.5.4-1+deb.sury.org~precise+1) ... Paramétrage de php5 (5.6.20+dfsg-1+deb.sury.org~precise+1) ... Paramétrage de php5-curl (5.6.20+dfsg-1+deb.sury.org~precise+1) ... Creating config file /etc/php5/mods-available/curl.ini with new version php5_invoke: Enable module curl for cli SAPI php5_invoke: Enable module curl for cgi SAPI Paramétrage de php5-gd (5.6.20+dfsg-1+deb.sury.org~precise+1) ... Creating config file /etc/php5/mods-available/gd.ini with new version php5_invoke: Enable module gd for cli SAPI php5_invoke: Enable module gd for cgi SAPI Paramétrage de php5-mysql (5.6.20+dfsg-1+deb.sury.org~precise+1) ... Creating config file /etc/php5/mods-available/mysql.ini with new version php5_invoke: Enable module mysql for cli SAPI php5_invoke: Enable module mysql for cgi SAPI Creating config file /etc/php5/mods-available/mysqli.ini with new version php5_invoke: Enable module mysqli for cli SAPI php5_invoke: Enable module mysqli for cgi SAPI Creating config file /etc/php5/mods-available/pdo_mysql.ini with new version php5_invoke: Enable module pdo_mysql for cli SAPI php5_invoke: Enable module pdo_mysql for cgi SAPI Traitement des actions différées (« triggers ») pour « libc-bin »... ldconfig deferred processing now taking place
root@ubufog2:~/fogproject/bin# ./installfog.sh +------------------------------------------+ | ..#######:. ..,#,.. .::##::. | |.:###### .:;####:......;#;.. | |...##... ...##;,;##::::.##... | | ,# ...##.....##:::## ..:: | | ## .::###,,##. . ##.::#.:######::.| |...##:::###::....#. .. .#...#. #...#:::. | |..:####:.. ..##......##::## .. # | | # . ...##:,;##;:::#: ... ##.. | | .# . .:;####;::::.##:::;#:.. | | # ..:;###.. | | | +------------------------------------------+ | Free Computer Imaging Solution | +------------------------------------------+ | Credits: http://fogproject.org/Credits | | http://fogproject.org/Credits | | Released under GPL Version 3 | +------------------------------------------+ Version: 7334 Installer/Updater * Found FOG Settings from previous install at: /opt/fog/.fogsettings * Performing upgrade using these settings Starting Debian based Installation ###################################################################### # FOG now has everything it needs for this setup, but please # # understand that this script will overwrite any setting you may # # have setup for services like DHCP, apache, pxe, tftp, and NFS. # ###################################################################### # It is not recommended that you install this on a production system # # as this script modifies many of your system settings. # ###################################################################### # This script should be run by the root user. # # It will prepend the running with sudo if root is not set # ###################################################################### # ** Notice ** FOG is difficult to setup securely # # SELinux and IPTables are usually asked to be disabled # # There have been strides in adding capabilities # # The recommendations would now be more appropriate # # to set SELinux to permissive and to disable firewall for now. # # You can find some methods to enable SELinux and maintain firewall # # settings and ports. If you feel comfortable doing so please do # ###################################################################### # Please see our wiki for more information at: # ###################################################################### # https://wiki.fogproject.org/wiki/index.php # ###################################################################### * Here are the settings FOG will use: * Base Linux: Debian * Detected Linux Distribution: Ubuntu * Server IP Address: 172.23.3.68 * Server Subnet Mask: * Interface: eth0 * Installation Type: Normal Server * Donate: 0 * Internationalization: 0 * Image Storage Location: /images * Using FOG DHCP: No * DHCP will NOT be setup but you must setup your | current DHCP server to use FOG for PXE services. * On a Linux DHCP server you must set: next-server and filename * On a Windows DHCP server you must set options 066 and 067 * Option 066/next-server is the IP of the FOG Server: (e.g. 172.23.3.68) * Option 067/filename is the bootfile: (e.g. undionly.kpxe) * Are you sure you wish to continue (Y/N) y * Installation Started * Installing required packages, if this fails | make sure you have an active internet connection. * Adding needed repository....................................OK * Preparing Package Manager...................................OK * Packages to be installed: apache2 php5 php5-json php5-gd php5-cli php5-curl mysql-server mysql-client tftpd-hpa tftp-hpa nfs-kernel-server vsftpd net-tools wget xinetd sysv-rc-conf tar gzip build-essential cpp gcc g++ m4 htmldoc lftp openssh-server php-gettext php5-mcrypt php5-mysqlnd curl libc6 libcurl3 zlib1g php5-fpm libapache2-mod-php5 libapache2-mod-evasive * Skipping package: apache2...................................(Already Installed) * Skipping package: php5......................................(Already Installed) * Skipping package: php5-json.................................(Already Installed) * Skipping package: php5-gd...................................(Already Installed) * Skipping package: php5-cli..................................(Already Installed) * Skipping package: php5-curl.................................(Already Installed) * Skipping package: mysql-server..............................(Already Installed) * Skipping package: mysql-client..............................(Already Installed) * Skipping package: tftpd-hpa.................................(Already Installed) * Skipping package: tftp-hpa..................................(Already Installed) * Skipping package: nfs-kernel-server.........................(Already Installed) * Skipping package: vsftpd....................................(Already Installed) * Skipping package: net-tools.................................(Already Installed) * Skipping package: wget......................................(Already Installed) * Skipping package: xinetd....................................(Already Installed) * Skipping package: sysv-rc-conf..............................(Already Installed) * Skipping package: tar.......................................(Already Installed) * Skipping package: gzip......................................(Already Installed) * Skipping package: build-essential...........................(Already Installed) * Skipping package: cpp.......................................(Already Installed) * Skipping package: gcc.......................................(Already Installed) * Skipping package: g++.......................................(Already Installed) * Skipping package: m4........................................(Already Installed) * Skipping package: htmldoc...................................(Already Installed) * Skipping package: lftp......................................(Already Installed) * Skipping package: openssh-server............................(Already Installed) * Skipping package: php-gettext...............................(Already Installed) * Installing package: php5-mcrypt.............................OK * Installing package: php5-mysqlnd............................OK * Installing package: curl....................................OK * Skipping package: libc6.....................................(Already Installed) * Skipping package: libcurl3..................................(Already Installed) * Skipping package: zlib1g....................................(Already Installed) * Installing package: php5-fpm................................OK * Installing package: libapache2-mod-php5.....................OK * Installing package: libapache2-mod-evasive..................Failed!
I tried to remove mysql* apache2* php* and start again the install of the svn but it failed at the same point. I remember that i had that kind of problem last time.
I ll try to install a all new ubuntu 12.04 tomorrow but question… To install the svn, do it need to install fog 1.2.0 first ?
thx - clean install 1.2.0:
-
@raymondub Tom was asking you to update to the very latest version via git or svn: https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk
You don’t need to worry about FOG 1.2.0 at all anymore. Just go straight to trunk via git/svn.
Please check the install error log in the same directory where you run the installer from, so
fogproject/bin/error_log/...
and let us know what exactly goes wrong… -
@Sebastian-Roth
I just made a new fresh installation without putting fog 1.2.0 but the setup failed all the time at the same point
libapache2-mod-evasive :Can’t intall - unmet dependencies apache2.2-common
My knowledge of ubuntu is not good enough to change that kind of depedencies
I am using Ubuntu 12.04.5 LTS, do you recommend me to choose another version ? -
@raymondub Please edit fogproject/lib/ubuntu/config.sh and remove
libapache2-mod-evasive
in the packages listing line (there are two!!). Then try installing again. Does it work? -
@Sebastian-Roth said in Scheduled cron tasks don't start:
libapache2-mod-evasive
Yes that kind of modification is working. Except that i had to modify that in the file fogproject/lib/common/functions.sh
root@ubufog2:~# grep -lR "libapache2-mod-evasive" * fogproject/lib/common/.svn/text-base/functions.sh.svn-base fogproject/lib/common/functions.sh root@ubufog2:~#
Thank you !
I ll create a new image and see if if i can schedule the restore with this versionVersion: 7410 Your verson of FOG is up to date.