AppEngine Error: EROFS: read-only file system, open '.next/static/sitemap.xml

915 views
Skip to first unread message

Mog Obahor

unread,
Nov 8, 2020, 12:58:06 PM11/8/20
to Google App Engine
Does anyone know how to change the write permissioni to App Engine file system. I am deploying a nextJS app and dynamically generating a sitemap.xml file and trying to save it in the .next/static location. It works localhost but not on App Engine

George (Cloud Platform Support)

unread,
Nov 9, 2020, 2:10:04 PM11/9/20
to Google App Engine
Hello Mog, 

In App Engine Standard Environment, the local filesystem that your application is deployed to is not writeable. This behavior ensures the security and scalability of your application. You should thus not consider writing other than temporary files in the /tmp directory. To store data permanently, you'll have to use other services, such as Cloud SQL or Cloud Storage. There are some differences between Standard and Flex environments. 

Mog Obahor

unread,
Nov 10, 2020, 12:15:24 PM11/10/20
to Google App Engine
Thanks for sharing the info George. Much appreciate. So in general does where would  you recommend my sitemap is dynamically generated and stored. does it affect seo if it is not on the same domain. Also is App Engine Standard more cost effective in the long run. I noticed I am also getting another error on standard app engine " "Warning: connect.session() MemoryStore is not  designed for a production environment, as it will leak memory, and will not scale past a single process" Not sure what the suggest fix is. I am running nodejs12 for my server.

Shawn Wu

unread,
Nov 10, 2020, 3:54:36 PM11/10/20
to Google App Engine
I recommend you to file the app's architecture questions in the StackoverFlow, since there is no standard answers for these question. the StackoverFlow community should be the best place for those information. 
Reply all
Reply to author
Forward
0 new messages