Page MenuHomePhabricator

MediaWiki-Vagrant: ES_PATH_CONF must be set to the configuration path
Closed, ResolvedPublic

Description

vagrant provision gives

==> default: Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install elasticsearch-oss' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: elasticsearch-oss is already the newest version (6.5.4).
==> default: 0 upgraded, 0 newly installed, 0 to remove and 84 not upgraded.
==> default: 1 not fully installed or removed.
==> default: After this operation, 0 B of additional disk space will be used.
==> default: Setting up elasticsearch-oss (6.5.4) ...
==> default: ES_PATH_CONF must be set to the configuration path
==> default: dpkg: error processing package elasticsearch-oss (--configure):
==> default:  subprocess installed post-installation script returned error exit status 1
==> default: Errors were encountered while processing:
==> default:  elasticsearch-oss
==> default: W: chown to _apt:root of directory /vagrant/cache/apt/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
==> default: W: Not using locking for nfs mounted lock file /vagrant/cache/apt/lock
==> default: E: Sub-process /usr/bin/dpkg returned an error code (1)
==> default: Error: /Stage[main]/Elasticsearch/Package[elasticsearch]/ensure: change from absent to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install elasticsearch-oss' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: elasticsearch-oss is already the newest version (6.5.4).
==> default: 0 upgraded, 0 newly installed, 0 to remove and 84 not upgraded.
==> default: 1 not fully installed or removed.
==> default: After this operation, 0 B of additional disk space will be used.
==> default: Setting up elasticsearch-oss (6.5.4) ...
==> default: ES_PATH_CONF must be set to the configuration path
==> default: dpkg: error processing package elasticsearch-oss (--configure):
==> default:  subprocess installed post-installation script returned error exit status 1
==> default: Errors were encountered while processing:
==> default:  elasticsearch-oss
==> default: W: chown to _apt:root of directory /vagrant/cache/apt/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
==> default: W: Not using locking for nfs mounted lock file /vagrant/cache/apt/lock
==> default: E: Sub-process /usr/bin/dpkg returned an error code (1)

The error is deterministic.

Event Timeline

Tgr created this task.May 31 2019, 11:20 PM
Restricted Application added a project: Discovery-Search. · View Herald TranscriptMay 31 2019, 11:20 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 513731 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/vagrant@master] Work around elasticsearch error

https://gerrit.wikimedia.org/r/513731

Change 513731 merged by jenkins-bot:
[mediawiki/vagrant@master] Work around elasticsearch error

https://gerrit.wikimedia.org/r/513731

debt closed this task as Resolved.Jul 3 2019, 4:24 PM
debt claimed this task.