Problema na instalação do Tomcat 10 no CentOS 8

1. Problema na instalação do Tomcat 10 no CentOS 8

Cezar Apulchro
ApulchroCezar

(usa CentOS)

Enviado em 25/08/2022 - 10:49h

Olá, estou tentando instalar o Tomcat 10 no meu sistema CentOs 8, não sou especialista em Linux, estou estudando e fazendo o que preciso no linux, para a instalação do Tomcat segui um o seguinte link: https://www.linuxshelltips.com/install-apache-tomcat-rhel-8/ mas estou tendo problemas, quando vou dar start o Tomcat dá erro e manda executar o systemcl status e journalctl -xe, abaixo segue os dois.

[root@vps40026 cezar]# systemctl status tomcat
● tomcat.service - Tomcat 10
Loaded: loaded (/etc/systemd/system/tomcat.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2022-08-25 09:56:58 -03; 47min ago
Process: 42384 ExecStart=/opt/tomcat/apache-tomcat-10.0.23/bin/startup.sh (code=exited, status=1/FAILURE)

Aug 25 09:56:58 vps40026.publiccloud.com.br systemd[1]: Starting Tomcat 10...
Aug 25 09:56:58 vps40026.publiccloud.com.br systemd[1]: tomcat.service: Control process exited, code=exited status=1
Aug 25 09:56:58 vps40026.publiccloud.com.br systemd[1]: tomcat.service: Failed with result 'exit-code'.
Aug 25 09:56:58 vps40026.publiccloud.com.br systemd[1]: Failed to start Tomcat 10.
[root@vps40026 cezar]#

[root@vps40026 cezar]# journalctl -xe
Aug 25 10:43:50 vps40026.publiccloud.com.br sshd[43083]: Failed password for invalid user test from 68.183.190.82 port 42254 ssh2
Aug 25 10:43:51 vps40026.publiccloud.com.br sshd[43083]: Received disconnect from 68.183.190.82 port 42254:11: Bye Bye [preauth]
Aug 25 10:43:51 vps40026.publiccloud.com.br sshd[43083]: Disconnected from invalid user test 68.183.190.82 port 42254 [preauth]
Aug 25 10:43:56 vps40026.publiccloud.com.br sshd[43085]: Invalid user major from 43.129.222.252 port 46444
Aug 25 10:43:56 vps40026.publiccloud.com.br sshd[43085]: pam_unix(sshd:auth): check pass; user unknown
Aug 25 10:43:56 vps40026.publiccloud.com.br sshd[43085]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=43.129.222.252
Aug 25 10:43:58 vps40026.publiccloud.com.br sshd[43085]: Failed password for invalid user major from 43.129.222.252 port 46444 ssh2
Aug 25 10:44:00 vps40026.publiccloud.com.br sshd[43085]: Received disconnect from 43.129.222.252 port 46444:11: Bye Bye [preauth]
Aug 25 10:44:00 vps40026.publiccloud.com.br sshd[43085]: Disconnected from invalid user major 43.129.222.252 port 46444 [preauth]
Aug 25 10:44:29 vps40026.publiccloud.com.br unix_chkpwd[43103]: password check failed for user (root)
Aug 25 10:44:29 vps40026.publiccloud.com.br sshd[43099]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=210.106.108.250 user=>
Aug 25 10:44:30 vps40026.publiccloud.com.br sshd[43099]: Failed password for root from 210.106.108.250 port 37434 ssh2
Aug 25 10:44:32 vps40026.publiccloud.com.br sshd[43099]: Received disconnect from 210.106.108.250 port 37434:11: Bye Bye [preauth]
Aug 25 10:44:32 vps40026.publiccloud.com.br sshd[43099]: Disconnected from authenticating user root 210.106.108.250 port 37434 [preauth]
Aug 25 10:44:50 vps40026.publiccloud.com.br sshd[43104]: Invalid user server from 182.93.7.194 port 59886
Aug 25 10:44:50 vps40026.publiccloud.com.br sshd[43104]: pam_unix(sshd:auth): check pass; user unknown
Aug 25 10:44:50 vps40026.publiccloud.com.br sshd[43104]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=182.93.7.194
Aug 25 10:44:53 vps40026.publiccloud.com.br sshd[43104]: Failed password for invalid user server from 182.93.7.194 port 59886 ssh2
Aug 25 10:44:55 vps40026.publiccloud.com.br sshd[43104]: Received disconnect from 182.93.7.194 port 59886:11: Bye Bye [preauth]
Aug 25 10:44:55 vps40026.publiccloud.com.br sshd[43104]: Disconnected from invalid user server 182.93.7.194 port 59886 [preauth]
Aug 25 10:45:00 vps40026.publiccloud.com.br sshd[43106]: Invalid user ora12c from 144.24.178.128 port 38756
Aug 25 10:45:00 vps40026.publiccloud.com.br sshd[43106]: pam_unix(sshd:auth): check pass; user unknown
Aug 25 10:45:00 vps40026.publiccloud.com.br sshd[43106]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=144.24.178.128
Aug 25 10:45:02 vps40026.publiccloud.com.br sshd[43106]: Failed password for invalid user ora12c from 144.24.178.128 port 38756 ssh2
Aug 25 10:45:04 vps40026.publiccloud.com.br sshd[43106]: Received disconnect from 144.24.178.128 port 38756:11: Bye Bye [preauth]
Aug 25 10:45:04 vps40026.publiccloud.com.br sshd[43106]: Disconnected from invalid user ora12c 144.24.178.128 port 38756 [preauth]
Aug 25 10:45:16 vps40026.publiccloud.com.br sshd[43117]: Invalid user user1 from 68.183.190.82 port 34224
Aug 25 10:45:16 vps40026.publiccloud.com.br sshd[43117]: pam_unix(sshd:auth): check pass; user unknown
Aug 25 10:45:16 vps40026.publiccloud.com.br sshd[43117]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=68.183.190.82
Aug 25 10:45:17 vps40026.publiccloud.com.br sshd[43118]: Invalid user u from 43.129.222.252 port 39056
Aug 25 10:45:17 vps40026.publiccloud.com.br sshd[43118]: pam_unix(sshd:auth): check pass; user unknown
Aug 25 10:45:17 vps40026.publiccloud.com.br sshd[43118]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=43.129.222.252
Aug 25 10:45:19 vps40026.publiccloud.com.br sshd[43117]: Failed password for invalid user user1 from 68.183.190.82 port 34224 ssh2
Aug 25 10:45:19 vps40026.publiccloud.com.br sshd[43118]: Failed password for invalid user u from 43.129.222.252 port 39056 ssh2
Aug 25 10:45:19 vps40026.publiccloud.com.br sshd[43118]: Received disconnect from 43.129.222.252 port 39056:11: Bye Bye [preauth]
Aug 25 10:45:19 vps40026.publiccloud.com.br sshd[43118]: Disconnected from invalid user u 43.129.222.252 port 39056 [preauth]
Aug 25 10:45:21 vps40026.publiccloud.com.br sshd[43117]: Received disconnect from 68.183.190.82 port 34224:11: Bye Bye [preauth]
Aug 25 10:45:21 vps40026.publiccloud.com.br sshd[43117]: Disconnected from invalid user user1 68.183.190.82 port 34224 [preauth]
Aug 25 10:45:27 vps40026.publiccloud.com.br unix_chkpwd[43123]: password check failed for user (root)
Aug 25 10:45:27 vps40026.publiccloud.com.br sshd[43121]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=210.106.108.250 user=>
Aug 25 10:45:29 vps40026.publiccloud.com.br sshd[43121]: Failed password for root from 210.106.108.250 port 45095 ssh2
Aug 25 10:45:31 vps40026.publiccloud.com.br sshd[43121]: Received disconnect from 210.106.108.250 port 45095:11: Bye Bye [preauth]
Aug 25 10:45:31 vps40026.publiccloud.com.br sshd[43121]: Disconnected from authenticating user root 210.106.108.250 port 45095 [preauth]
lines 1140-1182/1182 (END)

Aprecio toda ajuda possível.
Grato a todos.


  


2. Re: Problema na instalação do Tomcat 10 no CentOS 8

rafael
ogro33

(usa Debian)

Enviado em 25/08/2022 - 12:25h

O serviço do tomcat está ativo, aparentemente.

Os logs estão mostrando problemas na autenticação. Tanto de usuários inválidos como também de senhas incorretas.





3. Re: Problema na instalação do Tomcat 10 no CentOS 8

Cezar Apulchro
ApulchroCezar

(usa CentOS)

Enviado em 25/08/2022 - 14:43h

Obrigado pela assistência, o problema é que só tenho o usuário tomcat para lógico atender o tomcat, usuário cezar que é o administrador do sistema o administrador do mysql e só, eu tinha visto que tinha problemas de password mas não entendi e continuo não entendendo.



4. Problema na instalação do Tomcat 10 no CentOS 8

Cezar Apulchro
ApulchroCezar

(usa CentOS)

Enviado em 26/08/2022 - 07:34h

Problema resolvido, solução: 1 - deletar usuário tomcat e diretório de instalação do tomcat 10.
2 - download tomcat 9, instalação tomcat 9, criação de usuário tomcat.
Acho que mudar para o tomcat 9 não foi a solução mas sim a criação do usuário com as devidas permissões.

Grato.







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts