You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tim Garton <tg...@hightechhigh.org> on 2006/02/14 22:43:12 UTC

[users@httpd] Apache 2.2 seems to have problems with CIFS mounted filesystems

Has anyone else run into anything like this?  Just upgraded to Apache 
2.2.0 on a linux box running 2.6.10 kernel.  This machine mounts some 
windows shares via CIFS (eg. mount -t cifs //windowsfs/share 
/local/mount/point)  For some of the virtual hosts the UserDir's lie on 
these mounted CIFS filesystems.  After upgrading to 2.2, whenever you 
try to visit one of these UserDir pages, if it's an .html page you get 
the html but no images work, if it's anything else you get a blank 
page.  Additionally, we see these in our error logs:

[Mon Feb 13 14:55:08 2006] [info] [client 172.16.10.7] (75)Value too 
large for defined data type: core_output_filter: writing data to the network

However, as soon as you unmount the CIFS mount and then mount it again 
as SMBFS(eg. mount -t smbfs //windowsfs/share /local/mount/point), 
everything works like a charm.  But under Apache 2.0, the CIFS mount 
worked no problem.  Anyone else seen this or know a work around?  
Unfortunately mounting the shares as SMBFS fails under a heavy load so 
we have to stick with CIFS mounting.  And yes, before you say it, I 
realize it's not the best way to run a webserver serving up pages from a 
windows mounted share, but it makes it extremely easy for all our users 
to develop websites without having to explain to them how to ftp or sftp 
data to the webserver.

Tim

-- 
Tim Garton
Director of Technology
High Tech High
Work: (619) 243-5009
Cell: (619) 347-9531
Fax: (619) 243-5050
tgarton@hightechhigh.org
http://www.hightechhigh.org


Re: [users@httpd] Apache 2.2 seems to have problems with CIFS mounted filesystems

Posted by Joe Orton <jo...@redhat.com>.
On Wed, Feb 15, 2006 at 09:49:52AM -0800, Tim Garton wrote:
> Ok, I took Joe's advice.  You can find the strace at:
> http://staff.hightechhigh.org/~tgarton/httpd.strace.gz
> 
> The other info you asked for is:
> Linux distro - Slackware 10.1
> CPU arch - x86(Pentium III)
> glibc version - 2.3.2

Thanks. The error:

sendfile64(8, 9, [0], 5571)             = -1 EOVERFLOW (Value too large for defined data type)

should never happen; I suppose this could be a bug in the CIFS driver, 
but it's a little odd.  You can use "EnableSendfile off" to work around 
the issue.  Upgrading the kernel might fix it properly.

joe

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.2 seems to have problems with CIFS mounted filesystems

Posted by Tim Garton <tg...@hightechhigh.org>.
Ok, I took Joe's advice.  You can find the strace at:
http://staff.hightechhigh.org/~tgarton/httpd.strace.gz

The other info you asked for is:
Linux distro - Slackware 10.1
CPU arch - x86(Pentium III)
glibc version - 2.3.2

Tim


Joe Orton wrote:

>On Tue, Feb 14, 2006 at 01:43:12PM -0800, Tim Garton wrote:
>  
>
>>Has anyone else run into anything like this?  Just upgraded to Apache 
>>2.2.0 on a linux box running 2.6.10 kernel.  This machine mounts some 
>>windows shares via CIFS (eg. mount -t cifs //windowsfs/share 
>>/local/mount/point)  For some of the virtual hosts the UserDir's lie on 
>>these mounted CIFS filesystems.  After upgrading to 2.2, whenever you 
>>try to visit one of these UserDir pages, if it's an .html page you get 
>>the html but no images work, if it's anything else you get a blank 
>>page.  Additionally, we see these in our error logs:
>>
>>[Mon Feb 13 14:55:08 2006] [info] [client 172.16.10.7] (75)Value too 
>>large for defined data type: core_output_filter: writing data to the network
>>    
>>
>
>Could you capture the strace output when this happens? e.g.
>
>strace -o /tmp/httpd.strace httpd -X
>...
><send a request which triggers the error>
>CTRL-C.
>
>then gzip and upload /tmp/httpd.strace somewhere; please don't post it 
>to this list.  It might be useful also to know the:
>
>- Linux distribution
>- CPU architecture
>- glibc version
>
>Regards,
>
>joe
>  
>

-- 
Tim Garton
Director of Technology
High Tech High
Work: (619) 243-5009
Cell: (619) 347-9531
Fax: (619) 243-5050
tgarton@hightechhigh.org
http://www.hightechhigh.org


Re: [users@httpd] Apache 2.2 seems to have problems with CIFS mounted filesystems

Posted by Joe Orton <jo...@redhat.com>.
On Tue, Feb 14, 2006 at 01:43:12PM -0800, Tim Garton wrote:
> Has anyone else run into anything like this?  Just upgraded to Apache 
> 2.2.0 on a linux box running 2.6.10 kernel.  This machine mounts some 
> windows shares via CIFS (eg. mount -t cifs //windowsfs/share 
> /local/mount/point)  For some of the virtual hosts the UserDir's lie on 
> these mounted CIFS filesystems.  After upgrading to 2.2, whenever you 
> try to visit one of these UserDir pages, if it's an .html page you get 
> the html but no images work, if it's anything else you get a blank 
> page.  Additionally, we see these in our error logs:
> 
> [Mon Feb 13 14:55:08 2006] [info] [client 172.16.10.7] (75)Value too 
> large for defined data type: core_output_filter: writing data to the network

Could you capture the strace output when this happens? e.g.

strace -o /tmp/httpd.strace httpd -X
...
<send a request which triggers the error>
CTRL-C.

then gzip and upload /tmp/httpd.strace somewhere; please don't post it 
to this list.  It might be useful also to know the:

- Linux distribution
- CPU architecture
- glibc version

Regards,

joe

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.2 seems to have problems with CIFS mounted filesystems

Posted by Jacqui Caren <ja...@ntlworld.com>.
Tim Garton wrote:
>  but it makes it extremely easy for all our users
> to develop websites without having to explain to them how to ftp or sftp 
> data to the webserver.

This may be obvious but here goes :-)

I make web space available on the linux box and use samba to share this 
space with the windows machines.

There is the issue with XPhome (I use this technique at home) but apart 
from this it works well.

Jacqui

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org