Thursday, September 29, 2011

Re: Errors trying to run a shell in cron

Sorry, fogort some things:

Cakephp2.0 rc2

and my cron comand is:
home/kindlem1/public_html/eeip/app/Console/cake notify

On Sep 29, 5:01 pm, "#2Will" <willjbar...@gmail.com> wrote:
> Hello.  I made a shell for my app - notify.  It emails people things.
> Its all working from the command prompt on my mac , but when i try and
> use it on the stage server through cron, it emails me an error. It
> seems like cake is looking for things in the wrong place:
>
> "/home/kindlem1/tmp/cache/persistent/ is not writable"
>
> which is because the app is in /home/kindlem1/public_html/eeip   - the
> staging subdomain points to this dir.
>
> What can i do?
>
> ----------error message----------
> Warning: _cake_core_ cache was unable to write 'cake_dev_' to File
> cache in /home/kindlem1/public_html/eeip/lib/Cake/Cache/Cache.php on
> line 310
>
> Warning: /home/kindlem1/tmp/cache/persistent/ is not writable in /home/
> kindlem1/public_html/eeip/lib/Cake/Cache/Engine/FileEngine.php on line
> 306
>
> Warning: /home/kindlem1/tmp/cache/models/ is not writable in /home/
> kindlem1/public_html/eeip/lib/Cake/Cache/Engine/FileEngine.php on line
> 306
>  [31;4mWarning Error: [0m _cake_core_ cache was unable to write
> 'cake_console_' to File cache in [/home/kindlem1/public_html/eeip/lib/
> Cake/Cache/Cache.php, line 310]
>
>  [31;4mError: [0m Shell file notify could not be loaded.
> #0 /home/kindlem1/public_html/eeip/lib/Cake/Console/
> ShellDispatcher.php(166): ShellDispatcher->_getShell('notify')
> #1 /home/kindlem1/public_html/eeip/lib/Cake/Console/
> ShellDispatcher.php(69): ShellDispatcher->dispatch()
> #2 /home/kindlem1/public_html/eeip/app/Console/cake.php(24):
> ShellDispatcher::run(Array)
> #3 {main}

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: