Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dropbox fails to start #11728

Closed
phunehehe opened this issue Dec 15, 2015 · 14 comments

Comments

@phunehehe
Copy link
Contributor

commented Dec 15, 2015

Couldn't start Dropbox.
This is usually because of a permissions error. Storing your home folder on a network share can also cause an error.

Get more help at https://www.dropbox.com/c/help/permissions_error

Please contact Dropbox support with the following info for help:

/tmp/dropbox_error9KrtSh.txt

The log file is https://gist.github.com/phunehehe/d9a053d156f5054aecc9

I suspect this has already been fixed in master, so I'm trying to reproduce, but downloading from https://dl.dropboxusercontent.com/u/17/dropbox-lnx.x86_64-3.12.4.tar.gz is taking a while. If it works, release-15.09...phunehehe:dropbox-15.09 might be the right thing to do. I'll be back when I get more info.

@phunehehe

This comment has been minimized.

Copy link
Contributor Author

commented Dec 15, 2015

Never mind my suspicion. Dropbox doesn't work from master either (same error). Any suggestion?

Pinging @ttuegel @bendlas since you guys seem to be somewhat involved with pkgs/applications/networking/dropbox/default.nix :)

@phunehehe phunehehe changed the title dropbox fails to start in release-15.09 dropbox fails to start Dec 15, 2015
@jagajaga

This comment has been minimized.

Copy link
Member

commented Dec 15, 2015

Works nice for me..

@phunehehe

This comment has been minimized.

Copy link
Contributor Author

commented Dec 15, 2015

@jagajaga do you use nixos or do you use standalone nixpkgs (I use standalone nixpkgs)?

@jagajaga

This comment has been minimized.

Copy link
Member

commented Dec 15, 2015

I use Nixos, but I use dropbox installed via nix-env.

@bendlas

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2015

@phunehehe your logfile says ImportError: libGL.so.1: cannot open shared object file: No such file or directory, coming from PyQT. You should be able to fix this, by adding the directory containing your libGL.so.1 to LD_LIBRARY_PATH

ping PyQT maintainers @svanderburg @iyzsong

  • why does PyQT unconditionally load libGL (I don't think dropbox ui uses it), can we get this fixed upstream?
  • can or should we do anything for nixpkgs users, with no libGL on their LD_LIBRARY_PATH?
@phunehehe

This comment has been minimized.

Copy link
Contributor Author

commented Dec 15, 2015

@bendlas thanks, I can confirm LD_LIBRARY_PATH=/home/phunehehe/.nix-profile/lib dropbox works! Am I supposed to add this LD_LIBRARY_PATH=/home/phunehehe/.nix-profile/lib thing to my shell profile though?

@bendlas

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2015

@phunehehe no, LD_LIBRARY_PATH overrides the system-builtin path and could lead to unforseen problems with programs installed from your regular system
For now, I'd recommend a wrapper in your bin folder:

#!/bin/sh
LD_LIBRARY_PATH=... exec dropbox "$@"
@bendlas

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2015

@phunehehe if there is a libGL installed on your system, but not found by nixpkgs' dropbox, you can add a LD_LIBRARY_PATH="/usr/lib/.." to you shell profile (which would only override system libs with themselves)

@phunehehe

This comment has been minimized.

Copy link
Contributor Author

commented Dec 15, 2015

@bendlas I prefer to keep stuff in Nix, so I'm not gonna pull the file in via the other system :) Had to install mesa to get it in my Nix profile though. Maybe the Dropbox package should provide this wrapper then? That's probably easy to make.

@cleverca22

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2015

under nixos, LD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib

which then contains the mesa(or closed-source variant) that best fits your xserver driver

@bendlas

This comment has been minimized.

Copy link
Contributor

commented Dec 15, 2015

@phunehehe I suppose that, since mesa is already a transitive dependency of dropbox (via qt), the wrapper could be updated. I think that this really should be fixed in (Py)QT, though.

bendlas added a commit to bendlas/nixpkgs that referenced this issue Dec 19, 2015
This fixes pyqt for cases where libGL is not on LD_LIBRARY_PATH, e.g. with
plain nixpkgs. fixes NixOS#11728
bendlas added a commit to bendlas/nixpkgs that referenced this issue Dec 19, 2015
This fixes pyqt for cases where libGL is not on LD_LIBRARY_PATH, e.g. with
plain nixpkgs. fixes NixOS#11728
@bendlas

This comment has been minimized.

Copy link
Contributor

commented Dec 19, 2015

@phunehehe I've updated the dropbox wrapper, to add libGL to the path.
stable: #11836
master: #11835

@jagajaga jagajaga closed this Dec 19, 2015
@phunehehe

This comment has been minimized.

Copy link
Contributor Author

commented Dec 20, 2015

Thanks @bendlas I'm updating right now!

@bendlas

This comment has been minimized.

Copy link
Contributor

commented Jan 21, 2016

heh, seem this thread is still being notified, when I rebase my patch queue. I'm dropping that commit now, since it's in stable. For master, this is fixed by 9f62af0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.