amreus / tiddly-bean

Experiments with redbean TiddlyWiki server
MIT License
23 stars 3 forks source link

Error saving wiki #1

Closed siiky closed 10 months ago

siiky commented 10 months ago

Hi! I just stumbled across this project (and TiddlyWiki, actually), but I'm having problems saving the wiki.html with redbean 5c358635 (the current master).

On the output I get the following whenever the wiki tries to autosave or I hit the save button:

I2023-12-28T00:51:13.315997:tool/net/redbean.c:6005:wiki:1783543] (req) received 127.0.0.1:50158 HTTP11 PUT http://127.0.0.1:8080/ "http://127.0.0.1:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
I2023-12-28T00:51:13+000899:tool/net/redbean.c:3637:wiki:1783543] (srvr) storing asset "wiki.html"
W2023-12-28T00:51:13+032388:tool/net/redbean.c:3664:wiki:1783543] (srvr) can't place write lock on file descriptor 3: Bad file number
I2023-12-28T00:51:13+010591:tool/net/redbean.c:6005:wiki:1783543] (req) received 127.0.0.1:50158 HTTP11 HEAD http://127.0.0.1:8080/ "http://127.0.0.1:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
I2023-12-28T00:51:23.262791:tool/net/redbean.c:6005:wiki:1783560] (req) received 127.0.0.1:37938 HTTP11 PUT http://127.0.0.1:8080/ "http://127.0.0.1:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
I2023-12-28T00:51:23+000855:tool/net/redbean.c:3637:wiki:1783560] (srvr) storing asset "wiki.html"
W2023-12-28T00:51:23+029719:tool/net/redbean.c:3664:wiki:1783560] (srvr) can't place write lock on file descriptor 3: Bad file number
I2023-12-28T00:51:23+010287:tool/net/redbean.c:6005:wiki:1783560] (req) received 127.0.0.1:37938 HTTP11 HEAD http://127.0.0.1:8080/ "http://127.0.0.1:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"

And, sure enough, when I reload the page the changes I've made are gone.

Do you happen to have any ideas about why this might be?

siiky commented 10 months ago

May be an upstream problem: https://github.com/jart/cosmopolitan/issues/1044

siiky commented 10 months ago

Indeed, an upstream problem, see the linked issue. I tried redbean v2.2 as suggested and it works! Sorry for the noise and thanks for this project!