gaspaio / gearmanui

A web interface to follow activity on a cluster of gearman servers, powered by Silex and AngularJs.
MIT License
170 stars 49 forks source link

Unable to use Gearman ui #1

Closed nikhildhawan closed 11 years ago

nikhildhawan commented 11 years ago

so i tried to use gearman-ui for viewing server status but the index page in web is always giving me error

Job queue
Workers
Servers' status

{{ error }}

I tried to change config to make log for debug level (100) and only thing i got in logs inside app/logs is 18 10:37:24] GearmanUI.INFO: Matched route "GET_" (parameters: "_controller": "{}", "route": "GET") [] [] [2013-04-18 10:37:24] GearmanUI.INFO: > GET /gearman-ui/web/ [] [] [2013-04-18 10:37:24] GearmanUI.INFO: < 200 [] [] [2013-04-18 10:37:28] GearmanUI.INFO: Matched route "GET_" (parameters: "_controller": "{}", "route": "GET") [] [] [2013-04-18 10:37:28] GearmanUI.INFO: > GET /gearman-ui/web/ [] [] [2013-04-18 10:37:29] GearmanUI.INFO: < 200 [] []

Can you please help me find out what is missing.

gaspaio commented 11 years ago

Github seems to experience issues, so i can't seem to install the project's dependencies right now. Do you have any messages on the browser console, like a js error ?

gaspaio commented 11 years ago

Ok. Packagist is back. Indeed, GearmanUI seems to break when the docroot is not the /web directory. If you're under apache, create a dedicated vhost for the moment, pointing to /web. I'll look into this issue soon.

gaspaio commented 11 years ago

Just updated the repo with a correction. Asset paths were broken when the base url was not /. Should be fine now. Thanks for the feedback.

nikhildhawan commented 11 years ago

Hi, Thanks for the update. The output I tried to paste isn't in the best format. I will try to put screenshot next time. I will try again next week and will see browser console for any possible errors. Thanks.

nikhildhawan commented 11 years ago

Hi, Can you help me with this. I am not able to view the status. Logging is showing GET requests to non existent file. I have added only localhost in configuration yml file. Selection_001

gaspaio commented 11 years ago

I can't reproduce this. Check if all javascript files are loaded correctly (empty browser caches), if you have the latest commit of GearmanUI, log contents, etc.

cjroebuck commented 11 years ago

I get this too.. JS/CSS assets are being served fine... the routes such as /info, /servers, /workers are not (404). I'm using apache virtualhost to serve with DocumentRoot set to the web folder:

DocumentRoot /home/ubuntu/gearman-ui/web/

cjroebuck commented 11 years ago

Fixed by enabling mod_rewrite in apache: sudo a2enmod rewrite

gaspaio commented 11 years ago

Indeed. Thanks, I'll update the install instructions.

gaspaio commented 11 years ago

Done.

webbpinner commented 9 years ago

after following all the recommendations here I was still unable to get my gearman-ui site working with mod_rewrite. Ultimately I did get mod_rewrite working for my gearman-ui installation by adding the following line to the .htaccess file: RewriteBase /gearman-ui

My .htaccess file now looks like this:

Options -MultiViews ``` RewriteEngine On RewriteBase /gearman-ui RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] ```

Cheers, -W