Help with Automator and running 2 DropBox accounts

Discussion in 'Mac Apps and Mac App Store' started by honeycombz, Feb 18, 2016.

  1. honeycombz macrumors 6502

    honeycombz

    Joined:
    Jul 6, 2013
    #1
    Hello, my boot volume is an SSD but my home folder runs off another internal drive. I used to run everything on one drive and the following shell script would allow me to run two DropBox accounts... it no longer works. Thoughts?

    Code:
    bash
    HOME="$HOME/Dropbox-Second" nohup /Applications/Internet/Sharing/Dropbox.app/Contents/MacOS/Dropbox > /dev/null 2>&1 &
    
     
  2. 0d085d macrumors regular

    Joined:
    Apr 23, 2015
    #2
    This seems to work for me on 10.11.2 with Dropbox v3.14.7. In what way is it not working for you?
     
  3. honeycombz thread starter macrumors 6502

    honeycombz

    Joined:
    Jul 6, 2013
    #3
    It seems like it will start but it just spins the starting icon and never really starts.
     
  4. 0d085d macrumors regular

    Joined:
    Apr 23, 2015
    #4
    Try just running the following commands in Terminal and paste the output back here:

    Code:
    HOME="$HOME/Dropbox-Second"
    /Applications/Internet/Sharing/Dropbox.app/Contents/MacOS/Dropbox
    The original commands discard any output from Dropbox, which may be helpful in working out what's going on.
     
  5. honeycombz thread starter macrumors 6502

    honeycombz

    Joined:
    Jul 6, 2013
    #5
    Code:
    mod_SCNetworkReachabilityCallBack
    2016-02-23 14:08:24.984 Dropbox[2540:507] PyObjCPointer created: at 0x113d6f8d8 of type ^{OpaqueJSContext=}
    2016-02-23 14:08:25.643 Dropbox[2540:507] PyObjCPointer created: at 0x113d6f4d8 of type ^{OpaqueJSContext=}
    
    Then it just hangs on starting...
     
  6. 0d085d macrumors regular

    Joined:
    Apr 23, 2015
    #6
    Hmm, that doesn't help much. I take it your usual Dropbox folder is working fine?

    Have you tried deleting the Dropbox-Second/Dropbox folder and starting again ? If you can't do that, try the following (from https://www.dropbox.com/en/help/72):

    Code:
    sudo chflags -R nouchg ~/Dropbox-Second/Dropbox ~/Dropbox-Second/.dropbox
    sudo chown "$USER" "$HOME"
    sudo chown -R "$USER" ~/Dropbox-Second/Dropbox ~/Dropbox-Second/.dropbox
    sudo chmod -RN ~/Dropbox-Second/.dropbox ~/Dropbox-Second/Dropbox
    chmod -R u+rw ~/Dropbox-Second/Dropbox ~/Dropbox-Second/.dropbox
     
  7. honeycombz thread starter macrumors 6502

    honeycombz

    Joined:
    Jul 6, 2013
    #7
    Ok, progress... I deleted the folder, and re-added it and now I get a Couldn't start Dropbox error that says it is usually due to a permissions error with a link to this log file...

    Code:
    bn.BUILD_KEY: Dropbox
    bn.VERSION: 3.14.7
    bn.DROPBOXEXT_VERSION: failed
    bn.is_frozen: True
    pid: 6089
    ppid: 6085
    uid: 501
    user_info: pwd.struct_passwd(pw_name='XXXXXXXX', pw_passwd='XXXXXXXX', pw_uid=501, pw_gid=20, pw_gecos='MY NAME', pw_dir='/Volumes/MY_USER_DRIVE/Users/home', pw_shell='/bin/bash')
    effective_user_info: pwd.struct_passwd(pw_name='home', pw_passwd='********', pw_uid=501, pw_gid=20, pw_gecos='MY NAME', pw_dir='/Volumes/MY_USER_DRIVE/Users/home', pw_shell='/bin/bash')
    euid: 501
    gid: 20
    egid: 20
    group_info: grp.struct_group(gr_name='staff', gr_passwd='*', gr_gid=20, gr_mem=['root'])
    effective_group_info: grp.struct_group(gr_name='staff', gr_passwd='*', gr_gid=20, gr_mem=['root'])
    DYLD_LIBRARY_PATH: None
    cwd: u'/Applications/Internet/Sharing/Dropbox.app/Contents/Resources'
      real_path=u'/Applications/Internet/Sharing/Dropbox.app/Contents/Resources'
      mode=040755 uid=501 gid=20
      parent mode=040755 uid=501 gid=20
    HOME: u'/Volumes/MY_USER_DRIVE/Users/home/Dropbox-Second'
    appdata: u'/Volumes/MY_USER_DRIVE/Users/home/Dropbox-Second/.dropbox/instance1'
      real_path=u'/Volumes/MY_USER_DRIVE/Users/home/Dropbox-Second/.dropbox/instance1'
      mode=040700 uid=501 gid=0
      parent mode=040700 uid=501 gid=0
    dropbox_path: u'/Volumes/MY_USER_DRIVE/Users/home/Dropbox-Second/Dropbox'
      real_path=u'/Volumes/MY_USER_DRIVE/Users/home/Dropbox-Second/Dropbox'
      mode=040700 uid=501 gid=0
      parent  mode=040700 uid=501 gid=0
    sys_executable: '/Applications/Internet/Sharing/Dropbox.app/Contents/MacOS/python'
      real_path='/Applications/Internet/Sharing/Dropbox.app/Contents/MacOS/python'
      mode=0100755  uid=501 gid=20
      parent  mode=040755 uid=501 gid=20
    trace.__file__: '/Applications/Internet/Sharing/Dropbox.app/Contents/Resources/lib/python2.7/site-packages.zip/dropbox/client/ui/common/boot_error.pyo'
      real_path='/Applications/Internet/Sharing/Dropbox.app/Contents/Resources/lib/python2.7/site-packages.zip/dropbox/client/ui/common/boot_error.pyo'
      not found
      parent  not found
    tempdir: u'/var/folders/g7/x26099ld3p95tdlr_wpmc2380000gn/T'
      real_path=u'/private/var/folders/g7/x26099ld3p95tdlr_wpmc2380000gn/T'
      mode=040777 uid=501 gid=20
      parent mode=040755 uid=501 gid=20
    Traceback (most recent call last):
      File "dropbox/client/main.pyo", line 384, in wrapper
      File "dropbox/client/main.pyo", line 3898, in finish_dropbox_boot
      File "dropbox/client/main.pyo", line 2920, in start
      File "dropbox/client/shell/legacy_mac.pyo", line 668, in __init__
      File "dropbox/client/shell/legacy_mac.pyo", line 168, in __init__
      File "dropbox/client/shell/legacy_mac.pyo", line 181, in bind
      File "socket.pyo", line 228, in meth
    error: [Errno 48] Address already in use
    
    
     
  8. 0d085d macrumors regular

    Joined:
    Apr 23, 2015
    #8
    This looks like your two Dropbox instances are fighting over port numbers. Dropbox needs to bind to the following ports:

    17500 (for LAN syncing)
    17600/17603 (for the "open" button in the web browser)

    Go to preferences in your first Dropbox instance and under the Network tab disable LAN syncing. That should solve the clash over port 17500. I've just tried this myself and it looks like my second Dropbox instance has used port 17601 where 17600 is unavailable, so hopefully that ought to do the trick.

    If it doesn't, what version of OS X are you on?
     
  9. honeycombz thread starter macrumors 6502

    honeycombz

    Joined:
    Jul 6, 2013
    #9
    I'm on 10.9.5. I disabled LAN syncing. It seems to want to add and utilize a dropbox directory on my boot volume rather than the user folder which is on another drive... even though $HOME in system preferences points to the correct location.
     
  10. 0d085d macrumors regular

    Joined:
    Apr 23, 2015
    #10
    So the second instance of Dropbox is now launching properly? Do you mean it's refusing to let you put a Dropbox folder on your external drive? Can you let it set it up where it wants and then go into preferences and move it?

    As always, detailed error messages please if things aren't working.
     
  11. honeycombz thread starter macrumors 6502

    honeycombz

    Joined:
    Jul 6, 2013
    #11
    Not exactly. It skips the starting thing but just fails and spits this out now and tries to set up a directory on the boot volume user folder vs. the drive that contains the user folder that system preferences points to. Thanks for your help.
    Code:
    bn.BUILD_KEY: Dropbox
    bn.VERSION: 3.14.7
    bn.DROPBOXEXT_VERSION: failed
    bn.is_frozen: True
    pid: 2352
    ppid: 1
    uid: 501
    user_info: pwd.struct_passwd(pw_name='myfirstname', pw_passwd='********', pw_uid=501, pw_gid=20, pw_gecos='MY NAME', pw_dir='/Volumes/MY_USER_DRIVE/Users/myfirstname', pw_shell='/bin/bash')
    effective_user_info: pwd.struct_passwd(pw_name='myfirstname', pw_passwd='********', pw_uid=501, pw_gid=20, pw_gecos='MY NAME', pw_dir='/Volumes/MY_USER_DRIVE/Users/myfirstname', pw_shell='/bin/bash')
    euid: 501
    gid: 20
    egid: 20
    group_info: grp.struct_group(gr_name='staff', gr_passwd='*', gr_gid=20, gr_mem=['root'])
    effective_group_info: grp.struct_group(gr_name='staff', gr_passwd='*', gr_gid=20, gr_mem=['root'])
    DYLD_LIBRARY_PATH: None
    cwd: u'/Applications/Internet/Sharing/Dropbox.app/Contents/Resources'
      real_path=u'/Applications/Internet/Sharing/Dropbox.app/Contents/Resources'
      mode=040755 uid=501 gid=20
      parent mode=040755 uid=501 gid=20
    HOME: u'/Volumes/MY_USER_DRIVE/Users/myfirstname/Dropbox-Second'
    appdata: u'/Users/myfirstname/Dropbox-Second/.dropbox/instance3'
      real_path=u'/Users/myfirstname/Dropbox-Second/.dropbox/instance3'
      mode=040700 uid=501 gid=20
      parent mode=040700 uid=501 gid=20
    dropbox_path: u'/Users/myfirstname/Dropbox-Second/Dropbox'
      real_path=u'/Users/myfirstname/Dropbox-Second/Dropbox'
      mode=040700 uid=501 gid=20
      parent  mode=040700 uid=501 gid=20
    sys_executable: '/Applications/Internet/Sharing/Dropbox.app/Contents/MacOS/python'
      real_path='/Applications/Internet/Sharing/Dropbox.app/Contents/MacOS/python'
      mode=0100755  uid=501 gid=20
      parent  mode=040755 uid=501 gid=20
    trace.__file__: '/Applications/Internet/Sharing/Dropbox.app/Contents/Resources/lib/python2.7/site-packages.zip/dropbox/client/ui/common/boot_error.pyo'
      real_path='/Applications/Internet/Sharing/Dropbox.app/Contents/Resources/lib/python2.7/site-packages.zip/dropbox/client/ui/common/boot_error.pyo'
      not found
      parent  not found
    tempdir: u'/var/folders/g7/x26099ld3p95tdlr_wpmc2380000gn/T'
      real_path=u'/private/var/folders/g7/x26099ld3p95tdlr_wpmc2380000gn/T'
      mode=040777 uid=501 gid=20
      parent mode=040755 uid=501 gid=20
    Traceback (most recent call last):
      File "dropbox/client/main.pyo", line 384, in wrapper
      File "dropbox/client/main.pyo", line 3898, in finish_dropbox_boot
      File "dropbox/client/main.pyo", line 2920, in start
      File "dropbox/client/shell/legacy_mac.pyo", line 668, in __init__
      File "dropbox/client/shell/legacy_mac.pyo", line 168, in __init__
      File "dropbox/client/shell/legacy_mac.pyo", line 181, in bind
      File "socket.pyo", line 228, in meth
    error: [Errno 48] Address already in use
    
    
     

Share This Page