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

Build fails on oracle-java8-installer package installation. #83

Closed
kabalin opened this issue Nov 30, 2018 · 1 comment
Closed

Build fails on oracle-java8-installer package installation. #83

kabalin opened this issue Nov 30, 2018 · 1 comment

Comments

@kabalin
Copy link
Contributor

kabalin commented Nov 30, 2018

Basically it seems that oracle-java8-installer package post install script fails on some occasions as installation depends on downloading archive from Oracle website (travis-ci/travis-ci#9512).

Setting up oracle-java8-installer (8u191-1~webupd8~1) ...
No /var/cache/oracle-jdk8-installer/wgetrc file found.
Creating /var/cache/oracle-jdk8-installer/wgetrc and
using default oracle-java8-installer wgetrc settings for it.
Downloading Oracle Java 8...
--2018-11-30 11:09:58--  http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz
Resolving build-cache.travisci.net (build-cache.travisci.net)... 10.80.1.2
Connecting to build-cache.travisci.net (build-cache.travisci.net)|10.80.1.2|:80... connected.
Proxy request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz [following]
--2018-11-30 11:09:58--  https://edelivery.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz
Resolving false (false)... failed: Name or service not known.
wget: unable to resolve host address ‘false’
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 oracle-java8-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)

Java is used for behat tests only, and in fact full JDK is not required. A simple solution to avoid flaky oracle-java8-installer is to use openjdk-8-jre-headless package instead, which sets up headless Java Runtime Environment sufficient to start Selenium and also available in all supported Linux environments (dist: xenial or dist: trusty).

@kabalin
Copy link
Contributor Author

kabalin commented Nov 30, 2018

PR will follow in a moment.

kabalin added a commit to moodleworkplace/moodle-plugin-ci that referenced this issue Nov 30, 2018
polothy pushed a commit that referenced this issue Dec 5, 2018
paulholden added a commit to paulholden/moodle-local_cohortrole that referenced this issue Dec 7, 2018
paulholden added a commit to paulholden/moodle-local_cohortrole that referenced this issue Dec 7, 2018
ak4t0sh added a commit to andil-elearning/moodle-block_taggedcoursesearch that referenced this issue May 17, 2019
* Add tests against moodle master branch
* Fix java package issue : see open-lms-open-source/moodle-plugin-ci#83
* Rename moodlerooms to blackboard-open-source
ak4t0sh added a commit to ak4t0sh/moodle-filter_codepen that referenced this issue May 17, 2019
* Add tests with PHP 7.3
* Fix java package issue : see open-lms-open-source/moodle-plugin-ci#83
* Rename moodlerooms to blackboard-open-source
ak4t0sh added a commit to ak4t0sh/moodle-format_weeksrev that referenced this issue May 17, 2019
* Add tests with PHP 7.3
* Fix java package issue : see open-lms-open-source/moodle-plugin-ci#83
* Rename moodlerooms to blackboard-open-source
nicoroeser pushed a commit to nicoroeser/moodle-tool_crawler that referenced this issue May 21, 2019
Travis builds fail more often than not if Oracle JDK is used. The
required package is not available, and its downstream recipe is not
updated fast enough. So moodle-plugin-ci has switched to OpenJDK, see
<open-lms-open-source/moodle-plugin-ci#83>.
This makes CI work again.

Background information:
* travis-ci/travis-ci#9512
* travis-ci/travis-ci#10247
ragusa87 pushed a commit to ragusa87/moodle-plugin-ci that referenced this issue Jun 7, 2019
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

1 participant