Closed brown121407 closed 4 years ago
So let me see if I understand the reproduction step
git clone https://git.sr.ht/~brown121407/brown.121407.xyz
cd brown.121407.xyz
cobalt serve
Which links should I click to reproduce the crash? I've picked some random things but cobalt at HEAD
doesn't crash (on my Macbook).
You seem to have done the things necessary for it to crash (if, after going to http://localhost:3000/assets/temple/index.html you tried going to any other address on the site, even plain http://localhost:3000, it should have died).
My cobalt --version
is Cobalt 0.15.4
from the Arch Linux repos.
I just published 0.15.5. If that doesn't work for you, I'll try reproducing on other machines.
Also, if you do run into this, could you run with verbose logging enabled in case there is more of a hint as to what is going on?
I have the same problem with your latest release.
Here is the output of cobalt serve --trace
:
https://paste.sr.ht/%7Ebrown121407/cb8baaa983c52f8303783cd2cdba00564b2ed9a4
I was thinking of patching up the error handling but I figured it'd be better to go ahead and modernize the implementation. I'll let you know when #697 is in a release.
v0.15.6 is now published.
The good news it that it doesn't crash anymore now :tada: .
The bad news is that cobalt serve
no longer closes when I press Ctrl-C. It hangs with:
[info] SIGINT received, exiting
Should I open up a new issue for this?
Yes, that should be a new issue
The
cobalt serve
server starts well and is working as intended for posts and top level pages. I have a copy of the TempleOS website in anassets
directory atassets/temple
. When I accessindex.html
from this directory, it works fine, but when I click on anything else afterwards, the server dies (note that the server is still alive after a first serve of something fromassets/temple
but dies after you do anything else from that point).The last two lines of output:
Here is the repository: https://git.sr.ht/~brown121407/brown.121407.xyz
The deployed website works as expected - I can browse even after opening
assets/temple/index.html
. You can access the website here: https://brown.121407.xyz