1
resposta

Credentials - erro login e senha

Estou colocando conforme os video, porém apresenta erro de login e senha no deploy da máquina de produção.

[catalogo] $ /bin/sh -xe /tmp/jenkins7117611245765163091.sh
+ sudo cp target/alura-aws.war /var/lib/tomcat8/webapps/loja.war
+ sudo service tomcat8 restart
Deploying /var/lib/jenkins/workspace/catalogo/target/alura-aws.war to container Tomcat 8.x Remote with context alura-aws
ERROR: Build step failed with exception
org.codehaus.cargo.container.ContainerException: Failed to redeploy [/var/lib/jenkins/workspace/catalogo/target/alura-aws.war]
    at org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer.redeploy(AbstractTomcatManagerDeployer.java:188)
    at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:77)
    at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:147)
    at hudson.plugins.deploy.CargoContainerAdapter$DeployCallable.invoke(CargoContainerAdapter.java:117)
    at hudson.FilePath.act(FilePath.java:1020)
    at hudson.FilePath.act(FilePath.java:998)
    at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:114)
    at hudson.plugins.deploy.PasswordProtectedAdapterCargo.redeploy(PasswordProtectedAdapterCargo.java:93)
    at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:64)
    at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
    at hudson.model.Build$BuildExecution.post2(Build.java:186)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
    at hudson.model.Run.execute(Run.java:1752)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)
Caused by: org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The username you provided is not allowed to use the text-based Tomcat Manager (error 403)

Configurei o arquivo tomcat-users.xml conforme no vídeo e na criação da credencial coloquei o login e senha correspondente.

Obrigado.

1 resposta

Olá, tudo bem ?

Vi que tá parado nisso faz uma semana, será que conseguiu solucionar isso ? Se sim, compartilha conosco ?