Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Loko
Creator II
Creator II

[resolved] "Error extracting kar file"

Hi
Our routes deployed correctly until today in Karaf, but we face an issue with a new route : when copying its .kar file in the .../container/deploy directory the bundle status is "failure" and we see this error in the log :
2017-02-01 09:54:33,729 | INFO  | container/deploy | eployer.kar.KarArtifactInstaller   75 | 27 - org.apache.karaf.deployer.kar - 4.0.7 | Found a .kar file to deploy.
2017-02-01 09:54:33,729 | INFO  | container/deploy | eployer.kar.KarArtifactInstaller   48 | 27 - org.apache.karaf.deployer.kar - 4.0.7 | Installing KAR file /opt/Runtime_ESBSE/container/deploy/NOTEDEFRAIS_FROMNOTILUSTOSAP_0.1.kar
2017-02-01 09:54:33,730 | ERROR | container/deploy | ?                                   ? | 4 - org.apache.felix.fileinstall - 3.5.4 | Failed to install artifact: /opt/Runtime_ESBSE/container/deploy/NOTEDEFRAIS_FROMNOTILUSTOSAP_0.1.kar
java.lang.RuntimeException: Error extracting kar file file:/opt/Runtime_ESBSE/container/deploy/NOTEDEFRAIS_FROMNOTILUSTOSAP_0.1.kar into dir /opt/Runtime_ESBSE/container/data/kar/NOTEDEFRAIS_FROMNOTILUSTOSAP_0.1: /opt/Runtime_ESBSE/container/data/kar/NOTEDEFRAIS_FROMNOTILUSTOSAP_0.1/tests_arnaud/NOTEDEFRAIS_FROMNOTILUSTOSAP/NOTEDEFRAIS_FROMNOTILUSTOSAP-feature/0.1/NOTEDEFRAIS_FROMNOTILUSTOSAP-feature-0.1.xml (Permission non accordée)
        at org.apache.karaf.kar.internal.Kar.extract(Kar.java:139)
        at org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:102)
        at org.apache.karaf.kar.internal.KarServiceImpl.install(KarServiceImpl.java:94)
        at org.apache.karaf.deployer.kar.KarArtifactInstaller.install(KarArtifactInstaller.java:50)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:937)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:871)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:485)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)
Caused by: java.io.FileNotFoundException: /opt/Runtime_ESBSE/container/data/kar/NOTEDEFRAIS_FROMNOTILUSTOSAP_0.1/tests_arnaud/NOTEDEFRAIS_FROMNOTILUSTOSAP/NOTEDEFRAIS_FROMNOTILUSTOSAP-feature/0.1/NOTEDEFRAIS_FROMNOTILUSTOSAP-feature-0.1.xml (Permission non accordée)
        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:162)
        at org.apache.karaf.kar.internal.Kar.extract(Kar.java:161)
        at org.apache.karaf.kar.internal.Kar.extract(Kar.java:121)
        ... 8 more

("permission non accordée" means "not allowed")
We can't understand the difference with the previous routes that deploy well. We're under Linux and the user of course has right on the deploy directory.
What's wrong with this route ?
Loko
Labels (4)
1 Solution

Accepted Solutions
Loko
Creator II
Creator II
Author

Hi Sabrina
We finally found the issue: for an unknown reason, the ../data dir had not the good rights, settings them back solved this issue
Arnaud

View solution in original post

2 Replies
Anonymous
Not applicable

Hi,
Are your studio and runtime at same version? On which build version you got this issue? Your new route is working well in studio?
Best regards
Sabrina
Loko
Creator II
Creator II
Author

Hi Sabrina
We finally found the issue: for an unknown reason, the ../data dir had not the good rights, settings them back solved this issue
Arnaud