Thanks to visit codestin.com
Credit goes to github.com

Skip to content

elasticsearch fails to run on Arch Linux #17

@felixonmars

Description

@felixonmars

I am getting the following errors when running the test suite for elasticsearch. I am not really familiar with elasticsearch myself, please let me know how I should proceed to test, thanks!

======================================================================
FAIL: pifpaf.tests.test_drivers.TestDrivers.test_elasticsearch
tags: worker-7
----------------------------------------------------------------------
traceback-1: {{{
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/fixtures/fixture.py", line 197, in setUp
    self._setUp()
  File "/home/felix/projects/pifpaf/pifpaf/drivers/elasticsearch.py", line 46, in _setUp
    wait_for_line=" started")
  File "/home/felix/projects/pifpaf/pifpaf/drivers/__init__.py", line 135, in _exec
    % (wait_for_line, b"".join(lines)))
RuntimeError: Program did not print: ` started'
Output: b'Exception in thread "main" ElasticsearchException[Failed to load logging configuration]; nested: NoSuchFileException[/usr/share/elasticsearch/config];\nLikely root cause: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config\n\tat sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)\n\tat sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)\n\tat sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)\n\tat sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)\n\tat sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)\n\tat sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)\n\tat java.nio.file.Files.readAttributes(Files.java:1737)\n\tat java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:225)\n\tat java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)\n\tat java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)\n\tat java.nio.file.Files.walkFileTree(Files.java:2662)\n\tat org.elasticsearch.common.logging.log4j.LogConfigurator.resolveConfig(LogConfigurator.java:142)\n\tat org.elasticsearch.common.logging.log4j.LogConfigurator.configure(LogConfigurator.java:103)\n\tat org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:243)\n\tat org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)\nRefer to the log for complete error details.\n'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/fixtures/fixture.py", line 208, in setUp
    raise SetupError(details)
fixtures.fixture.SetupError: {}
}}}

Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/fixtures/fixture.py", line 197, in setUp
    self._setUp()
  File "/home/felix/projects/pifpaf/pifpaf/drivers/elasticsearch.py", line 46, in _setUp
    wait_for_line=" started")
  File "/home/felix/projects/pifpaf/pifpaf/drivers/__init__.py", line 135, in _exec
    % (wait_for_line, b"".join(lines)))
RuntimeError: Program did not print: ` started'
Output: b'Exception in thread "main" ElasticsearchException[Failed to load logging configuration]; nested: NoSuchFileException[/usr/share/elasticsearch/config];\nLikely root cause: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config\n\tat sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)\n\tat sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)\n\tat sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)\n\tat sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)\n\tat sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)\n\tat sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)\n\tat java.nio.file.Files.readAttributes(Files.java:1737)\n\tat java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:225)\n\tat java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)\n\tat java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)\n\tat java.nio.file.Files.walkFileTree(Files.java:2662)\n\tat org.elasticsearch.common.logging.log4j.LogConfigurator.resolveConfig(LogConfigurator.java:142)\n\tat org.elasticsearch.common.logging.log4j.LogConfigurator.configure(LogConfigurator.java:103)\n\tat org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:243)\n\tat org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)\nRefer to the log for complete error details.\n'

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions