knox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Minder (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KNOX-293) Misleading error output by java -jar gateway.jar -version when run as wrong user
Date Tue, 04 Mar 2014 16:23:20 GMT
Kevin Minder created KNOX-293:
---------------------------------

             Summary: Misleading error output by java -jar gateway.jar -version when run as
wrong user
                 Key: KNOX-293
                 URL: https://issues.apache.org/jira/browse/KNOX-293
             Project: Apache Knox
          Issue Type: Bug
          Components: Server
    Affects Versions: 0.3.0
            Reporter: Kevin Minder
             Fix For: 0.4.0


[root@sandbox bin]# su -l knox -c "java -jar /usr/lib/knox/bin/gateway.jar -version"
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /usr/lib/knox/bin/../logs/gateway.log (Permission denied)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
	at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
	at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
	at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
	at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:395)
	at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403)
	at org.apache.hadoop.gateway.GatewayServer.configureLogging(GatewayServer.java:134)
	at org.apache.hadoop.gateway.GatewayServer.main(GatewayServer.java:88)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:70)
	at org.apache.hadoop.gateway.launcher.Invoker.invoke(Invoker.java:39)
	at org.apache.hadoop.gateway.launcher.Command.run(Command.java:101)
	at org.apache.hadoop.gateway.launcher.Launcher.run(Launcher.java:69)
	at org.apache.hadoop.gateway.launcher.Launcher.main(Launcher.java:46)
log4j:ERROR Either File or DatePattern options are not set for appender [drfa].
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /usr/lib/knox/bin/../logs/gateway-audit.log (Permission denied)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
	at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
	at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
	at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
	at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:672)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:516)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:395)
	at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403)
	at org.apache.hadoop.gateway.GatewayServer.configureLogging(GatewayServer.java:134)
	at org.apache.hadoop.gateway.GatewayServer.main(GatewayServer.java:88)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:70)
	at org.apache.hadoop.gateway.launcher.Invoker.invoke(Invoker.java:39)
	at org.apache.hadoop.gateway.launcher.Command.run(Command.java:101)
	at org.apache.hadoop.gateway.launcher.Launcher.run(Launcher.java:69)
	at org.apache.hadoop.gateway.launcher.Launcher.main(Launcher.java:46)
log4j:ERROR Either File or DatePattern options are not set for appender [auditfile].
Apache Knox Gateway 0.4.0.2.1.1.0-118 (e59c59e3eebe6024dcce05cf3e6d161521a69a18)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message