Hi,<br><br>Can you send following information?<br><br>* backtrace from the lighttpd core after lighttpd has crashed.<br>* complete glusterfs logfile as an attachment.<br><br>Also, mod_glusterfs is listed at the end in server.modules. Can you move it to top and retry?<br>
<br>regards,<br><br><div class="gmail_quote">On Wed, Feb 18, 2009 at 2:20 AM, Titov Alexander <span dir="ltr">&lt;<a href="mailto:titoff.a@gmail.com">titoff.a@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The problem is remained in other words, but before lighhtpd hungs. The lighttpd dies without error after trying to read the URL from glusterfs.<br><br>Configuration of lighttpd:<br>server.modules&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ( <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;mod_access&quot;,<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;mod_alias&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;mod_accesslog&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;mod_compress&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;mod_rewrite&quot;, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;mod_redirect&quot;, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;mod_status&quot;, <br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;mod_glusterfs&quot;,<br>&nbsp;)<br>server.document-root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;/var/www/&quot;<br>server.errorlog&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;/var/log/lighttpd/error.log&quot;<br>index-file.names&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ( &quot;index.php&quot;, &quot;index.html&quot;,<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;index.htm&quot;, &quot;default.htm&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;index.lighttpd.html&quot; )<br>accesslog.filename&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;/var/log/lighttpd/access.log&quot;<br>

url.access-deny&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ( &quot;~&quot;, &quot;.inc&quot; )<br>static-file.exclude-extensions = ( &quot;.php&quot;, &quot;.pl&quot;, &quot;.fcgi&quot; )<br>server.port&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 8081 <br>server.pid-file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;/var/run/lighttpd.pid&quot;<br>

dir-listing.encoding&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;utf-8&quot;<br>server.dir-listing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;enable&quot;<br>server.username&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;www-data&quot;<br>server.groupname&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;www-data&quot;<br>compress.cache-dir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = &quot;/var/cache/lighttpd/compress/&quot;<br>

compress.filetype&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = (&quot;text/plain&quot;, &quot;text/html&quot;, &quot;application/x-javascript&quot;, &quot;text/css&quot;)<br>include_shell &quot;/usr/share/lighttpd/<a href="http://create-mime.assign.pl" target="_blank">create-mime.assign.pl</a>&quot;<br>

include_shell &quot;/usr/share/lighttpd/include-conf-enabled.pl&quot;<br><br>$HTTP[&quot;url&quot;] =~ &quot;^/&quot; {<br>&nbsp;&nbsp;&nbsp; glusterfs.document-root = &quot;/var/www&quot;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; glusterfs.prefix = &quot;/&quot; <br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; glusterfs.logfile = &quot;/var/log/lighttpd/glusterfs-lighttpd.log&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; glusterfs.volume-specfile = &quot;/etc/glusterfs/glusterfs-client.vol&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; glusterfs.loglevel = &quot;debug&quot;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; glusterfs.cache-timeout = 300<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; glusterfs.xattr-interface-size-limit = &quot;65536&quot;<br>}<br><br>glusterfs-client.vol:<br>volume server1<br>&nbsp; type protocol/client<br>&nbsp; option transport-type tcp<br>&nbsp; option remote-host 192.168.1.2<br>

&nbsp; option remote-port 6996&nbsp;&nbsp;&nbsp; <br>&nbsp; option username user<br>&nbsp; option password *******<br>&nbsp; option remote-subvolume storage<br>end-volume<br><br>volume server2<br>&nbsp; type protocol/client<br>&nbsp; option transport-type tcp<br>
&nbsp; option remote-host 192.168.1.2<br>
&nbsp; option remote-port 6996<br>&nbsp; option username user<br>&nbsp; option password *******<br>&nbsp; option remote-subvolume storage &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>end-volume<br><br>volume replicate<br>&nbsp; type cluster/replicate<br>&nbsp; subvolumes server1 server2<br>

end-volume<br><br>volume writebehind<br>&nbsp; type performance/write-behind<br>&nbsp; option aggregate-size 128KB<br>&nbsp; option window-size 1MB<br>&nbsp; option flush-behind on<br>&nbsp; subvolumes replicate<br>end-volume<br><br>volume cache<br>

&nbsp; type performance/io-cache<br>&nbsp; option cache-size 512MB<br>&nbsp; subvolumes writebehind<br>end-volume<br><br>In debug mode log is writing:<br>2009-02-17 19:01:23 D [spec.y:187:new_section] parser: New node for &#39;client1&#39;<br>

2009-02-17 19:01:23 D [xlator.c:421:xlator_set_type] xlator: attempt to load file /usr/lib/glusterfs/2.0.0rc1/xlator/protocol/client.so<br>2009-02-17 19:01:23 D [spec.y:213:section_type] parser: Type:client1:protocol/client<br>

2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:client1:transport-type:tcp<br>2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:client1:remote-host:192.168.1.1<br>2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:client1:remote-port:6996<br>

2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:client1:username:user<br>2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:client1:password:******<br>2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:client1:remote-subvolume:storage<br>

2009-02-17 19:01:23 D [spec.y:372:section_end] parser: end:client1<br>2009-02-17 19:01:23 D [spec.y:187:new_section] parser: New node for &#39;client2&#39;<br>2009-02-17 19:01:23 D [xlator.c:421:xlator_set_type] xlator: attempt to load file /usr/lib/glusterfs/2.0.0rc1/xlator/protocol/client.so<br>

2009-02-17 19:01:23 D [spec.y:213:section_type] parser: Type:client2:protocol/client<br>2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:client2:transport-type:tcp<br>2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:client2:remote-host:192.168.1.2<br>

2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:client2:remote-port:6996<br>2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:client2:username:user<br>2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:client2:password:*******<br>

2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:client2:remote-subvolume:storage<br>2009-02-17 19:01:23 D [spec.y:372:section_end] parser: end:client2<br>2009-02-17 19:01:23 D [spec.y:187:new_section] parser: New node for &#39;replicate&#39;<br>

2009-02-17 19:01:23 D [xlator.c:421:xlator_set_type] xlator: attempt to load file /usr/lib/glusterfs/2.0.0rc1/xlator/cluster/replicate.so<br>2009-02-17 19:01:23 D [spec.y:213:section_type] parser: Type:replicate:cluster/replicate<br>

2009-02-17 19:01:23 D [spec.y:357:section_sub] parser: child:replicate-&gt;client1<br>2009-02-17 19:01:23 D [spec.y:357:section_sub] parser: child:replicate-&gt;client2<br>2009-02-17 19:01:23 D [spec.y:372:section_end] parser: end:replicate<br>

2009-02-17 19:01:23 D [spec.y:187:new_section] parser: New node for &#39;writebehind&#39;<br>2009-02-17 19:01:23 D [xlator.c:421:xlator_set_type] xlator: attempt to load file /usr/lib/glusterfs/2.0.0rc1/xlator/performance/write-behind.so<br>

2009-02-17 19:01:23 D [xlator.c:461:xlator_set_type] xlator: dlsym(notify) on /usr/lib/glusterfs/2.0.0rc1/xlator/performance/write-behind.so: undefined symbol: notify -- neglecting<br>2009-02-17 19:01:23 D [spec.y:213:section_type] parser: Type:writebehind:performance/write-behind<br>

2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:writebehind:aggregate-size:128KB<br>2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:writebehind:window-size:1MB<br>2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:writebehind:flush-behind:on<br>

2009-02-17 19:01:23 D [spec.y:357:section_sub] parser: child:writebehind-&gt;replicate<br>2009-02-17 19:01:23 D [spec.y:372:section_end] parser: end:writebehind<br>2009-02-17 19:01:23 D [spec.y:187:new_section] parser: New node for &#39;cache&#39;<br>

2009-02-17 19:01:23 D [xlator.c:421:xlator_set_type] xlator: attempt to load file /usr/lib/glusterfs/2.0.0rc1/xlator/performance/io-cache.so<br>2009-02-17 19:01:23 D [xlator.c:461:xlator_set_type] xlator: dlsym(notify) on /usr/lib/glusterfs/2.0.0rc1/xlator/performance/io-cache.so: undefined symbol: notify -- neglecting<br>

2009-02-17 19:01:23 D [spec.y:213:section_type] parser: Type:cache:performance/io-cache<br>2009-02-17 19:01:23 D [spec.y:288:section_option] parser: Option:cache:cache-size:512MB<br>2009-02-17 19:01:23 D [spec.y:357:section_sub] parser: child:cache-&gt;writebehind<br>

2009-02-17 19:01:23 D [spec.y:372:section_end] parser: end:cache<br>2009-02-17 19:01:23 D [inode.c:990:inode_table_new] libglusterfsclient: creating new inode table with lru_limit=14057<br>2009-02-17 19:01:23 D [inode.c:455:__inode_create] libglusterfsclient/inode: create inode(0)<br>

2009-02-17 19:01:23 D [client-protocol.c:5986:init] client1: defaulting transport-timeout to 42<br>2009-02-17 19:01:23 D [transport.c:141:transport_load] transport: attempt to load file /usr/lib/glusterfs/2.0.0rc1/transport/socket.so<br>

2009-02-17 19:01:23 D [xlator.c:152:_volume_option_value_validate] client1: no range check required for &#39;option remote-port 6996&#39;<br>2009-02-17 19:01:23 W [client-protocol.c:6049:init] client1: WARNING: Failed to set &#39;ulimit -n 1M&#39;: Operation not permitted<br>

2009-02-17 19:01:23 E [client-protocol.c:6057:init] client1: Failed to set max open fd to 64k: Operation not permitted<br>2009-02-17 19:01:23 D [xlator.c:551:xlator_init_rec] client1: Initialization done<br>2009-02-17 19:01:23 D [client-protocol.c:5986:init] client2: defaulting transport-timeout to 42<br>

2009-02-17 19:01:23 D [transport.c:141:transport_load] transport: attempt to load file /usr/lib/glusterfs/2.0.0rc1/transport/socket.so<br>2009-02-17 19:01:23 D [xlator.c:152:_volume_option_value_validate] client2: no range check required for &#39;option remote-port 6996&#39;<br>

2009-02-17 19:01:23 W [client-protocol.c:6049:init] client2: WARNING: Failed to set &#39;ulimit -n 1M&#39;: Operation not permitted<br>2009-02-17 19:01:23 E [client-protocol.c:6057:init] client2: Failed to set max open fd to 64k: Operation not permitted<br>

2009-02-17 19:01:23 D [xlator.c:551:xlator_init_rec] client2: Initialization done<br>2009-02-17 19:01:23 D [xlator.c:551:xlator_init_rec] replicate: Initialization done<br>2009-02-17 19:01:23 D [write-behind.c:1315:init] writebehind: using aggregate-size = 131072<br>

2009-02-17 19:01:23 D [write-behind.c:1364:init] writebehind: aggregate-size is not zero, disabling flush-behind<br>2009-02-17 19:01:23 D [xlator.c:551:xlator_init_rec] writebehind: Initialization done<br>2009-02-17 19:01:23 D [io-cache.c:1308:init] cache: using cache-size 536870912<br>

2009-02-17 19:01:23 D [xlator.c:551:xlator_init_rec] cache: Initialization done<br>2009-02-17 19:01:23 D [client-protocol.c:6296:notify] client1: got GF_EVENT_PARENT_UP, attempting connect on transport<br>2009-02-17 19:01:23 D [client-protocol.c:6296:notify] client2: got GF_EVENT_PARENT_UP, attempting connect on transport<br>

2009-02-17 19:01:23 D [client-protocol.c:6296:notify] client1: got GF_EVENT_PARENT_UP, attempting connect on transport<br>2009-02-17 19:01:23 D [client-protocol.c:6296:notify] client2: got GF_EVENT_PARENT_UP, attempting connect on transport <br>

2009-02-17 19:01:24 D [client-protocol.c:5684:client_protocol_reconnect] client1: attempting reconnect<br>2009-02-17 19:01:24 D [common-utils.c:92:gf_resolve_ip6] resolver: DNS cache not present, freshly probing hostname: 192.168.1.1<br>

2009-02-17 19:01:24 D [common-utils.c:129:gf_resolve_ip6] resolver: returning ip-192.168.1.1 (port-6996) for hostname: 192.168.1.1 and port: 6996<br>2009-02-17 19:01:24 E [name.c:416:client_bind] client1: cannot bind inet socket (10) to port less than 1024 (Permission denied)<br>

2009-02-17 19:01:24 D [client-protocol.c:5684:client_protocol_reconnect] client2: attempting reconnect<br>2009-02-17 19:01:24 D [common-utils.c:92:gf_resolve_ip6] resolver: DNS cache not present, freshly probing hostname: 192.168.1.2<br>

2009-02-17 19:01:24 D [client-protocol.c:6328:notify] client1: got GF_EVENT_CHILD_UP<br>2009-02-17 19:01:24 D [socket.c:924:socket_connect] client1: connect () called on transport already connected<br>2009-02-17 19:01:24 D [common-utils.c:129:gf_resolve_ip6] resolver: returning ip-192.168.1.2 (port-6996) for hostname: 192.168.1.2 and port: 6996<br>

2009-02-17 19:01:24 E [name.c:416:client_bind] client2: cannot bind inet socket (11) to port less than 1024 (Permission denied)<br>2009-02-17 19:01:24 D [client-protocol.c:6328:notify] client2: got GF_EVENT_CHILD_UP<br>2009-02-17 19:01:24 D [socket.c:924:socket_connect] client2: connect () called on transport already connected<br>

<br>After that lighttpd is died.<br><br><br>Lighttpd version 1.4.19.<br><br>Help please with this problem.<br><br><br><br><div class="gmail_quote">2009/2/17 Raghavendra G <span dir="ltr">&lt;<a href="mailto:raghavendra@zresearch.com" target="_blank">raghavendra@zresearch.com</a>&gt;</span><div>
<div></div><div class="Wj3C7c"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>These are warning messages. Even though it cannot bind to any port &lt;= 1024, lighttpd goes ahead and binds to a non privileged port. But since client is bound to non-privileged port, the address based authentication do not accept the client. Hence client should be using login based authentication. More details about authentication methods can be found in &lt;srcdir&gt;/docs/authentication.txt<br>


<br>regards,<br><br><div class="gmail_quote"><div><div></div><div>On Fri, Feb 13, 2009 at 7:59 PM, Titov Alexander <span dir="ltr">&lt;<a href="mailto:titoff.a@gmail.com" target="_blank">titoff.a@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
I solved this error, I add one string to mod_glusterfs.h:<br>#include &lt;glusterfs/mem-pool.h&gt;&quot;<br><br>But mod_glusterfs didn&#39;t work still. In lighttpd mod_glusterfs log I saw:<br>2009-02-13 18:50:31 E [name.c:416:client_bind] client1: cannot bind inet socket (10) to port less than 1024 (Permission denied)<br>



2009-02-13 18:50:31 E [name.c:416:client_bind] client2: cannot bind inet socket (11) to port less than 1024 (Permission denied)<br><br>Lighttpd is runing with owner user www-data and www-data can&#39;t create socket with port less than 1024.<br>



<br><span style="font-weight: bold; color: rgb(32, 74, 135);"><font size="3"> </font></span><font size="2">How I can solve this problem?</font><br><br>&nbsp;<br><br><div class="gmail_quote">2009/2/13 Titov Alexander <span dir="ltr">&lt;<a href="mailto:titoff.a@gmail.com" target="_blank">titoff.a@gmail.com</a>&gt;</span><div>


<div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello!<br><br>I build glusterfs and lighttpd 1.4.19 with mod_glusterfs. When I try to start lighttpd, I&nbsp; get this error:<br><br>2009-02-13 14:42:13: (plugin.c.165) dlopen() failed for: /usr/lib/lighttpd/mod_glusterfs.so /usr/lib/lighttpd/mod_glusterfs.so: undefined symbol: CALLOC <br>






2009-02-13 14:42:13: (server.c.621) loading plugins finally failed <br><br>Help me please with strange error.<br><br>-- <br><font color="#888888">Titov Alexander<br>
</font></blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>С уважением,<br>Титов Александр<br>
</font><br></div></div>_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org" target="_blank">Gluster-devel@nongnu.org</a><br>
<a href="http://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">http://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font color="#888888">Raghavendra G<br><br>
</font></blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>С уважением,<br>Титов Александр<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Raghavendra G<br><br>