Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx in docker on zfs must now use 'senfile off;' #13013

Closed
jfburdet opened this issue Jan 25, 2022 · 5 comments
Closed

Nginx in docker on zfs must now use 'senfile off;' #13013

jfburdet opened this issue Jan 25, 2022 · 5 comments
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@jfburdet
Copy link

I folks. I have an ArchLinux with zfs running a dokuwiki using this docker image : ghcr.io/linuxserver/dokuwiki:version-2020-07-29
It worked very well since a long time.

But a few days ago, it stopped working and started filling nginx log (in docker) with this kind of message :

[alert] 386#386: *310 sendfile() failed (22: Invalid argument) while sending response to client,

when serving static files.

After a long time searching, I simply changed an option in nginx (in docker) : 'senfile off;' and the problem was gone.

I believe this could be linked to something bad happening between my Linux version and zfs. I believe it brokes when upgrading from 2.1.1 to 2.1.2

'hope this report can be usefull.

[root@orion ~]# zfs version
zfs-2.1.2-1
zfs-kmod-2.1.2-1
[root@orion ~]# uname -a
Linux orion 5.16.2-arch1-1 #1 SMP PREEMPT Thu, 20 Jan 2022 16:18:29 +0000 x86_64 GNU/Linux
@jfburdet jfburdet added the Type: Defect Incorrect behavior (e.g. crash, hang) label Jan 25, 2022
@rincebrain
Copy link
Contributor

#12971

No current release claims 5.16 support, and as it turns out, it's broken.

@jfburdet
Copy link
Author

Hmm, this look like make a duplicate issue :-(
Sorry for that

@jfburdet
Copy link
Author

jfburdet commented Feb 7, 2022

Leaving it here for info :

Seems to be fixed with :

$ zfs version
zfs-2.1.2-1
zfs-kmod-2.1.2-1
$ uname -a
Linux orion 5.16.5-arch1-1 #1 SMP PREEMPT Tue, 01 Feb 2022 21:42:50 +0000 x86_64 GNU/Linux

@rincebrain
Copy link
Contributor

Stock 2.1.2,definitely does not have the fixes for 5.16, and the archzfs packages don't immediately appear to have cherrypicked it, so...I'm not sure why it would work for you now?

@jfburdet
Copy link
Author

jfburdet commented Feb 7, 2022

Hhmm, I made a try but was tricking in believing it was fixed due to my browser cache .

So no, you're right, bug is still here, and i'm still using "sendfile off" in my nginx config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

2 participants