Closed SethTisue closed 3 years ago
so that point I gave up and decided to downgrade our Java
sudo apt list -a openjdk-8-jdk
only shows 252 and 292... I guess 252 is fine
the command to downgrade was sudo apt-get install openjdk-8-jdk:amd64=8u252-b09-1~deb9u1 openjdk-8-jre:amd64=8u252-b09-1~deb9u1 openjdk-8-jdk-headless:amd64=8u252-b09-1~deb9u1 openjdk-8-jre-headless:amd64=8u252-b09-1~deb9u1
OMG THAT FIXED IT :muscle::tada:
The same thing happened today. Same fix worked.
ticket about upgrading Artifactory — presumably newer versions don't have this problem: https://github.com/lightbend/scala-team/issues/175
our Artifactory was upgraded by @lrytz and I verified today that it now comes back up by itself after sudo systemctl restart artifactory.service
Artifactory 7 bundles its JDK, so it no longer depends on what's installed on the system.
(Some more details in this private repo ticket: https://github.com/lightbend/scala-team/issues/175#issuecomment-888297497)
jenkins-master upgraded itself to JDK 8u292 on April 24, as seen in
/var/log/dpkg.log.1
:but Artifactory didn't start using the new JDK version until I restarted it today (I restart Artifactory once a month, with
sudo systemctl restart artifactory.service
because at some point we found that otherwise resources don't get freed)and it broke. in
/var/opt/jfrog/artifactory/logs/artifactory.log
it said:some googling shows that this error can have a variety of causes. one possibility is that catalina didn't start
looking at
/var/opt/jfrog/artifactory/logs/catalina/catalina.2021-05-14.log
I saw:after further googling it seems this is https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8266261
as an aside, at one point Artifactory got in a wedged state where it wouldn't start because "Artifactory Tomcat already started". got past that with
netstat -ltnp | grep ':8015'
and thenkill
ing the process on that portanyway, adding
-Dkeystore.pkcs12.keyProtectionAlgorithm=PBEWithHmacSHA256AndAES_256
toJAVA_OPTS
in/opt/jfrog/artifactory/tomcat/bin/catalina.sh
was enough for catalina to startbut artifactory.log still had the same
Could not ping access server
:-/