Zimbra zmlocalconfig: line 83: exec: java: not found

by Daniel Pham
Published: Updated:

Zimbra error /opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found. Why do I encounter this error? And how do I fix this.

Let’s read the article.

zimbra zmlocalconfig: line 83: exec: java: not found
Zimbra zmlocalconfig: line 83: exec: java: not found.

Zimbra java not found error when reinstalling Zimbra

As my previous post on how to uninstall Zimbra on your mail server. Just like you, when I first did it, no problem happened.

But when I reinstalled Zimbra on the server itself. I have encountered a Java-related error. It looks like this.

Running Post Installation Configuration:
/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found
/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found
/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found
/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found
/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found
Operations logged to /tmp/zmsetup.20190517-000022.log
Installing LDAP configuration database...done.
Setting defaults.../opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found
/opt/zimbra/bin/zmjava: line 59: /bin/java: No such file or directory
/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found
/opt/zimbra/bin/zmjava: line 59: /bin/java: No such file or directory
/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found
/opt/zimbra/bin/zmjava: line 59: /bin/java: No such file or directory
/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found
/opt/zimbra/bin/zmjava: line 59: /bin/java: No such file or directory
/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found
/opt/zimbra/bin/zmjava: line 59: /bin/java: No such file or directory

I was initially puzzled as to why this error did not occur at the first installation. It only appeared after I uninstalled Zimbra and installed it.

There is something wrong with uninstalling Zimbra. And after a while of searching, I found the reason.

Fix java not found error when reinstalling Zimbra

I searched for information for a while and found that uninstalling Zimbra via the ./install.sh -u command will not completely uninstall the installed Zimbra packages on the server.

Because I’m using CentOS 7, so I use the following command to find zimbra packages still on the server.

[root@mail ~]# rpm -aq|grep zimbra
zimbra-openjdk-11.0.2-1zimbra8.8b1.el7.x86_64

As a result, the zimbra-openjdk package is still in the server. I need to remove it from the server.

Execute the following command to remove it from the server.

[root@mail ~]# rpm -e zimbra-openjdk
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/release: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/tzdb.dat: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/src.zip: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/server/libjvm.so: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/server/libjsig.so: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/server/Xusage.txt: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/server: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/security/public_suffix_list.dat: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/security/default.policy: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/security/cacerts: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/security/blacklisted.certs: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/security: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/psfontj2d.properties: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/psfont.properties.ja: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/modules: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/libzip.so: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/libverify.so: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/libunpack.so: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/libsunec.so: remove failed: No such file or directory
warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/libsplashscreen.so: remove failed: No such file or directory
...

... means that log for this part is still there but I can’t copy it all in the article, because it’s too long.

And then, I did the Zimbra reinstallation and it succeeded. That’s it.

Conclusion

It’s just a small thing but can make us troubled. Anyway, this is the experience that I want to share with you, hope it helps you.

(This is an article from my old blog that has been inactive for a long time, I don’t want to throw it away so I will keep it and hope it helps someone).

0 0 votes
Article Rating

You may also like

Subscribe
Notify of
guest
7 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Carlos
Carlos
Guest
4 years ago

Thanks man!!!

ismael
ismael
Guest
4 years ago

Thanks! Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!Thanks!

Chesare
Chesare
Guest
4 years ago

Excelent – WORK . thanks a lot !

Mauricio Palombit
Mauricio Palombit
Guest
4 years ago

It worked perfectly!

Thank you very much!!!

DevOps Lite is a personal blog specializing in technology with main topics about DevOps, DevSecOps, SRE and System Administrator. Articles are shared for free and contributed to the community.

SUPPORT US

FOLLOW US

Subscribe my Newsletter for new blog posts. Stay updated from your inbox!

© 2021-2024 DevOpsLite.com – All rights reserved.

Please write sources “DevOpsLite.com” when using articles from this website.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

0
Would love your thoughts, please comment.x
()
x

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.