dalibo / temboard

PostgreSQL Remote Control
https://labs.dalibo.com/temboard
Other
452 stars 54 forks source link

temboard-ui no instance #883

Closed rimbault closed 3 years ago

rimbault commented 3 years ago

Hi,

I'm trying to set up a temboard server. I have an instance who seems to work : temboard=# select * from monitoring.hosts;

 host_id |     hostname     |  os   |  os_version   | os_flavour | cpu_count | cpu_arch | memory_size  | swap_size | virtual 
---------+------------------+-------+---------------+------------+-----------+----------+--------------+-----------+---------
       1 | xxxxxxxxxxxxxxxx | Linux | 4.9.0-9-amd64 |            |        16 | x86_64   | 270369693696 |           | 
(1 row)

And there some data collected :

temboard=# select count(*) from monitoring.metric_db_size_current where instance_id = 1;
 count 
-------
   490
(1 row)

But on the main page I only have the message "No instance is available yet. Go to Settings to add or configure instances."

Logs :

2020-12-17 16:19:33,539 temboardui[37424]: [access] INFO: 304 GET /home/instances (192.168.41.46) 13.41ms
2020-12-17 16:19:35,211 temboardui[37424]: [access] INFO: 304 GET /home (192.168.41.46) 10.33ms
2020-12-17 16:19:35,339 temboardui[37424]: [access] INFO: 304 GET /css/sb-admin-2.css (192.168.41.46) 1.18ms
2020-12-17 16:19:35,350 temboardui[37424]: [access] INFO: 304 GET /css/font-awesome.min.css (192.168.41.46) 1.09ms
2020-12-17 16:19:35,385 temboardui[37424]: [access] INFO: 304 GET /js/popper.min.js (192.168.41.46) 0.55ms
2020-12-17 16:19:35,387 temboardui[37424]: [access] INFO: 304 GET /css/bootstrap-toggle.min.css (192.168.41.46) 0.52ms
2020-12-17 16:19:35,390 temboardui[37424]: [access] INFO: 304 GET /css/temboard.css (192.168.41.46) 0.59ms
2020-12-17 16:19:35,391 temboardui[37424]: [access] INFO: 304 GET /js/datatables/datatables.min.css (192.168.41.46) 0.57ms
2020-12-17 16:19:35,393 temboardui[37424]: [access] INFO: 304 GET /css/bootstrap-multiselect.css (192.168.41.46) 0.56ms
2020-12-17 16:19:35,395 temboardui[37424]: [access] INFO: 304 GET /js/jquery-2.1.4.min.js (192.168.41.46) 0.57ms
2020-12-17 16:19:35,396 temboardui[37424]: [access] INFO: 304 GET /js/bootstrap.min.js (192.168.41.46) 0.58ms
2020-12-17 16:19:35,397 temboardui[37424]: [access] INFO: 304 GET /js/sb-admin-2.js (192.168.41.46) 0.57ms
2020-12-17 16:19:35,399 temboardui[37424]: [access] INFO: 304 GET /js/fscreen.js (192.168.41.46) 0.52ms
2020-12-17 16:19:35,400 temboardui[37424]: [access] INFO: 304 GET /js/lodash.min.js (192.168.41.46) 0.53ms
2020-12-17 16:19:35,403 temboardui[37424]: [access] INFO: 304 GET /js/utils.js (192.168.41.46) 0.55ms
2020-12-17 16:19:35,405 temboardui[37424]: [access] INFO: 304 GET /js/vue.min.js (192.168.41.46) 0.54ms
2020-12-17 16:19:35,406 temboardui[37424]: [access] INFO: 304 GET /js/vue-router.min.js (192.168.41.46) 0.52ms
2020-12-17 16:19:35,407 temboardui[37424]: [access] INFO: 304 GET /js/moment.min.js (192.168.41.46) 0.52ms
2020-12-17 16:19:35,409 temboardui[37424]: [access] INFO: 304 GET /js/dygraph.min.js (192.168.41.46) 1.17ms
2020-12-17 16:19:35,412 temboardui[37424]: [access] INFO: 304 GET /js/home.js (192.168.41.46) 1.10ms
2020-12-17 16:19:35,672 temboardui[37424]: [access] INFO: 304 GET /images/temboard-150x32-w.png (192.168.41.46) 1.48ms
2020-12-17 16:19:35,853 temboardui[37424]: [access] INFO: 304 GET /js/bootstrap.min.js.map (192.168.41.46) 0.79ms
2020-12-17 16:19:35,856 temboardui[37424]: [access] WARNING: 404 GET /js/popper.min.js.map (192.168.41.46) 2.51ms
2020-12-17 16:19:35,988 temboardui[37424]: [access] WARNING: 404 GET /js/dist/dygraph.min.js.map (192.168.41.46) 1.26ms
2020-12-17 16:19:36,065 temboardui[37424]: [access] INFO: 304 GET /home/instances (192.168.41.46) 9.18ms
2020-12-17 16:19:36,276 temboardui[37424]: [access] INFO: 304 GET /css/temboard.css.map (192.168.41.46) 1.12ms

There is two 404 on /js/popper.min.js.map and /js/dist/dygraph.min.js.map that all :/

Any idea ?

rimbault commented 3 years ago

Sorry ... forgot to give some data :

temboard --version

INFO: Starting temboard 7.4. temBoard 7.4 System Debian GNU/Linux 10 (buster) Python 2.7.16 (/usr/bin/python) psycopg2 2.8.6 (dt dec pq3 ext lo64) Tornado 5.1.1 SQLAlchemy 1.3.20 alembic 1.4.3

psql --version

psql (PostgreSQL) 13.1

pgiraud commented 3 years ago

My first thought is that you probably forgot to set a group for your instance. Please go to the "settings" section and add the instance to the "default" group.

rimbault commented 3 years ago

Argh ! you are right ... Very sorry for the noise. Thank you so much to help a poor DBA !