hevelius / files_external_onedrive

:mega: :floppy_disk: External storage support for Microsoft OneDrive
GNU General Public License v2.0
72 stars 21 forks source link

Could not extract app files_external_onedrive #7

Closed lukemin closed 5 years ago

lukemin commented 5 years ago

[settings] Error: Exception: Could not extract app files_external_onedrive at <>

  1. /www/wwwroot/mysite/settings/Controller/AppSettingsController.php line 444 OC\Installer->downloadApp("files_external_onedrive")
  2. /www/wwwroot/mysite/lib/private/AppFramework/Http/Dispatcher.php line 166 OC\Settings\Controller\AppSettingsController->enableApps(["files_external_onedrive"], [])
  3. /www/wwwroot/mysite/lib/private/AppFramework/Http/Dispatcher.php line 99 OC\AppFramework\Http\Dispatcher->executeController(OC\Settings\Cont ... {}, "enableApps")
  4. /www/wwwroot/mysite/lib/private/AppFramework/App.php line 126 OC\AppFramework\Http\Dispatcher->dispatch(OC\Settings\Cont ... {}, "enableApps")
  5. /www/wwwroot/mysite/lib/private/AppFramework/Routing/RouteActionHandler.php line 47 OC\AppFramework\App::main("OC\Settings\C ... r", "enableApps", OC\AppFramework\ ... {}, {_route: "settin ... "})
  6. <> OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "settin ... "})
  7. /www/wwwroot/mysite/lib/private/Route/Router.php line 297 undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {_route: "settin ... "})
  8. /www/wwwroot/mysite/lib/base.php line 975 OC\Route\Router->match("/settings/apps/enable")
  9. /www/wwwroot/mysite/index.php line 42 OC::handleRequest()

POST /index.php/settings/apps/enable

hevelius commented 5 years ago

Could you give me more informations like NC version, OS, DB engine used .... ?

lukemin commented 5 years ago

Storage Users: 1

Files: 93

Storages: 2

Free Space: 27.6 GB

Nextcloud Version: 16.0.4.1

Apps installed: 39

Apps updates available: 0

PHP Version: 7.2.21

Memory Limit: 512 MB

Max Execution Time: 3600

Upload max size: 1 GB

Database Type: mysql

Version: 5.7.27

Size: 1.4 MB

hevelius commented 5 years ago

Seems to be a problem with your NC installation... Maybe a folder permissions issue... Try to check and fix your permissions accordingly or configure Nextcloud properly.

lukemin commented 5 years ago

but files_external_gdrive is ok

lukemin commented 5 years ago

First Error log `[index] Error: OCP\Files\NotPermittedException: Could not create folder at <>

  1. /www/wwwroot/mysite/lib/private/Files/AppData/AppData.php line 155 OC\Files\Node\Folder->newFolder("0")
  2. /www/wwwroot/mysite/apps/theming/lib/ImageManager.php line 155 OC\Files\AppData\AppData->newFolder("0")
  3. /www/wwwroot/mysite/apps/theming/lib/ImageManager.php line 170 OCA\Theming\ImageManager->getCacheFolder()
  4. /www/wwwroot/mysite/apps/theming/lib/Controller/IconController.php line 87 OCA\Theming\ImageManager->getCachedImage("icon-core-filetypes_video.svg")
  5. /www/wwwroot/mysite/lib/private/AppFramework/Http/Dispatcher.php line 166 OCA\Theming\Controller\IconController->getThemedIcon("core", "filetypes/video.svg")
  6. /www/wwwroot/mysite/lib/private/AppFramework/Http/Dispatcher.php line 99 OC\AppFramework\Http\Dispatcher->executeController(OCA\Theming\Controller\IconController {}, "getThemedIcon")
  7. /www/wwwroot/mysite/lib/private/AppFramework/App.php line 126 OC\AppFramework\Http\Dispatcher->dispatch(OCA\Theming\Controller\IconController {}, "getThemedIcon")
  8. /www/wwwroot/mysite/lib/private/AppFramework/Routing/RouteActionHandler.php line 47 OC\AppFramework\App::main("OCA\Theming\C ... r", "getThemedIcon", OC\AppFramework\ ... {}, {app: "core",ima ... "})
  9. <> OC\AppFramework\Routing\RouteActionHandler->__invoke({app: "core",ima ... "})
  10. /www/wwwroot/mysite/lib/private/Route/Router.php line 297 undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {app: "core",ima ... "})
    1. /www/wwwroot/mysite/lib/base.php line 975 OC\Route\Router->match("/apps/theming/i ... g")
    2. /www/wwwroot/mysite/index.php line 42 OC::handleRequest()

GET /index.php/apps/theming/img/core/filetypes/video.svg?v=0`

hevelius commented 5 years ago

@lukemin I have installed your same versions for NC and MySql and I had no problems and no errors logs occurred. Your OS?

lukemin commented 5 years ago

centos 7

solracsf commented 5 years ago

I'm having this error too with only this app, any other app installs fine.

Exception: Could not extract app files_external_onedrive
1. /home/nextcloud/settings/Controller/AppSettingsController.php - line 444:
OC\Installer->downloadApp("files_external_onedrive")
2. /home/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 166:
OC\Settings\Controller\AppSettingsController->enableApps([ "files_external_onedrive"], [])
3. /home/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:
OC\AppFramework\Http\Dispatcher->executeController(OC\Settings\ ... {}, "enableApps")
4. /home/nextcloud/lib/private/AppFramework/App.php - line 126:
OC\AppFramework\Http\Dispatcher->dispatch(OC\Settings\ ... {}, "enableApps")
OC\AppFramework\App::main("OC\\Setting ... r", "enableApps", OC\AppFramew ... {}, { _route: "s ... "})
5. <<closure>>
OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "s ... "})
6. /home/nextcloud/lib/private/Route/Router.php - line 297:
call_user_func(OC\AppFramew ... {}, { _route: "s ... "})
7. /home/nextcloud/lib/base.php - line 975:
OC\Route\Router->match("/settings/apps/enable")
8. /home/nextcloud/index.php - line 42:
OC::handleRequest()
solracsf commented 5 years ago

FYI, it installs trough the command line:

./occ app:install files_external_onedrive
files_external_onedrive installed
files_external_onedrive enabled
lukemin commented 5 years ago

./occ app:install files_external_onedrive

does not work for me!!

[root@instance-2 mysite]# sudo -u www php occ app:install files_external_onedrive Error: Could not extract app files_external_onedrive

lukemin commented 5 years ago

due to security reason, I disabled some functions. passthru | 删除 system | 删除 chroot | 删除 chgrp | 删除 chown | 删除 shell_exec | 删除 proc_open | 删除 ini_alter | 删除 ini_restore | 删除 dl | 删除 openlog | 删除 syslog | 删除 readlink | 删除 symlink | 删除 popepassthru| 删除 Which ones I should delete?

lukemin commented 5 years ago

manual installion log: Last login: Tue Sep 3 09:23:47 2019 from 112.250.108.111 [google@instance-2 ~]$ sudo su [root@instance-2 google]# git clone https://github.com/hevelius/files_external_onedrive Cloning into 'files_external_onedrive'... remote: Enumerating objects: 110, done. remote: Counting objects: 100% (110/110), done. remote: Compressing objects: 100% (88/88), done. remote: Total 627 (delta 50), reused 41 (delta 15), pack-reused 517 Receiving objects: 100% (627/627), 686.14 KiB | 313.00 KiB/s, done. Resolving deltas: 100% (346/346), done. [root@instance-2 google]# cd files_external_onedrive [root@instance-2 files_external_onedrive]# composer install Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/bin/composer self-update" to get the latest version. Do not run Composer as root/super user! See https://getcomposer.org/root for details Loading composer repositories with package information Updating dependencies (including require-dev) PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in phar:///usr/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 286

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in phar:///usr/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 286 ^C [root@instance-2 files_external_onedrive]# /bin/composer self-update Updating to version 1.9.0 (stable channel). Downloading (100%)
Use composer self-update --rollback to return to version e3a23c0047b462f1a443cdb56d3c310a9e4c3b37 [root@instance-2 files_external_onedrive]# composer install Do not run Composer as root/super user! See https://getcomposer.org/root for details Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 41 installs, 0 updates, 0 removals

lukemin commented 5 years ago

when I enable proc_open fuction, I got this: [root@instance-2 /]# git clone https://github.com/hevelius/files_external_onedrive Cloning into 'files_external_onedrive'... remote: Enumerating objects: 110, done. remote: Counting objects: 100% (110/110), done. remote: Compressing objects: 100% (88/88), done. remote: Total 627 (delta 50), reused 41 (delta 15), pack-reused 517 Receiving objects: 100% (627/627), 686.14 KiB | 313.00 KiB/s, done. Resolving deltas: 100% (346/346), done. [root@instance-2 /]# cd files_external_onedrive [root@instance-2 files_external_onedrive]# composer install Do not run Composer as root/super user! See https://getcomposer.org/root for details Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 41 installs, 0 updates, 0 removals

lukemin commented 5 years ago

I get the GREEN mark, but the app did not work at all: [lib] Error: Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'INSERT INTO oc_filecache (mimepart, mimetype, mtime, size, etag, storage_mtime, permissions, checksum, path_hash, path, parent, name, storage) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["1", "2", {"path":"hildren\/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, -1, "5d6e01a231711", {"path":"hildren\/","timestamp":false,"size":null,"bytes":null,"type":"dir","mimetype":null,"link":null}, 23, "", "d41d8cd98f00b204e9800998ecf8427e", "", -1, "", 5]:

SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'Array' for column 'mtime' at row 1 at <>

  1. /www/wwwroot/mysite/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 184 Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException("An exception oc ... 1", Doctrine\DBAL\Dr ... ]})
  2. /www/wwwroot/mysite/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php line 158 Doctrine\DBAL\DBALException::wrapException(Doctrine\DBAL\Driver\PDOMySql\Driver {}, Doctrine\DBAL\Dr ... ]}, "An exception oc ... 1")
  3. /www/wwwroot/mysite/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php line 1088 Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Doctrine\DBAL\Driver\PDOMySql\Driver {}, Doctrine\DBAL\Dr ... ]}, "INSERT INTO `oc ... )", {1: "1",2: "2",3 ... 5})
  4. /www/wwwroot/mysite/lib/private/DB/Connection.php line 216 Doctrine\DBAL\Connection->executeUpdate("INSERT INTO `oc ... )", ["1","2",{path: ... 5], [2,2,2,2,2,2,2,2,2,2,2,2,2])
  5. /www/wwwroot/mysite/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php line 222 OC\DB\Connection->executeUpdate("INSERT INTO `oc ... )", {dcValue1: "1",d ... 5}, {dcValue1: 2,dcV ... 2})
  6. /www/wwwroot/mysite/lib/private/DB/QueryBuilder/QueryBuilder.php line 214 Doctrine\DBAL\Query\QueryBuilder->execute()
  7. /www/wwwroot/mysite/lib/private/Files/Cache/Cache.php line 291 OC\DB\QueryBuilder\QueryBuilder->execute()
  8. /www/wwwroot/mysite/lib/private/Files/Cache/Wrapper/CacheWrapper.php line 128 OC\Files\Cache\Cache->insert("", {mimetype: "http ... "})
  9. /www/wwwroot/mysite/lib/private/Files/Cache/Wrapper/CacheWrapper.php line 114 OC\Files\Cache\Wrapper\CacheWrapper->insert("", {mimetype: "http ... "})
  10. /www/wwwroot/mysite/lib/private/Files/Cache/Scanner.php line 292 OC\Files\Cache\Wrapper\CacheWrapper->put("", {mimetype: "http ... "})
    1. /www/wwwroot/mysite/lib/private/Files/Cache/Scanner.php line 221 OC\Files\Cache\Scanner->addToCache("", {mimetype: "http ... "}, -1)
    2. /www/wwwroot/mysite/lib/private/Files/View.php line 1482 OC\Files\Cache\Scanner->scanFile("")
    3. /www/wwwroot/mysite/apps/dav/lib/Connector/Sabre/Directory.php line 265 OC\Files\View->getDirectoryContent("/")
    4. /www/wwwroot/mysite/apps/dav/lib/Connector/Sabre/TagsPlugin.php line 224 OCA\DAV\Connector\Sabre\Directory->getChildren()
    5. <> OCA\DAV\Connector\Sabre\TagsPlugin->handleGetProperties(Sabre\DAV\PropFind {}, OCA\DAV\Files\FilesHome {})
    6. /www/wwwroot/mysite/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105 undefinedundefinedcall_user_func_array([OCA\DAV\Connect ... "], [Sabre\DAV\PropF ... }])
    7. /www/wwwroot/mysite/3rdparty/sabre/dav/lib/DAV/Server.php line 1059 Sabre\Event\EventEmitter->emit("propFind", [Sabre\DAV\PropF ... }])
    8. /www/wwwroot/mysite/3rdparty/sabre/dav/lib/DAV/Server.php line 981 Sabre\DAV\Server->getPropertiesByNode(Sabre\DAV\PropFind {}, OCA\DAV\Files\FilesHome {})
    9. /www/wwwroot/mysite/3rdparty/sabre/dav/lib/DAV/Server.php line 1666 Sabre\DAV\Server->getPropertiesIteratorForPath("files/lukemin", ["{DAV:}getlastm ... "], 1)
    10. /www/wwwroot/mysite/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 355 Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
    11. <> Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
    12. /www/wwwroot/mysite/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105 undefinedundefinedcall_user_func_array([Sabre\DAV\CorePlugin {},"httpPropFind"], [Sabre\HTTP\Requ ... }])
    13. /www/wwwroot/mysite/3rdparty/sabre/dav/lib/DAV/Server.php line 479 Sabre\Event\EventEmitter->emit("method:PROPFIND", [Sabre\HTTP\Requ ... }])
    14. /www/wwwroot/mysite/3rdparty/sabre/dav/lib/DAV/Server.php line 254 Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
    15. /www/wwwroot/mysite/apps/dav/lib/Server.php line 316 Sabre\DAV\Server->exec()
    16. /www/wwwroot/mysite/apps/dav/appinfo/v2/remote.php line 35 OCA\DAV\Server->exec()
    17. /www/wwwroot/mysite/remote.php line 163 undefinedundefinedrequire_once("/www/wwwroot/n. ... p")

PROPFIND /remote.php/dav/files/lukemin/ from 112.250.108.111 by lukemin at 2019-09-03T06:01:06+00:00

solracsf commented 5 years ago

@lukemin there is already another thread about that other issue, not related with installation.

hevelius commented 5 years ago

@lukemin could you try latest release (v1.0.5)?

lukemin commented 5 years ago

The version of this app in nextcloud app store is still V1.0.4.

hevelius commented 5 years ago

The version of this app in nextcloud app store is still V1.0.4.

In my NC installations (15 and 16) the version is 1.0.5. The version on https://apps.nextcloud.com/apps/files_external_onedrive is 1.0.5

lukemin commented 5 years ago

Cause I have installed V1.0.4 manually, It did not show the newer version. After I removed V1.0.4,but V1.0.5 still did not work. 1568273784(1)

lukemin commented 5 years ago

[settings] Error: Exception: Could not extract app files_external_onedrive at <>

  1. /www/wwwroot/mysite/settings/Controller/AppSettingsController.php line 444 OC\Installer->downloadApp("files_external_onedrive")
  2. /www/wwwroot/mysite/lib/private/AppFramework/Http/Dispatcher.php line 166 OC\Settings\Controller\AppSettingsController->enableApps(["files_external_onedrive"], [])
  3. /www/wwwroot/mysite/lib/private/AppFramework/Http/Dispatcher.php line 99 OC\AppFramework\Http\Dispatcher->executeController(OC\Settings\Cont ... {}, "enableApps")
  4. /www/wwwroot/mysite/lib/private/AppFramework/App.php line 126 OC\AppFramework\Http\Dispatcher->dispatch(OC\Settings\Cont ... {}, "enableApps")
  5. /www/wwwroot/mysite/lib/private/AppFramework/Routing/RouteActionHandler.php line 47 OC\AppFramework\App::main("OC\Settings\C ... r", "enableApps", OC\AppFramework\ ... {}, {_route: "settin ... "})
  6. <> OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "settin ... "})
  7. /www/wwwroot/mysite/lib/private/Route/Router.php line 297 undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {_route: "settin ... "})
  8. /www/wwwroot/mysite/lib/base.php line 975 OC\Route\Router->match("/settings/apps/enable")
  9. /www/wwwroot/mysite/index.php line 42 OC::handleRequest()

POST /index.php/settings/apps/enable

hevelius commented 5 years ago

@lukemin there is already another thread about that other issue, not related with installation.

@lukemin I can't reproduce this issue with all my NC installation [14...16] with MySQL/MariaDB 5.5 and 10.x. I suppose it's an issue not releated with files_external_onedrive.

Releated issues: https://github.com/nextcloud/polls/issues/308 https://github.com/nextcloud/mail/issues/951