Apt package installer places configs in etc but code expects in /usr/bin

5 views
Skip to first unread message

Mike Sparr

unread,
Aug 18, 2016, 1:36:20 PM8/18/16
to Confluent Platform
How should I fix the missing properties files notices in logs after package install?  I'd expect the installer program to place files where the program expects them, and these errors should not be present.

I just had a server shut off in 4-node cluster and logs only reveal a thread dump and a bunch of log4j errors so I cannot figure out why the server halted.

Originally I reported issue with the CLI tools as I constantly get errors about missing log4j configuration in output. I use the confluent sources file and apt-get install and it installs the platform on Ubuntu 14.04.x LTS, but source code reveals looking for configs in /usr/bin yet installer places in /etc/.

This results in both server and CLI output/logs filled with the following:

log4j:ERROR Could not read configuration file from URL [file:/usr/bin/../config/log4j.properties].

 

java
.io.FileNotFoundException: /usr/bin/../config/log4j.properties (No such file or directory)

 at java
.io.FileInputStream.open0(Native Method)

 at java
.io.FileInputStream.open(FileInputStream.java:195)

 at java
.io.FileInputStream.<init>(FileInputStream.java:138)

 at java
.io.FileInputStream.<init>(FileInputStream.java:93)

 at sun
.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)

 at sun
.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)

 at org
.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:557)

 at org
.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)

 at org
.apache.log4j.LogManager.<clinit>(LogManager.java:127)

 at org
.slf4j.impl.Log4jLoggerFactory.<init>(Log4jLoggerFactory.java:66)

 at org
.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:72)

 at org
.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:45)

 at org
.slf4j.LoggerFactory.bind(LoggerFactory.java:150)

 at org
.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)

 at org
.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)

 at org
.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)

 at org
.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)


Reply all
Reply to author
Forward
0 new messages