Dispatcher swallows js file content | Community
Skip to main content
October 16, 2015
Solved

Dispatcher swallows js file content

  • October 16, 2015
  • 7 replies
  • 1747 views

Hi all,

We have the following setup:

AEM 6.1 author instance (factory with geometrixx outdoor example) -> "Apache/2.4.6 (Red Hat Enterprise Linux) Communique/4.1.10" with default config for author (downloaded from documentation page and put in hostnames and port).

The problem: when I try to retrieve the file /etc/segmentation/geometrixx-outdoors.segment.js (as admin user) directly from the instance, everything works fine, the file is delivered. However, if I request it via the dispatcher, the file arrives emtpy, i.e., with status 200 and a content-length of 0. Tcpdump shows that the answer from author to dispatcher contains the complete file content, but apache only delivers an empty file (and stores an empty file if configured to cache it)The dispatcher logs also shows a size of -:

AEM-Log:

127.0.0.1 - admin 15/Oct/2015:08:47:37 -0400 "GET /etc/segmentation/contexthub.segment.js HTTP/1.1" 200 11573 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.107 Safari/537.36"

Dispatcher-Logs:

xx.xx.xx.xx - - [15/Oct/2015:08:47:37 -0400] "GET /etc/segmentation/contexthub.segment.js HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.107 Safari/537.36"

All other requests seem to work properly. Any ideas what's going wrong here?

 

Best regards,

Matthias

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Feike_Visser1

Can you log a support case for this? 

@jorg, I think this is a known issue.

7 replies

joerghoh
Adobe Employee
Adobe Employee
October 16, 2015
Hi Matthias, Can you set the Dispatcher loglevel to DEBUG and post the relevant parts then? Thanks, Jörg
Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
October 18, 2015

Can you log a support case for this? 

@jorg, I think this is a known issue.

MatzeTAuthor
October 22, 2015

Thanks for the responses. This is the relevant part from dispatcher.log:

[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Found farm author for **********
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] checking [/etc/segmentation/contexthub.segment.js]
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] cachefile does not exist: /var/www/author/etc/segmentation/contexthub.segment.js
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] try to create new cachefile: /var/www/author/etc/segmentation/contexthub.segment.js
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] cache-action for [/etc/segmentation/contexthub.segment.js]: CREATE
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Creating new socket: 127.0.0.1:5000
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Connected to backend rend01 (127.0.0.1:5000)
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: Host
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: Pragma
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: Cache-Control
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: Accept
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: Upgrade-Insecure-Requests
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: User-Agent
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: DNT
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: Accept-Encoding
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: Accept-Language
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: Cookie
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: Via
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: X-Forwarded-For
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Adding request header: Server-Agent
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] Cache file successfully created: /var/www/author/etc/segmentation/contexthub.segment.js
[Thu Oct 15 08:47:37 2015] [D] [13661(140273654032448)] incomplete request, no socket reuse
[Thu Oct 15 08:47:37 2015] [I] [13661(140273654032448)] "GET /etc/segmentation/contexthub.segment.js" - + 46ms

 

 

Since this is Geometrixx ... where should I file the support case?

smacdonald2008
Level 10
October 22, 2015
joerghoh
Adobe Employee
Adobe Employee
October 22, 2015

HI,

this is only the first half of the log (it's sending the request to AEM), I miss the part where the log says how many bytes are transferred.

Level 3
November 3, 2015

Is this issue specific to geometrixx ? I am trying to load /etc/segmentation.segment.js and facing same problem.

Level 3
November 7, 2015

Appears to be an issue with the dispatcher version 4.1.10 that we were using.

Tried with 4.1.11. The JS is being served fine.