Error: "bash-4.4$ sh dbsetup.sh log4j:ERROR setFile (null,true) call failed. java.io.FileNotFoundException: default.log (Permission denied)" When Attempting to Run Dbsetup.sh

(Doc ID 2366080.1)

Last updated on MARCH 10, 2018

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version 16.2.0.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to run dbsetup.sh in a Linux environment the following error occurs:

ERROR

bash-4.4$ sh dbsetup.sh
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: default.log (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.io.FileOutputStream.(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
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.configure(PropertyConfigurator.java:440)
at com.primavera.database.common.logging.Log.(Log.java:77)
at com.primavera.database.tools.dbmt.gui.ActionApplicationRunner.initializeLogging(ActionApplicationRunner.java:49)
at com.primavera.database.tools.dbmt.Main.configureLogging(Main.java:102)
at com.primavera.database.tools.dbmt.Main.main(Main.java:79)



STEPS

The issue can be reproduced at will with the following steps:
1. Run dbsetup.sh
2. See GUI launch, with error

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms