Re: Cache errors on Heroku with update to 2.3 but works fine on local?
You're correct that Aspen and Bamboo are read only, but that doesn't apply here because the Cedar stack (which all PHP apps run on) has a writeable ephemeral file system [1]. Figured out my case though, CakePHP's default .gitignore [2] ignores the tmp directory. Therefore, since the entire tmp directory structure didn't exist, it couldn't write the files it needed into the tmp directory. So, when starting a new CakePHP app, make sure that you actually commit the tmp directories into your repository. [1] https://devcenter.heroku.com/articles/dynos#ephemeral-filesystem [2] https://github.com/cakephp/cakephp/blob/master/.gitignore On Sat, Feb 9, 2013 at 12:28 PM, Simon Males wrote: > Issue is not CakePHP 2.3 specific. Heroku is a read only file system[1]. > > Though you can write to /tmp. So in core.php, when setting > Cache::config() update the value of the 'path' key to '/tmp'. I've > also shared my production Cache::config() settings[2]. > > [1] https://devcenter.heroku.com/articles/read-only-filesystem > [2] https://gist.github.com/sime/4746187 > > On Sat, Feb 9, 2013 at 2:21 PM, Shahruk Khan > wrote: > > Did not resolve the issue as of yet. I tried to change the caching > engine to > > Redis but that requires a username / password and I never got past that. > > I've made a post on the official CakePHP group on Facebook. > > > > On Tuesday, January 29, 2013 11:43:10 PM UTC-5, Shahruk Khan wrote: > >> > >> I just updated my cake application to 2.3 and I started getting internal > >> errors on my heroku application. > >> > >> Warning (512): /app/www/app/tmp/cache/ is not writable > >> [CORE/Cake/Cache/Engine/FileEngine.php, line 336] > >> > >> Warning (2): file_put_contents(/app/www/app/tmp/logs/error.log) > >> [http://php.net/function.file-put-contents]: failed to open stream: No > such > >> file or directory [CORE/Cake/Log/Engine/FileLog.php, line 88] > >> > >> > >> This works fine on my local server. Any tips? > > > > -- > > Like Us on FaceBook https://www.facebook.com/CakePHP > > Find us on Twitter http://twitter.com/CakePHP > > > > --- > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to cake-php+unsubscr...@googlegroups.com. > > To post to this group, send email to cake-php@googlegroups.com. > > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > -- > Simon Males > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Brad Koch Email: bradkoch2...@gmail.com Phone: 989-372-1212 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cache errors on Heroku with update to 2.3 but works fine on local?
Issue is not CakePHP 2.3 specific. Heroku is a read only file system[1]. Though you can write to /tmp. So in core.php, when setting Cache::config() update the value of the 'path' key to '/tmp'. I've also shared my production Cache::config() settings[2]. [1] https://devcenter.heroku.com/articles/read-only-filesystem [2] https://gist.github.com/sime/4746187 On Sat, Feb 9, 2013 at 2:21 PM, Shahruk Khan wrote: > Did not resolve the issue as of yet. I tried to change the caching engine to > Redis but that requires a username / password and I never got past that. > I've made a post on the official CakePHP group on Facebook. > > On Tuesday, January 29, 2013 11:43:10 PM UTC-5, Shahruk Khan wrote: >> >> I just updated my cake application to 2.3 and I started getting internal >> errors on my heroku application. >> >> Warning (512): /app/www/app/tmp/cache/ is not writable >> [CORE/Cake/Cache/Engine/FileEngine.php, line 336] >> >> Warning (2): file_put_contents(/app/www/app/tmp/logs/error.log) >> [http://php.net/function.file-put-contents]: failed to open stream: No such >> file or directory [CORE/Cake/Log/Engine/FileLog.php, line 88] >> >> >> This works fine on my local server. Any tips? > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Simon Males -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cache errors on Heroku with update to 2.3 but works fine on local?
Did not resolve the issue as of yet. I tried to change the caching engine to Redis but that requires a username / password and I never got past that. I've made a post on the official CakePHP group on Facebook. On Tuesday, January 29, 2013 11:43:10 PM UTC-5, Shahruk Khan wrote: > > I just updated my cake application to 2.3 and I started getting internal > errors on my heroku application. > > *Warning* (512): /app/www/app/tmp/cache/ is not writable > [*CORE/Cake/Cache/Engine/FileEngine.php*, line *336*] > > *Warning* (2): file_put_contents(/app/www/app/tmp/logs/error.log) > [http://php.net/function.file-put-contents]: failed to open stream: No such > file or directory [*CORE/Cake/Log/Engine/FileLog.php*, line *88*] > > > This works fine on my local server. Any tips? > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cache errors on Heroku with update to 2.3 but works fine on local?
Ran into the same problem with a new Heroku app of ours. However, we've been running the file cache on an older app for over a year and never had problems. (Both are on the cedar stack.) Did you ever get to the bottom of this? I assume it has something to do with Heroku's philosophy of read-only source code, but we should have the ephemeral file system so that shouldn't matter. On Wed, Jan 30, 2013 at 8:59 AM, Shahruk Khan wrote: > Here's the thing - Heroku uses EC2, meaning that any files written are > deleted on Git push. But I think you're right, so I'm gonna contact Heroku > support the moment I get the chance. Thanks > > > On Wednesday, January 30, 2013 7:51:12 AM UTC-5, Luciano Bargmann wrote: >> >> First things first: I am almost sure you have a write permission problem. >> Have you tried to fix that? > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Brad Koch Email: bradkoch2...@gmail.com Phone: 989-372-1212 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cache errors on Heroku with update to 2.3 but works fine on local?
Here's the thing - Heroku uses EC2, meaning that any files written are deleted on Git push. But I think you're right, so I'm gonna contact Heroku support the moment I get the chance. Thanks On Wednesday, January 30, 2013 7:51:12 AM UTC-5, Luciano Bargmann wrote: > > First things first: I am almost sure you have a write permission problem. > Have you tried to fix that? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.