I noticed after Tomcat update, that sometimes I get an error message using wordpresss or logging into nextcloud. The strange thing and that immediately disappears! .
Can you find anything related in the logs?
I tried looking in: [root @ neth7 tomcat] # less catalina.out-20200315.gz but it’s empty.
Hi
Strange, AFAIK, neither NextCloud nor Wordpress use Java or Tomcat out of the box.
I use both a lot.
Elasticsearch installed on Nextcloud would explain the Tomcat issue, but there are other Apps that use Java/Tomcat…
My 2 cents
Andy
I think Webtop is the only official NS module that uses tomcat. Do you have webtop installed?
Name : webtop5
Arch : noarch
Version : 1.4.4
Release : 1.ns7
Size : 136 M
Repo : installed
From repo : nethserver-updates
Summary : WebTop5
URL : http://github.com/NethServer/webtop5
License : GPL
Description : WebTop 5 RPM, see http://sonicle-webtop.sourceforge.net/
nethserver-guacamole for instance uses tomcat too.
Which packages do you have installed?
rpm -qa "nethserver-*" | sort
nethserver-antivirus-1.4.2-1.ns7.noarch
nethserver-avahi-1.1.0-1.ns7.noarch
nethserver-backup-config-2.4.1-1.ns7.noarch
nethserver-backup-data-1.7.1-1.ns7.noarch
nethserver-base-3.7.5-1.ns7.noarch
nethserver-cgp-2.2.0-1.ns7.noarch
nethserver-clamscan-0.1.2-3.ns7.sdl.noarch
nethserver-cockpit-1.4.6-1.ns7.noarch
nethserver-cockpit-lib-1.4.6-1.ns7.noarch
nethserver-collectd-3.1.0-1.ns7.noarch
nethserver-crontabmanager-1.0.1-1.ns7.noarch
nethserver-cups-1.2.2-1.ns7.noarch
nethserver-dc-1.8.0-1.ns7.x86_64
nethserver-diagtools-1.0.3-1.ns7.noarch
nethserver-dnsmasq-1.7.1-1.ns7.noarch
nethserver-duc-1.7.0-1.ns7.noarch
nethserver-fail2ban-1.3.7-1.ns7.noarch
nethserver-firewall-base-3.8.8-1.ns7.noarch
nethserver-firewall-base-ui-3.8.8-1.ns7.noarch
nethserver-hosts-1.2.2-1.ns7.noarch
nethserver-httpd-3.7.6-1.ns7.noarch
nethserver-httpd-admin-2.4.0-1.ns7.noarch
nethserver-lang-cockpit-1.4.4-2.ns7.noarch
nethserver-lang-en-1.4.4-2.ns7.noarch
nethserver-lang-it-1.4.4-2.ns7.noarch
nethserver-letsencrypt-1.1.6-1.ns7.noarch
nethserver-lib-2.2.11-1.ns7.noarch
nethserver-lsm-1.2.3-1.ns7.noarch
nethserver-mail-common-2.12.2-1.ns7.noarch
nethserver-mail-disclaimer-2.12.2-1.ns7.noarch
nethserver-mail-filter-2.12.2-1.ns7.noarch
nethserver-mail-getmail-2.12.2-1.ns7.noarch
nethserver-mail-server-2.12.2-1.ns7.noarch
nethserver-mail-smarthost-2.12.2-1.ns7.noarch
nethserver-memcached-1.1.0-1.ns7.noarch
nethserver-mysql-1.1.4-1.ns7.noarch
nethserver-nethforge-release-7-3.ns7.noarch
nethserver-nextcloud-1.9.0-1.ns7.noarch
nethserver-ntp-1.1.3-1.ns7.noarch
nethserver-nut-1.5.3-1.ns7.noarch
nethserver-openssh-1.4.1-1.ns7.noarch
nethserver-phonehome-1.4.0-1.ns7.noarch
nethserver-php-1.2.1-1.ns7.noarch
nethserver-phpmyadmin-1.2.4-1.ns7.noarch
nethserver-postgresql-1.1.0-1.ns7.noarch
nethserver-release-7-16.ns7.noarch
nethserver-restore-data-2.0.6-1.ns7.noarch
nethserver-rh-php56-php-fpm-1.0.0-1.ns7.noarch
nethserver-rh-php71-php-fpm-1.1.1-1.ns7.noarch
nethserver-rh-php72-php-fpm-1.1.1-1.ns7.noarch
nethserver-roundcubemail-1.4.0-1.ns7.noarch
nethserver-samba-4.5.3-1.ns7.noarch
nethserver-smartd-1.1.0-1.ns7.noarch
nethserver-sssd-1.6.0-1.ns7.noarch
nethserver-stephdl-1.0.8-1.ns7.sdl.noarch
nethserver-subscription-3.5.4-1.ns7.noarch
nethserver-subscription-inventory-3.5.4-1.ns7.x86_64
nethserver-subscription-ui-3.5.4-1.ns7.noarch
nethserver-unbound-1.1.0-1.ns7.noarch
nethserver-vsftpd-1.1.1-1.ns7.noarch
nethserver-webtop5-1.5.2-1.ns7.noarch
nethserver-wordpress-AutoUpdater-1.1.9-1.ns7.sdl.noarch
nethserver-yum-1.4.1-1.ns7.noarch
As @robb already pointed out, it originates from tomcat8 used by Webtop 5.
I can reproduce the error message with following command on CLI:
curl localhost:58080
Is webtop still working?
Did you change the webtop public url?
http://docs.nethserver.org/en/v7/webtop5.html#change-the-public-url
Please check if the tomcat8 port is correctly reverse proxied:
grep -iR 58080 /etc/httpd/conf.d/
<!doctype html>HTTP Status 404 – Not Foundbody {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}
HTTP Status 404 – Not Found
Type Status Report
Message Not found
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/8.5.51
grep -iR 58080 /etc/httpd/conf.d/
/etc/httpd/conf.d/webtop.conf:ProxyPass /webtop/push ws://127.0.0.1:58080/webtop/push
/etc/httpd/conf.d/webtop.conf:ProxyPassReverse /webtop/push ws://127.0.0.1:58080/webtop/push
/etc/httpd/conf.d/webtop.conf:ProxyPass /webtop http://127.0.0.1:58080/webtop
/etc/httpd/conf.d/webtop.conf:ProxyPassReverse /webtop http://127.0.0.1:58080/webtop
Can you login to webtop?
yes i can login to webtop
Ho effettuato uno show dei parametri ed effettivamente manca public url , anche se riesco a raggiungerlo perfettamente con un dnat ddns dal firewall in https :
ActiveSyncLegacyIds=enabled
ActiveSyncLog=ERROR
DavServerLog=ERROR
DavServerUrl=
Debug=false
DefaultLocale=en_US
DefaultTimezone=Etc/UTC
DefaultToolbarIconsSize=medium
MaxMemory=1024
MinMemory=512
PbxProvider=
PbxProviderNethvoiceWebrestUrl=
PublicUrl=
RemoteCalendarAutosync=enabled
RemoteCalendarAutosyncOnlywhenonline=disabled
RemoteCategoryAutosync=enabled
RemoteCategoryAutosyncOnlywhenonline=disabled
SmtpAuth=disabled
SmtpStarttls=disabled
As it is tomcat8 you may find logs in /opt/tomcat8/logs/
is empty
Sorry, I have no more idea at the moment…it’s always hard with random errors
Thanks anyway .
Maybe @lucag has an idea? I guess he has more knowledge about webtop and tomcat.
Hi, at the moment I have removed webtop to isolate the error. I’ll try again in a few days. I know this is a simple test, but I will try the same. What I can say for my server is that after the tomcat update, the problems arose. I am attempting to downgrade Tomcat to try if possible. .
However the community of Neth is really good! Thank you .
Hi @robb and @france,
forgive me if I answer you a few days late
I don’t think it’s necessary to downgrade tomcat8
, I don’t know that it could create problems like that …
I had such a problem with duplicate files in the webapp.
You can try doing this:
systemctl stop tomcat8@webtop
rm -rf /var/lib/tomcats/webtop/webapps/webtop
yum reinstall webtop5
signal-event nethserver-webtop5-update
Let me know if you solve.
Thanks, I can reinstall Webtop 5 as soon as possible and try to do what you want. As soon as I have info I will let you know. Thank you !