andreafabrizi / Dropbox-Uploader

Dropbox Uploader is a BASH script which can be used to upload, download, list or delete files from Dropbox, an online file sharing, synchronization and backup service.
https://www.andreafabrizi.it/2016/01/01/Dropbox-Uploader/
GNU General Public License v3.0
6.56k stars 1.08k forks source link

Error: Couldn't connect to host. when trying to upload files #381

Open johanneskalt opened 7 years ago

johanneskalt commented 7 years ago

Hi Andrea,

I'm running in this issue that already had been discussed twice before:

When running the commands as follows over WiFi:

/home/pi/dropbox_uploader.sh upload /home/pi/directory/subdirectory subdirectory

a folder called subdirectory is created in my dropbox, but files in the folder are not uploaded.

I get this prompted:

> Creating Directory "/subdirectory/subdirectory"... DONE
 > Uploading "/home/pi/directory/subdirectory/filename.h264" to "/subdirectory/subdirectory/filename.h264"... 
Error: Couldn't connect to host.

I'm running on: Dropbox Uploader v1.0

PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian

Running it over Ethernet everything is working.

Do you have an idea where to search for a solution? - WiFi settings of my Raspberry Pi? Wifi settings of my WiFi access point?

johanneskalt commented 7 years ago

Resolved!

Hello again - having some more issues with other applications, too, I found this to resolve my problem:

sudo nano /etc/dhcpcd.conf

There I uncommented the two lines, static routers and static domain_name_servers and set a static IP for my RaspberryPi wlan0 interface:

interface wlan0
static ip=192.168.1.XXX
#static routers=192.168.1.XXX
#static domain_name_servers=192.168.1.XXX

Now Dropbox Uploader is doing it's wonderful job! Thanks for this great tool!

Found this solution here:

https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=147318&p=969717

looking for some help with setting up a weaved service.