Closed causal-agent closed 5 years ago
truss
output leading to that error:
11769: poll({ 0/POLLIN 3/POLLIN },2,-1) = 1 (0x1)
11769: accept(0,{ AF_UNIX "" },0x7fffffffe408) = 1 (0x1)
11769: fcntl(1,F_GETFL,) = 6 (0x6)
11769: fcntl(1,F_SETFL,O_RDWR|O_NONBLOCK) = 0 (0x0)
11769: getpid() = 11769 (0x2df9)
11769: __sysctl(0x7fffffffe368,0x2,0x7fffffffe2d0,0x7fffffffe2c8,0x0,0x0) = 0 (0x0)
11769: poll({ 4/POLLOUT },1,-1) = 1 (0x1)
11769: write(4,",\M^M\M-i.",4) = 4 (0x4)
11769: poll({ 1/POLLIN 4/POLLIN },2,-1) = 1 (0x1)
11769: read(1,0x7fffffffe490,1024) ERR#93 'Capabilities insufficient'
11769: stat("/usr/share/nls/C/libc.cat",0x7fffffffd978) ERR#94 'Not permitted in capability mode'
11769: stat("/usr/share/nls/libc/C",0x7fffffffd978) ERR#94 'Not permitted in capability mode'
11769: stat("/usr/local/share/nls/C/libc.cat",0x7fffffffd978) ERR#94 'Not permitted in capability mode'
11769: stat("/usr/local/share/nls/libc/C",0x7fffffffd978) ERR#94 'Not permitted in capability mode'
11769: write(2,"fcgi.c:248: FastCGI: read: Capab"...,53) = 53 (0x35)
I have the same issue, I need to find out what it actually tries to read.
As far as I can tell from the truss
output, it just tries to read the socket it gets from calling accept
, which seems like it should work fine from reading rights(4)
.
Well it doesn’t at all, in fact it always results in a 500 Internal server error :/ If you want me to try anything on my server let me know
On 12 Nov 2018, at 22:32, Curtis McEnroe notifications@github.com wrote:
As far as I can tell from the truss output, it just tries to read the socket it gets from calling accept, which seems like it should work fine from reading rights(4).
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kristapsdz/kcgi/issues/51#issuecomment-438035856, or mute the thread https://github.com/notifications/unsubscribe-auth/AFOpW177_-MEXdB_etdvEgN_Wn5cUAepks5uuekLgaJpZM4XyuyW.
I think I have an inkling of what this may be. Does anybody have a FreeBSD box for me to test? I can also send a patch, but that'll be a little cumbersome w/r/t back-and-forth.
Thanks everybody---this turned out to be some misleading documentation in the FreeBSD rights(4) manual. It's described in the commit message. I'll have a version out promptly with this fix.
I'm trying to deploy
kfcgi
on FreeBSD. Using the example program from https://kristaps.bsd.lv/kcgi/tutorial2.html, I get this error:The error is the same if I point an HTTPd to the socket. I'm just using
nc
as an example to trigger the error.