Giter VIP home page Giter VIP logo

Comments (8)

ashrimalivmware avatar ashrimalivmware commented on August 18, 2024

Hi @ikunduraci,

The mangleWEB is showing those errors because machine didn't get DHCP IP at boot time and while starting the WEB container, IP must be assigned to the machine. Please run following commands on your machine, it should resolve the issue:
1: docker stop mangleWEB
2: docker rm -f mangleWEB
3: docker run --name mangle -d -e DB_OPTIONS="-DcassandraContactPoints= -DcassandraSslEnabled=true -DcassandraUsername=cassandra -DcassandraPassword=cassandra" -e CLUSTER_OPTIONS="-DclusterValidationToken=mangle -DpublicAddress=" -p 8080:8080 -p 8443:8443 mangleuser/mangle:

Thanks,
-Avinash

from mangle.

ikunduraci avatar ikunduraci commented on August 18, 2024

Hi @ashrimalivmware,

I'm not sure why it doesn't pickup an IP from DHCP.. the DHCP server is servicing other machines fine, in fact, after booting and logging in, i'm able to run vami_config_net and it picks up an IP fine..

I've also run the commands you've suggested with the following result -

root@PDCMANGLE [ ~ ]# docker run --name mangle -d -e DB_OPTIONS="-DcassandraContactPoints= -DcassandraSslEnabled=true -DcassandraUsername=cassandra -DcassandraPassword=cassandra" -e CLUSTER_OPTIONS="-DclusterValidationToken=mangle -DpublicAddress=" -p 8080:8080 -p 8443:8443 mangleuser/mangle:
docker: invalid reference format.
See 'docker run --help'.
root@PDCMANGLE [ ~ ]# docker run --name mangle -d -e DB_OPTIONS="-DcassandraContactPoints= -DcassandraSslEnabled=true -DcassandraUsername=cassandra -DcassandraPassword=cassandra" -e CLUSTER_OPTIONS="-DclusterValidationToken=mangle -DpublicAddress=" -p 8080:8080 -p 8443:8443 mangleuser/mangle
Unable to find image 'mangleuser/mangle:latest' locally
docker: Error response from daemon: manifest for mangleuser/mangle:latest not found.
See 'docker run --help'.

from mangle.

ashrimalivmware avatar ashrimalivmware commented on August 18, 2024

Hi @ikunduraci
please re-run the commands:

1: docker stop mangleWEB
2: docker rm -f mangleWEB
3: docker run --name mangleWEB -d -e DB_OPTIONS="-DcassandraContactPoints= -DcassandraSslEnabled=true -DcassandraUsername=cassandra -DcassandraPassword=cassandra" -e CLUSTER_OPTIONS="-DclusterValidationToken=mangle -DpublicAddress=" -p 8080:8080 -p 8443:8443 mangleuser/mangle:2.0

The above error because the version was missing at the end, that should work fine.

Regarding DHCP IP issue, Are you deploying the VM directly using ESXi standalone host or via vCenter server?

Thanks,
-Avinash

from mangle.

ikunduraci avatar ikunduraci commented on August 18, 2024

Hi Avinash,

I've tried, see below error -

root@photon-machine [ ~ ]# docker logs mangleWEB | grep ERROR

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /home/mangle/var/opt/vmware/mangle/cert/server.jks -destkeystore /home/mangle/var/opt/vmware/mangle/cert/server.jks -deststoretype pkcs12".
2019-11-29 05:55:07.451 [main] ERROR org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup (62) - Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'webMvcMetricsFilter' defined in class path resource [org/springframework/boot/actuate/autoconfigure/metrics/web/servlet/WebMvcMetricsAutoConfiguration.class]: Unsatisfied dependency expressed through method 'webMvcMetricsFilter' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'compositeMeterRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/metrics/CompositeMeterRegistryConfiguration.class]: Unsatisfied dependency expressed through method 'compositeMeterRegistry' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'initializeDatadogMeterRegistry' defined in class path resource [com/vmware/mangle/services/config/MangleMicrometerConfig.class]: Unsatisfied dependency expressed through method 'initializeDatadogMeterRegistry' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'mangleDatadogConfig': Unsatisfied dependency expressed through field 'metricProviderRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metricProviderRepository': Cannot resolve reference to bean 'cassandraTemplate' while setting bean property 'cassandraTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cassandraTemplate' defined in class path resource [com/vmware/mangle/services/cassandra/CassandraConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.cassandra.core.CassandraAdminTemplate]: Factory method 'cassandraTemplate' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [com/vmware/mangle/services/cassandra/CassandraConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.cassandra.SessionFactory]: Factory method 'sessionFactory' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getRequiredSession' defined in class path resource [com/vmware/mangle/services/cassandra/CassandraConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.datastax.driver.core.Session]: Factory method 'getRequiredSession' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'session' defined in class path resource [com/vmware/mangle/services/cassandra/CassandraConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.cassandra.config.CassandraSessionFactoryBean]: Factory method 'session' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getRequiredCluster' defined in class path resource [com/vmware/mangle/services/cassandra/CassandraConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.datastax.driver.core.Cluster]: Factory method 'getRequiredCluster' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cluster' defined in class path resource [com/vmware/mangle/services/cassandra/CassandraConfig.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: At least one server is required
2019-11-29 05:55:07.560 [main] ERROR com.vmware.mangle.utils.exceptions.handler.MangleUncaughtExceptionHandler.uncaughtException (67) - Uncaught exception caught in thread :main

Also, i've had to deploy the OVA directly; when trying via vcenter, it would get stuck on validating.. Tried HTML5/flex/chrome/firefox, all the same result.

Cheers

from mangle.

ashrimalivmware avatar ashrimalivmware commented on August 18, 2024

@ikunduraci

The missing part was IP address, what you need to do is in the following command please provide the dhcp ip address wherever the text IP-Address is shown in it:

docker run --name mangleWEB -d -e DB_OPTIONS="-DcassandraContactPoints=IP-Address
-DcassandraSslEnabled=true -DcassandraUsername=cassandra -DcassandraPassword=cassandra" -e CLUSTER_OPTIONS="-DclusterValidationToken=mangle -DpublicAddress=IP-Address" -p 8080:8080 -p 8443:8443 mangleuser/mangle:2.0

In my last comments IP-Address field was under special characters which it getting removed by this github portal. Please follow our documentation: https://vmware-1.gitbook.io/mangle/mangle-administration/supported-deployment-models#deploying-the-mangle-containers for more details.

Thanks,
-Avinash

from mangle.

ashrimalivmware avatar ashrimalivmware commented on August 18, 2024

Hi @ikunduraci
Please update if the issue is not yet resolved, else we will close the issue.
Thanks,
-Avinash

from mangle.

ikunduraci avatar ikunduraci commented on August 18, 2024

Hi @ashrimalivmware,

I was able to deploy the OVF using vCenter in which case, it picked up an IP address fine and all services started as expected.

Thanks for your help!

from mangle.

ashrimalivmware avatar ashrimalivmware commented on August 18, 2024

from mangle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.