Weathermap 1.0 - installation issues

#1

Hello,

I’m trying to install the devel version of Weathermap, but get this error:

2017-05-09 12:49:33 - ERROR PHP NOTICE in  Plugin 'weathermap': Undefined index: cacti_version in file: /data/cacti/plugins/weathermap/setup.php  on line: 5
2017-05-09 12:49:33 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins.php: 25 include)(/include/auth.php: 27 include)(/include/global.php: 321 include_once)(/include/global_arrays.php: 1530 api_plugin_hook)(/lib/plugins.php: 64 include_once)(/plugins/weathermap/setup.php: 5 CactiErrorHandler)(/lib/functions.php: 4313 cacti_debug_backtrace)
2017-05-09 12:49:33 - ERROR PHP NOTICE in  Plugin 'weathermap': Undefined index: cacti_version in file: /data/cacti/plugins/weathermap/setup.php  on line: 9
2017-05-09 12:49:33 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins.php: 25 include)(/include/auth.php: 27 include)(/include/global.php: 321 include_once)(/include/global_arrays.php: 1530 api_plugin_hook)(/lib/plugins.php: 64 include_once)(/plugins/weathermap/setup.php: 9 CactiErrorHandler)(/lib/functions.php: 4313 cacti_debug_backtrace)
2017-05-09 12:49:33 - ERROR PHP NOTICE in  Plugin 'weathermap': Undefined index: cacti_version in file: /data/cacti/plugins/weathermap/setup.php  on line: 5
2017-05-09 12:49:33 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins.php: 25 include)(/include/auth.php: 27 include)(/include/global.php: 321 include_once)(/include/global_arrays.php: 1530 api_plugin_hook)(/lib/plugins.php: 64 include_once)(/plugins/weathermap/setup.php: 5 CactiErrorHandler)(/lib/functions.php: 4313 cacti_debug_backtrace)
2017-05-09 12:49:33 - ERROR PHP NOTICE in  Plugin 'weathermap': Undefined index: cacti_version in file: /data/cacti/plugins/weathermap/setup.php  on line: 9
2017-05-09 12:49:33 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins.php: 25 include)(/include/auth.php: 27 include)(/include/global.php: 321 include_once)(/include/global_arrays.php: 1530 api_plugin_hook)(/lib/plugins.php: 64 include_once)(/plugins/weathermap/setup.php: 9 CactiErrorHandler)(/lib/functions.php: 4313 cacti_debug_backtrace)

Any idea?
I’ve followed the instructions provided in the readme file (nodejs, git clone, …)

Thanks, Simon

#2

Which version of Cacti? I’ve installed the dev version on Cacti 1.1.5 and 0.8.8h most days this last week without any trouble… (vagrant=>lots of installs!)

I can see that’s 1.something, but which?

And what are you doing at the point you get that error? Is it when you unpack the files, when you press Install, Activate, during a poll?

#3

Hello Howie,

I’m getting this error when I’m trying to install it, but I’m noticing the error appears every time I navigate in the cacti pages.
I’ve installed a fresh cacti 1.1.6 version (only the files, no DB). Then, I’ve copied my old database (0.8.8) and upgraded it.
Back to the plugin, if I try to install it, it doesn’t install and the install button remains.
This a dev new cacti server with mariadb10.1 and php 7.1

Thanks, Simon

#4

You should try removing the weathermap plugin directory until after the Cacti installer has finished. It seems to load parts of the plugin, even during the installer, but in a strange state. I reported that over here, but didn’t get any response yet. I’ll open a Cacti github issue tonight. I don’t think the installer should look in the plugins/ directory at all.

#5

I’ve also just pushed a change which might help from the weathermap side.

(Edit: and another one, now that I’ve confirmed that it works for my failure case at least)

#6

Good morning howie,

I’ve tried to delete the whole ‘weathermap’ directory and then re-downloaded from git (+ bower dipendencies).
The, I’ve tried to puch the install button from the Plugin Management interface.
This time there are no error messages, but the plugin is not installed.
Is there a way to debug the installation or try it manually?

Thanks,

Simon

#7

Hello @howie ,
Any news?
In case do you have a way to remove the old network-weathermap? I suspect it hangs due the old installation. Here the SQL debug when I try to install the new, look if it’s ok:

            5591688 Query   SET SESSION sql_mode = (SELECT REPLACE(@@sql_mode,'STRICT_TRANS_TABLES', ''))
            5591688 Query   SET SESSION sql_mode = (SELECT REPLACE(@@sql_mode,'TRADITIONAL', ''))
            5591688 Query   SET SESSION sql_mode = (SELECT REPLACE(@@sql_mode,'NO_ZERO_DATE', ''))
            5591688 Query   SET SESSION sql_mode = (SELECT REPLACE(@@sql_mode,'NO_ZERO_IN_DATE', ''))
            5591688 Query   SET SESSION sql_mode = (SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY', ''))
            5591688 Query   SELECT value FROM settings WHERE name = 'selective_debug'
            5591688 Query   SELECT value FROM settings WHERE name = 'log_verbosity'
            5591688 Query   SELECT cacti FROM version LIMIT 1
            5591688 Query   SELECT cacti FROM version
            5591688 Query   SHOW TABLES LIKE 'settings_user'
            5591688 Query   SELECT value    FROM settings_user    WHERE name = 'user_language'    AND user_id = '1'
            5591688 Query   SHOW TABLES LIKE 'external_links'
            5591688 Query   SELECT id, title, extendedstyle   FROM external_links   WHERE style="CONSOLE"   AND enabled="on"   ORDER BY extendedstyle, sortorder, id
            5591688 Query   SELECT reset_perms FROM user_auth WHERE id = '1'
            5591688 Query   SELECT value FROM settings WHERE name = 'auth_method'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '22'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '22'      AND uagm.user_id = '1'
            5591688 Query   SELECT value FROM settings WHERE name = 'reports_allow_ln'
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'config_arrays'  ORDER BY id ASC
            5591688 Query   SELECT * FROM plugin_realms ORDER BY plugin, display
            5591688 Query   SELECT DISTINCT gt.id, gt.name  FROM graph_templates AS gt  INNER JOIN graph_templates_item AS gti  ON gt.id=gti.graph_template_id  INNER JOIN data_template_rrd AS dtr  ON gti.task_item_id=dtr.id  WHERE gti.local_graph_id=0 AND data_source_type_id IN (3,2) ORDER BY name
            5591688 Query   SELECT directory AS id, name  FROM plugin_config  WHERE status=1
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'config_settings'  ORDER BY id ASC
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'valid_host_fields'  ORDER BY id ASC
            5591688 Query   SELECT value FROM settings WHERE name = 'poller_interval'
            5591688 Query   SELECT value FROM settings WHERE name = 'default_image_format'
            5591688 Query   SELECT value FROM settings WHERE name = 'default_graph_height'
            5591688 Query   SELECT value FROM settings WHERE name = 'default_graph_width'
            5591688 Query   SELECT value FROM settings WHERE name = 'default_poller'
            5591688 Query   SELECT value FROM settings WHERE name = 'default_site'
            5591688 Query   SELECT value FROM settings WHERE name = 'snmp_ver'
            5591688 Query   SELECT value FROM settings WHERE name = 'snmp_community'
            5591688 Query   SELECT value FROM settings WHERE name = 'snmp_username'
            5591688 Query   SELECT value FROM settings WHERE name = 'snmp_password'
            5591688 Query   SELECT value FROM settings WHERE name = 'snmp_auth_protocol'
            5591688 Query   SELECT value FROM settings WHERE name = 'snmp_priv_passphrase'
            5591688 Query   SELECT value FROM settings WHERE name = 'snmp_priv_protocol'
            5591688 Query   SELECT value FROM settings WHERE name = 'snmp_port'
            5591688 Query   SELECT value FROM settings WHERE name = 'snmp_timeout'
            5591688 Query   SELECT value FROM settings WHERE name = 'max_get_size'
            5591688 Query   SELECT value FROM settings WHERE name = 'availability_method'
            5591688 Query   SELECT value FROM settings WHERE name = 'ping_method'
            5591688 Query   SELECT value FROM settings WHERE name = 'ping_port'
            5591688 Query   SELECT value FROM settings WHERE name = 'ping_timeout'
            5591688 Query   SELECT value FROM settings WHERE name = 'ping_retries'
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'config_form'  ORDER BY id ASC
            5591688 Query   SELECT value FROM settings WHERE name = 'force_https'
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'config_insert'  ORDER BY id ASC
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'auth_alternate_realms'  ORDER BY id ASC
            5591688 Query   SELECT value FROM settings WHERE name = 'guest_user'
            5591688 Query   SELECT id FROM user_auth WHERE username = '0'
            5591688 Query   SELECT COUNT(*)     FROM (     SELECT realm_id     FROM user_auth_realm AS uar     WHERE uar.user_id = '1'     AND uar.realm_id = '101'     UNION     SELECT realm_id     FROM user_auth_group_realm AS uagr     INNER JOIN user_auth_group_members AS uagm     ON uagr.group_id=uagm.group_id     INNER JOIN user_auth_group AS uag     ON uag.id=uagr.group_id     WHERE uag.enabled="on"     AND uagm.user_id = '1'     AND uagr.realm_id = '101'    ) AS authorized
            5591688 Query   SELECT * FROM user_auth WHERE id = '1'
            5591688 Query   SELECT directory FROM plugin_config ORDER BY name
            5591688 Query   SELECT value FROM settings WHERE name = 'developer_mode'
            5591688 Query   SELECT id FROM plugin_config WHERE directory = 'weathermap'
            5591688 Query   DELETE FROM plugin_config WHERE directory = 'weathermap'
            5591688 Query   INSERT INTO plugin_config (directory, name, author, webpage, version) VALUES ('weathermap', '', '', '', '')
            5591688 Query   SET SESSION sql_mode = (SELECT REPLACE(@@sql_mode,'STRICT_TRANS_TABLES', ''))
            5591688 Query   SET SESSION sql_mode = (SELECT REPLACE(@@sql_mode,'TRADITIONAL', ''))
            5591688 Query   SET SESSION sql_mode = (SELECT REPLACE(@@sql_mode,'NO_ZERO_DATE', ''))
            5591688 Query   SET SESSION sql_mode = (SELECT REPLACE(@@sql_mode,'NO_ZERO_IN_DATE', ''))
            5591688 Query   SET SESSION sql_mode = (SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY', ''))
            5591688 Query   SELECT value FROM settings WHERE name = 'selective_debug'
            5591688 Query   SELECT value FROM settings WHERE name = 'log_verbosity'
            5591688 Query   SELECT cacti FROM version LIMIT 1
            5591688 Query   SELECT cacti FROM version
            5591688 Query   SELECT value FROM settings WHERE name = 'i18n_language_support'
            5591688 Query   SHOW TABLES LIKE 'settings_user'
            5591688 Query   SELECT value    FROM settings_user    WHERE name = 'user_language'    AND user_id = '1'
            5591688 Query   SELECT value FROM settings WHERE name = 'i18n_auto_detection'
            5591688 Query   SHOW TABLES LIKE 'external_links'
            5591688 Query   SELECT id, title, extendedstyle   FROM external_links   WHERE style="CONSOLE"   AND enabled="on"   ORDER BY extendedstyle, sortorder, id
            5591688 Query   SELECT reset_perms FROM user_auth WHERE id = '1'
            5591688 Query   SELECT value FROM settings WHERE name = 'reports_allow_ln'
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'config_arrays'  ORDER BY id ASC
            5591688 Query   SELECT * FROM plugin_realms ORDER BY plugin, display
            5591688 Query   SELECT DISTINCT gt.id, gt.name  FROM graph_templates AS gt  INNER JOIN graph_templates_item AS gti  ON gt.id=gti.graph_template_id  INNER JOIN data_template_rrd AS dtr  ON gti.task_item_id=dtr.id  WHERE gti.local_graph_id=0 AND data_source_type_id IN (3,2) ORDER BY name
            5591688 Query   SELECT directory AS id, name  FROM plugin_config  WHERE status=1
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'config_settings'  ORDER BY id ASC
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'valid_host_fields'  ORDER BY id ASC
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'config_form'  ORDER BY id ASC
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'config_insert'  ORDER BY id ASC
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'auth_alternate_realms'  ORDER BY id ASC
            5591688 Query   SELECT id FROM user_auth WHERE username = '0'
            5591688 Query   SELECT COUNT(*)     FROM (     SELECT realm_id     FROM user_auth_realm AS uar     WHERE uar.user_id = '1'     AND uar.realm_id = '101'     UNION     SELECT realm_id     FROM user_auth_group_realm AS uagr     INNER JOIN user_auth_group_members AS uagm     ON uagr.group_id=uagm.group_id     INNER JOIN user_auth_group AS uag     ON uag.id=uagr.group_id     WHERE uag.enabled="on"     AND uagm.user_id = '1'     AND uagr.realm_id = '101'    ) AS authorized
            5591688 Query   SELECT * FROM user_auth WHERE id = '1'
            5591688 Query   SELECT directory FROM plugin_config ORDER BY name
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'top_header'  ORDER BY id ASC
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'draw_navigation_text'  ORDER BY id ASC
            5591688 Query   SELECT  graph_local.host_id,  graph_local.snmp_query_id,  graph_local.snmp_index,  graph_templates_graph.local_graph_id,  graph_templates_graph.title  FROM (graph_templates_graph, graph_local)  WHERE graph_templates_graph.local_graph_id = graph_local.id  AND graph_local.id = NULL
            5591688 Query   SELECT  graph_local.host_id,  graph_local.snmp_query_id,  graph_local.snmp_index,  graph_templates_graph.local_graph_id,  graph_templates_graph.title  FROM (graph_templates_graph, graph_local)  WHERE graph_templates_graph.local_graph_id = graph_local.id  AND graph_local.id = NULL
            5591688 Query   SELECT  graph_local.host_id,  graph_local.snmp_query_id,  graph_local.snmp_index,  graph_templates_graph.local_graph_id,  graph_templates_graph.title  FROM (graph_templates_graph, graph_local)  WHERE graph_templates_graph.local_graph_id = graph_local.id  AND graph_local.id = NULL
            5591688 Query   SELECT  graph_local.host_id,  graph_local.snmp_query_id,  graph_local.snmp_index,  graph_templates_graph.local_graph_id,  graph_templates_graph.title  FROM (graph_templates_graph, graph_local)  WHERE graph_templates_graph.local_graph_id = graph_local.id  AND graph_local.id = NULL
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'page_title'  ORDER BY id ASC
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'page_head'  ORDER BY id ASC
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '8'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '8'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '21'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '21'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '18'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '18'      AND uagm.user_id = '1'
            5591688 Query   SELECT id, title FROM external_links WHERE style="TAB" AND enabled="on" ORDER BY sortorder
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'top_graph_header_tabs'  ORDER BY id ASC
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'is_console_page'  ORDER BY id ASC
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'draw_navigation_text'  ORDER BY id ASC
            5591688 Query   SELECT  graph_local.host_id,  graph_local.snmp_query_id,  graph_local.snmp_index,  graph_templates_graph.local_graph_id,  graph_templates_graph.title  FROM (graph_templates_graph, graph_local)  WHERE graph_templates_graph.local_graph_id = graph_local.id  AND graph_local.id = NULL
            5591688 Query   SELECT  graph_local.host_id,  graph_local.snmp_query_id,  graph_local.snmp_index,  graph_templates_graph.local_graph_id,  graph_templates_graph.title  FROM (graph_templates_graph, graph_local)  WHERE graph_templates_graph.local_graph_id = graph_local.id  AND graph_local.id = NULL
            5591688 Query   SELECT  graph_local.host_id,  graph_local.snmp_query_id,  graph_local.snmp_index,  graph_templates_graph.local_graph_id,  graph_templates_graph.title  FROM (graph_templates_graph, graph_local)  WHERE graph_templates_graph.local_graph_id = graph_local.id  AND graph_local.id = NULL
            5591688 Query   SELECT  graph_local.host_id,  graph_local.snmp_query_id,  graph_local.snmp_index,  graph_templates_graph.local_graph_id,  graph_templates_graph.title  FROM (graph_templates_graph, graph_local)  WHERE graph_templates_graph.local_graph_id = graph_local.id  AND graph_local.id = NULL
            5591688 Query   SELECT id FROM user_auth WHERE username = '0'
            5591688 Query   SELECT username, password_change, realm FROM user_auth WHERE id = '1'
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'nav_login_before'  ORDER BY id ASC
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '20'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '20'      AND uagm.user_id = '1'
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'nav_login_after'  ORDER BY id ASC
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '5'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '5'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '3'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '3'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '4'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '4'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '13'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '13'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '2'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '2'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '12'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '12'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '10'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '10'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '11'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '11'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '23'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '23'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '9'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '9'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '14'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '14'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '17'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '17'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '16'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '16'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '15'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '15'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '1'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '1'      AND uagm.user_id = '1'
            5591688 Query   SELECT realm_id       FROM user_auth_realm       WHERE user_id = '1'      AND realm_id = '101'      UNION      SELECT realm_id      FROM user_auth_group_realm AS uagr      INNER JOIN user_auth_group AS uag      ON uag.id = uagr.group_id      INNER JOIN user_auth_group_members AS uagm      ON uag.id = uagm.group_id      WHERE uag.enabled = 'on' AND uagr.realm_id = '101'      AND uagm.user_id = '1'
            5591688 Query   SELECT directory FROM plugin_config ORDER BY name
            5591688 Query   SHOW TABLES LIKE 'plugin_temp_table_702220792'
            5591688 Query   CREATE TEMPORARY TABLE IF NOT EXISTS plugin_temp_table_702220792 LIKE plugin_config
            5591688 Query   TRUNCATE plugin_temp_table_702220792
            5591688 Query   INSERT INTO plugin_temp_table_702220792 SELECT * FROM plugin_config
            5591688 Query   SELECT value FROM settings WHERE name = 'num_rows_table'
            5591688 Query   SELECT  count(*)  FROM plugin_temp_table_702220792
            5591688 Query   SELECT *  FROM plugin_temp_table_702220792    ORDER BY name ASC   LIMIT 0,30
            5591688 Query   DROP TABLE plugin_temp_table_702220792
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'top_graph_refresh'  ORDER BY id ASC
            5591688 Query   SELECT value FROM settings WHERE name = 'auth_cache_enabled'
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'bottom_footer'  ORDER BY id ASC
            5591688 Query   SELECT pc.id, ph.name, ph.file, ph.function  FROM plugin_hooks AS ph  LEFT JOIN plugin_config AS pc  ON pc.directory = ph.name  WHERE ph.status = 1 AND hook = 'page_bottom'  ORDER BY id ASC

Thanks,

Simon

#8

How do you have both? When you downloaded the git version, did you rename the directory to “weathermap”. It should be called “weathermap”, and just move the old directory somewhere else (not in plugins/).

#9

I’ve first tried to remove with the uninstall, then I’ve deleted the whole folder. I mean the old one.
So I’ve tried to git-clone the new one. I’ve only one weathermap now. But I cannot install it.

thanks

I could start with a fresh weathermap setup, but need to maintain the upgraded cacti setup due my thousend of graphs already in use.

#10

OK - I’ll have to go through the same process to test (generate a 0.8.8 database etc). I don’t see much in the database logs that would cause a problem.

Did you test after I committed this change? (git log should tell you)

#11

Yes, I’ve those lines commented out.
But should I execute this script? I can notice it’s debian based. I’ve CentOS7 with php7.
Thanks, Simon

#12

No, it’s the other change that’s important (the setup.php one). Just wanted to check if you had that.

#13

Yes, it’s up-to-date.

<?php

// if weathermap is in the plugins folder while the Cacti installer is doing its thing,
// then it loads this setup.php but without the normal cacti $config defined, which breaks things.

if (isset($config) && array_key_exists("cacti_version", $config )) {
  if (substr($config['cacti_version'], 0, 3) == "0.8") {
    require_once "setup88.php";
}
if (substr($config['cacti_version'], 0, 2) == "1.") {
    require_once "setup10.php";
 }
}

Is there a way to install it from cli and debug it?
Strange is that when pressing “install” from the Plugin mgmt page, nothing happens.

#14

Not as far as I know. If there’s a problem, it should show up in either the cacti.log or possibly the apache error log. I’ll see if I can reproduce your problem here, over lunch.

#15

Thank you! I’ll wait news from you
My side no logs :frowning:

#16

Hello,

Have you got some time to check it out?
Thanks,

Simon

#17

I did but I broke my installation during the upgrade I think - Cacti 1.1.7 didn’t seem to act any differently from an empty database during the install. I’ll give it another try.

#18

Thank you. If you need more infos, let me know

Simon

#19

@howie, do you have a way or suggestion to reset all plugins?
If there are no plugins installed there is no reason it should not work…
Something like:

  1. copy database from 0.8 server to new server
  2. copy new cacti files 1.1 to new server
  3. open cacti on new server and let him upgrade the database
  4. delete all plugins, via plugin management and/or manually (let me know)
  5. install Weathermap

Ideas?

Simon

#20

Most plugins for cacti 0.8.8 don’t work without an upgrade (I think Weathermap might be the only one), and many are now built-in in 1.x. If you are going to delete anyway, I’d do it before the upgrade of Cacti. I haven’t yet done a successful upgrade though, so I’m hardly an expert! :slight_smile: