I have configured CQ dispatcher on CentOs machine and tested the "dispatcher flush agent" it is showing test succeeded message. but when I am trying to access a geometrix page from my server ( 55.55.55.5 or localhost:80/content/geometrixx/en/products.html ) the server is displaying this error message "the proxy server received an invalid response from upstream server"
I am pasting the dipatcher log trace here and also attaching required files for reference. Please help me in resolving this
[Tue Sep 30 15:05:08 2014] [I] [1099(140559303059424)] "GET /content/geometrix/en/products.html" 502 - 4004ms
[Tue Sep 30 19:55:36 2014] [D] [1068(140312697284576)] Dispatcher initializing (build 4.1.8)
[Tue Sep 30 19:55:36 2014] [D] [1068(140312697284576)] farms[website].cache.docroot = /opt/communique/dispatcher/cache
[Tue Sep 30 19:55:36 2014] [I] [1068(140312697284576)] Dispatcher initialized (build 4.1.8)
[Tue Sep 30 19:55:36 2014] [D] [1069(140312697284576)] Dispatcher initializing (build 4.1.8)
[Tue Sep 30 19:55:36 2014] [D] [1069(140312697284576)] farms[website].cache.docroot = /opt/communique/dispatcher/cache
[Tue Sep 30 19:55:36 2014] [I] [1069(140312697284576)] Dispatcher initialized (build 4.1.8)
[Tue Sep 30 19:58:00 2014] [D] [1076(140312697284576)] Found farm website for 55.55.55.5
[Tue Sep 30 19:58:00 2014] [D] [1076(140312697284576)] checking [/content/geometrix/en/products.html]
[Tue Sep 30 19:58:00 2014] [D] [1076(140312697284576)] cachefile does not exist: /opt/communique/dispatcher/cache/content/geometrix/en/products.html
[Tue Sep 30 19:58:00 2014] [D] [1076(140312697284576)] try to create new cachefile: /opt/communique/dispatcher/cache/content/geometrix/en/products.html
[Tue Sep 30 19:58:00 2014] [D] [1076(140312697284576)] cache-action for [/content/geometrix/en/products.html]: CREATE
[Tue Sep 30 19:58:00 2014] [W] [1076(140312697284576)] Unable to connect to 127.0.0.1:8080: Connection refused
[Tue Sep 30 19:58:00 2014] [W] [1076(140312697284576)] Unable to connect to any backend in farm website
[Tue Sep 30 19:58:01 2014] [D] [1076(140312697284576)] no backends available....retrying 1/5
[Tue Sep 30 19:58:01 2014] [W] [1076(140312697284576)] Unable to connect to 127.0.0.1:8080: Connection refused
[Tue Sep 30 19:58:01 2014] [W] [1076(140312697284576)] Unable to connect to any backend in farm website
[Tue Sep 30 19:58:02 2014] [D] [1076(140312697284576)] no backends available....retrying 2/5
[Tue Sep 30 19:58:02 2014] [W] [1076(140312697284576)] Unable to connect to 127.0.0.1:8080: Connection refused
[Tue Sep 30 19:58:02 2014] [W] [1076(140312697284576)] Unable to connect to any backend in farm website
[Tue Sep 30 19:58:03 2014] [D] [1076(140312697284576)] no backends available....retrying 3/5
[Tue Sep 30 19:58:03 2014] [W] [1076(140312697284576)] Unable to connect to 127.0.0.1:8080: Connection refused
[Tue Sep 30 19:58:03 2014] [W] [1076(140312697284576)] Unable to connect to any backend in farm website
[Tue Sep 30 19:58:04 2014] [D] [1076(140312697284576)] no backends available....retrying 4/5
[Tue Sep 30 19:58:04 2014] [W] [1076(140312697284576)] Unable to connect to 127.0.0.1:8080: Connection refused
[Tue Sep 30 19:58:04 2014] [W] [1076(140312697284576)] Unable to connect to any backend in farm website
[Tue Sep 30 19:58:04 2014] [I] [1076(140312697284576)] "GET /content/geometrix/en/products.html" 502 - 4006ms
[Tue Sep 30 20:02:00 2014] [D] [1078(140312697284576)] Found farm website for 55.55.55.5
[Tue Sep 30 20:02:00 2014] [D] [1078(140312697284576)] checking [/content/geometrix/en/products.html]
[Tue Sep 30 20:02:00 2014] [D] [1078(140312697284576)] request contains authorization
[Tue Sep 30 20:02:00 2014] [D] [1078(140312697284576)] cache-action for [/content/geometrix/en/products.html]: NONE
[Tue Sep 30 20:02:00 2014] [W] [1078(140312697284576)] Unable to connect to 127.0.0.1:8080: Connection refused
[Tue Sep 30 20:02:00 2014] [W] [1078(140312697284576)] Unable to connect to any backend in farm website
[Tue Sep 30 20:02:01 2014] [D] [1078(140312697284576)] no backends available....retrying 1/5
[Tue Sep 30 20:02:01 2014] [W] [1078(140312697284576)] Unable to connect to 127.0.0.1:8080: Connection refused
[Tue Sep 30 20:02:01 2014] [W] [1078(140312697284576)] Unable to connect to any backend in farm website
[Tue Sep 30 20:02:02 2014] [D] [1078(140312697284576)] no backends available....retrying 2/5
[Tue Sep 30 20:02:02 2014] [W] [1078(140312697284576)] Unable to connect to 127.0.0.1:8080: Connection refused
[Tue Sep 30 20:02:02 2014] [W] [1078(140312697284576)] Unable to connect to any backend in farm website
[Tue Sep 30 20:02:03 2014] [D] [1078(140312697284576)] no backends available....retrying 3/5
[Tue Sep 30 20:02:03 2014] [W] [1078(140312697284576)] Unable to connect to 127.0.0.1:8080: Connection refused
[Tue Sep 30 20:02:03 2014] [W] [1078(140312697284576)] Unable to connect to any backend in farm website
[Tue Sep 30 20:02:04 2014] [D] [1078(140312697284576)] no backends available....retrying 4/5
[Tue Sep 30 20:02:04 2014] [W] [1078(140312697284576)] Unable to connect to 127.0.0.1:8080: Connection refused
[Tue Sep 30 20:02:04 2014] [W] [1078(140312697284576)] Unable to connect to any backend in farm website
[Tue Sep 30 20:02:04 2014] [I] [1078(140312697284576)] "GET /content/geometrix/en/products.html" 502 - 4006ms
Solved! Go to Solution.
Views
Replies
Total Likes
Please check this section "CONFIGURE SELINUX PROPERTIES" here:
Views
Replies
Total Likes
Please check this section "CONFIGURE SELINUX PROPERTIES" here:
Views
Replies
Total Likes
@Feike
I have ignored the step...so please help me in this...
Enter the following commands in a terminal window, replacing [path to the dispatcher.so file] with the path to the Dispatcher module that you installed to Apache Web Server, and [path to the docroot] with the path where the docroot is located (e.g. /opt/cq/cache):
semanage fcontext -a -t httpd_modules_t [path to the dispatcher.so
file
]
setsebool -P httpd_can_network_connect on
chcon -R --
type
httpd_sys_content_t [path to the docroot]
semanage fcontext -a -t httpd_sys_content_t
"[path to the docroot](/.*)?"
so what should be the doctoot here...? in dispatcher,any file docroot defined as \opt\communique\dispatcher\cache and my apache doc root is /var/www/html
Views
Replies
Total Likes
You should set the dispatche docroot and the apache webserver docroot to the same directory.
Jörg
Views
Replies
Total Likes
@Jorg
please help me in resolving this in Configure SELinux Properties for dispatcher
semanage fcontext -a -t httpd_modules_t [path to the dispatcher.so
file
]
setsebool -P httpd_can_network_connect on
chcon -R --
type
httpd_sys_content_t /var/www/html
It is saying command "chcon" not found...
The first two commands excuted successfully after installing semanage package...
Views
Replies
Total Likes
Have you executed this as root user? chcon should be part of the coreutils RPM package.
regards,
Jörg
Views
Replies
Total Likes
@Jorg
No...Thanks for this input... Actually I am trying to configure this on Vagrant managed centOs virtual machine with puppet provisioning.. I will modify current user as root in dipatcher puppet script...Thanks again for ur valuble input..I will get back with an update..
Views
Replies
Total Likes
@Jorg
I have configured SElinux properties and then tested the caching functionality...The server is responding with 404 resource not found.. I am adding my dispatcher logs below for your reference.
[Wed Oct 01 14:48:06 2014] [D] [1089(139931783358432)] Dispatcher initializing (build 4.1.8)
[Wed Oct 01 14:48:06 2014] [D] [1089(139931783358432)] farms[website].cache.docroot = optcommuniquedispatchercache
[Wed Oct 01 14:48:06 2014] [I] [1089(139931783358432)] Dispatcher initialized (build 4.1.8)
[Wed Oct 01 14:48:06 2014] [D] [1092(139931783358432)] Dispatcher initializing (build 4.1.8)
[Wed Oct 01 14:48:06 2014] [D] [1092(139931783358432)] farms[website].cache.docroot = optcommuniquedispatchercache
[Wed Oct 01 14:48:06 2014] [I] [1092(139931783358432)] Dispatcher initialized (build 4.1.8)
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] Found farm website for 55.55.55.5
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] checking [/]
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] request URL has no extension: /
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] cache-action for [/]: NONE
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] Connected to backend rend01 (55.55.55.5:80)
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] Adding request header: Host
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] Adding request header: User-Agent
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] Adding request header: Accept
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] Adding request header: Accept-Language
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] Adding request header: Accept-Encoding
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] Adding request header: Via
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] Adding request header: X-Forwarded-For
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] Adding request header: Server-Agent
[Wed Oct 01 15:14:54 2014] [I] [1101(139931783358432)] Already forwarded by dispatcher (55.55.55.5), declined.
[Wed Oct 01 15:14:54 2014] [I] [1101(139931783358432)] "GET /" - - 0ms
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] response.status = 404
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] response.headers[Date] = "Wed, 01 Oct 2014 09:44:54 GMT"
[Wed Oct 01 15:14:54 2014] [D] [1100(139931783358432)] response.headers[Content-Type] = "text/html; charset=iso-8859-1"
[Wed Oct 01 15:14:54 2014] [I] [1100(139931783358432)] "GET /" 404 274 51ms
[Wed Oct 01 15:14:54 2014] [D] [1102(139931783358432)] Found farm website for 55.55.55.5
[Wed Oct 01 15:14:54 2014] [D] [1102(139931783358432)] checking [/favicon.ico]
[Wed Oct 01 15:14:54 2014] [D] [1102(139931783358432)] cachefile does not exist: optcommuniquedispatchercache/favicon.ico
[Wed Oct 01 15:14:54 2014] [D] [1102(139931783358432)] try to create new cachefile: optcommuniquedispatchercache/favicon.ico
[Wed Oct 01 15:14:54 2014] [D] [1102(139931783358432)] cache-action for [/favicon.ico]: CREATE
[Wed Oct 01 15:14:54 2014] [D] [1104(139931783358432)] Connected to backend rend01 (55.55.55.5:80)
[Wed Oct 01 15:14:54 2014] [D] [1104(139931783358432)] Adding request header: Host
[Wed Oct 01 15:14:54 2014] [D] [1104(139931783358432)] Adding request header: User-Agent
[Wed Oct 01 15:14:54 2014] [D] [1104(139931783358432)] Adding request header: Accept
[Wed Oct 01 15:14:54 2014] [D] [1104(139931783358432)] Adding request header: Accept-Language
[Wed Oct 01 15:14:54 2014] [D] [1104(139931783358432)] Adding request header: Accept-Encoding
[Wed Oct 01 15:14:54 2014] [D] [1104(139931783358432)] Adding request header: Via
[Wed Oct 01 15:14:54 2014] [D] [1104(139931783358432)] Adding request header: X-Forwarded-For
[Wed Oct 01 15:14:54 2014] [D] [1104(139931783358432)] Adding request header: Server-Agent
[Wed Oct 01 15:14:54 2014] [I] [1099(139931783358432)] Already forwarded by dispatcher (55.55.55.5), declined.
[Wed Oct 01 15:14:54 2014] [I] [1099(139931783358432)] "GET /favicon.ico" - - 0ms
[Wed Oct 01 15:14:54 2014] [D] [1104(139931783358432)] response.status = 404
[Wed Oct 01 15:14:54 2014] [D] [1104(139931783358432)] response.headers[Date] = "Wed, 01 Oct 2014 09:44:54 GMT"
[Wed Oct 01 15:14:54 2014] [D] [1104(139931783358432)] response.headers[Content-Type] = "text/html; charset=iso-8859-1"
[Wed Oct 01 15:14:54 2014] [I] [1104(139931783358432)] "GET /favicon.ico" 404 285 2ms
[Wed Oct 01 15:15:09 2014] [D] [1105(139931783358432)] Found farm website for 55.55.55.5
[Wed Oct 01 15:15:09 2014] [D] [1105(139931783358432)] checking [/content/geometrix/en/products.html]
[Wed Oct 01 15:15:09 2014] [D] [1105(139931783358432)] cachefile does not exist: optcommuniquedispatchercache/content/geometrix/en/products.html
[Wed Oct 01 15:15:09 2014] [D] [1105(139931783358432)] try to create new cachefile: optcommuniquedispatchercache/content/geometrix/en/products.htm
also find the attched screen shot
Views
Replies
Total Likes
Views
Likes
Replies