Support Questions

Find answers, ask questions, and share your expertise

Taking an error "* Unknown configuration section 'hostmanager'." when i trying to "vagrant up". How can i solve that?

New Contributor
 
4 REPLIES 4

Rising Star

I would guess that you have not installed the Hostmanager Vagrant Plugin. Make sure that you have all of these prerequisites installed. In that same README there are simple instructions for getting the prerequisites installed on a Mac.

If that does not work, then please provide more information. What platform are you running on? What version of Metron are you running? What directory are you running the 'vagrant up' command in? Providing the output of running 'metron-deployment/scripts/platform-info.sh' would also be very helpful.

New Contributor

Hi nallen,

Actually i took an error when i worked this command "mvn clean package -DskipTests". You can see the error below :

[ERROR] 
[ERROR] npm ERR! Linux 4.10.0-28-generic
[ERROR] npm ERR! argv "/home/ebrar/metron/metron-interface/metron-config/node/node" "/home/ebrar/metron/metron-interface/metron-config/node/node_modules/npm/bin/npm-cli.js" "run" "build"
[ERROR] npm ERR! node v6.2.0
[ERROR] npm ERR! npm  v3.8.9
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! metron-management-ui@0.4.2 build: `./node_modules/angular-cli/bin/ng build -prod`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR! 
[ERROR] npm ERR! Failed at the metron-management-ui@0.4.2 build script './node_modules/angular-cli/bin/ng build -prod'.
[ERROR] npm ERR! Make sure you have the latest version of node.js and npm installed.
[ERROR] npm ERR! If you do, this is most likely a problem with the metron-management-ui package,
[ERROR] npm ERR! not with npm itself.
[ERROR] npm ERR! Tell the author that this fails on your system:
[ERROR] npm ERR!     ./node_modules/angular-cli/bin/ng build -prod
[ERROR] npm ERR! You can get information on how to open an issue for this project with:
[ERROR] npm ERR!     npm bugs metron-management-ui
[ERROR] npm ERR! Or if that isn't available, you can get their info via:
[ERROR] npm ERR!     npm owner ls metron-management-ui
[ERROR] npm ERR! There is likely additional logging output above.
[ERROR] 
[ERROR] npm ERR! Please include the following file with any support request:
[ERROR] npm ERR!     /home/ebrar/metron/metron-interface/metron-config/npm-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Metron ............................................. SUCCESS [ 41.533 s]
[INFO] metron-stellar ..................................... SUCCESS [ 22.318 s]
[INFO] stellar-common ..................................... SUCCESS [03:31 min]
[INFO] metron-analytics ................................... SUCCESS [  0.048 s]
[INFO] metron-maas-common ................................. SUCCESS [ 34.320 s]
[INFO] metron-platform .................................... SUCCESS [  0.012 s]
[INFO] metron-zookeeper ................................... SUCCESS [  3.779 s]
[INFO] metron-test-utilities .............................. SUCCESS [03:51 min]
[INFO] metron-integration-test ............................ SUCCESS [02:57 min]
[INFO] metron-maas-service ................................ SUCCESS [  8.515 s]
[INFO] metron-common ...................................... SUCCESS [01:40 min]
[INFO] metron-statistics .................................. SUCCESS [ 32.656 s]
[INFO] metron-writer ...................................... SUCCESS [01:01 min]
[INFO] metron-storm-kafka-override ........................ SUCCESS [ 10.133 s]
[INFO] metron-storm-kafka ................................. SUCCESS [  0.560 s]
[INFO] metron-hbase ....................................... SUCCESS [01:09 min]
[INFO] metron-profiler-common ............................. SUCCESS [ 32.357 s]
[INFO] metron-profiler-client ............................. SUCCESS [ 25.471 s]
[INFO] metron-profiler .................................... SUCCESS [01:08 min]
[INFO] metron-hbase-client ................................ SUCCESS [01:10 min]
[INFO] metron-enrichment .................................. SUCCESS [01:23 min]
[INFO] metron-indexing .................................... SUCCESS [ 24.219 s]
[INFO] metron-solr ........................................ SUCCESS [02:07 min]
[INFO] metron-pcap ........................................ SUCCESS [  4.347 s]
[INFO] metron-parsers ..................................... SUCCESS [01:17 min]
[INFO] metron-pcap-backend ................................ SUCCESS [ 30.832 s]
[INFO] metron-data-management ............................. SUCCESS [03:55 min]
[INFO] metron-api ......................................... SUCCESS [01:30 min]
[INFO] metron-management .................................. SUCCESS [ 10.977 s]
[INFO] elasticsearch-shaded ............................... SUCCESS [ 13.394 s]
[INFO] metron-elasticsearch ............................... SUCCESS [ 56.840 s]
[INFO] metron-deployment .................................. SUCCESS [  0.002 s]
[INFO] Metron Ambari Management Pack ...................... SUCCESS [  1.968 s]
[INFO] metron-contrib ..................................... SUCCESS [  0.009 s]
[INFO] metron-docker ...................................... SUCCESS [  1.381 s]
[INFO] metron-interface ................................... SUCCESS [  0.002 s]
[INFO] metron-config ...................................... FAILURE [06:28 min]
[INFO] metron-alerts ...................................... SKIPPED
[INFO] metron-rest-client ................................. SKIPPED
[INFO] metron-rest ........................................ SKIPPED
[INFO] site-book .......................................... SKIPPED
[INFO] 3rd party Functions (just for tests) ............... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39:20 min
[INFO] Finished at: 2017-12-13T06:52:18-08:00
[INFO] Final Memory: 186M/2319M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:npm (ng build) on project metron-config: Failed to run task: 'npm run build' failed. (error code 1) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :metron-config

I followed the instruction on that link.

My OS is Ubuntu 16.04 LTS Xenial. The version of Metron i cloned is 0.3.1. I installed VirtualBox 5.0, vagrant 2.0.1, Maven 3.3.9, Ansible 2.0.0.2.

And here is the output of 'metron-deployment/scripts/platform-info.sh' :

root@ubuntu:/home/ebrar/metron/metron-deployment/scripts# ./platform-info.sh 
Metron 0.4.2
--
* master
--
commit 37587689e9feadeb54465aa7319f114a4e11255b
Author: cstella <cestella@gmail.com>
Date:   Tue Dec 12 15:24:07 2017 -0500

    METRON-1306: When index template install fails, we should fail the install closes apache/incubator-metron#834
--
--
ansible 2.0.0.2
  config file = 
  configured module search path = Default w/o overrides
--
Vagrant 2.0.1
--
Python 2.7.12
--
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.10.0-28-generic", arch: "amd64", family: "unix"
--
./platform-info.sh: line 64: docker: command not found
--
node
./platform-info.sh: line 73: node: command not found
--
npm
./platform-info.sh: line 78: npm: command not found
--
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--
Compiler is C++11 compliant
--
Linux ubuntu 4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
--
Total System Memory = 16155.1 MB
Processor Model: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
Processor Speed: 2394.455 MHz
Total Physical Processors: 2
Total cores: 4
Disk information:
/dev/sda1        71G   21G   48G  30% /
This CPU may not support virtualization

New Contributor

I successed to take all "Success" after "mvn clean package -DskipTests"

I run these commands before it :

apt install node.js
apt install npm
npm update
npm install -g n
n latest

New Contributor

And also i did not take an error about vagrant-hostmanager!