cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to make our Community work for you and we need your help. Take our short survey!
Close

Dropbox installs & integrations

Connect your tools and content together with help from the Dropbox Community. Join a discussion or post a question of your own to get started.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: QXcbConnection: Could not connect to display localhost:10.0

Highlighted

QXcbConnection: Could not connect to display localhost:10.0

Explorer | Level 4

Hi there,

 

Im trying to install dropbox in a headless linux (ubuntu 20.4) version. Im having tons of problems, being the latest ones:

 

 ~/.dropbox-dist/dropboxd
dropbox: locating interpreter
dropbox: logging to /tmp/dropbox-antifreeze-qnREkk
dropbox: initializing
dropbox: initializing python 3.7.5
dropbox: setting program path '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/dropbox'
dropbox: setting python path '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651:/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/python-packages.zip'
dropbox: python initialized
dropbox: running dropbox
dropbox: setting args
dropbox: applying overrides
dropbox: running main script
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/cryptography.hazmat.bindings._constant_time.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/cryptography.hazmat.bindings._openssl.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/cryptography.hazmat.bindings._padding.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/apex._apex.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/psutil._psutil_linux.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/psutil._psutil_posix.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/tornado.speedups.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/wrapt._wrappers.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/PyQt5.QtWidgets.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/PyQt5.QtCore.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/PyQt5.QtGui.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/PyQt5.QtNetwork.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/PyQt5.QtDBus.cpython-37m-x86_64-linux-gnu.so'

 

....And there it get stack. I would appreciate some help, thanks

 

 

 

3 Replies 3
Highlighted

Re: QXcbConnection: Could not connect to display localhost:10.0

Super Collaborator | Level 20

@Emocosmetica wrote:

....And there it get stack. ...


Hi @Emocosmetica,

That what you have posted seems pretty normal startup flow. Seems you have skipped just the most important part, that's carrying information of what's going wrong, if any. 🤔

By the way, it's always better use of control script to install and start the daemon. It gets automatically installed when you install cresponding package (deb or rpm - what is matching your distribution). The debian package in your case.

Highlighted

Re: QXcbConnection: Could not connect to display localhost:10.0

Explorer | Level 4

Hi there,

 

Yes, you´re right. The last problem is I can't get the daemon to stay up and running when the ssh connection is closed or the server is restarted. Every time I have to launch :

~/.dropbox-dist/dropboxd

 

@:~$ ~/.dropbox-dist/dropboxd
dropbox: locating interpreter
dropbox: logging to /tmp/dropbox-antifreeze-a9T2tR
dropbox: initializing
dropbox: initializing python 3.7.5
dropbox: setting program path '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/dropbox'
dropbox: setting python path '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651:/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/python-packages.zip'
dropbox: python initialized
dropbox: running dropbox
dropbox: setting args
dropbox: applying overrides
dropbox: running main script
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/cryptography.hazmat.bindings._constant_time.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/cryptography.hazmat.bindings._openssl.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/cryptography.hazmat.bindings._padding.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/apex._apex.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/psutil._psutil_linux.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/psutil._psutil_posix.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/tornado.speedups.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/wrapt._wrappers.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/PyQt5.QtWidgets.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/PyQt5.QtCore.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/PyQt5.QtGui.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/PyQt5.QtNetwork.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/admin/.dropbox-dist/dropbox-lnx.x86_64-105.4.651/PyQt5.QtDBus.cpython-37m-x86_64-linux-gnu.so'

Highlighted

Re: QXcbConnection: Could not connect to display localhost:10.0

Super Collaborator | Level 20

Hi,

Again, the log doesn't show anything wrong.


@Emocosmetica wrote:

... The last problem is I can't get the daemon to stay up and running when the ssh connection is closed or the server is restarted. ...


Probably you miss understanding that Dropbox application is user mode application! The same like a office package or messaging service (i.e. like any other user program). When a program lose the session (i.e. particular user, running the application, logs out or the system shuts down) execution terminates at that moment. That's exactly what happens when your "ssh connection is closed or the server is restarted". Dropbox doesn't support daemon's system mode work (I have no idea why), unfortunately. That's not a supported option currently. Of course you can make your own control scripts and use them to launch the Dropbox application in a persistent session. You can take an idea from other system services scripts, like such for MySQL, Apache, etc. (which could run both in user or system mode)

Hope this clarify matter.

 

Add: If you want, could give a vote to idea I just shared.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Need more support?