Plugin install or update error
Asked by gun:

An error occurs when installing or updating a plugin.

Looking at the logs, it seems that there is a problem with the path when unzipping the resource.

The following is the log contents.

```
2020-03-25 11:09:32,991 ERROR [UpmAsynchronousTaskManager:thread-4] [plugin.util.zip.FileUnzipper] saveEntry Error extracting a file to '/opt/atlassian/confluence/temp/obr-4583567693178700945plugin.6064729325875724076.drawio-confluence-plugin-9.2.9.obr/META-INF/MANIFEST.MF'. This destination is invalid for writing an extracted file stream to.
-- url: /conf/rest/plugins/1.0/ | referer: https://<mydomain>/conf/plugins/servlet/upm/marketplace/search?q=drawio | traceId: 7c8206d52353eada | userName: user1
2020-03-25 11:09:32,993 ERROR [UpmAsynchronousTaskManager:thread-4] [plugin.util.zip.FileUnzipper] saveEntry Error extracting a file to '/opt/atlassian/confluence/temp/obr-4583567693178700945plugin.6064729325875724076.drawio-confluence-plugin-9.2.9.obr/dependencies/confluence-extractor-api-plugin-1.0.1.jar'. This destination is invalid for writing an extracted file stream to.
-- url: /conf/rest/plugins/1.0/ | referer: https://<mydomain>/conf/plugins/servlet/upm/marketplace/search?q=drawio | traceId: 7c8206d52353eada | userName: user1
2020-03-25 11:09:32,994 ERROR [UpmAsynchronousTaskManager:thread-4] [plugin.util.zip.FileUnzipper] saveEntry Error extracting a file to '/opt/atlassian/confluence/temp/obr-4583567693178700945plugin.6064729325875724076.drawio-confluence-plugin-9.2.9.obr/dependencies/lucene-compat-plugin-1.1.1.jar'. This destination is invalid for writing an extracted file stream to.
-- url: /conf/rest/plugins/1.0/ | referer: https://<mydomain>/conf/plugins/servlet/upm/marketplace/search?q=drawio | traceId: 7c8206d52353eada | userName: user1
2020-03-25 11:09:32,996 ERROR [UpmAsynchronousTaskManager:thread-4] [plugin.util.zip.FileUnzipper] saveEntry Error extracting a file to '/opt/atlassian/confluence/temp/obr-4583567693178700945plugin.6064729325875724076.drawio-confluence-plugin-9.2.9.obr/drawio-confluence-plugin-9.2.9.jar'. This destination is invalid for writing an extracted file stream to.
-- url: /conf/rest/plugins/1.0/ | referer: https://<mydomain>/conf/plugins/servlet/upm/marketplace/search?q=drawio | traceId: 7c8206d52353eada | userName: user1
2020-03-25 11:09:33,159 ERROR [UpmAsynchronousTaskManager:thread-4] [plugin.util.zip.FileUnzipper] saveEntry Error extracting a file to '/opt/atlassian/confluence/temp/obr-4583567693178700945plugin.6064729325875724076.drawio-confluence-plugin-9.2.9.obr/obr.xml'. This destination is invalid for writing an extracted file stream to.
-- url: /conf/rest/plugins/1.0/ | referer: https://<mydomain>/conf/plugins/servlet/upm/marketplace/search?q=drawio | traceId: 7c8206d52353eada | userName: user1
2020-03-25 11:09:33,350 WARN [UpmAsynchronousTaskManager:thread-4] [upm.core.install.DefaultPluginInstallationService] execute Plugin installation failed: Failed to install OBR jar artifact
-- url: /conf/rest/plugins/1.0/ | referer: https://<mydomain>/conf/plugins/servlet/upm/marketplace/search?q=drawio | traceId: 7c8206d52353eada | userName: user1
2020-03-25 11:09:33,350 WARN [UpmAsynchronousTaskManager:thread-4] [upm.core.install.DefaultPluginInstallationService] execute com.atlassian.upm.spi.PluginInstallException: Failed to install OBR jar artifact
-- url: /conf/rest/plugins/1.0/ | referer: https://<mydomain>/conf/plugins/servlet/upm/marketplace/search?q=drawio | traceId: 7c8206d52353eada | userName: user1
com.atlassian.upm.spi.PluginInstallException: Failed to install OBR jar artifact
at com.atlassian.upm.core.install.ObrPluginInstallHandler.installPluginInternal(ObrPluginInstallHandler.java:188)
at com.atlassian.upm.core.install.AbstractPluginInstallHandler.installPlugin(AbstractPluginInstallHandler.java:60)
at com.atlassian.upm.core.install.DefaultPluginInstallationService.execute(DefaultPluginInstallationService.java:129)
at com.atlassian.upm.core.install.DefaultPluginInstallationService.install(DefaultPluginInstallationService.java:97)
at com.atlassian.upm.install.UpmPluginInstallationService.install(UpmPluginInstallationService.java:117)
at com.atlassian.upm.core.rest.resources.install.InstallTask.installFromFile(InstallTask.java:156)
at com.atlassian.upm.core.rest.resources.install.InstallFromUriTask$1.apply(InstallFromUriTask.java:56)
at com.atlassian.upm.core.rest.resources.install.InstallFromUriTask$1.apply(InstallFromUriTask.java:47)
at com.atlassian.upm.api.util.Either$Right.fold(Either.java:173)
at com.atlassian.upm.core.rest.resources.install.InstallFromUriTask.executeTask(InstallFromUriTask.java:46)
at com.atlassian.upm.core.rest.resources.install.InstallTask.run(InstallTask.java:81)
at com.atlassian.upm.core.async.AsynchronousTaskManager.executeTask(AsynchronousTaskManager.java:124)
at com.atlassian.upm.core.async.AsynchronousTaskManager$1.call(AsynchronousTaskManager.java:102)
at com.atlassian.upm.core.async.AsynchronousTaskManager$1.call(AsynchronousTaskManager.java:99)
at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:38)
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84)
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68)
at com.atlassian.confluence.vcache.VCacheRequestContextOperations.lambda$withRequestContext$1(VCacheRequestContextOperations.java:59)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.FileNotFoundException: /opt/atlassian/confluence/temp/obr-4583567693178700945plugin.6064729325875724076.drawio-confluence-plugin-9.2.9.obr/obr.xml (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:184)
at org.apache.felix.bundlerepository.RepositoryImpl.parseRepositoryFile(RepositoryImpl.java:220)
at org.apache.felix.bundlerepository.RepositoryImpl.access$000(RepositoryImpl.java:44)
at org.apache.felix.bundlerepository.RepositoryImpl$1.run(RepositoryImpl.java:75)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.apache.felix.bundlerepository.RepositoryImpl.<init>(RepositoryImpl.java:71)
at org.apache.felix.bundlerepository.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:86)
at org.apache.felix.bundlerepository.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:73)
at com.atlassian.upm.core.install.ObrPluginInstallHandler.installPluginInternal(ObrPluginInstallHandler.java:141)
... 21 more
```

In addition, the list of files in the temporary directory is as follows.

```
root@bf93449e6d78:/opt/atlassian/confluence/temp# ls -al
total 306816
drwxr-xr-x 1 confluence confluence 4096 Mar 25 02:09 .
drwxr-xr-x 1 root root 4096 Mar 23 04:27 ..
-rw-r----- 1 confluence confluence 50783747 Mar 25 02:08 3.1.0-master-0f086db5.jar
-rw-r----- 1 confluence confluence 26333855 Mar 25 01:36 plugin.1199694452573633501.drawio-confluence-plugin-9.2.9.obr
-rw-r----- 1 confluence confluence 26333855 Mar 25 01:36 plugin.12701517416251143313.drawio-confluence-plugin-9.2.9.obr
-rw-r----- 1 confluence confluence 26333855 Mar 25 01:36 plugin.12985815745261083941.drawio-confluence-plugin-9.2.9.obr
-rw-r----- 1 confluence confluence 26333855 Mar 25 01:46 plugin.4037547433048531800.drawio-confluence-plugin-9.2.9.obr
-rw-r----- 1 confluence confluence 26333855 Mar 25 01:36 plugin.4300210602073581131.drawio-confluence-plugin-9.2.9.obr
-rw-r----- 1 confluence confluence 26333855 Mar 25 01:36 plugin.4854140471770610878.drawio-confluence-plugin-9.2.9.obr
-rw-r----- 1 confluence confluence 26333855 Mar 25 02:09 plugin.6064729325875724076.drawio-confluence-plugin-9.2.9.obr
-rw-r----- 1 confluence confluence 26333855 Mar 25 01:54 plugin.6655596334661104690.drawio-confluence-plugin-9.2.9.obr
-rw-r----- 1 confluence confluence 26333855 Mar 25 01:46 plugin.6838854010483372501.drawio-confluence-plugin-9.2.9.obr
-rw-r----- 1 confluence confluence 26333855 Mar 25 01:36 plugin.8961702063249123102.drawio-confluence-plugin-9.2.9.obr
-rw-r--r-- 1 confluence confluence 0 Oct 7 10:58 safeToDelete.tmp
-rw-r----- 1 confluence confluence 3 Mar 25 02:08 synchrony.pid
root@bf93449e6d78:/opt/atlassian/confluence/temp#
```

I think it's pointing to the wrong path to the .obr file, but searching the community didn't find a similar problem.

I'm having problems after updating Confluence to 7.3.3 today.

In previous versions (7.3.2) there was no problem.

I look forward to hearing from you.

Thank you.


Answers:
author: gun
body: I found the cause of this problem myself.

I was running confluence on the docker, which was caused by the docker's storage being full.

Freeing up docker storage and restarting the container solved this problem.

However, the log output doesn't seem to be friendly.

Looking at the file path in the log contents, it seems that '/' is missing, but I am not sure if it is the correct path.

```
[plugin.util.zip.FileUnzipper] saveEntry Error extracting a file to '/opt/atlassian/confluence/temp/obr-4583567693178700945plugin.6064729325875724076.drawio-confluence-plugin-9.2.9.obr/META-INF/MANIFEST.MF'.
```

Anyway, the problem was solved!