justicenode / files_external_ipfs

Nextcloud App to add ipfs external storage support
GNU Affero General Public License v3.0
67 stars 9 forks source link

Broke my server when I installed IPFS plug in #8

Open giorgosn opened 3 years ago

giorgosn commented 3 years ago

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.

cisco-kisko commented 3 years ago

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:

lgiedrius commented 3 years ago

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