You are not logged in.

#1 2011-11-04 16:33:04

geo909
Member
Registered: 2008-09-07
Posts: 309

[SOLVED] Dropbox "connecting" forever

Dear all,

I run a minimal setup with the dwm window manager. I have made a command line install of dropbox
as presented here:
http://wiki.dropbox.com/TipsAndTricks/T … nuxInstall

My problem is the following: if I turn on the laptop without connecting to the internet, then obviously dropbox
cannot connect. However if I establish connection later, dropbox will still be unable to connect. If I place the
mouse over the tray icon, it will just say "Connecting.." but it will never eventually connect.

The exact issue is addressed in the arch wiki, however the solution presented there does not work for me,
I always get the same results from dropbox:
https://wiki.archlinux.org/index.php/Dropbox#Connecting...

Do you have any ideas or hints about how I could fix this problem?

Many thanks in advance!

Last edited by geo909 (2011-11-04 18:57:24)

Offline

#2 2011-11-04 16:41:58

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: [SOLVED] Dropbox "connecting" forever

What about just trying to stop and restart the dropbox daemon :

pkill dropbox
dropboxd &

You could put that in a simple bash alias.


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#3 2011-11-04 16:43:54

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: [SOLVED] Dropbox "connecting" forever

Start dropbox AFTER getting internet conection

or restart dropbox when you get the connection

You could use the dropbox-cli package for that

Last edited by ethail (2011-11-04 16:44:25)


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#4 2011-11-04 17:11:51

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: [SOLVED] Dropbox "connecting" forever

I didn't know about the dropbox-cli package! It seems to be easy to write a script checking
the status and reconnecting if needed.. I will try to do that later and will post it if it works..

Thanks a lot!

Offline

#5 2011-11-04 18:25:07

geo909
Member
Registered: 2008-09-07
Posts: 309

Re: [SOLVED] Dropbox "connecting" forever

Solved! I wrote this script that I execute from .xinitrc. Whenever dropbox is hung and there is
a connection, it restarts it.

 #!/bin/bash

# While there is a connection, the script checks every 60 secs if 
# the dropbox status is "Dropbox isn't running" or "Connecting",
# and if so, it reconnects the service. Could start from .xinitrc.

while true; do
	ping -c 1 www.google.com 1>/dev/null 2>/dev/null
	if [ "$?" = 0 ]; then
		dropbox status | egrep 'isn|Connecting'>null
		if [ "$?" = 0 ]; then
			dropbox stop
			dropbox start
		fi
 	fi
	sleep 2
done

Last edited by geo909 (2011-11-04 18:25:25)

Offline

Board footer

Powered by FluxBB