Hi, I am facing one issue while compiling haproxy-1.8.9 with 51Degrees Device-Detection module. When i start haproxy i am getting this error.
[ALERT] 149/144015 (22611) : 51Degrees Setup - Error reading 51Degrees data file. Allocated continuous memory containing 51Degrees data file appears to be smaller than expected. Most likely because the data file was not fully loaded into the allocated memory. also find attach installation and config file. i don't have ideas that my config is wrong or installation is wrong. i stuck here. Devendra Joshi 8080106035 -------------------------------------------------------------- --------------------------------------------------------------
------------------------------------------------------------------------------------- Install 51Degrees ------------------------------------------------------------------------------------- wget https://github.com/51Degrees/Device-Detection/archive/master.zip unzip master.zip mv Device-Detection-master /opt/51Degrees ------------------------------------------------------------------------------------- Install HAProxy ------------------------------------------------------------------------------------- tar -zxvf haproxy-1.8.9.tar.gz cd haproxy-1.8.9 make TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 USE_51DEGREES=1 51DEGREES_SRC=/opt/51Degrees/src/pattern/ make install PREFIX=/opt/haproxy-ssl-51Degrees To See the version /opt/haproxy-ssl-51Degrees/sbin/haproxy -v • To test/check Configuration /opt/haproxy-ssl-51Degrees/sbin/haproxy -c -f /opt/haproxy-ssl-51Degrees/conf/haproxy.cfg • To run /opt/haproxy-ssl-51Degrees/sbin/haproxy -f /opt/haproxy-ssl-51Degrees/conf/haproxy.cfg ------------------------------------------------------------------------------------- Following is the haproxy.cfg file ------------------------------------------------------------------------------------- global daemon maxconn 20000 51degrees-data-file /opt/51Degrees/data/51Degrees-LiteV3.2.dat 51degrees-property-name-list IsTablet DeviceType IsMobile 51degrees-property-separator , 51degrees-cache-size 10000 defaults mode http timeout connect 15000ms timeout client 50000ms timeout server 50000ms timeout queue 60s backend backend_http_1 mode http cookie JSESSIONID prefix balance leastconn option forceclose option persist option redispatch option forwardfor server server1 192.168.58.3:81 cookie server1_cookie maxconn 1024 check acl force_sticky_server1 hdr_sub(server1_cookie) TEST=true force-persist if force_sticky_server1 backend backend_http_2 mode http cookie JSESSIONID prefix balance leastconn option forceclose option persist option redispatch option forwardfor server server1 192.168.58.3:82 cookie server2_cookie maxconn 1024 check acl force_sticky_server2 hdr_sub(server2_cookie) TEST=true force-persist if force_sticky_server2 listen frontend_http mode http maxconn 20000 bind *:80 http-request set-header X-51D-DeviceTypeMobileTablet %[req.fhdr(User-Agent),51d.single(DeviceType,IsMobile,IsTablet)] acl isMobile hdr(X-51D-DeviceTypeMobileTablet) "true" acl isTablet hdr(X-51D-DeviceTypeMobileTablet) "true" use_backend backend_http_2 if isMobile use_backend backend_http_1 if isTablet use_backend backend_http_1 if !isMobile use_backend backend_http_1 if !isTablet ------------------------------------------------------------------------------------- Following is the haproxy.cfg file -------------------------------------------------------------------------------------

