Discuss Scratch

Heathercat123
Scratch Team
97 posts

Cloud Vars don't work

On APIClone, cloud variables are implemented on Scratch 3.0. However, here they just result in a 502 Bad Gateway error.

Developer of much of the backend code for this website (the Scratch section, not the rest!) along with contributions from @chipmunkmc.
chipmunkmc
Scratch Team
100+ posts

Cloud Vars don't work

Turns out there was a bug preventing APIClone from starting under ASGI, which I have fixed. I also decided to run the entire site under daphne again.
Edit: In case you're curious, I forgot exactly what errors I got, but they had to do with the settings module being unset and apps not being initialized I think.

Last edited by chipmunkmc (Aug. 24, 2026 03:09:20)


https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
100+ posts

Cloud Vars don't work

And now it's just a 404 and I have no idea if the frontend or backend is causing it. Amazing!

https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
100+ posts

Cloud Vars don't work

chipmunkmc wrote:

I also decided to run the entire site under daphne again.

And it seems daphne froze while I was asleep, and openrc somehow couldn't stop it properly, so I had to pkill -9 it.
Hopefully that won't happen again…

https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
100+ posts

Cloud Vars don't work

The site now seems to be quite unstable after switching back to ASGI via daphne. Maybe I should just switch back to my previous setup at this point…
Edit: and it's back. As I said in one of my profile comments, I probably won't update chipmunk.land/misc for now as Pleroma's instance static folder currently has a whole copy of pleroma-fe.
Edit 2: back to WSGI I mean

Last edited by chipmunkmc (Aug. 30, 2026 01:10:58)


https://max.chipmunk.land/
hi, this is my signature!
chipmunkmc
Scratch Team
100+ posts

Cloud Vars don't work

So it seems as if cloud variables work now! Maybe an APIClone update fixed them?
Also since I'm back to using a setup with separate WSGI and ASGI servers, I'll have to be more careful about making sure ASGI support doesn't break, lest I unknowingly have the server failing to run for a while like I mentioned in the first reply.

Attachments:
attachment Screenshot_2026-08-30_00-48-48.png (12.0 KB)


https://max.chipmunk.land/
hi, this is my signature!

Powered by DjangoBB