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"><<a href="mailto:titoff.a@gmail.com">titoff.a@gmail.com</a>></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 = ( <br> "mod_access",<br>
"mod_alias",<br> "mod_accesslog",<br> "mod_compress",<br> "mod_rewrite", <br> "mod_redirect", <br> "mod_status", <br>
"mod_glusterfs",<br> )<br>server.document-root = "/var/www/"<br>server.errorlog = "/var/log/lighttpd/error.log"<br>index-file.names = ( "index.php", "index.html",<br>
"index.htm", "default.htm",<br> "index.lighttpd.html" )<br>accesslog.filename = "/var/log/lighttpd/access.log"<br>
url.access-deny = ( "~", ".inc" )<br>static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )<br>server.port = 8081 <br>server.pid-file = "/var/run/lighttpd.pid"<br>
dir-listing.encoding = "utf-8"<br>server.dir-listing = "enable"<br>server.username = "www-data"<br>server.groupname = "www-data"<br>compress.cache-dir = "/var/cache/lighttpd/compress/"<br>
compress.filetype = ("text/plain", "text/html", "application/x-javascript", "text/css")<br>include_shell "/usr/share/lighttpd/<a href="http://create-mime.assign.pl" target="_blank">create-mime.assign.pl</a>"<br>
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"<br><br>$HTTP["url"] =~ "^/" {<br> glusterfs.document-root = "/var/www" <br> glusterfs.prefix = "/" <br>
glusterfs.logfile = "/var/log/lighttpd/glusterfs-lighttpd.log"<br> glusterfs.volume-specfile = "/etc/glusterfs/glusterfs-client.vol"<br> glusterfs.loglevel = "debug"<br>
glusterfs.cache-timeout = 300<br> glusterfs.xattr-interface-size-limit = "65536"<br>}<br><br>glusterfs-client.vol:<br>volume server1<br> type protocol/client<br> option transport-type tcp<br> option remote-host 192.168.1.2<br>
option remote-port 6996 <br> option username user<br> option password *******<br> option remote-subvolume storage<br>end-volume<br><br>volume server2<br> type protocol/client<br> option transport-type tcp<br>
option remote-host 192.168.1.2<br>
option remote-port 6996<br> option username user<br> option password *******<br> option remote-subvolume storage <br>end-volume<br><br>volume replicate<br> type cluster/replicate<br> subvolumes server1 server2<br>
end-volume<br><br>volume writebehind<br> type performance/write-behind<br> option aggregate-size 128KB<br> option window-size 1MB<br> option flush-behind on<br> subvolumes replicate<br>end-volume<br><br>volume cache<br>
type performance/io-cache<br> option cache-size 512MB<br> 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 'client1'<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 'client2'<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 'replicate'<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->client1<br>2009-02-17 19:01:23 D [spec.y:357:section_sub] parser: child:replicate->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 'writebehind'<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->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 'cache'<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->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 'option remote-port 6996'<br>2009-02-17 19:01:23 W [client-protocol.c:6049:init] client1: WARNING: Failed to set 'ulimit -n 1M': 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 'option remote-port 6996'<br>
2009-02-17 19:01:23 W [client-protocol.c:6049:init] client2: WARNING: Failed to set 'ulimit -n 1M': 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"><<a href="mailto:raghavendra@zresearch.com" target="_blank">raghavendra@zresearch.com</a>></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 <= 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 <srcdir>/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"><<a href="mailto:titoff.a@gmail.com" target="_blank">titoff.a@gmail.com</a>></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 <glusterfs/mem-pool.h>"<br><br>But mod_glusterfs didn'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'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> <br><br><div class="gmail_quote">2009/2/13 Titov Alexander <span dir="ltr"><<a href="mailto:titoff.a@gmail.com" target="_blank">titoff.a@gmail.com</a>></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 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>