icewind1991/files_external_dropbox

App cannot be enabled with message "Error: This app can not be enabled because it makes the server unstable"

Closed this issue · 5 comments

I compiled the app and if I try to enable it I get this message while trying to enable the app on 12.0.3 beta:

{"reqId":"DAKDN7VPQY0vLZaens74","level":3,"time":"2017-10-10T22:09:31+00:00","remoteAddr":"1.1.1.1","user":"admin","app":"PHP","method":"GET","url":"\/index.php\/apps\/files","message":"Interface 'OCA\\Files_External\\Lib\\Config\\IBackendProvider' not found at \/var\/www\/nextcloud\/apps\/files_external_dropbox\/lib\/AppInfo\/Application.php#33","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:52.9) Gecko\/20100101 Firefox\/52.9","version":"12.0.3.3"}

Did you run composer install from the app directory?

I was using make to build it. Here is the log:

files_external_dropbox# make
mkdir build
cd build && curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading...

Composer (version 1.5.2) successfully installed to: /var/www/nextcloud/apps/files_external_dropbox/build/composer.phar                                                                                                                                                                                                      
Use it: php composer.phar

php build/composer.phar install --dev
Do not run Composer as root/super user! See https://getcomposer.org/root for details
You are using the deprecated option "dev". Dev packages are installed by default now.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 10 installs, 0 updates, 0 removals
  - Installing react/promise (v2.5.1): Downloading (100%)         
  - Installing guzzlehttp/streams (3.0.0): Downloading (100%)         
  - Installing guzzlehttp/ringphp (1.1.0): Downloading (100%)         
  - Installing league/flysystem (1.0.41): Downloading (100%)         
  - Installing tightenco/collect (v5.5.13): Downloading (100%)         
  - Installing psr/http-message (1.0.1): Downloading (100%)         
  - Installing guzzlehttp/psr7 (1.4.2): Downloading (100%)         
  - Installing guzzlehttp/guzzle (5.3.1): Downloading (100%)         
  - Installing kunalvarma05/dropbox-php-sdk (dev-guzzle5 72399fa): Cloning 72399fa041
  - Installing hemant-mann/flysystem-dropbox (dev-guzzle5 9534e14): Cloning 9534e14a2e
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
Generating autoload files

i enabled it with occ app:enable files_external_dropbox and it go enabled. This leads to a blank page because the message/problem shown above still shows up in the logs if I try to access the web interface of Nextcloud. So it seems that occ doesn't do the necessary checks for this app and enables it while it is still broken.

It works now, this app has files_external as a hard dependency but it isn't mentioned anywhere and it hard fails if this app is not enabled.

@icewind1991 Please add the requirement for files_external which has to be enabled before this app can be used.

I get

files_external_dropbox not found

on Nextcloud 12.0.3