Describe the bug
When installing the Bookmarks app from my hosted Nextcloud, I get to see this error message
Could not extract app bookmarks
(I have been able to succesfully install some other apps afterwards, just to test the appstore is working)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Installation of the app.
Screenshots

Desktop (please complete the following information):
Server (please complete the following information):
$ sudo -u www-data php occ app:list in your command line]sudo -u www-data php occ config:list system]Additional context
I have been googling and I found some similar errors that suggested a corrupted tar, or invalid signature.
Web server error log
Nextcloud log (nextcloud/data/nextcloud.log)
{
"reqId": "**removed**",
"level": 3,
"time": "2020-10-16T11:46:33+00:00",
"remoteAddr": "**removed**",
"user": "robert",
"app": "settings",
"method": "POST",
"url": "/index.php/settings/apps/enable",
"message": {
"Exception": "Exception",
"Message": "Could not extract app bookmarks",
"Code": 0,
"Trace": [
{
"file": "/var/www/vhosts/**removed**/httpdocs/nextcloud/apps/settings/lib/Controller/AppSettingsController.php",
"line": 444,
"function": "downloadApp",
"class": "OC\\Installer",
"type": "->",
"args": [
"bookmarks"
]
},
{
"file": "/var/www/vhosts/**removed**/httpdocs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 170,
"function": "enableApps",
"class": "OCA\\Settings\\Controller\\AppSettingsController",
"type": "->",
"args": [
[
"bookmarks"
],
[]
]
},
{
"file": "/var/www/vhosts/**removed**/httpdocs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 100,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Settings\\Controller\\AppSettingsController"
},
"enableApps"
]
},
{
"file": "/var/www/vhosts/**removed**/httpdocs/nextcloud/lib/private/AppFramework/App.php",
"line": 137,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Settings\\Controller\\AppSettingsController"
},
"enableApps"
]
},
{
"file": "/var/www/vhosts/**removed**/httpdocs/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",
"line": 47,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Settings\\Controller\\AppSettingsController",
"enableApps",
{
"__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
},
{
"_route": "settings.AppSettings.enableApps"
}
]
},
{
"function": "__invoke",
"class": "OC\\AppFramework\\Routing\\RouteActionHandler",
"type": "->",
"args": [
{
"_route": "settings.AppSettings.enableApps"
}
]
},
{
"file": "/var/www/vhosts/**removed**/httpdocs/nextcloud/lib/private/Route/Router.php",
"line": 297,
"function": "call_user_func",
"args": [
{
"__class__": "OC\\AppFramework\\Routing\\RouteActionHandler"
},
{
"_route": "settings.AppSettings.enableApps"
}
]
},
{
"file": "/var/www/vhosts/**removed**/httpdocs/nextcloud/lib/base.php",
"line": 1011,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/settings/apps/enable"
]
},
{
"file": "/var/www/vhosts/**removed**/httpdocs/nextcloud/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/var/www/vhosts/**removed**/httpdocs/nextcloud/lib/private/Installer.php",
"Line": 295,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:81.0) Gecko/20100101 Firefox/81.0",
"version": "19.0.4.2",
"id": "**removed**"
}
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
Related to #1052?
My issues is regarding a new installation of the app, not an update.
My web host support has installed the app via OCC without issues, looks like the app store web interface is causing the issue.
@nextcloud/server-triage Any hints on why this might be happening?
https://github.com/nextcloud/server/issues/23482
https://github.com/nextcloud/server/issues/19674
https://github.com/nextcloud/server/issues/19061
https://github.com/nextcloud/deck/issues/2447
https://github.com/nextcloud/maps/issues/240
I don't think there is something to fix for app developers. A corrupted archive is something you could fix but that's not the case here as it works via occ.
The library used to extract the archive is not very talkative why something failed. True or False is the response. The report at deck was fixed by increasing the temporary disk space available.
thanks @kesselb in this case I'll close this.
What was the resolution of this issue? We are using a managed Nextcloud instance. Is there something that needs to be changed on the server?
There is no real resolution. I have a kind hosting provider that installs or updates broken apps for me. So far I needed help with bookmarks and news so it isn't specific to 1 single app.
It looks like the core team should ha e a look at this and provide more or better instructions how to release (updates to) apps that can be installed through the UI.
First thing should be more talkative error handling that helps app maintainers to troubleshoot.
@marcelklehr this may be a packaging-related issue. I got a support response from my Nextcloud hosting provider:
I think the problem is in the package of this app and Nextcloud can't extract it.
We had to pull it manually from their server and add it.
This is rare, but it did already happen before when the developer didn't properly pack the app.
Would you please consider re-opening this issue, so we can determine whether it is caused by the packaging setup?
I think the problem is in the package of this app and Nextcloud can't extract it.
The fact that some instances are able to install this (including my own prod instance) would disprove that theory.
@brylie see my comment https://github.com/nextcloud/bookmarks/issues/1052#issuecomment-712230676
The issue also occurs for the news app.
Your hosting company can apply https://github.com/nextcloud/server/pull/23608/files to have more details why extract fails. At least for install. To provide this information on app update (to the end user) is a bit more work. Administrators see the error response from the archive library also in the logs (with the above patch applied).
Thanks @kesselb. I will pass this on to our hosting company.
By the way, do we have any error logs related to the bookmarks app install failures?
I just tried upgrading to the 4.0 release, but got the same error. It would be good to know where the issue resides, e.g. if it is with packaging or something with Nextcloud.
The fact that some instances are able to install this (including my own prod instance) would disprove that theory.
It would be interesting to know the differences in environment with the success cases versus the failures. E.g. is this related to a PHP version/series? Is there a difference in versions of server components, such as PEAR libraries? Is package size a factor in some environments?
What is the packaging process for the bookmarks app? Are there similarities between the bookmarks and news app that might point to a common issue?
This is some of my system's information:




And this is the logging from trying the update from 3.4.4 to 3.4.6.
[core] Error: Exception: Could not extract app bookmarks at <<closure>>
0. /var/www/vhosts/**masked**/httpdocs/nextcloud/lib/private/Installer.php line 197
OC\Installer->downloadApp("*** sensitive parameter replaced ***")
1. /var/www/vhosts/**masked**/httpdocs/nextcloud/apps/settings/lib/Controller/AppSettingsController.php line 531
OC\Installer->updateAppstoreApp("*** sensitive parameters replaced ***")
2. /var/www/vhosts/**masked**/httpdocs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
OCA\Settings\Controller\AppSettingsController->updateApp("*** sensitive parameters replaced ***")
3. /var/www/vhosts/**masked**/httpdocs/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 100
OC\AppFramework\Http\Dispatcher->executeController(OCA\Settings\Con ... {}, "updateApp")
4. /var/www/vhosts/**masked**/httpdocs/nextcloud/lib/private/AppFramework/App.php line 137
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Settings\Con ... {}, "updateApp")
5. /var/www/vhosts/**masked**/httpdocs/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
OC\AppFramework\App::main("OCA\\Settings\\ ... r", "updateApp", OC\AppFramework\ ... {}, {appId: "*** sen ... "})
6. <<closure>>
OC\AppFramework\Routing\RouteActionHandler->__invoke({appId: "*** sen ... "})
7. /var/www/vhosts/**masked**/httpdocs/nextcloud/lib/private/Route/Router.php line 297
call_user_func(OC\AppFramework\ ... {}, {appId: "*** sen ... "})
8. /var/www/vhosts/**masked**/httpdocs/nextcloud/lib/base.php line 1011
OC\Route\Router->match("/settings/apps/update/bookmarks")
9. /var/www/vhosts/**masked**/httpdocs/nextcloud/index.php line 37
OC::handleRequest()
GET /settings/apps/update/bookmarks
from **masked** by **masked** at 2020-10-28T12:55:20+00:00
BTW. Since we're still discussing this issue, wouldn't it be wise to have @marcelklehr reopen it to prevent duplicates?
I'm not sure what has changed in the extension package but yesterday I was able to upgrade from 3.4.6 to 3.4.9 without issues. I will watch future updates and report back.