/opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory - when I reinstalled Zimbra 8.8.12

Ask questions about your setup or get help installing ZCS server (ZD section below).
mikeyl
Posts: 6
Joined: Fri Apr 12, 2019 1:17 am

/opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory - when I reinstalled Zimbra 8.8.12

Postby mikeyl » Fri Apr 12, 2019 1:27 am

HI guys,
I have a problem with Zimbra 8.8.12.
In a fresh install (CentOS 7) I can install Zimbra 8.8.12 correctly, but When I tried to reinstall (first uninstall Zimbra), I have an error

Installing extra packages (4):
zimbra-drive
zimbra-patch
zimbra-proxy-patch
zimbra-chat
...done

Running Post Installation Configuration:
Operations logged to /tmp/zmsetup.20190411-205830.log
Installing LDAP configuration database...done.
Setting defaults.../opt/zimbra/bin/zmjava: line 59: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory
/opt/zimbra/bin/zmjava: line 59: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory
/opt/zimbra/bin/zmjava: line 59: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory
/opt/zimbra/bin/zmjava: line 59: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory
/opt/zimbra/bin/zmjava: line 59: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory


When I search the directory and file there are not installed.

(I tried install 3 times and all with same problem)

Somebody with similar problem?

Regards


User avatar
DavidMerrill
Advanced member
Advanced member
Posts: 92
Joined: Thu Jul 30, 2015 2:44 pm
Location: Portland, ME
ZCS/ZD Version: 8.8.11 P3
Contact:

Re: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory - when I reinstalled Zimbra 8.8.12

Postby DavidMerrill » Fri Apr 12, 2019 1:32 pm

but When I tried to reinstall (first uninstall Zimbra), I have an error


Looks like whatever happened above "didn't turn out right", did you see any messages/warnings/errors during the uninstall/reinstall?
___________________________________
David Merrill - Zimbra Practice Lead
OTELCO Zimbra Hosting, Licensing and Professional Services
Zeta Alliance
mikeyl
Posts: 6
Joined: Fri Apr 12, 2019 1:17 am

Re: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory - when I reinstalled Zimbra 8.8.12

Postby mikeyl » Fri Apr 12, 2019 3:34 pm

David
Thanks for your reply

DavidMerrill wrote:Looks like whatever happened above "didn't turn out right", did you see any messages/warnings/errors during the uninstall/reinstall?


The first install result OK,

The reason for reinstalling was because I mistakenly disabled dnscache and my quickest option was to uninstall and install again.

Code: Select all

 zimbra-proxy-patch  x86_64  8.8.12.1552427139.p0-1.r7   zimbra-8812-oss  3.6 k

Transaction Summary
================================================================================
Install  4 Packages

Total download size: 13 M
Installed size: 16 M
Downloading packages:
--------------------------------------------------------------------------------
Total                                              2.8 MB/s |  13 MB  00:04     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : zimbra-drive-1.0.12.1553795496-1.r7.x86_64                   1/4
  Installing : zimbra-proxy-patch-8.8.12.1552427139.p0-1.r7.x86_64          2/4
**** Installation Completed. ****
Installing Zimbra-Chat
  Installing : zimbra-chat-2.0.2.1546498111-1.r7.x86_64                     3/4
Configuring Zimbra-Chat
Checking if Talk zimlet is installed.
/opt/zimbra/bin/zmjava: line 59: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory
Deploying Zimbra-Chat zimlet
/opt/zimbra/bin/zmjava: line 59: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory
/opt/zimbra/bin/zmjava: line 59: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory
Restart the mailbox service as zimbra user. Run
su - zimbra
zmmailboxdctl restart
  Installing : zimbra-patch-8.8.12.1552477867.p0-1.r7.x86_64                4/4
**** Installation Completed. ****


This is the last lines from install.log

Regards
mikeyl
Posts: 6
Joined: Fri Apr 12, 2019 1:17 am

Re: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory - when I reinstalled Zimbra 8.8.12

Postby mikeyl » Fri Apr 12, 2019 4:20 pm

I find the problem
When uninstall Zimbra with ./install -u remove configuration and files from /opt/zimbra but don't remove the package
zimbra-openjdk-11.0.2-1zimbra8.8b1.el7.x86_64

Code: Select all

[root@correo yum.repos.d]# rpm -aq|grep zimbra
zimbra-openjdk-11.0.2-1zimbra8.8b1.el7.x86_64


I delete the package with rpm command
---------------------

Code: Select all

[root@correo yum.repos.d]# 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/
....


Install again and all is ok!
User avatar
DavidMerrill
Advanced member
Advanced member
Posts: 92
Joined: Thu Jul 30, 2015 2:44 pm
Location: Portland, ME
ZCS/ZD Version: 8.8.11 P3
Contact:

Re: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory - when I reinstalled Zimbra 8.8.12

Postby DavidMerrill » Fri Apr 12, 2019 6:09 pm

Well done, thanks for sharing!
___________________________________
David Merrill - Zimbra Practice Lead
OTELCO Zimbra Hosting, Licensing and Professional Services
Zeta Alliance
PavanLinux
Posts: 1
Joined: Sun Jul 07, 2019 11:59 am

Re: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory - when I reinstalled Zimbra 8.8.12

Postby PavanLinux » Sun Jul 07, 2019 1:50 pm

./install.sh -u
yum-complete-transaction --cleanup-only
yum history redo last
rpm -qa|grep zimbra-openjdk
yum remove zimbra-openjdk

Then try re-installation:
./install.sh
eaperezh
Advanced member
Advanced member
Posts: 71
Joined: Fri Sep 12, 2014 10:05 pm

Re: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory - when I reinstalled Zimbra 8.8.12

Postby eaperezh » Sat Jul 27, 2019 5:36 pm

This error is present in ZCS Network Edition 8.8.15_GA_3829.RHEL7_64
Clean install of zimbra
you forget something and then stop the install
As a good sysadmin you do a cleanup #./install.sh -u
all packages are removed but zimbra-openjdk is not
The solution is as @PavanLinux said in previous post.
You need to do the #./install.sh -u
and then #yum remove zimbra-openjdk
and then reinstall
User avatar
L. Mark Stone
Elite member
Elite member
Posts: 1993
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine
ZCS/ZD Version: 8.8.12 Network Edition
Contact:

Re: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory - when I reinstalled Zimbra 8.8.12

Postby L. Mark Stone » Sat Jul 27, 2019 9:37 pm

Please file a bug report by opening a Support Case. Add my name to the ticket if you wish, as I experienced this issue as well earlier this week. You can also post a link to this forum thread, so Support can see that this bug pre-dates 8.8.15.

Thanks!
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
Zeta Alliance http://www.zetalliance.org/
eaperezh
Advanced member
Advanced member
Posts: 71
Joined: Fri Sep 12, 2014 10:05 pm

Re: /opt/zimbra/common/lib/jvm/java/bin/java: No such file or directory - when I reinstalled Zimbra 8.8.12

Postby eaperezh » Sun Jul 28, 2019 3:43 pm

Filed bug under https://bugzilla.zimbra.com/show_bug.cgi?id=109203

Mark, dont have your email to add it to the bug report.

Return to “Installation and Upgrade”

Who is online

Users browsing this forum: No registered users and 5 guests