Error in Zmprov
Hi, I apply the zmprov command in zimbra and it tells me the following: /opt/zimbra/bin/zmjava: line 56:/bin/java: no such file or directory
I have run a number of commands, of which I am not getting the error. Could you tell me with what you observe what is the problem that exists? and the possible solution to solve the problem with zmprov
if necessary to execute other commands, please indicate so. Thanks!
Will it be a problem in mysql?
java -version
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (build 1.8.0_282-8u282-b08-0ubuntu1~16.04-b08)
OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)
dpkg --list | grep -i jdk
ii default-jdk 2:1.8-56ubuntu2 amd64 Standard Java or Java compatible Development Kit
ii default-jdk-headless 2:1.8-56ubuntu2 amd64 Standard Java or Java compatible Development Kit (headless)
ii openjdk-8-jdk:amd64 8u282-b08-0ubuntu1~16.04 amd64 OpenJDK Development Kit (JDK)
ii openjdk-8-jdk-headless:amd64 8u282-b08-0ubuntu1~16.04 amd64 OpenJDK Development Kit (JDK) (headless)
ii openjdk-8-jre:amd64 8u282-b08-0ubuntu1~16.04 amd64 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-8-jre-headless:amd64 8u282-b08-0ubuntu1~16.04 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
ii oracle-java8-installer 8u201-1~webupd8~1 all Oracle Java(TM) Development Kit JDK) 8
ii oracle-java8-set-default 8u201-1~webupd8~1 all Set Oracle JDK 8 as default Java
ii zimbra-openjdk 1.8.0u172b01-1zimbra8.7b5.16.04 amd64 OpenJDK
ii zimbra-openjdk-cacerts 1.0.5-1zimbra8.7b1.16.04 all CA Certs keystore for OpenJDK
dpkg -l | grep openjdk
ii openjdk-8-jdk:amd64 8u282-b08-0ubuntu1~16.04 amd6 OpenJDK Development Kit (JDK)
ii openjdk-8-jdk-headless:amd64 8u282-b08-0ubuntu1~16.04 amd64 OpenJDK Development Kit (JDK) (headless)
ii openjdk-8-jre:amd64 8u282-b08-0ubuntu1~16.04 amd64 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-8-jre-headless:amd64 8u282-b08-0ubuntu1~16.04 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
ii zimbra-openjdk 1.8.0u172b01-1zimbra8.7b5.16.04 amd64 OpenJDK
ii zimbra-openjdk-cacerts 1.0.5-1zimbra8.7b1.16.04 all CA Certs keystore for OpenJDK
which java
/usr/bin/java
whereis java
java: /usr/bin/java /usr/share/java /usr/share/man/man1/java.1.gz
find / -name java -type f -executable
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
/usr/lib/jvm/java-8-oracle/jre/bin/java
/usr/lib/jvm/java-8-oracle/bin/java
/opt/zimbra/common/lib/jvm/openjdk-1.8.0_172-zimbra/jre/bin/java
/opt/zimbra/common/lib/jvm/openjdk-1.8.0_172-zimbra/bin/java
if [[ -e "/opt/zimbra/common/bin/java" ]]; then echo "true"; else echo "Java is not found in /opt/zimbra"; exit 1; fi true
It is also possible that you have several versions of Java installed at the same time. I run this:
sudo update-alternatives --config java
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Nothing to configure.
sudo update-alternatives --config javac
There are 2 choices for the alternative javac (providing /usr/bin/javac).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-8-oracle/bin/javac 1081 auto mode
1 /usr/lib/jvm/java-8-openjdk-amd64/bin/javac 1081 manual mode
* 2 /usr/lib/jvm/java-8-oracle/bin/javac 1081 manual mode
Press <enter> to keep the current choice[*], or type selection number:
sudo ln -s /usr/bin/java /opt/zimbra/common/bin/java
ln: failed to create symbolic link '/opt/zimbra/common/bin/java': File exists
sudo ls -hal /opt/zimbra/common/bin/java
lrwxrwxrwx 1 root root 24 May 28 2018 /opt/zimbra/common/bin/java -> ../lib/jvm/java/bin/java
sudo ls -la /opt/zimbra/common/bin/java
lrwxrwxrwx 1 root root 24 May 28 2018 /opt/zimbra/common/bin/java -> ../lib/jvm/java/bin/java
sudo ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 May 13 2019 /usr/bin/java -> /etc/alternatives/java
cat /etc/profile (If, it is required. I can send you the information)
cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre/bin/java"
cat .bashrc (If, it is required. I can send you the information)
cat .profile (If, it is required. I can send you the information)
su – zimbra
zmlocalconfig -q | grep '^zimbra.*home ='
zimbra_home = /opt/zimbra
zimbra_java_home = /opt/zimbra/common/lib/jvm/java
grep -i java .bashrc
JAVA_HOME=/opt/zimbra/common/lib/jvm/java
export JAVA_HOME
PATH=/opt/zimbra/bin:${JAVA_HOME}/bin:/opt/zimbra/common/bin:/opt/zimbra/common/sbin:/usr/sbin:${PATH}
cat .bashrc
JAVA_HOME=/opt/zimbra/common/lib/jvm/java
export JAVA_HOME
PATH=/opt/zimbra/bin:${JAVA_HOME}/bin:/opt/zimbra/common/bin:/opt/zimbra/common/sbin:/usr/sbin:${PATH}
export PATH
there is more information in this file to show if needed
which java
/opt/zimbra/common/lib/jvm/java/bin/java
bash -x $(which zmprov) exit
+ source /opt/zimbra/bin/zmshutil
++ dirname /opt/zimbra/bin/zmprov
+ exec /opt/zimbra/bin/zmjava com.zimbra.cs.account.ProvUtil exit
/opt/zimbra/bin/zmjava: line 56: /bin/java: No such file or directory
Will it be a problem in mysql? by source /bin/zmshutil; zmsetvars
tail -f /opt/zimbra/log/mysql_error.log
tcmalloc: large alloc 1284685824 bytes == 0x563e21ece000 @
2021-02-13 23:13:00 140500754065216 [Note] InnoDB: Highest supported file format is Barracuda.
2021-02-13 23:13:02 140500754065216 [Note] InnoDB: 128 rollback segment(s) are active.
2021-02-13 23:13:02 140500754065216 [Note] InnoDB: Waiting for purge to start
2021-02-13 23:13:02 140500754065216 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.36-82.0 started; log sequence number 16265191905
2021-02-13 23:13:02 140415552915200 [Note] InnoDB: Dumping buffer pool(s) not yet started
2021-02-13 23:13:02 140500754065216 [Note] Plugin 'FEEDBACK' is disabled.
2021-02-13 23:13:02 140500754065216 [Note] Server socket created on IP: '127.0.0.1'.
there is more information in this file to show if needed
bash -x /opt/zimbra/bin/zmjava com.zimbra.cs.account.ProvUtil exit
there is more information in this file to show if needed
Error in zmprov
Discuss your pilot or production implementation with other Zimbra admins or our engineers.
-
- Posts: 17
- Joined: Fri Mar 09, 2018 2:51 am
Jump to
- Zimbra Collaboration Server
- ↳ Administrators
- ↳ Installation and Upgrade
- ↳ Migration
- ↳ Virtualization
- ↳ Developers
- ↳ Zimlets
- ↳ Users
- ↳ Zimbra Connector for Outlook
- ↳ Zimbra Connector for Blackberry
- ↳ CalDAV / CardDAV / iSync
- ↳ Zimbra Collaboration 8.8 Beta
- ↳ Mobility
- ↳ Zimbra Talk
- ↳ Universal UI
- ↳ Zimbra Chat
- ↳ Zimbra Drive
- Zimbra Suite Plus
- ↳ Installation and Upgrade
- ↳ Zimbra Admin Plus
- ↳ Zimbra Backup Plus
- ↳ Zimbra HSM Plus
- ↳ Zimbra Mobile Plus
- Zimbra Desktop
- ↳ General Questions
- ↳ Error Reports
- ↳ Installation Help
- ↳ Zimbra Desktop Beta/RC
- General Zimbra
- ↳ General Zimbra Feedback
- ↳ Announcements
- ↳ Community News
- ↳ Zimbra Success Stories
- Portability
- ↳ BSD
- Other
- ↳ /etc
- ↳ International
- ↳ I18N/L10N - Translations
- ↳ Русский язык-фор
- ↳ French
- ↳ Italian
- ↳ German
- ↳ Spanish
- ↳ Scandinavian
- ↳ Portuguese