Expand my Community achievements bar.

SOLVED

Dispatcher Issue : requested URL not found

Avatar

Level 5

Hi

I just completed the setup of Dispatcher in Ubuntu 14. After changes apache service started successfully and also i can see the welcome page when i hit http://localhost/ . dispatcher.log has been created as per the path provided. docroot for the cache also got created after server restarted. But I am not able to see the request to pass through dispatcher. like when i hit URL as http://localhost:8588/content/aemproject/Test1.html it show my page but when i hit dispatcher http://localhost/content/aemproject/Test1.html It throw an error like The requested URL /content/aemproject/Test1.html was not found on this server.

Attached are my cofiguration file, Any idea what can be the issue.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Vdhim,

  • Firstly you are editing a wrong apache file.
  • The way you are loading dispatcher looks strange, generaly it is relative path and not absolute path.
  • I doubt your cache root configured to .../cqcache for virtual host config file. 

    I would recommend to file daycare and get official help. 

Thanks,

Sham

tweet: adobe_sham

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Hi Vdhim,

  • Firstly you are editing a wrong apache file.
  • The way you are loading dispatcher looks strange, generaly it is relative path and not absolute path.
  • I doubt your cache root configured to .../cqcache for virtual host config file. 

    I would recommend to file daycare and get official help. 

Thanks,

Sham

tweet: adobe_sham

Avatar

Employee

What do you see in the dispatcher.log?

Also check if you see an incoming request into the access.log of your AEM-instance.

Avatar

Level 5

Sham HC wrote...

Hi Vdhim,

  • Firstly you are editing a wrong apache file.
  • The way you are loading dispatcher looks strange, generaly it is relative path and not absolute path.
  • I doubt your cache root configured to .../cqcache for virtual host config file. 

    I would recommend to file daycare and get official help. 

Thanks,

Sham

tweet: adobe_sham

 

 


Thanks Sham,

I am making the configuration in apache2.conf file as httpd.conf is not available inside server in ubuntu. Also for loading the dispatcher i am not sure whether relative path will work or not as both dispatcher and server configurations are in different filder. one in /etc/apache2 other is in /user/lib/apache2/modules. I have changed the cache-root to new path /opt/communique/dispatcher/cache. But still same issue. 

Below are some logs :

access.log : 127.0.0.1 - - [03/Jan/2015:10:45:58 +0530] "GET /content/aemproject/Test1.html HTTP/1.1" 404 517 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" 127.0.0.1 - - [03/Jan/2015:10:45:58 +0530] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" dispatcher.log [update only o startrup] [Sat Jan 03 10:40:05 2015] [D] [18938(139638053095296)] farms[website].cache.docroot = /opt/communique/dispatcher/cache [Sat Jan 03 10:40:05 2015] [I] [18938(139638053095296)] Dispatcher initialized (build 4.1.8) Nothing in error.log
If someone has any idea of about any detailed blog about installation dispatcher in Ubuntu/Linux. Please metion. Also attached are my updated configuration file.

Avatar

Level 5

vdhim23 wrote...

Sham HC wrote...

Hi Vdhim,

  • Firstly you are editing a wrong apache file.
  • The way you are loading dispatcher looks strange, generaly it is relative path and not absolute path.
  • I doubt your cache root configured to .../cqcache for virtual host config file. 

    I would recommend to file daycare and get official help. 

Thanks,

Sham

tweet: adobe_sham

 

 


Thanks Sham,

I am making the configuration in apache2.conf file as httpd.conf is not available inside server in ubuntu. Also for loading the dispatcher i am not sure whether relative path will work or not as both dispatcher and server configurations are in different filder. one in /etc/apache2 other is in /user/lib/apache2/modules. I have changed the cache-root to new path /opt/communique/dispatcher/cache. But still same issue. 

Below are some logs :

  1. access.log :
  2. 127.0.0.1 - - [03/Jan/2015:10:45:58 +0530] "GET /content/aemproject/Test1.html HTTP/1.1" 404 517 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"
  3. 127.0.0.1 - - [03/Jan/2015:10:45:58 +0530] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"
  4.  
  5. dispatcher.log [update only o startrup]
  6. [Sat Jan 03 10:40:05 2015] [D] [18938(139638053095296)] farms[website].cache.docroot = /opt/communique/dispatcher/cache
  7. [Sat Jan 03 10:40:05 2015] [I] [18938(139638053095296)] Dispatcher initialized (build 4.1.8)
  8.  
  9. Nothing in error.log
 
  1. If someone has any idea of about any detailed blog about installation dispatcher in Ubuntu/Linux. Please metion. Also attached are my updated configuration file.

 

 

After spending some time on this issue, finally its worked :) . There were two small issue that i got missed : 

1) statfilelevel in dispatcher.any was commented.

2) permissions were not sufficient over docroot path of cache.

I am attaching both configuration file for dispatcher-apache2.4-linux-x86-64-4.1.8.tar.gz and  Apache/2.4.7 in ubuntu 14. 

Thanks