a2svior
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
@carlcaulkett we got a fix! Going to release it tomorrow. Still not on the modular-community channel though, but I'll try to get it published on the mojo-community one
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Not yet, this release was for bumping to Mojo 25.1 . But it's not on Modular official channel yet, that's why I haven't announced it so far. The crash is still a work in progress, will post here when it's fixed!
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
104 is "connection reset by peer" I think.. Thanks for sharing, will try to reproduce
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Thanks for sharing the details
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Yup, it's a bug. I'll make sure this is addressed, probably on the weekend, once we switch to the new stable release
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
If you have SSH access or direct access over from Render to the VM you can do
docker ps -a
to show all running Docker containers with IDs, and docker logs container_id
with the container ID of this container367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
do you see the logs in the container? I bet it's the same issue I was having
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Must be something straightforward, just haven't had the time to look into it properly yet
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
This is when just sending a GET from the browser to the running default handler
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
The error I was getting is
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
The server dies after a request due to some issues with processing logic it seems. Interestingly, this neither happens locally, nor in our integration tests. Seems like it happens only when running it in a Docker container
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Yes I think it's a bug in Lightbug ( 😅 ) that I discovered last week. Looking into it currently
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
I just learned that it was released, need to update the library first, might take a little bit of time. Will post an update here when done
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Looks like it was released today 😄
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Nice! I don't see anything when I open the page, could be related to an issue I saw myself when testing the Docker setup. I'm currently investigating this
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
I have a 1GB droplet on DigitalOcean and that's not enough either 🤷♂️
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Did you add a swap file?
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Yup, something like that, although if client.mojo does what I think it does it will not start a server listening on a port. For that you'll probably need a file with your main function where you call
listen_and_serve()
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
About the workdir, I don't think you need to clone lightbug's repo if Lightbug is a dependency in your project. What you would want to do instead is clone your repo and open e.g the app directory as a workdir, without the COPY directive
367 replies
MModular
•Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Maybe try adding some swap space to the machine on render, might need to SSH in there. Here an instruction, although from DigitalOcean https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04
367 replies