# Devops na pratica - Problema montagem cenarioa #devops

**URL:** <https://forum.casadocodigo.com.br/t/devops-na-pratica-problema-montagem-cenarioa-devops/286>\
**Category:** Sobre o Fórum\
**Tags:** devops\
**Created:** [Agosto 23, 2016, 4:24am UTC](https://forum.casadocodigo.com.br/t/devops-na-pratica-problema-montagem-cenarioa-devops/286 "2016-08-23T04:24:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmbleandro](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lmbleandro](https://forum.casadocodigo.com.br/u/lmbleandro)\
**Post date:** [Agosto 23, 2016, 4:24am UTC](https://forum.casadocodigo.com.br/t/devops-na-pratica-problema-montagem-cenarioa-devops/286/1 "2016-08-23T04:24:27Z")

</div>

Boa noite.

Estou tentando reconstuir o laboratorio, mas ao executar o processo de instalação ( mvn install - pag 29) estou  
recebendo o erro abaixo.  
Poderiam ajudar ?

[INFO] Unable  
to find resource ‘commons-vfs:commons-vfs:pom:1.0’ in repository public  
releases  
([http://www.broadleafcommerce.org/nexus/content/repositories/snapshots/](http://www.broadleafcommerce.org/nexus/content/repositories/snapshots/))  
Downloading: [http://repo1.maven.org/maven2/commons-vfs/commons-vfs/1.0/commons-vfs-1.0.pom](http://repo1.maven.org/maven2/commons-vfs/commons-vfs/1.0/commons-vfs-1.0.pom)  
5K downloaded (commons-vfs-1.0.pom)  
[INFO]  
[2.ContainerStartMojo] Resolved container artifact  
org.codehaus.cargo:cargo-core-container-jetty:jar:1.4.7 for container  
jetty8x  
[INFO] You did not specify a container home nor any  
installer. CARGO will automatically download your container’s binaries  
from  
[[http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/8.1.14.v20131031/jetty-distribution-8.1.14.v20131031.tar.gz](http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/8.1.14.v20131031/jetty-distribution-8.1.14.v20131031.tar.gz)].  
[INFO] [talledLocalContainer] Jetty 8.1.14.v20131031 starting…  
[INFO]  
[stalledLocalDeployer] Deploying WAR by creating Jetty context XML file  
in  
[/home/vagrant/loja-virtual-devops/site/target/cargo/configurations/jetty8x/contexts/site.xml]…  
[INFO]  
[talledLocalContainer] 2016-08-23 03:38:28.987:INFO::Redirecting  
stderr/stdout to  
/home/vagrant/loja-virtual-devops/site/target/cargo/configurations/jetty8x/logs/2016\_08\_23.stderrout.log  
[INFO]  
[yer.DeployerWatchdog] Deployable  
[[http://localhost:7070/cargocpc/index.html](http://localhost:7070/cargocpc/index.html)] failed to finish deploying  
within the timeout period [300000]. The Deployable state is thus  
unknown.  
[WARNING] [talledLocalContainer]  
org.codehaus.cargo.container.ContainerException: Deployable  
[[http://localhost:7070/cargocpc/index.html](http://localhost:7070/cargocpc/index.html)] failed to finish deploying  
within the timeout period [300000]. The Deployable state is thus  
unknown.  
[INFO] ------------------------------------------------------------------------  
[ERROR] FATAL ERROR  
[INFO] ------------------------------------------------------------------------  
[INFO]  
Deployable [[http://localhost:7070/cargocpc/index.html](http://localhost:7070/cargocpc/index.html)] failed to finish  
deploying within the timeout period [300000]. The Deployable state is  
thus unknown.  
[INFO] ------------------------------------------------------------------------  
[INFO] Trace  
org.codehaus.cargo.container.ContainerException:  
Deployable [[http://localhost:7070/cargocpc/index.html](http://localhost:7070/cargocpc/index.html)] failed to finish  
deploying within the timeout period [300000]. The Deployable state is  
thus unknown.  
at org.codehaus.cargo.container.spi.deployer.DeployerWatchdog.watch(DeployerWatchdog.java:111)  
at org.codehaus.cargo.container.spi.AbstractLocalContainer.waitForCompletion(AbstractLocalContainer.java:353)  
at org.codehaus.cargo.container.spi.AbstractLocalContainer.start(AbstractLocalContainer.java:231)  
at org.codehaus.cargo.maven2.ContainerStartMojo.executeLocalContainerAction(ContainerStartMojo.java:96)  
at org.codehaus.cargo.maven2.ContainerStartMojo.doExecute(ContainerStartMojo.java:63)  
at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo.java:432)  
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)  
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)  
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)  
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)  
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)  
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)  
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)  
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)  
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)  
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)  
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:622)  
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)  
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)  
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)  
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: 16 minutes 38 seconds  
[INFO] Finished at: Tue Aug 23 03:44:43 UTC 2016  
[INFO] Final Memory: 63M/151M  
[INFO] ------------------------------------------------------------------------  
vagrant@web:~/loja-virtual-devops$ exit

---

<div class="post-metadata">

**Author:** ![dtsato](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.casadocodigo.com.br/dtsato/32/5031_2.png) [@dtsato](https://forum.casadocodigo.com.br/u/dtsato)\
**Post date:** [Agosto 23, 2016, 7:38pm UTC](https://forum.casadocodigo.com.br/t/devops-na-pratica-problema-montagem-cenarioa-devops/286/2 "2016-08-23T19:38:49Z")

</div>

Olá Leandro,

Esse erro às vezes acontece na hora que o Maven está tentando rodar o teste de integração. Nessa fase ele precisa subir um servidor Jetty e parece que ele teve um timeout esperando o servidor ficar pronto.

Uma possível razão disso é que a máquina virtual não tem recurso suficiente para subir a aplicação em memória. Se for esse o caso, tenta colocar o seguinte no seu Vagrantfile:

`config.vm.provider :virtualbox do |vb| vb.customize ["modifyvm", :id, "--memory", "512"] end`

Depois disso, faz um “vagrant reload web” para que o Vagrant recarregue a máquina virtual com essa nova configuração. Isso diz ao VirtualBox para reservar 512Mb de memória RAM para a máquina virtual. Se não me engano o padrão é uns 256Mb, então com mais memória o build do Maven deve conseguir terminar sem problemas.

Se o problema persistir, mesmo dando mais memória para a VM, pode ser que o processo Java do Maven não esteja aproveitando toda ela. Tenta rodar isso antes do Maven:

`$ export MAVEN_OPTS="-Xmx512m"`

Isso deve ajudar a resolver o problema.

Abraços,  
Danilo Sato

---

<div class="post-metadata">

**Author:** ![lmbleandro](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lmbleandro](https://forum.casadocodigo.com.br/u/lmbleandro)\
**Post date:** [Agosto 24, 2016, 1:22am UTC](https://forum.casadocodigo.com.br/t/devops-na-pratica-problema-montagem-cenarioa-devops/286/3 "2016-08-24T01:22:58Z")

</div>

Boa noite, Daniel.  
Obrigado pelo retorno.

Em um fórum vi q vc sugeriu aumento da memória das vms. Fiz e deu certo.

Fico muito feliz com seu retorno.

O livro está sendo muito bom.

Felicidades!!!

---

<div class="post-metadata">

**Author:** ![edilsonjsjunior](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@edilsonjsjunior](https://forum.casadocodigo.com.br/u/edilsonjsjunior)\
**Post date:** [Fevereiro 23, 2018, 7:14pm UTC](https://forum.casadocodigo.com.br/t/devops-na-pratica-problema-montagem-cenarioa-devops/286/4 "2018-02-23T19:14:57Z")

</div>

Prezados, boa tarde.

Estou tentando montar o ambiente e estou encontrando o mesmo erro na hora de fazer o build.  
Segue mensagem de erro abaixo:

[WARNING] [talledLocalContainer] org.codehaus.cargo.container.ContainerException: Deployable [[http://localhost:7070/cargocpc/index.html](http://localhost:7070/cargocpc/index.html)] failed to finish deploying within the timeout period [300000]. The Deployable state is thus unknown.  
[INFO] ------------------------------------------------------------------------  
[ERROR] FATAL ERROR  
[INFO] ------------------------------------------------------------------------  
[INFO] Deployable [[http://localhost:7070/cargocpc/index.html](http://localhost:7070/cargocpc/index.html)] failed to finish deploying within the timeout period [300000]. The Deployable state is thus unknown.

Já tentei aumentar a memória da VM mas não obtive sucesso. Poderiam me ajudar?  
Agradeço desde já.

---

<div class="post-metadata">

**Author:** ![adilson](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@adilson](https://forum.casadocodigo.com.br/u/adilson)\
**Post date:** [Março 27, 2018, 8:14am UTC](https://forum.casadocodigo.com.br/t/devops-na-pratica-problema-montagem-cenarioa-devops/286/5 "2018-03-27T08:14:44Z")

</div>

Bom dia.

Efetuei os procedimentos acima e o erro permanece. Por favor, alguém tem mais alguma sugestão?  
Testei em dois computadores com processadores e memorias diferentes, no linux e windows 10 e não houve mudanças.

Obrigado

Adilson

---

<div class="post-metadata">

**Author:** ![Edvaldo](https://avatars.discourse-cdn.com/v4/letter/e/e68b1a/32.png) [@Edvaldo](https://forum.casadocodigo.com.br/u/Edvaldo)\
**Post date:** [Setembro 2, 2020, 4:37pm UTC](https://forum.casadocodigo.com.br/t/devops-na-pratica-problema-montagem-cenarioa-devops/286/6 "2020-09-02T16:37:50Z")

</div>

Pessoal boa tarde!

Estou com problemas quando rodo o comando mvn install, a seguinte mensagem é retornada:

vagrant@web:~/loja-virtual-devops$ mvn install  
[INFO] Scanning for projects…  
[INFO] ------------------------------------------------------------------------  
[INFO] Reactor Build Order:  
[INFO]  
[INFO] loja-virtual-devops  
[INFO] core  
[INFO] admin  
[INFO] site  
[INFO] combined  
[INFO]  
[INFO] ------------------------------------------------------------------------  
[INFO] Building loja-virtual-devops 1.0  
[INFO] ------------------------------------------------------------------------  
Downloading: [https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom](https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.pom)  
Sep 2, 2020 4:31:27 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry  
INFO: I/O exception (javax.net.ssl.SSLPeerUnverifiedException) caught when processing request: peer not authenticated  
Sep 2, 2020 4:31:27 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry  
INFO: Retrying request  
Sep 2, 2020 4:31:27 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry  
INFO: I/O exception (javax.net.ssl.SSLPeerUnverifiedException) caught when processing request: peer not authenticated  
Sep 2, 2020 4:31:27 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry  
INFO: Retrying request  
Sep 2, 2020 4:31:27 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry  
INFO: I/O exception (javax.net.ssl.SSLPeerUnverifiedException) caught when processing request: peer not authenticated  
Sep 2, 2020 4:31:27 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry  
INFO: Retrying request  
[INFO] ------------------------------------------------------------------------  
[INFO] Reactor Summary:  
[INFO]  
[INFO] loja-virtual-devops … FAILURE [0.817s]  
[INFO] core … SKIPPED  
[INFO] admin … SKIPPED  
[INFO] site … SKIPPED  
[INFO] combined … SKIPPED  
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD FAILURE  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: 1.118s  
[INFO] Finished at: Wed Sep 02 16:31:27 UTC 2020  
[INFO] Final Memory: 5M/12M  
[INFO] ------------------------------------------------------------------------  
[ERROR] Plugin org.apache.maven.plugins:maven-install-plugin:2.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.3: Could not transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:2.3 from/to central ([https://repo.maven.apache.org/maven2](https://repo.maven.apache.org/maven2)): peer not authenticated -\> [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:

agradeço a ajuda!

Edvaldo

---

<div class="post-metadata">

**Author:** ![dchristofolli](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.casadocodigo.com.br/dchristofolli/32/14719_2.png) [@dchristofolli](https://forum.casadocodigo.com.br/u/dchristofolli)\
**Post date:** [Fevereiro 2, 2021, 10:55pm UTC](https://forum.casadocodigo.com.br/t/devops-na-pratica-problema-montagem-cenarioa-devops/286/7 "2021-02-02T22:55:02Z")

</div>

Boa noite  
Eu estava tendo problema com as dependências, e consegui resolver comentando as classes de teste e removendo as dependências dos pom.xml dos módulos. Caso alguém precise do código funcionando, a correção está num fork do projeto, no [meu Github](https://github.com/dchristofolli), [nesse repositório](https://github.com/dchristofolli/loja-virtual-devops).
