files_external_ipfs icon indicating copy to clipboard operation
files_external_ipfs copied to clipboard

Broke my server when I installed IPFS plug in

Open giorgosn opened this issue 5 years ago • 2 comments

I was browsing the apps and I saw that was a IPFS plug in and I give it a try. Saddly when I installed it something went really bad because I could not access the website. Very interested behavor. I would love to try and debug it but I do not know where to look. I was using Nextcloud 19 with docker implimitation.

giorgosn avatar Nov 10 '20 21:11 giorgosn

I broke my server too. I get a browser response "HTTP ERROR 500"

info nextcloud

name: nextcloud summary: Nextcloud Server - A safe home for all your data publisher: Nextcloud✓ store-url: https://snapcraft.io/nextcloud contact: https://github.com/nextcloud/nextcloud-snap license: unset description: | Where are your photos and documents? With Nextcloud you pick a server of your choice, at home, in a data center or at a provider. And that is where your files will be. Nextcloud runs on that server, protecting your data and giving you access from your desktop or mobile devices. Through Nextcloud you also access, sync and share your existing data on that FTP drive at school, a Dropbox or a NAS you have at home. commands:

  • nextcloud.disable-https
  • nextcloud.enable-https
  • nextcloud.export
  • nextcloud.import
  • nextcloud.manual-install
  • nextcloud.mysql-client
  • nextcloud.mysqldump
  • nextcloud.occ services: nextcloud.apache: simple, enabled, active nextcloud.logrotate: simple, disabled, inactive nextcloud.mdns-publisher: simple, enabled, active nextcloud.mysql: simple, enabled, active nextcloud.nextcloud-cron: simple, enabled, active nextcloud.nextcloud-fixer: simple, enabled, inactive nextcloud.php-fpm: simple, enabled, active nextcloud.redis-server: simple, enabled, active nextcloud.renew-certs: simple, enabled, active snap-id: njObIbGQEaVx1H4nyWxchk1i8opy4h54 tracking: latest/stable refresh-date: today at 12:14 UTC channels: latest/stable: 20.0.1snap1 2020-10-27 (24051) 286MB - latest/candidate: ↑
    latest/beta: 20.0.1snap1+git8.caa8a19 2020-11-28 (24637) 286MB - latest/edge: master-2020-11-28 2020-11-28 (24669) 296MB - 20/stable: 20.0.1snap1 2020-10-27 (24051) 286MB - 20/candidate: ↑
    20/beta: ↑
    20/edge: 20-2020-11-28 2020-11-28 (24671) 286MB - 19/stable: 19.0.4snap2 2020-10-26 (24018) 264MB - 19/candidate: ↑
    19/beta: 19.0.4snap2+git1.7697d54 2020-10-27 (24065) 264MB - 19/edge: 19-2020-11-28 2020-11-28 (24670) 265MB - 18/stable: 18.0.10snap1 2020-10-20 (23875) 263MB - 18/candidate: ↑
    18/beta: ↑
    18/edge: 18-2020-11-28 2020-11-28 (24660) 261MB - 17/stable: 17.0.10snap1 2020-10-23 (23903) 250MB - 17/candidate: ↑
    17/beta: ↑
    17/edge: ↑
    16/stable: 16.0.11snap1 2020-06-08 (21459) 225MB - 16/candidate: ↑
    16/beta: ↑
    16/edge: ↑
    15/stable: 15.0.14snap1 2020-01-20 (18374) 216MB - 15/candidate: ↑
    15/beta: ↑
    15/edge: ↑
    14/stable: 14.0.10snap1 2019-05-04 (13208) 202MB - 14/candidate: ↑
    14/beta: ↑
    14/edge: ↑
    13/stable: 13.0.12snap1 2019-05-03 (13155) 193MB - 13/candidate: ↑
    13/beta: ↑
    13/edge: ↑
    12/stable: 12.0.13snap1 2019-01-07 (10632) 206MB - 12/candidate: ↑
    12/beta: ↑
    12/edge: ↑
    11/stable: 11.0.8snap1 2018-05-10 (6942) 202MB - 11/candidate: ↑
    11/beta: ↑
    11/edge: ↑
    10/stable: 10.0.2snap1 2020-06-26 (388) 145MB - 10/candidate: ↑
    10/beta: ↑
    10/edge: ↑
    9/stable: 9.0.53snap4 2020-06-26 (105) 138MB - 9/candidate: ↑
    9/beta: ↑
    9/edge: ↑
    installed: 20.0.1snap1 (24051) 286MB -

cisco-kisko avatar Nov 28 '20 13:11 cisco-kisko

This seems to be the problem:

TypeError: Argument 1 passed to League\Flysystem\Filesystem::__construct() must be an instance of League\Flysystem\FilesystemAdapter, instance of OCA\Files_External_IPFS\Storage\Adapter given, called in lib/private/Files/Storage/Flysystem.php on line 57 ` lib/private/Files/Storage/Flysystem.php - line 57: League\Flysystem\Filesystem->__construct()

apps/files_external_ipfs/lib/Storage/IPFS.php - line 26:    OC\Files\Storage\Flysystem->buildFlySystem()

apps/files_external/lib/Config/ConfigAdapter.php - line 106:    OCA\Files_External_IPFS\Storage\IPFS->__construct()

apps/files_external/lib/Config/ConfigAdapter.php - line 133:    OCA\Files_External\Config\ConfigAdapter->constructStorage()

<<closure>>    OCA\Files_External\Config\ConfigAdapter->OCA\Files_External\Config\{closure}("*** sensiti ... *")

apps/files_external/lib/Config/ConfigAdapter.php - line 130:    array_map()

lib/private/Files/Config/MountProviderCollection.php - line 109:    OCA\Files_External\Config\ConfigAdapter->getMountsForUser()

lib/private/Files/Filesystem.php - line 452:    OC\Files\Config\MountProviderCollection->addMountForUser()

apps/files_sharing/lib/SharedStorage.php - line 129:    OC\Files\Filesystem::initMountPoints()

apps/files_sharing/lib/SharedStorage.php - line 488:    OCA\Files_Sharing\SharedStorage->init()

lib/private/Files/Storage/Wrapper/Wrapper.php - line 498:    OCA\Files_Sharing\SharedStorage->getWrapperStorage()

apps/files_sharing/lib/SharedStorage.php - line 169:    OC\Files\Storage\Wrapper\Wrapper->instanceOfStorage()

apps/groupquota/lib/AppInfo/Application.php - line 65:    OCA\Files_Sharing\SharedStorage->instanceOfStorage()

lib/private/Files/Storage/StorageFactory.php - line 101:    OCA\GroupQuota\AppInfo\Application->OCA\GroupQuota\AppInfo\{closure}("*** sensiti ... *")

lib/private/Files/Mount/MountPoint.php - line 150:   OC\Files\Storage\StorageFactory->wrap()

lib/private/Files/Mount/MountPoint.php - line 174:   OC\Files\Mount\MountPoint->createStorage()

lib/private/Files/View.php - line 1417:    OC\Files\Mount\MountPoint->getStorage()

<<closure>>    OC\Files\View->OC\Files\{closure}("*** sensiti ... *")

lib/private/Files/View.php - line 1419:    array_filter()

lib/private/Files/Node/Root.php - line 201:    OC\Files\View->getFileInfo()

lib/private/Files/Node/Root.php - line 382:    OC\Files\Node\Root->get()

<<closure>>    OC\Files\Node\Root->getUserFolder()

lib/private/Files/Node/LazyFolder.php - line 66:    call_user_func_array()

lib/private/Files/Node/LazyRoot.php - line 41:    OC\Files\Node\LazyFolder->__call()

lib/private/Server.php - line 1566:    OC\Files\Node\LazyRoot->getUserFolder()

apps/dav/lib/Server.php - line 265:    OC\Server->getUserFolder()

3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:    OCA\DAV\Server->OCA\DAV\{closure}("*** sensiti ... *")

3rdparty/sabre/dav/lib/DAV/Server.php - line 456:    Sabre\DAV\Server->emit()

3rdparty/sabre/dav/lib/DAV/Server.php - line 253:    Sabre\DAV\Server->invokeMethod()

3rdparty/sabre/dav/lib/DAV/Server.php - line 321:    Sabre\DAV\Server->start()

apps/dav/lib/Server.php - line 332:    Sabre\DAV\Server->exec()

apps/dav/appinfo/v2/remote.php - line 35:    OCA\DAV\Server->exec()

remote.php - line 167:    require_once("/var/www/vh ... p")

`

Easy fix for restoring server operations until bug is fixed:

occ app:disable files_external_ipfs

lgiedrius avatar Aug 25 '21 08:08 lgiedrius