Date: Mon, 08 Sep 2014 19:49:54 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 193467] New: [patch] textproc/elasticsearch prints exceptions if you edit the default logging.yml file Message-ID: <bug-193467-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193467 Bug ID: 193467 Summary: [patch] textproc/elasticsearch prints exceptions if you edit the default logging.yml file Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: zi@FreeBSD.org Created attachment 147079 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147079&action=edit Patch to resolve issue Elasticsearch appears to try to load logging.yml.sample as well as bad/logging.yml.sample at startup. The attached patch moves the sample files to %%DATADIR%% and displays a message to the user that informs them that the sample files now live in %%DATADIR%%. % sudo service elasticsearch console Failed to configure logging... org.elasticsearch.common.settings.SettingsException: Failed to load settings from [file:/usr/local/etc/elasticsearch/logging.yml.sample] at org.elasticsearch.common.settings.ImmutableSettings$Builder.loadFromStream(ImmutableSettings.java:947) at org.elasticsearch.common.settings.ImmutableSettings$Builder.loadFromUrl(ImmutableSettings.java:931) at org.elasticsearch.common.logging.log4j.LogConfigurator.loadConfig(LogConfigurator.java:123) at org.elasticsearch.common.logging.log4j.LogConfigurator$1.visitFile(LogConfigurator.java:111) at org.elasticsearch.common.logging.log4j.LogConfigurator$1.visitFile(LogConfigurator.java:107) at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:135) at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:199) at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:69) at java.nio.file.Files.walkFileTree(Files.java:2600) at org.elasticsearch.common.logging.log4j.LogConfigurator.resolveConfig(LogConfigurator.java:107) at org.elasticsearch.common.logging.log4j.LogConfigurator.configure(LogConfigurator.java:81) at org.elasticsearch.bootstrap.Bootstrap.setupLogging(Bootstrap.java:94) at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:32) Caused by: org.elasticsearch.common.jackson.core.JsonParseException: Unexpected character ('#' (code 35)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: # you can override this using by setting a system property, for example -Des.logger.level=DEBUG es.logger.level: INFO rootLogger: ${es.logger.level}, console, file -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193467-13>