OSP Installation

OSP Installation

  

While trying to install an .osp I'm getting this error log4j:ERROR setFile(null,true) call failed.

Can anyone help me?

Hi Ajithkumar,


What steps are you doing to publish a new osp?  Please give us more details (platform version, stack) about your issue.  



Iam placing .osp file in a server location and Iam trying to deploy the application using the below command


"/opt/outsystems/platform/osptool.sh --publish " +
fullPathToFile + " " +
HostName + " " +
Username + " " +
Password  




The complete error message that I received

The error message was: 

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /var/log/outsystems/osptool.log (Permission denied)

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

at java.io.FileOutputStream.open(FileOutputStream.java:270)

at java.io.FileOutputStream.<init>(FileOutputStream.java:213)

at java.io.FileOutputStream.<init>(FileOutputStream.java:133)

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:580)

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

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

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

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

at outsystems.runtimecommon.OSTrace.<clinit>(Unknown Source)

at outsystems.hubedition.osptool.Tool.main(Unknown Source)

log4j:ERROR Either File or DatePattern options are not set for appender [OSPTool].

Help me in getting this resolved

Seams to your user have no write permissions on /var/log/outsystems/osptool.log to write logs from osptool. Try to give permissions or run this osp publish inside the Service Center.


java.io.FileNotFoundException: /var/log/outsystems/osptool.log (Permission denied)