Search Unity

Running from NFS

Discussion in 'Linux' started by Okona, Aug 27, 2015.

  1. Okona

    Okona

    Joined:
    Aug 27, 2015
    Posts:
    3
    I want to install Unity in an NFS folder by extracting it there with the custom installer. That way, I can make it easily availabe in the Computer Lab here.
    We are using XUbuntu 14.04.03 in the lab.

    When I then start it from the NFS folder, the splash screen comes up and stays there infinitely.
    When I start unity from a local disk, everything behaves as expected.

    Here are the last messages I get when I start unity from NFS with the command:
    strace ./unity-editor-5.1.0f3/Editor/Unity


    access("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/locales", F_OK) = 0
    access("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/locales/en-US.pak", F_OK) = 0
    access("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/locales/en-US.pak", F_OK) = 0
    open("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/locales/en-US.pak", O_RDONLY) = 12
    fstat(12, {st_mode=S_IFREG|0644, st_size=6977, ...}) = 0
    mmap(NULL, 6977, PROT_READ, MAP_SHARED, 12, 0) = 0x7f5339d8e000
    access("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/cef.pak", F_OK) = 0
    open("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/cef.pak", O_RDONLY) = 13
    fstat(13, {st_mode=S_IFREG|0644, st_size=1209947, ...}) = 0
    mmap(NULL, 1209947, PROT_READ, MAP_SHARED, 13, 0) = 0x7f532257c000
    access("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/cef_100_percent.pak", F_OK) = 0
    open("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/cef_100_percent.pak", O_RDONLY) = 14
    fstat(14, {st_mode=S_IFREG|0644, st_size=364243, ...}) = 0
    mmap(NULL, 364243, PROT_READ, MAP_SHARED, 14, 0) = 0x7f5322523000
    access("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/devtools_resources.pak", F_OK) = -1 ENOENT (No such file or directory)
    readlink("/proc/self/exe", "/mount/dist/DIR/tmp/unity-editor"..., 4096) = 53
    access("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/chrome-sandbox", F_OK) = 0
    socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, [15, 16]) = 0
    shutdown(15, SHUT_RD) = 0
    shutdown(16, SHUT_WR) = 0
    pipe([17, 18]) = 0
    mmap(NULL, 8392704, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f5321d22000
    mprotect(0x7f5321d22000, 4096, PROT_NONE) = 0
    clone(child_stack=0x7f5322521cf0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f53225229d0, tls=0x7f5322522700, child_tidptr=0x7f53225229d0) = 19458
    futex(0x7fffef4110d4, FUTEX_WAIT_PRIVATE, 1, NULL) = 0
    futex(0x7fffef4110a8, FUTEX_WAKE_PRIVATE, 1) = 0
    socketpair(PF_LOCAL, SOCK_SEQPACKET, 0, [19, 20]) = 0
    setsockopt(19, SOL_SOCKET, SO_PASSCRED, [1], 4) = 0
    access("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/chrome-sandbox", F_OK) = 0
    stat("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/chrome-sandbox", {st_mode=S_IFREG|S_ISUID|0755, st_size=23715, ...}) = 0
    access("/mount/dist/DIR/tmp/unity-editor-5.1.0f3/Editor/chrome-sandbox", X_OK) = 0
    pipe([21, 22]) = 0
    close(22) = 0
    rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f5339f44cd0) = 19459
    rt_sigprocmask(SIG_SETMASK, [], ~[KILL STOP RTMIN RT_1], 8) = 0
    close(21) = 0
    recvmsg(19, 0x7fffef4106d0, 0) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19459, si_status=1, si_utime=0, si_stime=0} ---
    recvmsg(19,


    then it stalles until I press ctrl-c
     
  2. haagch

    haagch

    Joined:
    Nov 9, 2014
    Posts:
    34
    There's a log file in ~/.config/unity3d/Editor.log

    My guess is that the suid permission for the chrome sandbox doesn't work on your nfs mount.
     
  3. Okona

    Okona

    Joined:
    Aug 27, 2015
    Posts:
    3
    Thank you for your help. Indeed the nfs mount was mounted using the nosuid option.