[Pkg-owncloud-maintainers] get ownCloud external_storage:Dropbox working

Frank Rust frust at iti.cs.tu-bs.de
Fri Nov 21 13:32:45 UTC 2014


Dear package maintainers: 
I just filed following issue to owncloud but I think it is more a debian
packaging problem:
(see https://github.com/owncloud/core/issues/12355)

Best regards,
Frank

PROBLEM:
Unable to activate Dropbox external storage. Always error message
"Fetching request tokens failed. Verify that your Dropbox app key and
secret are correct."
App code and secret correct and verified. CA certs are valid and
up-to-date.


Solution:

remove debian package php-dropbox and install files and folders 
(/usr/share/owncloud/) apps/files_external/3rdparty/Dropbox 
from git instead. 
Modify apps/files_external/lib/dropbox.php and external/ajax/dropbox.php
to contain 
require_once __DIR__.'/../3rdparty/Dropbox/autoload.php';
instead of the relative path. (This is a relevant difference between
debian package and git)



Steps to reproduce

     1. debian system (sid)
     2. install apache, php, (and minimum additional: php-dropbox )
     3. install owncloud 7 
     4. follow steps to activate a Dropbox external 

Expected behaviour

external_files Dropbox should work



Actual behaviour

It is not possible to activate a Dropbox synchronization



Server configuration

Operating system: Linux Debian (tested on sid)

Web server: apache 2.4.10, php5.6.3

Database: mysql -5.5

PHP version: php5.6.3
packages: (php5-oauth php-dropbox)

ownCloud version: 7.x (any of them until 7.03)

Updated from an older ownCloud or fresh install: updated via package
manager of debian 

List of activated apps:
external storage

The content of config/config.php:


$CONFIG = array (
  'instanceid' => '52667b4537971',
  'passwordsalt' => 'xx',
  'datadirectory' => '/usr/share/owncloud/data',
  'dbtype' => 'mysql',
  'version' => '7.0.3.4',
  'appstoreenabled' => false,
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/usr/share/owncloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
  ),
  'dbname' => 'owncloud',
  'dbhost' => '127.0.0.1',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'owncloud',
  'dbpassword' => 'xx',
  'installed' => true,
  'forcessl' => true,
  'ldapIgnoreNamingRules' => false,
  'theme' => '',
  'maintenance' => false,
  'has_internet_connection' => true,
  'overwritewebroot' => '/owncloud',
  'trusted_domains' =>
  array (
    0 => 'test.domain.de',
  ),
  'loglevel' => '2',
  'share_folder' => '/Shared',
)


Are you using external storage, if yes which one: dropbox sftp

Are you using encryption: no



Client configuration

Browser: firefox 31

Operating system: linux 



Logs

Web server error log

no relevant entries

ownCloud log (data/owncloud.log)

nothing relevant to this problem:
{"app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set '
always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2014-11-21T07:31:59+00:00"}
{"app":"core","message":"Login failed: 'cdef9bbc-f432-1031-884f-39f7c9039ff7' (Remote IP: '134.169.203.17', X-Forwarded-For: '')","level":2,"time":"201
4-11-21T07:41:59+00:00"}
{"app":"core","message":"Login failed: 'cdef9bbc-f432-1031-884f-39f7c9039ff7' (Remote IP: '134.169.203.17', X-Forwarded-For: '')","level":2,"time":"201
4-11-21T07:47:53+00:00"}
{"app":"core","message":"Login failed: 'cdef9bbc-f432-1031-884f-39f7c9039ff7' (Remote IP: '134.169.203.17', X-Forwarded-For: '')","level":2,"time":"201
4-11-21T07:47:54+00:00"}
{"app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set '
always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2014-11-21T07:47:54+00:00"}
{"app":"core","message":"Login failed: 'cdef9bbc-f432-1031-884f-39f7c9039ff7' (Remote IP: '134.169.203.17', X-Forwarded-For: '')","level":2,"time":"201
4-11-21T07:47:54+00:00"}
{"app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set '
always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2014-11-21T07:47:54+00:00"}
{"app":"core","message":"Login failed: 'cdef9bbc-f432-1031-884f-39f7c9039ff7' (Remote IP: '134.169.203.17', X-Forwarded-For: '')","level":2,"time":"201
4-11-21T07:47:55+00:00"}
{"app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set '
always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2014-11-21T07:47:55+00:00"}
{"app":"core","message":"Login failed: 'cdef9bbc-f432-1031-884f-39f7c9039ff7' (Remote IP: '134.169.203.17', X-Forwarded-For: '')","level":2,"time":"201
4-11-21T08:05:27+00:00"}
{"app":"core","message":"Login failed: 'cdef9bbc-f432-1031-884f-39f7c9039ff7' (Remote IP: '134.169.203.17', X-Forwarded-For: '')","level":2,"time":"201
4-11-21T08:05:28+00:00"}
{"app":"PHP","message":"Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set '
always_populate_raw_post_data' to '-1' in php.ini and use the php:\/\/input stream instead. at Unknown#0","level":3,"time":"2014-11-21T08:05:28+00:00"}
{"app":"core","message":"Login failed: 'cdef9bbc-f432-1031-884f-39f7c9039ff7' (Remote IP: '134.169.203.17', X-Forwarded-For: '')","level":2,"time":"201
4-11-21T08:05:28+00:00"}

Browser log

nothing relevant to this problem


        
        
        Lukas Reschke
        
        Collaborator 
        
        LukasReschke commented an hour ago 
        As far I can see you're using packages by the Debian
        maintainers. Those are unsupported by us, if you cannot
        experience this bug with the official packages available via
        http://owncloud.org/install/#instructions-packages I'm going to
        close this issue and ask you to get touch with the Debian
        maintainers.
        
        


-- 
------------------------------------------------------------------------
Frank Rust                          Institut für Theoretische Informatik
Fon: 0531 3919525                    Technische Universität Braunschweig
Fax: 0531 3919529                              Mühlenpfordtstrasse 22-23
Mail: f.rust at tu-braunschweig.de                     D-38106 Braunschweig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-owncloud-maintainers/attachments/20141121/4d7c83fd/attachment.html>


More information about the Pkg-owncloud-maintainers mailing list