Search code examples
linuxdropboxdropbox-api

Dropbox_uploader - can't upload


I've read a bunch of dropbox_uploader posts out there and can't get this going.. I've created the app and ran the script to install the uploader app (https://github.com/andreafabrizi/Dropbox-Uploader) on my linux server. I run the 'info' and it all seems to be the way it's supposed to be. However, whenever I upload a file, like:

/usr/bin/dropbox.sh -f /home/.dropbox_uploader upload "/home/mydomain/public_html/smallfile.zip" "/smallfile.zip"

.. it looks like it's uploading, after which I get:

FAILED An error occurred requesting /upload 

What am I missing? (As far as I know settings/permissions on the server are correct...)


Solution

  • Several things were done to solve this, so I'll just share all of them here:

    1. Permissions weren't set right when the application was installed. Files had to be set to 644, while they were 600 at the time of installation. Not sure why this happened, but this has to be fixed.
    2. Unlinked installation, started all the way over and set permissions (during setup) to "f", because last time I had "a" and it didn't work. This had no impact whatsoever. In the process of getting this stuff to work, I unlinked and reinstalled several times, making sure that I have "f" permissions, just to avoid any unnecessary quirks.
    3. I could get it to work on the command line in SSH logged in as root, but not as the user when I ran the script from a domain. It would constantly ask me for the setup information again, even though I had filled this all in. Fix for this: edit the .sh file and set the path to the configuration file in there. (making it 'hard', not variable) Now it didn't ask me for the information anymore, but gave me the '/upload' error.
    4. Found out that I had to set permissions inside my server's control panel for running shell scripts to 'normal' instead of 'jailed' or 'disabled'. Apparently it was 'jailed'

    Running the script (the way it was intended) is now a breeze and works flawlessly. I hope the info above will help people out that get stuck with this thing..