xsight-vision-model-loader ... not running (1)

Document created by viavisupport on Dec 16, 2020
Version 1Show Document
  • View in full screen mode

Problem

 

In following logs

 

/xsight/opt/servicepath/xsight-vision-model-loader/logs/xsight-vision-model-loader.out

 

2020-11-27 04:24:46 INFO  StatusLogger - Managed to deploy formatted models to http://portal-server/vision_nodes_single (in 62610 ms)

Exception in thread "main" java.io.FileNotFoundException: hash (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:162)

        at java.io.FileWriter.(FileWriter.java:90)

        at com.viavi.xsight.modelloader.compiler.Compiler$PathUtil.write(Compiler.scala:81)

        at com.viavi.xsight.modelloader.HashKeeper$.updateLastHash(HashKeeper.scala:61)

        at com.viavi.xsight.modelloader.Runner.prepareModelsAnd(Runner.scala:52)

        at com.viavi.xsight.modelloader.Runner.defaultRun(Runner.scala:28)

        at com.viavi.xsight.modelloader.Runner.run(Runner.scala:22)

        at com.viavi.xsight.modelloader.Launcher$.delayedEndpoint$com$viavi$xsight$modelloader$Launcher$1(Launcher.scala:28)

        at com.viavi.xsight.modelloader.Launcher$delayedInit$body.apply(Launcher.scala:11)

        at scala.Function0.apply$mcV$sp(Function0.scala:39)

        at scala.Function0.apply$mcV$sp$(Function0.scala:39)

        at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)

        at scala.App.$anonfun$main$1$adapted(App.scala:80)

 

this indicates hash files in /xsight/opt/servicepath/xsight-vision-model-loader are not accessible

Solution

fix by ensuring following files and sub directories have correct ownership, they should have.

 

/xsight/opt/servicepath/xsight-vision-model-loader

 

drwxr-x--- 2 xsrun  xsight     4096 Nov 27 06:00 hashes

-rw-r----- 1 xsrun  xsight       32 Nov 27 06:14 hash

 

Software/Hardware Version

 

NM 3.1 and above

Ticket Number

Attachments

    Outcomes