Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Cube - unable to connect #21

Open
dennisoderwald opened this issue Nov 1, 2013 · 7 comments
Open

Cube - unable to connect #21

dennisoderwald opened this issue Nov 1, 2013 · 7 comments

Comments

@dennisoderwald
Copy link

Hi,

thanks for your nice open source software - i want install ResqueBoard, the Redis & MongoDB Server are running - proper the cube server was running..

bin/evaluator.js:

1 Nov 13:39:06 - starting mongodb client
1 Nov 13:39:07 - starting http server on port 1081

bin/collector.js:

1 Nov 13:39:06 - starting mongodb client
1 Nov 13:39:07 - starting http server on port 1080
1 Nov 13:39:07 - starting udp server on port 1180

no error. But the ResqueBoard says "Unable to connect to the cube server"

ResqueBoard/src/ResqueBoard/Config/Core.php:

<?php
/**
 * General settings
 *
 * Uncomment to override the default settings.
 *
 * $resquePrefix is the prefix php-resque prepends to all its keys.
 *
 * @var array
 */
$settings = array(
    'cubePublic' => array(
        'host' => 'http://localhost:1081/',
        'port' => 1081
    ),
    'readOnly' => false,
    // 'resqueConfig' => __DIR__ . DIRECTORY_SEPARATOR . './resque.ini',
    'timezone' => 'Europe/Berlin'
);

/**
 * Service settings
 * All database connection settings
 *
 * @var array
 */
ResqueBoard\Lib\Service\Service::$settings = array(
    'Redis' => array(
        'host' => '127.0.0.1',
        'port' => 6379,
        'database' => 0,
        'password' => '',
        'prefix' => 'queue'
    ),
    'Mongo' => array(
        'host' => 'localhost',
        'port' => 27017,
        'database' => 'cube' // changed - but also changed in bin from Cube
    ),
    'Cube' => array(
        'host' => '127.0.0.1',
        'port' => 1081
    )
);

/**
 * Default number of items to display for pagination
 *
 * @var int
 */
define('PAGINATION_LIMIT', 15);

/**
 * Debug mode
 *
 * @var  bool
 */
define('DEBUG', true);

/**
 * Path to the cache folder
 *
 * @var  string
 */
define('CACHE', dirname(__DIR__) . DS . 'cache');

/**
 * Default application name
 *
 * @used for the website title
 * @var string
 */
define('APPLICATION_NAME', 'ResqueBoard');

/**
 * Separator between the website name and other text, in the page title
 *
 * @var string
 */
define('TITLE_SEP', ' | ');

Any idea? error.log from nginx is clear..

Thanks for your help!

@dennisoderwald
Copy link
Author

@dennisoderwald
Copy link
Author

Okay, fixed - forget the Cube problem - Cube is running fine - the only problem is.. see the attachment before..

@dennisoderwald
Copy link
Author

Okay, i check my Chrome Network Tab - more JS Files are not found.. status-code 404.. but in the server directory is'nt available.. bug? :f

example: ResqueBoard require 'js/libs/cal-heatmap.source-map.js' - but only exists 'cal-heatmap.min.js'..

the same at 'jquery.min.map'

@dennisoderwald
Copy link
Author

Can u provide me your nginx configuration for this?

Maybe the header and expires are incorrect..

@wa0x6e
Copy link
Owner

wa0x6e commented Nov 4, 2013

There's no secret in my nginx conf files, it's the classic conf files for the Slim framework

location / {
        try_files $uri /index.php?$args;
}

location /index.php {
        include         fastcgi_params;
        fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_index   index.php;
        fastcgi_pass    php;
}

Sources map files are not required, and everything can works without them.

Do you have any other files on 404 ?

@themao
Copy link

themao commented Jan 16, 2014

Hi everyone. I'm also experiencing the "no data" issue. I was wounding around the sources for 2 hours before I've understood that the data is actually delivered from the server, but isn't displayed.

The problem is in the following: when I clear the browser cache and history, the graphs are displayed, but after refreshing the page or proceeding to another ResqueBoard page everything disappears. The only thing that is displayed is job view (/jobs/view). After closing the tab and clearing the cache everything displays again, until refreshed.

What can be the problem? I tried to remove all caching-related stuff from webroot/.htaccess, but it didn't help.

I would be very grateful for any help.

@themao
Copy link

themao commented Jan 16, 2014

Okay, this is nice. Found a solution after 10 minutes of posting the question.

The problem is described here #23

And my problem was that in assets/js/main.js was the new file from the repo, but in src/ResqueBoard/webroot/js/main.js it was old (without the patch).

Fix: copy assets/js/main.js into src/ResqueBoard/webroot/js/main.js and clear the browser cache. This solves the problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants