brillout / goldpage

Page Builder.
Creative Commons Zero v1.0 Universal
57 stars 3 forks source link

Google App Engine deployment issues #17

Closed chriscalo closed 4 years ago

chriscalo commented 4 years ago

After converting my app to Goldpage, I tried deploying it to Google App Engine, but it seemed to be failing to successfully start up.

I see the following message in the logs, and it's never able to respond to any requests:

2019-10-23 22:42:11.589 EDT This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.
2019-10-23 22:40:11.269 EDT App listening on port 8081
2019-10-23 22:40:11.269 EDT Press Ctrl+C to quit.
2019-10-23 22:42:11.503 EDT {"textPayload":"","insertId":"5db10f830007aee95dcda76c","resource":{"type":"gae_app","labels":{"zone":"us-east1-3","project_id":"foo-app","version_id":"goldpage","module_id":"default"}},"timestamp":"2019-10-24T02:42:11.503529Z","labels":{"clone_id":"00c61b117ce9bb36a064819620dd60d190f3857932a03…
2019-10-23 22:42:11.503 EDT <--- Last few GCs --->
2019-10-23 22:42:11.503 EDT {"textPayload":"","insertId":"5db10f830007af2284ce4db9","resource":{"type":"gae_app","labels":{"zone":"us-east1-3","project_id":"foo-app","version_id":"goldpage","module_id":"default"}},"timestamp":"2019-10-24T02:42:11.503586Z","labels":{"clone_id":"00c61b117ce9bb36a064819620dd60d190f3857932a03…
2019-10-23 22:42:11.503 EDT [7:0x2995f6e5b970] 139717 ms: Mark-sweep 163.2 (178.4) -> 161.2 (178.4) MB, 443.7 / 0.0 ms (average mu = 0.357, current mu = 0.331) allocation failure scavenge might not succeed
2019-10-23 22:42:11.503 EDT [7:0x2995f6e5b970] 140401 ms: Mark-sweep 163.3 (178.4) -> 161.3 (178.4) MB, 431.3 / 0.0 ms (average mu = 0.363, current mu = 0.369) allocation failure scavenge might not succeed
2019-10-23 22:42:11.503 EDT {"textPayload":"","insertId":"5db10f830007af6e4676673d","resource":{"type":"gae_app","labels":{"zone":"us-east1-3","project_id":"foo-app","version_id":"goldpage","module_id":"default"}},"timestamp":"2019-10-24T02:42:11.503662Z","labels":{"clone_id":"00c61b117ce9bb36a064819620dd60d190f3857932a03…
2019-10-23 22:42:11.504 EDT {"textPayload":"","insertId":"5db10f830007b0dde17d4bb6","resource":{"type":"gae_app","labels":{"version_id":"goldpage","module_id":"default","zone":"us-east1-3","project_id":"foo-app"}},"timestamp":"2019-10-24T02:42:11.504029Z","labels":{"clone_id":"00c61b117ce9bb36a064819620dd60d190f3857932a03…
2019-10-23 22:42:11.504 EDT <--- JS stacktrace --->
2019-10-23 22:42:11.504 EDT {"textPayload":"","insertId":"5db10f830007b1d2ea3e6369","resource":{"type":"gae_app","labels":{"module_id":"default","zone":"us-east1-3","project_id":"foo-app","version_id":"goldpage"}},"timestamp":"2019-10-24T02:42:11.504274Z","labels":{"clone_id":"00c61b117ce9bb36a064819620dd60d190f3857932a03…
2019-10-23 22:42:11.504 EDT ==== JS stack trace =========================================
2019-10-23 22:42:11.504 EDT {"textPayload":"","insertId":"5db10f830007b1f74d74c505","resource":{"type":"gae_app","labels":{"module_id":"default","zone":"us-east1-3","project_id":"foo-app","version_id":"goldpage"}},"timestamp":"2019-10-24T02:42:11.504311Z","labels":{"clone_id":"00c61b117ce9bb36a064819620dd60d190f3857932a03…
2019-10-23 22:42:11.504 EDT Security context: 0x3692f241e6e9 <JSObject>
2019-10-23 22:42:11.504 EDT 0: builtin exit frame: captureStackTrace(this=0x3692f2409719 <JSFunction Error (sfi = 0xe88c5616e01)>,0x015cac202d69 <JSFunction handleErrorFromBinding (sfi = 0x3d70336ab0b1)>,0x3a9321c02549 <Error map = 0xc26ea662709>,0x3692f2409719 <JSFunction Error (sfi = 0xe88c5616e01)>)
2019-10-23 22:42:11.504 EDT {"textPayload":"","insertId":"5db10f830007b22dcc292b27","resource":{"type":"gae_app","labels":{"module_id":"default","zone":"us-east1-3","project_id":"foo-app","version_id":"goldpage"}},"timestamp":"2019-10-24T02:42:11.504365Z","labels":{"clone_id":"00c61b117ce9bb36a064819620dd60d190f3857932a03…
2019-10-23 22:42:11.504 EDT 1: handleErrorFromBinding(aka handleErrorFromBinding) [0x15cac202d69] [fs.js:113] [bytecode=0x12c8503cb1a1 offset...
2019-10-23 22:42:11.504 EDT {"textPayload":"","insertId":"5db10f830007b24f372f3b2c","resource":{"type":"gae_app","labels":{"project_id":"foo-app","version_id":"goldpage","module_id":"default","zone":"us-east1-3"}},"timestamp":"2019-10-24T02:42:11.504399Z","labels":{"clone_id":"00c61b117ce9bb36a064819620dd60d190f3857932a03…
2019-10-23 22:42:24.222 EDT App listening on port 8081
2019-10-23 22:42:24.223 EDT Press Ctrl+C to quit.

I tried to create a basic reproduction in the goldpage-vue-express-starter repo, and while it is slow to start up, I think because it's such a small repo it does start up successfully. (Whereas my larger app written in Goldpage is never able to respond to any request.)

Upon running into this issue I decided to give Nuxt another try and have most been able to get it working. Because I was able to find a different solution, there's no need to fix this for my situation. I just wanted to share in case this may be causing issues in other situations.

brillout commented 4 years ago

So app engine is not showing any error originating from JS source code? I can't debug this if I don't have a stack trace nor a repro.

Sorry that Goldpage didn't end up working for you. Thanks for the many interesting discussions and super neat feedback!

chriscalo commented 4 years ago

Yeah, this is the only output I see in the logs. Sounds like a memory issue and it never ends up successfully starting.

Thanks for entertaining all of my silly questions and being so attentive! 🙏 Best of luck with wherever Goldpage goes. I'm hoping 2020 is the year SSR gets really good.

brillout commented 4 years ago

My experimentation with Parcel v2 and your render design is going well; AFAICT, in 2020, you can expect to see your render design built as a super thin layer on top of Parcel. Exciting times for SSR :-).

If it's ok with you I'd like to cue you in in the development of the user interface of your render design. I'll ping you when I've something to show.

I like talking with you. You like design, I can tell and I appreciate your care for design. If you happen to want to do some Open Source work together, let me know. Would be fun to do something together. It's a super enriching experience. I can see you profoundly liking it.