Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java ERROR during installation of OpenContrail #148

Open
vikasm01 opened this issue Jun 27, 2017 · 2 comments
Open

Java ERROR during installation of OpenContrail #148

vikasm01 opened this issue Jun 27, 2017 · 2 comments

Comments

@vikasm01
Copy link

vikasm01 commented Jun 27, 2017

Hi

I am installing OpenContrail in Ubuntu 14.04.1 LTS ,
$./contrail.sh build ==> command was executed without any error.

but when I am executing next command $./contrail.sh install , I am facing below error

I have upgraded the OS with "apt-get upgraded " but still facing the issue . Please suggest , Thanks

Error

2017-06-27 16:47:23 Setting up oracle-java7-installer (7u80+7u60arm-0webupd81) ...
2017-06-27 16:47:23 Downloading Oracle Java 7...
2017-06-27 16:47:23 --2017-06-27 16:47:23-- http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz
2017-06-27 16:47:23 Resolving download.oracle.com (download.oracle.com)... 96.17.182.42, 96.17.182.49
2017-06-27 16:47:23 Connecting to download.oracle.com (download.oracle.com)|96.17.182.42|:80... connected.
2017-06-27 16:47:23 HTTP request sent, awaiting response... 302 Moved Temporarily
2017-06-27 16:47:23 Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz [following]
2017-06-27 16:47:23 --2017-06-27 16:47:23-- https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz
2017-06-27 16:47:24 Resolving edelivery.oracle.com (edelivery.oracle.com)... 104.108.234.248, 2600:140f:4:185::2d3e, 2600:140f:4:18a::2d3e
2017-06-27 16:47:24 Connecting to edelivery.oracle.com (edelivery.oracle.com)|104.108.234.248|:443... connected.
2017-06-27 16:47:24 HTTP request sent, awaiting response... 302 Moved Temporarily
2017-06-27 16:47:24 Location: http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1498562364_d5644184edcbb107ce3355cd35398cdc [following]
2017-06-27 16:47:24 --2017-06-27 16:47:24-- http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1498562364_d5644184edcbb107ce3355cd35398cdc
2017-06-27 16:47:24 Connecting to download.oracle.com (download.oracle.com)|96.17.182.42|:80... connected.
2017-06-27 16:47:25 HTTP request sent, awaiting response... 404 Not Found
2017-06-27 16:47:25 2017-06-27 16:47:25 ERROR 404: Not Found.
2017-06-27 16:47:25
2017-06-27 16:47:25 download failed
2017-06-27 16:47:25 Oracle JDK 7 is NOT installed.
2017-06-27 16:47:26 dpkg: error processing package oracle-java7-installer (--configure):
2017-06-27 16:47:26 Setting up libopts25:amd64 (1:5.18-2ubuntu2) ...
2017-06-27 16:47:26 subprocess installed post-installation script returned error exit status 1
2017-06-27 16:47:26 Setting up ntp (1:4.2.6.p5+dfsg-3ubuntu2.14.04.10) ...
2017-06-27 16:47:26 * Starting NTP server ntpd
2017-06-27 16:47:26 ...done.
2017-06-27 16:47:26 Setting up libjna-java (3.2.7-4) ...
2017-06-27 16:47:26 Setting up python-support (1.0.15) ...
2017-06-27 16:47:27 Setting up cassandra (2.0.17) ...
2017-06-27 16:47:27 Adding group `cassandra' (GID 118) ...
2017-06-27 16:47:27 Done.
2017-06-27 16:47:27 vm.max_map_count = 1048575
2017-06-27 16:47:27 net.ipv4.tcp_keepalive_time = 300
2017-06-27 16:47:27 Processing triggers for libc-bin (2.19-0ubuntu6) ...
2017-06-27 16:47:27 Processing triggers for ureadahead (0.100.0-16) ...
2017-06-27 16:47:27 Processing triggers for python-support (1.0.15) ...
2017-06-27 16:47:28 Errors were encountered while processing:
2017-06-27 16:47:28 oracle-java7-installer
2017-06-27 16:47:28 E: Sub-process /usr/bin/dpkg returned an error code (1)
stack@ubuntu:~/contrail-installer$ 2017-06-27 16:47:28 ++ return_status=100
2017-06-27 16:47:28 Failure in installing package : install --force-yes cassandra
2017-06-27 16:47:28 ++ [[ 100 -gt 0 ]]
2017-06-27 16:47:28 exited with status :100
2017-06-27 16:47:28 ++ echo -e 'Failure in installing package : install' --force-yes cassandra
2017-06-27 16:47:28 ++ exit 100
2017-06-27 16:47:28 ++ clean
2017-06-27 16:47:28 ++ local r=100
2017-06-27 16:47:28 ++ echo 'exited with status :100'
2017-06-27 16:47:28 ++ exit 100

stack@ubuntu:~/contrail-installer$

localrc file is updated as below

STACK_DIR=$(cd $(dirname $0) && pwd)
LOG_DIR=$STACK_DIR/log/screens
LOG=True
DEBUG=True
LOGFILE=$STACK_DIR/log/contrail.log
LOGDAYS=1
USE_SCREEN=True
DATABASE_PASSWORD=admin123
RABBIT_PASSWORD=admin123
SERVICE_TOKEN=admin123
SERVICE_PASSWORD=admin123
ADMIN_PASSWORD=admin123
LOG_LEVEL=3
SERVICE_TIMEOUT=180
SERVICE_HOST=10.53.173.166
COMPUTE_HOST_IP=10.53.173.165
INSTALL_PROFILE=ALL
PHYSICAL_INTERFACE=eth0
CONTRAIL_DEFAULT_INSTALL=False
CONTRAIL_BRANCH=R3.2
CONTRAIL_REPO_PROTO=https
GIT_BASE=https://github.com
CASS_MAX_HEAP_SIZE=500M
CASS_HEAP_NEWSIZE=100M
CONTRAIL_VGW_INTERFACE=vgw
CONTRAIL_VGW_PUBLIC_SUBNET=11.0.0.0/24
CONTRAIL_VGW_PUBLIC_NETWORK=default-domain:demo:net:net
OPENSTACK_IP=10.53.173.165

@lanclin
Copy link

lanclin commented Jul 13, 2017

Even I got this similar error message about JDK 7 not installed.

JDK 7 is no longer supported - purge the java 7 and install the latest java 9 then change the contrail.sh file from java7-installer to java9-installer

sudo dpkg -P oracle-java7-installer >> purge java7
sudo apt-get -f install

then try to install again

@Groundsea
Copy link

cassandra need oracle jdk7, but oracle website had stopped supplying of the jdk7.
I manually installed oracle jdk7, and remove the oracle-java7-installer, then it is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants