dbox
dbox copied to clipboard
Unable to clone my dropbox folders
Authorized the app as described in the readme, I tried to clone Public folder from my dropbox I get this error: xbian@xbian ~ $ dbox clone Public[INFO] Encountered a dropbox error. Sleeping 3s and trying again. Error: #<DropboxError: Path '/Public' not found>[INFO] Headers: {"server"=>["nginx"], "date"=>["Tue, 03 Feb 2015 21:18:56 GMT"], "content-type"=>["application/json"], "transfer-encoding"=>["chunked"], "connection"=>["close"]}
This happens for every folder on my dropbox. Any idea?
Sorry, I can't re-create this issue. I tried cloning a fresh folder, and it worked for me. Perhaps there was a hiccup in the API on Dropbox's end? What version of dbox are you using? gem list|grep dbox shows 0.8.2 for me.
On 03/feb/2015 23:12 "Ken Pratt" [email protected] wrote:
Sorry, I can't re-create this issue. I tried cloning a fresh folder, and it worked for me. Perhaps there was a hiccup in the API on Dropbox's end? What version of dbox are you using? gem list|grep dbox shows 0.8.2 for me.
Same here. Should I try to create another app and do the authentication again?
I just tried again with a brand new app, and it worked for me. Here are the options I selected when creating the app:

It may work with other sets of options, but I'm not sure which ones. They've added quite a lot to their API since dbox was created.
I'll try tonight, thanks.
On Wed, Feb 4, 2015 at 12:02 AM, Ken Pratt [email protected] wrote:
It may work with other sets of options, but I'm not sure which ones. They've added quite a lot to their API since dbox was created.
— Reply to this email directly or view it on GitHub https://github.com/kenpratt/dbox/issues/8#issuecomment-72755101.
Problem solved, I created a new app and now it's working. But it works only if I put the constants before the dbox command, I put all 4 constants in my .bashrc, logged out, logged in, echoed constant and it's there as expected, but if I run dbox without putting constants before the call I get an error message that tells me to set the environment variable. I'm using xbian on my RPI. Any idea?
Another question: how does clone works? It downloads the folder, but it I delete it and then I sync the folder will be deleted also on Dropbox?
Glad to hear it's working for you. That's odd about the environment variables, perhaps there's something odd about the terminal or Ruby installation.
If you clone and then delete the local folder, it won't delete anything remotely, as long as you're deleting the top-level folder that you cloned. If you delete things inside that folder, they'll be removed.
If you do want to delete a remote folder, there's a dbox command for that: dbox delete foldername