Announcements
Known issues updated. Learn more

default

no

Couldn't start Dropbox. (Ubuntu server)

Explorer | Level 3

Hello everyone.

I'm trying to install Dropbox on a headless Ubuntu, and when I run

sudo ~/.dropbox-dist/dropboxd 

I get the following error:

dropbox: locating interpreter
dropbox: logging to /tmp/dropbox-antifreeze-wraD7H
dropbox: initializing
dropbox: initializing python 3.7.2
dropbox: setting program path '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/dropbox'
dropbox: setting home path '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136'
dropbox: setting python path '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136:/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/python-packages-37.zip'
dropbox: python initialized
dropbox: running dropbox
dropbox: setting args
dropbox: applying overrides
dropbox: running main script
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/cryptography.hazmat.bindings._constant_time.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/cryptography.hazmat.bindings._openssl.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/cryptography.hazmat.bindings._padding.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/psutil._psutil_linux.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/psutil._psutil_posix.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/linuxffi.pthread._linuxffi_pthread.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/cpuid.compiled._cpuid.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/dbxlog._dbxlog.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/linuxffi.resolv.compiled._linuxffi_resolv.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/tornado.speedups.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/linuxffi.gnu.compiled._linuxffi_gnu.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/linuxffi.sys.compiled._linuxffi_sys.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/librsyncffi.compiled._librsyncffi.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/posixffi.libc._posixffi_libc.cpython-37m-x86_64-linux-gnu.so'
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_errorsyut6fcy.txt

The .txt file reads as follows:

bn.BUILD_KEY: Dropbox
bn.VERSION: 72.4.136
bn.DROPBOXEXT_VERSION: failed
bn.is_frozen: True
machine_id: 3ae68f78-3207-4a38-b8ae-1aafeac2e196
pid: 12003
ppid: 12002
ppid exe: '/usr/bin/sudo'
uid: 0
user_info: pwd.struct_passwd(pw_name='root', pw_passwd='x', pw_uid=0, pw_gid=0, pw_gecos='root', pw_dir='/root', pw_shell='/bin/bash')
effective_user_info: pwd.struct_passwd(pw_name='root', pw_passwd='x', pw_uid=0, pw_gid=0, pw_gecos='root', pw_dir='/root', pw_shell='/bin/bash')
euid: 0
gid: 0
egid: 0
group_info: grp.struct_group(gr_name='root', gr_passwd='x', gr_gid=0, gr_mem=[])
effective_group_info: grp.struct_group(gr_name='root', gr_passwd='x', gr_gid=0, gr_mem=[])
LD_LIBRARY_PATH: None
cwd: '/home/rodrigo/Dropbox'
     real_path='/home/rodrigo/Dropbox'
                mode=0o40700    uid=1001        gid=1002
     parent     mode=0o40755    uid=1001        gid=1002
HOME: '/home/rodrigo'
appdata: '/home/rodrigo/.dropbox/instance1'
         real_path='/home/rodrigo/.dropbox/instance1'
                mode=0o40700    uid=1001        gid=1002
         parent mode=0o40775    uid=1001        gid=1002
dropbox_path: '/home/rodrigo/Dropbox'
              real_path='/home/rodrigo/Dropbox'
                        mode=0o40700    uid=1001        gid=1002
              parent    mode=0o40755    uid=1001        gid=1002
sys_executable: '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/dropbox'
                real_path='/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/dropbox'
                        mode=0o100755   uid=1001        gid=1002
                parent  mode=0o40755    uid=1001        gid=1002
trace.__file__: '/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/python-packages-37.zip/dropbox/client/ui/common/boot_error.pyc'
                real_path='/home/rodrigo/.dropbox-dist/dropbox-lnx.x86_64-72.4.136/python-packages-37.zip/dropbox/client/ui/common/boot_error.pyc'
                        not found
                parent  not found
tempdir: '/tmp'
         real_path='/tmp'
                mode=0o41777    uid=0   gid=0
         parent mode=0o40755    uid=0   gid=0
Traceback (most recent call last):
  File "dropbox/client/main.pyc", line 767, in wrapper
  File "dropbox/client/main.pyc", line 6130, in finish_dropbox_boot
  File "dropbox/client/main.pyc", line 5676, in _init_components_for_account
  File "dropbox/sync_engine_boundary/factory.pyc", line 310, in make_sync_engine
  File "dropbox/sync_engine/sync_engine.pyc", line 1202, in __init__
  File "dropbox/event.pyc", line 318, in start
  File "psutil/__init__.pyc", line 1937, in virtual_memory
  File "psutil/_pslinux.pyc", line 415, in virtual_memory
ValueError: invalid literal for int() with base 10: b'kB'

Any hints on how to proceed?

 

Thanks!

10 Replies

Re: Couldn't start Dropbox. (Ubuntu server)

Dropboxer
Hey @rtargino, I’m wondering if you’ve tried to install our desktop application following the steps outlined here. If so, then I would recommend removing sudo, as it looks like this is triggering the permissions error. If you have an existing Dropbox folder, please follow the steps outlined here to wipe permissions & start anew. 
 
Alternatively, if you haven’t installed Dropbox previously on this machine, you could check the instructions outlined here to add Dropbox to your Linux repository. 
 
Please have a look at my recommendations at your earliest convenience & let me know how you get on with my advice or if I’ve misunderstood your question in any way on our discussion here. Thanks & enjoy the rest of your day until we talk again! 

 


Jane
Community Moderator @ Dropbox
https://dropbox.com/support


 


Heart Did this post help you? If so please give it a Like below. 
White check mark Did this post fix your issue/answer your question? If so please press the 'Accept as Best Answer' button to help others find it.
Arrows Counter Clock Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

Reply
Loading...

Re: Couldn't start Dropbox. (Ubuntu server)

Explorer | Level 3

Hi @Jane, thanks for the quick response.

I did follow the exact instructions, both with and without the sudo and the error log is exactly the same...

Reply
Loading...

Re: Couldn't start Dropbox. (Ubuntu server)

Dropboxer
Hey @rtargino, thanks for looping back to me with this update! I’d recommend running an advanced reinstall as the best next step. Once you get a chance to get going with that, please do let me know of the outcome here & I’ll do my best to follow-up with you. Thanks again! 

 


Jane
Community Moderator @ Dropbox
https://dropbox.com/support


 


Heart Did this post help you? If so please give it a Like below. 
White check mark Did this post fix your issue/answer your question? If so please press the 'Accept as Best Answer' button to help others find it.
Arrows Counter Clock Still stuck? Ask me a question! (
Questions asked in the community will likely receive an answer within 4 hours!)

Reply
Loading...

Re: Couldn't start Dropbox. (Ubuntu server)

Star Collaborator | Level 17

Hi @rtargino,

Bad choice to run the Dropbox daemon in root mode using 'sudo'. This is user mode application and don't need any more privileges. Even more, any new file created (if any) will be owned by the root, which is usually a problem!

To overcome any erroneously change ownership You can try following:

sudo chown -R rodrigo:rodrigo ~/Dropbox
sudo chown -R rodrigo:rodrigo ~/.dropbox

The above will guarantee that at least problematic 'foreign' files and folders will not exist. I will also agree with the advice to install the debian package (in first replay), which will give You even more options. Again, never use sudo to start the user daemon (doesn't matter how)!

Wish You luck!

Reply
Loading...

Re: Couldn't start Dropbox. (Ubuntu server)

Explorer | Level 3

@Здравко, thanks for the heads up regarding the sudo. slightly smiling face

Indeed, I first tried to install the client without the sudo! And got the same error message...

I've already tried to change the ownership of all the files as you suggested, but got back to my first problem: the installation, even without the sudo, returns the same error message...

:(

Reply
Loading...

Re: Couldn't start Dropbox. (Ubuntu server)

Star Collaborator | Level 17

I suppose we talk about different things (terminology). You talk that You are trying to 'install' the Dropbox using '~/.dropbox-dist/dropboxd'. Am I right? In fact this is not an installation! In such a way You actually launch Dropbox daemon (suppose already installed). Just to clarify.

Actual daemon installation could be done in two ways. By hands, with extracting downloaded archive (I suppose You did so, according You told above) or on first launch installed dropbox script using the debian package (I would advise using this way).

You say that using sudo or not the result is the same. Are You sure? Are 'uid', 'euid', 'gid', 'egid' same, all together zeros? They don't have to be! Would be really strange.

Reply
Loading...
Highlighted

Re: Couldn't start Dropbox. (Ubuntu server)

Explorer | Level 3

@Здравко, thanks for helping me out on this!

Yes, it sounds like we are talking about different things... 

All I did was to follow the instructions in here. I run

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -

then 

~/.dropbox-dist/dropboxd

and got the error I reported... Is there anything else I should do before the first step?

Below are the values of the variables you asked:

UID --- 1001

EUID -- 1001

GID --- (empty)

EGID -- (empty)

Thanks!

Reply
Loading...

Re: Couldn't start Dropbox. (Ubuntu server)

Star Collaborator | Level 17

Hi @rtargino,

Yes, You confirm my supposion from my previous post, about the installation way You used (first code block). It's little bit strange that 'gid' and 'egid' are emty. According to Your initial post it's normal they to be 1002. It's difficult figuring out the real reason, according the available info till now. May be in this context the best is everything to be reinstalled. I will make some more supposions.

Probably this is first installation and there are no other installed Dropbox components on the system. In the same order there are few or no data in the Dropbox folder. Also You haven't changed any application settings and they are all by default.

If there is something in the Dropbox folder which need to be preserved and same info is still not upload to Dropbox server, move data to other place temporary. Remove everything You installed or was automatically created using following commands:

rm -rf ~/Dropbox
rm -rf ~/.dropbox-dist
rm -rf ~/.dropbox

Now everything is cleared and new installation could start from beginning:

wget "https://linux.dropbox.com/packages/ubuntu/dropbox_2019.02.14_amd64.deb"
sudo dpkg -i ./dropbox_2019.02.14_amd64.deb
rm ./dropbox_2019.02.14_amd64.deb

The above will install different components, one of them the dropbox command (controlling script in fact). Here the repositories are not set, if You want You can do this in addition. The available functionalities of dropbox command could be seen using 'dropbox help'. Start and stop the service could be done using corresponding command accordingly. At that moment the daemon is not installed still. To do so first launch should end with '-i' (i.e. install).

dropbox start -i

After that 'dropbox start' is enough. Even if You forgot it, result will be prompting to do so. At that moment You should be ready. The only place where 'sudo' is need is 'dpkg' launch!

You shouldn't do anything noted here if some of my supposion is not true!!! In such case note what's wrong and clarify the... reality.

Reply
Loading...

Re: Couldn't start Dropbox. (Ubuntu server)

Explorer | Level 3

@Здравко, thanks for being helpful on this.

I've finnaly worked around this problem with the help of the IT support. Instead of using a virtual machine with Ubuntu, they ended up deliverying me a machine with Windows Server 2019, which can natively run Ubuntu. So, instead of installing the Dropbox app directly on the Ubuntu container we installed it on Windows. Then I just map this folder to the Linux environment. Works like a charm! winking face

 

Reply
Loading...
Installation and Desktop App Issues

Have a question? Our Dropbox Community is here to help!

Post your question or search for an answer below.


Learn more about using the Community by reading our Community Guidelines.


Hi anonymous,

If you need more help you can log a ticket with our Support Team here (expected response time 24 hours), or contact us on Twitter or Facebook.

For more info on available support options, see this article.

If you found the answer to your question, please 'like' the post to say thanks to the user!

Couldn't start Dropbox. (Ubuntu server)
486 Views
10 Replies
1 Like