Trying to install the app into Ubuntu 20.04 Nextcloud snap, 20.0.7snap1 and I'm told it couldn't extract the app.
I'm using Ubuntu 20.04, with Firefox 85.
Nextcloud log:
Error | settings | Exception:聽Could not extract app social/snap/nextcloud/26119/htdocs/apps/settings/lib/Controller/AppSettingsController.php - line 445: OCInstaller->downloadApp("social")/snap/nextcloud/26119/htdocs/lib/private/AppFramework/Http/Dispatcher.php - line 169: OCASettingsControllerAppSettingsController->enableApps([ "social"], [])/snap/nextcloud/26119/htdocs/lib/private/AppFramework/Http/Dispatcher.php - line 100: OCAppFrameworkHttpDispatcher->executeController(OCASettings ... {}, "enableApps")/snap/nextcloud/26119/htdocs/lib/private/AppFramework/App.php - line 152: OCAppFrameworkHttpDispatcher->dispatch(OCASettings ... {}, "enableApps")/snap/nextcloud/26119/htdocs/lib/private/Route/Router.php - line 309: OCAppFrameworkApp::main("OCA\Settin ... r", "enableApps", OCAppFramew ... {}, { _route: "s ... "})/snap/nextcloud/26119/htdocs/lib/base.php - line 1008: OCRouteRouter->match("/settings/apps/enable")/snap/nextcloud/26119/htdocs/index.php - line 37: OC::handleRequest()
-- | -- | --
End of section
I'm also seeing the same thing
Same issue here
Hi. I had same error too on Nextcloud 20.0.7 git. I avoided this error by following manual install.
cd apps
wget https://github.com/nextcloud/social/releases/download/v0.4.2/social-0.4.2.tar.gz
tar -xf apps/social-0.4.2.tar.gz
cd ..
php occ app:enable social
How would one do this if he uses the snap.
I have also this issue
`Exception: Could not extract app social
/var/www/nextcloud/apps/settings/lib/Controller/AppSettingsController.php - line 445:
OCInstaller->downloadApp()
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:
OCASettingsControllerAppSettingsController->enableApps()
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:
OCAppFrameworkHttpDispatcher->executeController()
/var/www/nextcloud/lib/private/AppFramework/App.php - line 152:
OCAppFrameworkHttpDispatcher->dispatch()
/var/www/nextcloud/lib/private/Route/Router.php - line 309:
OCAppFrameworkApp::main()
/var/www/nextcloud/lib/base.php - line 1008:
OCRouteRouter->match()
/var/www/nextcloud/index.php - line 37:
OC::handleRequest()`
I was able to correct this by increasing the memory_limit in php.ini file and then doing restart on php service.
systemctl status php7.4-fpm.service
Tried this after attempting to enable from cli with occ enable:app and getting the below error:
PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 405504 bytes) in /var/www/html/3rdparty/composer/autoload_real.php on line 35
same thing
Nextcloud version: 19.0.9 - 19.0.9.1
Betriebssystem: | Linux 4.15.0-112-generic x86_64
-- | --
Speicher: | 3.85 GB
RAM: Gesamt: 3,9 GB - Aktuelle Nutzung: 1,7 GB
Details:
Operating system: Linux 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64
Webserver: Apache (fpm-fcgi)
Database: mysql 10.1.47
PHP version: 7.2.24-0ubuntu0.18.04.7
also upd to NC 20.0.8 made it not better
The same issue happens on Ubuntu 20.04 arm64 on a RPi4 w/ 4 GiB RAM in a container.
# docker-compose exec -u 82 app sh
/var/www/html $ ./occ app:install social
Error: Could not extract app social: Out-of-path file extraction {/tmp/oc_tmp_GhfJMa-folder/social/vendor/bin/parallel-lint --> ../jakub-onderka/php-parallel-lint/parallel-lint}
Open files in apps/social/lib/Migration then replace data type start with Type:: to corresponding data type in database system.
Example I use mysql, so I replace Type::SMALLINT to 'smallint' and then enable the app
Fresh install of Nextcloud 21.0.1. Using directions at https://docs.nextcloud.com/server/21/admin_manual/installation/example_centos.html
I don't have an apps/social/... directory.
Command and output (run as webserver user):
bash-4.4$ ./occ app:enable social
Could not extract app social: Out-of-path file extraction {/tmp/oc_tmp_cJAY4b-folder/social/vendor/bin/parallel-lint --> ../jakub-onderka/php-parallel-lint/parallel-lint}
I get the same message if I try and do it through the web interface.
From nextcloud.log:
{
"reqId": "*****",
"level": 3,
"time": "2021-04-10T21:05:05+00:00",
"remoteAddr": "*****",
"user": "*****",
"app": "settings",
"method": "POST",
"url": "/index.php/settings/apps/enable",
"message": {
"Exception": "Exception",
"Message": "Could not extract app social: Out-of-path file extraction {/tmp/oc_tmp_zuSR5S-folder/social/vendor/bin/parallel-lint --> ../jakub-onderka/php-parallel-lint/parallel-lint}",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/nextcloud/apps/settings/lib/Controller/AppSettingsController.php",
"line": 445,
"function": "downloadApp",
"class": "OC\\Installer",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 218,
"function": "enableApps",
"class": "OCA\\Settings\\Controller\\AppSettingsController",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 127,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/AppFramework/App.php",
"line": 157,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/html/nextcloud/lib/base.php",
"line": 993,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/html/nextcloud/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/html/nextcloud/lib/private/Installer.php",
"Line": 328,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0",
"version": "21.0.1.1"
}
This is on up-to-date CentOS Stream, mariadb 10.3.27, apache 2.4.37 and php 7.4.16. Let me know if there's other information I can get that might be helpful.
Thanks,
Fresh install of Nextcloud 21.0.1. Using directions at https://docs.nextcloud.com/server/21/admin_manual/installation/example_centos.html
I don't have an apps/social/... directory.
Command and output (run as webserver user):
bash-4.4$ ./occ app:enable social Could not extract app social: Out-of-path file extraction >This is on up-to-date CentOS Stream, mariadb 10.3.27, apache 2.4.37 and php 7.4.16. Let me know if there's other information I can get that might be helpful.
Thanks,
cd apps
wget https://github.com/nextcloud/social/releases/download/v0.4.2/social-0.4.2.tar.gz
tar -xf apps/social-0.4.2.tar.gz
cd ..
php occ app:enable social
```
Open files in apps/social/lib/Migration then replace data type start with Type:: to corresponding data type in database system.
Example I use mysql, so I replace Type::SMALLINT to 'smallint' and then enable the app
Open files in apps/social/lib/Migration then replace data type start with Type:: to corresponding data type in database system.
Example I use mysql, so I replace Type::SMALLINT to 'smallint' and then enable the app
Hi, can you please provide screen shots or be more specific how to do that, or copy the file and post it here.
I`m a newbiee and I caught my ears in this. Thank you
Open files in apps/social/lib/Migration then replace data type start with Type:: to corresponding data type in database system.
Example I use mysql, so I replace Type::SMALLINT to 'smallint' and then enable the appHi, can you please provide screen shots or be more specific how to do that, or copy the file and post it here.
I`m a newbiee and I caught my ears in this. Thank you
I uses mysql
social.zip
Open files in apps/social/lib/Migration then replace data type start with Type:: to corresponding data type in database system.
Example I use mysql, so I replace Type::SMALLINT to 'smallint' and then enable the appHi, can you please provide screen shots or be more specific how to do that, or copy the file and post it here.
I`m a newbiee and I caught my ears in this. Thank you
I uses mysql
social.zip
thank you, but folder "lib" is empty that for folder with the important files aka migrate is missing too.
Please share, thank you!
Open files in apps/social/lib/Migration then replace data type start with Type:: to corresponding data type in database system.
Example I use mysql, so I replace Type::SMALLINT to 'smallint' and then enable the appHi, can you please provide screen shots or be more specific how to do that, or copy the file and post it here.
I`m a newbiee and I caught my ears in this. Thank you
I uses mysql
social.zip
your zip arhive have empty folders and some of the folder are missing with all the files.
Thank you, Now please tell me how do you solve this:
".well-known/webfinger isn't properly set up!
Social needs the .well-known automatic discovery to be properly set up. If Nextcloud is not installed in the root of the domain, it is often the case that Nextcloud can't configure this automatically. To use Social, the admin of this Nextcloud instance needs to manually configure the .well-known"?
Hello,
I have the same error. With nextcloud 20.0.8 it said that the package could be extracted.
I updated the 21.0.1 and now I also have this error:
~
Error: Could not extract app social: Out-of-path file extraction {/tmp/oc_tmp_NCSybc-folder/social/vendor/bin/parallel-lint --> ../jakub-onderka/php-parallel-lint/parallel-lint}
~
Edit:
Social version is 0.4.2
the logs:
~
{
"reqId": "",
"level": 3,
"time": "2021-04-14T15:33:07+00:00",
"remoteAddr": """,",
"user": ""*",",
"app": "settings",
"method": "POST",
"url": "/settings/apps/enable",
"message": {
"Exception": "Exception",
"Message": "Could not extract app social: Out-of-path file extraction {/tmp/oc_tmp_HBhqtr-folder/social/vendor/bin/parallel-lint --> ../jakub-onderka/php-parallel-lint/parallel-lint}",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/nextcloud/apps/settings/lib/Controller/AppSettingsController.php",
"line": 445,
"function": "downloadApp",
"class": "OC\Installer",
"type": "->",
"args": [
"social"
]
},
{
"file": "/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 218,
"function": "enableApps",
"class": "OCA\Settings\Controller\AppSettingsController",
"type": "->",
"args": [
[
"social"
],
[]
]
},
{
"file": "/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 127,
"function": "executeController",
"class": "OC\AppFramework\Http\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\Settings\Controller\AppSettingsController"
},
"enableApps"
]
},
{
"file": "/var/www/html/nextcloud/lib/private/AppFramework/App.php",
"line": 157,
"function": "dispatch",
"class": "OC\AppFramework\Http\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\Settings\Controller\AppSettingsController"
},
"enableApps"
]
},
{
"file": "/var/www/html/nextcloud/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\AppFramework\App",
"type": "::",
"args": [
"OCA\Settings\Controller\AppSettingsController",
"enableApps",
{
"__class__": "OC\AppFramework\DependencyInjection\DIContainer"
},
{
"_route": "settings.AppSettings.enableApps"
}
]
},
{
"file": "/var/www/html/nextcloud/lib/base.php",
"line": 993,
"function": "match",
"class": "OC\Route\Router",
"type": "->",
"args": [
"/settings/apps/enable"
]
},
{
"file": "/var/www/html/nextcloud/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/var/www/html/nextcloud/lib/private/Installer.php",
"Line": 328,
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0",
"version": "21.0.1.1"
}
~
I guess the matter is not resolved, this is very annoying, I need social just to eliminate those nextcloud 21 webfinger and nodeinfo errors
+
Again on a fresh install of NC21, received same error while attempting to install via UI and occ. This is on Debian 10/PHP 7.4. Even tried deploying the social app manually:
```
~/nextcloud$ php occ app:enable social
An unhandled exception has been thrown:
Error: Undefined constant DoctrineDBALTypesType::TEXT in /var/www/nextcloud/apps/social/lib/Migration/Version0003Date20200611000001.php:228
Stack trace:
Again on a fresh install of NC21, received same error while attempting to install via UI and occ. This is on Debian 10/PHP 7.4. Even tried deploying the social app manually:
~/nextcloud$ php occ app:enable social An unhandled exception has been thrown: Error: Undefined constant Doctrine\DBAL\Types\Type::TEXT in /var/www/nextcloud/apps/social/lib/Migration/Version0003Date20200611000001.php:228 Stack trace: #0 /var/www/nextcloud/apps/social/lib/Migration/Version0003Date20200611000001.php(76): OCA\Social\Migration\Version0003Date20200611000001->createActors() #1 /var/www/nextcloud/lib/private/DB/MigrationService.php(455): OCA\Social\Migration\Version0003Date20200611000001->changeSchema() #2 /var/www/nextcloud/lib/private/DB/MigrationService.php(418): OC\DB\MigrationService->migrateSchemaOnly() #3 /var/www/nextcloud/lib/private/Installer.php(163): OC\DB\MigrationService->migrate() #4 /var/www/nextcloud/core/Command/App/Enable.php(123): OC\Installer->installApp() #5 /var/www/nextcloud/core/Command/App/Enable.php(93): OC\Core\Command\App\Enable->enableApp() #6 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\App\Enable->execute() #7 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run() #8 /var/www/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand() #9 /var/www/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun() #10 /var/www/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run() #11 /var/www/nextcloud/console.php(100): OC\Console\Application->run() #12 /var/www/nextcloud/occ(11): require_once('...') #13 {main}
I also attempted to perform a dev install using the instructions at https://github.com/nextcloud/social#development-setup and encountered the same issues again when attempting to enable the social app:
```~/nextcloud$ ./occ app:enable social
An unhandled exception has been thrown:
Error: Undefined constant DoctrineDBALTypesType::TEXT in /var/www/nextcloud/apps/social/lib/Migration/Version0003Date20200611000001.php:228
Stack trace:
it is clear this app have a lot of bugs
https://github.com/nextcloud/social/issues
Hi. I had same error too on Nextcloud 20.0.7 git. I avoided this error by following manual install.
cd apps wget https://github.com/nextcloud/social/releases/download/v0.4.2/social-0.4.2.tar.gz tar -xf apps/social-0.4.2.tar.gz cd .. php occ app:enable social
there is an apps/ to much in untar ;)
Open files in apps/social/lib/Migration then replace data type start with Type:: to corresponding data type in database system.
Example I use mysql, so I replace Type::SMALLINT to 'smallint' and then enable the app
Can you provide a patch?
Open files in apps/social/lib/Migration then replace data type start with Type:: to corresponding data type in database system.
Example I use mysql, so I replace Type::SMALLINT to 'smallint' and then enable the appCan you provide a patch?
Looks like its already fixed in #1249
I am experiencing the same issue.
error log file attached:
error-log-social-app-nc.txt
its on a webhosted instance from hoster netcup. on the system page of nc 20.0.9 it says the OS is Linux 4.9.0-12-amd64 x86_64.
php
Version: 7.4.18
Memory Limit: 512 MB
Max Execution Time: 3600
Upload max size: 128 MB
database
Type: mysql
Version: 5.7.33
Size: 11,7 MB
not sure though if it is really an app issue. I am not really a system admin. the whole installation is just for private use.
I can confirm that #1249 does appear to fix the issue. I was able to pull and apply a patch file and enable the app.
The process that I followed:
git apply < 1249.patch./occ app:enable socialI hope that helps someone who just can't wait for the commit.
Thanks @philliml74 for your answer. I could also solve this by manually downloading the app and then extract it into the apps folder. As my ssh knowledge is pretty zero, I could handle everything with the ftp client, webhoster file app within plesk and nextcloud webinterface.
Most helpful comment
social.zip