Weathermap 1.0 Install - Plugins Error

Hi all, I just downloaded and try to installed weathermapV1.0. But when i try to installed the plugins weathermap with my cacti, i have this error php:

Validation error for variable id with a value of network-weathermap. See backtrace below for more details.
(/plugins.php: 51 get_filter_request_var)(/lib/html_utility.php: 439 die_html_input_error)(/lib/html_validate.php: 60 cacti_debug_backtrace)

I verify and i have well the directory plugins/network-weathermap.

Any help would be appreciated.

Thanks

Red Hat Enterprise Linux Server release 6.4
Cacti V1.1.33

Did you follow the README about bower and composer? This is required if you want to test the development version (it’s not ready for normal use yet). I think probably the vendor/autoload.php file is missing, which is created by composer.

The final release will include the relevant packages without extra steps needed.

HI,

Thanks for you help, but i found the solution i rename the directory plugins/network-weathermap in plugins/weathermap and now the install is OK.

Thanks

1 Like

Ah yes, that too :slight_smile: Again, the script that makes the release version does this for you.

I’ll add a line to the README.

Dear All,
I’m trying to build 1.0.0dev branch on my FreeBSD machine without success. Here is the output of the error.

jostreff@bs02:/root/weathermap % gmake release
#sql

remove the dev-only dependencies from vendor

composer --no-dev update
Loading composer repositories with package information
Updating dependencies
Nothing to install or update
Package operations: 0 installs, 0 updates, 51 removals

  • Removing webmozart/assert (1.3.0)
  • Removing theseer/phpdox (0.11.0)
  • Removing theseer/fxsl (1.1.1)
  • Removing theseer/fdomdocument (1.6.6)
  • Removing theseer/directoryscanner (1.3.2)
  • Removing symfony/yaml (v3.4.4)
  • Removing symfony/process (v3.4.4)
  • Removing symfony/polyfill-mbstring (v1.7.0)
  • Removing symfony/finder (v3.4.4)
  • Removing symfony/filesystem (v3.4.4)
  • Removing symfony/dependency-injection (v3.4.4)
  • Removing symfony/debug (v3.4.4)
  • Removing symfony/console (v3.4.4)
  • Removing symfony/config (v3.4.4)
  • Removing squizlabs/php_codesniffer (2.2.0)
  • Removing sebastian/version (2.0.1)
  • Removing sebastian/resource-operations (1.0.0)
  • Removing sebastian/recursion-context (2.0.0)
  • Removing sebastian/phpcpd (3.0.1)
  • Removing sebastian/object-enumerator (2.0.1)
  • Removing sebastian/global-state (1.1.1)
  • Removing sebastian/finder-facade (1.2.2)
  • Removing sebastian/exporter (2.0.0)
  • Removing sebastian/environment (2.0.0)
  • Removing sebastian/diff (1.4.3)
  • Removing sebastian/comparator (1.2.4)
  • Removing sebastian/code-unit-reverse-lookup (1.0.1)
  • Removing psr/container (1.0.0)
  • Removing phpunit/phpunit-mock-objects (3.4.4)
  • Removing phpunit/phpunit (5.7.27)
  • Removing phpunit/php-token-stream (1.4.12)
  • Removing phpunit/php-timer (1.0.9)
  • Removing phpunit/php-text-template (1.2.1)
  • Removing phpunit/php-file-iterator (1.4.5)
  • Removing phpunit/php-code-coverage (4.0.6)
  • Removing phpunit/dbunit (2.0.3)
  • Removing phpspec/prophecy (1.7.5)
  • Removing phpmd/phpmd (2.6.0)
  • Removing phploc/phploc (4.0.1)
  • Removing phpdocumentor/type-resolver (0.4.0)
  • Removing phpdocumentor/reflection-docblock (3.3.2)
  • Removing phpdocumentor/reflection-common (1.0.1)
  • Removing pdepend/pdepend (2.5.2)
  • Removing nikic/php-parser (v3.1.5)
  • Removing myclabs/deep-copy (1.7.0)
  • Removing lstrojny/phpunit-clever-and-smart (0.5.0)
  • Removing johnkary/phpunit-speedtrap (v1.1.0)
  • Removing jakub-onderka/php-parallel-lint (v0.9.2)
  • Removing gitonomy/gitlib (v1.0.3)
  • Removing doctrine/instantiator (1.0.5)
  • Removing codacy/coverage (dev-master 546ac2e)
    Generating autoload files

copy in the compiled javascript from the react apps

cp websrc/cacti-user/build/static/js/main..js cacti-resources/user.min.js
cp: websrc/cacti-user/build/static/js/main.
.js: No such file or directory
gmake: *** [Makefile:30: release] Error 1

You should be able to git checkout into cacti/plugins/weathermap, then go into that directory and composer update ---no-dev followed by bower install

The make release is for making a zip for distribution, and hasn’t been tested since the last release. The packing.list is almost certainly incomplete, as lots of things have moved or been added. There will now be additional build steps (not yet added to the Makefile) to build the two React applications (cacti-user and cacti-mgmt). The current compiled versions of those are already in cacti-resources/ though, even in the git version.

I’ve just updated the Makefile so it at least doesn’t die, and rebuilds the React apps. I haven’t checked the packing.list file though.

Hi Howie,
Really thanks for your support!

Nice, now I can install and enable the plugin.
In the cacti logs it shows errors like this:

2018/03/06 09:42:24 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins.php: 86 api_plugin_uninstall)(/lib/plugins.php: 544 api_plugin_uninstall)(/lib/plugins.php: 544 CactiErrorHandler)(/lib/functions.php: 4586 cacti_debug_backtrace)
2018/03/06 09:42:24 - ERROR PHP WARNING: include_once(): Failed opening ‘/usr/local/share/cacti/plugins/weathermap/setup.php’ for inclusion (include_path=’.’) in file: /usr/local/share/cacti/lib/plugins.php on line: 544
2018/03/06 09:42:24 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins.php: 86 api_plugin_uninstall)(/lib/plugins.php: 544 api_plugin_uninstall)(/lib/plugins.php: 544 CactiErrorHandler)(/lib/functions.php: 4586 cacti_debug_backtrace)
2018/03/06 09:42:24 - ERROR PHP WARNING: include_once(/usr/local/share/cacti/plugins/weathermap/setup.php): failed to open stream: No such file or directory in file: /usr/local/share/cacti/lib/plugins.php on line: 544

BR,
Jordan

So does ‘/usr/local/share/cacti/plugins/weathermap/setup.php exist? It should do, if you unpacked weathermap in the right place… it needs to be plugins/weathermap and not plugins/network-weathermap