We moved this page to our Documentation Portal. You can find the latest updates here. |
Issue
I can not see where my recipe is failing and or check what is currently executing.
Resolution
It may be useful to add logging capabilities when debugging or simply to verify installation is going as expected.
Add the following at the end of every command &>>/var/log/recipe.log.
Example:
apt-get update -y && apt-get -y install apache2 php5 php5-gd php-xml-parser php5-intl php5-sqlite php5-mysql smbclient curl libcurl3 php5-curl &>> /var/log/recipe.log
Note that I've added && so that we have to put the &>>/var/log/recipe.log only once.
This will create a log that can be checked while the recipe is executing:
root@OwnCloudRecipe:~# tail -f /var/log/recipe.log
owncloud/files/webdav.php
owncloud/README
owncloud/robots.txt
owncloud/config/
owncloud/config/config.sample.php
owncloud/cron.php
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 109.123.125.98 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 109.123.125.98 for ServerName
...done.