Re:Show HN: Redbean – Single-file distributable web server
by jart on Friday February 26, 2021 @04:46AM
(#26273058)
Author here. That error happens if you have binfmt_misc enabled. The solution is simple:
I intend to upstream a patch with the Linux kernel so it can do this automatically. If any kernel devs are reading, please email me!
[ Parent
| on HN ]
Re:Show HN: Redbean – Single-file distributable web server
by FeepingCreature on Friday February 26, 2021 @09:27AM
(#26275068)
Instead of sudo sh -c to sudo the redirects, consider echo 'abcde' |sudo tee /proc/bla. Less nesting :)
Re:Show HN: Redbean – Single-file distributable web server
by npongratz on Friday February 26, 2021 @10:00AM
(#26275394)
Do you mean less syntactical nesting? The pipe to sudo tee creates a new child shell, just as sudo sh -c does.
Re:Show HN: Redbean – Single-file distributable web server
by FeepingCreature on Friday February 26, 2021 @12:03PM
(#26276972)
Yes.
Re:Show HN: Redbean – Single-file distributable web server
by est on Friday February 26, 2021 @05:43AM
(#26273426)
Does it work on cheap Xen vps? Because "/proc/sys/fs/binfmt_misc/register" looks absent from mine.
Re:Show HN: Redbean – Single-file distributable web server
by jart on Friday February 26, 2021 @05:50AM
(#26273470)
That's strange. I'd recommend filing an issue. Any details on how I can reproduce the error will be helpful, even if I have to temporarily rent one of those things. I'm on a mission to make binaries portable.
Re:Show HN: Redbean – Single-file distributable web server
by na-- on Friday February 26, 2021 @06:43AM
(#26273786)
FWIW, it works on QubesOS, which is Xen based. Though it works only in my Fedora and Debian VMs, but not on my Archlinux-based one.
I think that's because I have WINE installed in the Archlinux VMs, since that's what gets started when I run ./redbean.com. But even after I remove WINE, it still doesn't work, I probably have to restart (i.e. remove WINE from the TemplateVM, not the AppVM) for it to work.
In any case, incredible work, I am in awe!