Also, something else worth noting is that we're not sure why Laravel is trying to the write to the folder "/*workspace*/storage/framework/views/" instead of "/*tmp*/storage/framework/views/". Also, in case it's helpful to someone, below is a copy of our app.yaml (it's been configured the same way for over a year):
APP_KEY: XXX APP_URL: 'XXXXX' APP_NAME: XXX APP_STORAGE: /tmp APP_ENV: production APP_DEBUG: true VIEW_COMPILED_PATH: /tmp On Monday, August 24, 2020 at 7:02:51 PM UTC+3 Hadil Charafeddine wrote: > Hello, > > Our team has been using App Engine Standard for this project (PHP and > Laravel 5.8.38) for over a year now without any issues with deployment. > However, a couple of weeks ago we started getting a 500 HTTP error every > time we deploy (with and without --no-promote option). > > When we check our logs, we find that the error is caused by: > *2020/08/18 06:15:15 [error] 25#25: *2 FastCGI sent in stderr: "PHP > message: PHP Fatal error: Uncaught ErrorException: > file_put_contents(/workspace/storage/framework/views/c1b305dfa33e081e1fc836f46439e09f829e8770.php): > > failed to open stream: Read-only file system* > > It's very weird that we're receiving this message now even though the > project has been working fine for more than a year and we've made countless > deployments to date without this issue. Furthermore, we did not update the > configuration of the project nor did we update the Laravel version. > > What's even stranger is that over the past couple of weeks, 95% of the > deployments fail with 500 error and 5% succeed without issues. What's also > strange is that our team is comprised of 4 developers and 3 of us have 95% > unsuccessful deployments while one of has has 100% *successful* > deployments. There's absolutely no difference between the code the 3 of us > are trying to deploy and the code the 4th member is successfully deploying. > > This inconsistency is the error is baffling us. We've tried all the > solutions online we can find but nothing is working. > > Can anyone offer any insight on why this could be happening? Please keep > in mind that this issue started only 2 weeks ago. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/9848bd88-c94f-4980-8e1c-61303742c1b1n%40googlegroups.com.
