gaspaio / gearmanui Goto Github PK
View Code? Open in Web Editor NEWA web interface to follow activity on a cluster of gearman servers, powered by Silex and AngularJs.
License: MIT License
A web interface to follow activity on a cluster of gearman servers, powered by Silex and AngularJs.
License: MIT License
Hi,
Does this support percentage completion of jobs?
Thanks,
TypeError: Cannot call method 'localeCompare' of undefined
at http://xxx/js/gearmanui.js:67:32
at Array.sort (native)
at Object.wrapper.servers (http://xxx/js/gearmanui.js:66:33)
at http://xxx/js/gearmanui.js:144:49
at http://xxx/js/angular-resource.js:385:30
at wrappedCallback (http://xxx/js/angular.js:6623:59)
at http://xxx/js/angular.js:6660:26
at Object.Scope.$eval (http://xxx/js/angular.js:7808:28)
at Object.Scope.$digest (http://xxx/js/angular.js:7680:25)
at Object.Scope.$apply (http://xxx/js/angular.js:7894:24)
Sorry for maybe silly question, but every 5 seconds [according to config.yml] there is request to /info.
However I have no info.php file. No words about this in docs. What should I place in there?
Hey there,
As the app obviously doesn't run under subdirectory on the webserver, do you think it is possible to add the configuration option that will allow to do that? Alternatively, app can automatically detect that it runs under subdirectory and prepend all the routes with the path detected.
Thanks in advance.
Hi, is there any rewrite rules I should pay attention? Because it seem does not work with nginx.
Installed with composer
Web root directory is /web/
http://xx/workers
http://xx/jobs
http://xx/status
all return 404
A log file grew very large with these errors:
[10-Aug-2015 10:02:55 America/New_York] PHP Notice: Undefined offset: 2 in /var/www/gearmanui/vendor/alptis/net-gearman/Net/Gearman/Manager.php on line 151
[10-Aug-2015 10:02:55 America/New_York] PHP Stack trace:
[10-Aug-2015 10:02:55 America/New_York] PHP 1. {main}() /var/www/gearmanui/web/index.php:0
[10-Aug-2015 10:02:55 America/New_York] PHP 2. Silex\Application->run() /var/www/gearmanui/web/index.php:7
[10-Aug-2015 10:02:55 America/New_York] PHP 3. Silex\Application->handle() /var/www/gearmanui/vendor/silex/silex/src/Silex/Application.php:481
[10-Aug-2015 10:02:55 America/New_York] PHP 4. Symfony\Component\HttpKernel\HttpKernel->handle() /var/www/gearmanui/vendor/silex/silex/src/Silex/Application.php:504
[10-Aug-2015 10:02:55 America/New_York] PHP 5. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /var/www/gearmanui/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php:73
[10-Aug-2015 10:02:55 America/New_York] PHP 6. call_user_func_array() /var/www/gearmanui/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php:129
[10-Aug-2015 10:02:55 America/New_York] PHP 7. GearmanUI\ControllerProvider->GearmanUI\{closure}() /var/www/gearmanui/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php:129
[10-Aug-2015 10:02:55 America/New_York] PHP 8. GearmanUI\GearmanFacade->getServersInfo() /var/www/gearmanui/src/GearmanUI/ControllerProvider.php:44
[10-Aug-2015 10:02:55 America/New_York] PHP 9. GearmanUI\GearmanFacade->getServerInfo() /var/www/gearmanui/src/GearmanUI/GearmanFacade.php:47
[10-Aug-2015 10:02:55 America/New_York] PHP 10. Net_Gearman_Manager->workers() /var/www/gearmanui/src/GearmanUI/GearmanFacade.php:75
[10-Aug-2015 10:02:55 America/New_York] PHP Notice: Undefined offset: 1 in /var/www/gearmanui/vendor/alptis/net-gearman/Net/Gearman/Manager.php on line 151
[10-Aug-2015 10:02:55 America/New_York] PHP Stack trace:
[10-Aug-2015 10:02:55 America/New_York] PHP 1. {main}() /var/www/gearmanui/web/index.php:0
[10-Aug-2015 10:02:55 America/New_York] PHP 2. Silex\Application->run() /var/www/gearmanui/web/index.php:7
[10-Aug-2015 10:02:55 America/New_York] PHP 3. Silex\Application->handle() /var/www/gearmanui/vendor/silex/silex/src/Silex/Application.php:481
[10-Aug-2015 10:02:55 America/New_York] PHP 4. Symfony\Component\HttpKernel\HttpKernel->handle() /var/www/gearmanui/vendor/silex/silex/src/Silex/Application.php:504
[10-Aug-2015 10:02:55 America/New_York] PHP 5. Symfony\Component\HttpKernel\HttpKernel->handleRaw() /var/www/gearmanui/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php:73
[10-Aug-2015 10:02:55 America/New_York] PHP 6. call_user_func_array() /var/www/gearmanui/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php:129
[10-Aug-2015 10:02:55 America/New_York] PHP 7. GearmanUI\ControllerProvider->GearmanUI\{closure}() /var/www/gearmanui/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php:129
[10-Aug-2015 10:02:55 America/New_York] PHP 8. GearmanUI\GearmanFacade->getServersInfo() /var/www/gearmanui/src/GearmanUI/ControllerProvider.php:44
[10-Aug-2015 10:02:55 America/New_York] PHP 9. GearmanUI\GearmanFacade->getServerInfo() /var/www/gearmanui/src/GearmanUI/GearmanFacade.php:47
[10-Aug-2015 10:02:55 America/New_York] PHP 10. Net_Gearman_Manager->workers() /var/www/gearmanui/src/GearmanUI/GearmanFacade.php:75
This file seems to be missing
./vendor/symfony/http-kernel/Log/LoggerInterface.php
I followed the instructions here exactly:
http://gaspaio.github.io/gearmanui/
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.
I'm having trouble loading the app and saw this line:
require_once __DIR__.'/../vendor/autoload.php';
in index.php. However, I see no vendor directory. Is it possible the README is missing some installation instructions?
Hello,
The instructions for setting this up are no longer complete. I followed along but the link for the Silex website is broken.
I tried to figure it out myself but I am having trouble with it.
I installed Apache on an Ubuntu server.
I changed my /etc/apache2/sites-available/000-default.conf file to the following:
<VirtualHost *:4730>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /usr/local/bin/gearman-ui
ServerName 10.10.20.124
<Directory /usr/local/bin/gearman-ui>
AllowOverride All
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
vim: syntax=apache ts=4 sw=4 sts=4 sr noet`
I then ran:
sudo find /usr/local/bin/gearman-ui -type d -exec chmod 755 {} ;
sudo find /usr/local/bin/gearman-ui -type f -exec chmod 644 {} ;
I made www-data the group owner, and I have confirmed that this server is listening on port 4730
root@ip-10-10-20-124:/usr/local/bin/gearman-ui# sudo lsof -i:4730
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
apache2 2545 root 6u IPv6 27584 0t0 TCP *:4730 (LISTEN)
apache2 2548 www-data 6u IPv6 27584 0t0 TCP *:4730 (LISTEN)
apache2 2549 www-data 6u IPv6 27584 0t0 TCP *:4730 (LISTEN)
I am not too sure what I am missing. Any time I do a curl I get a 403
[ec2-user@ip-10-10-39-206 ~]$ curl 10.10.20.124:4730
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at 10.10.20.124 Port 4730</address>
</body></html>
10.10.20.124 is the IP of this server I have spun up to give us the Gearman stats.
Are there any other instructions I can find that talks me through setting up a web server?
Also it says "Configure the web server to serve the application directory" but is that going to be /usr/local/bin/gearman-ui or /usr/local/bin/gearman-ui/web ?
This server sits in the same subnet and uses the same security groups as the two Gearman servers so the port is allowed. Do I maybe need to use a different port from 4730?
Thanks.
Please, publish gearmanui on packagist, this would ease a lot its installation using composer create-project
Hey,
I've just tried you gearman ui followed the instructions, the web server page is showing up but with no workers at all (even though I've got some running).
I'm using nginx do you think it could be the cause?
Thanks
Tom
Hi,
I'm getting this error:
Server Error while accessing URL '/info': 404 - Not Found
can you help me?
thanks
Tried to change to appropriate library, guess it's brianlmoon/net_gearman, but without success
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.