Permission denied java.io.FileNotFoundException error causes Virtual Service not starting up
search cancel

Permission denied java.io.FileNotFoundException error causes Virtual Service not starting up

book

Article ID: 242632

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

Virtual service is not starting up.

vse.log shows:

java.io.FileNotFoundException: /opt/lisa/CA/DevTest/vsBuilderSessions/VSE_2013/session_keys.vsk.wal.0 (Permission denied)

Environment

Release : 10

Component : Virtual Service Environment

Cause

In the vse.log, we noticed the below error. As the log message says, the user which you are trying to start the VSE does not have permission to write information into/opt/lisa/CA/DevTest/vsBuilderSessions/.

ERROR:

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
 at com.install4j.runtime.launcher.UnixLauncher.main(Unknown Source)
Caused by: java.io.FileNotFoundException: /opt/lisa/CA/DevTest/vsBuilderSessions/VSE_2013/session_keys.vsk.wal.0 (Permission denied)
 at java.io.RandomAccessFile.open0(Native Method)
 at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
 at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
 at org.mapdb.Volume$RandomAccessFileVol.<init>(Volume.java:2694)

Resolution

Give full permissions to /opt/lisa/CA/DevTest/vsBuilderSessions/. Delete/rename the vse_2013 folder which is inside the vsBuildersessions and then restart the VSE to resolve this issue.

Another option is to change ownership of the files reported in the log to the same user that runs the VSE.

Additional Information

If the VSE was started by a different user than the usual user (like the root user) then this may cause these permission errors.