photo / frontend

The official @github repository of the Trovebox frontend software. A photo sharing and photo management web interface for data stored "in the cloud" (i.e. Amazon S3, Rackspace CloudFiles, Google Storage).
https://trovebox.com
Apache License 2.0
1.38k stars 244 forks source link

changing set up from local+dropbox to local fails if dropbox unauthed #685

Open michielbdejong opened 12 years ago

michielbdejong commented 12 years ago

to replicate:

[Fri May 04 12:30:36 2012] [error] [client 87.149.175.161] {severity:crit, description:"Call to getMetaData failed during initialize.", additional:{file:/var/www/openphoto/src/libraries/external/Dropbox/OAuth/PHP.php, line:72, message:"Invalid auth/bad request (got a 401, expected HTTP/1.1 20X or a redirect)", trace:"#0 /var/www/openphoto/src/libraries/external/Dropbox/OAuth/PHP.php(72): OAuth->fetch('https://api.dro...', Array, 'GET', Array)\n#1 /var/www/openphoto/src/libraries/external/Dropbox/API.php(312): Dropbox_OAuth_PHP->fetch('https://api.dro...', Array)\n#2 /var/www/openphoto/src/libraries/adapters/FileSystemDropboxBase.php(75): Dropbox_API->getMetaData('remoteStorage-d...')\n#3 /var/www/openphoto/src/libraries/adapters/FileSystemLocalDropbox.php(93): FileSystemDropboxBase->initialize(true)\n#4 /var/www/openphoto/src/libraries/controllers/SetupController.php(590): FileSystemLocalDropbox->initialize(true)\n#5 [internal function]: SetupController->setup3Post()\n#6 /var/www/openphoto/src/libraries/external/epi/EpiRoute.php(112): call_user_func_array(Array, Array)\n#7 /var/www/openphoto/src/html/index.php(32): EpiRoute->run()\n#8 {main}"}}, referer: http://openphoto.unhosted.org/setup/3?edit

apparently if it comes from local+dropbox, it will try to auth to dropbox during the setup process

michielbdejong commented 12 years ago

btw, it will even fail if you try to restore local+dropbox. but i found a work-around: remove /var/www/openphoto/src/userdata/configs/host.ini and rerun setup from scratch, choosing a (different) table prefix in the mysql step.