You are not logged in.
Pages: 1
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
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
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)
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
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
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
Pages: 1