High Performance Computing Group

 View Only
  • 1.  /run/user/UID directory on Excecution hosts

    Posted Tue October 25, 2022 11:01 AM
    We have noticed few tools ( probably gui based ) give error when running with bsub

    Error message is like :
    XDG_RUNTIME_DIR point to non-existing path '/run/user/18995' .....

    When running the tool on the user VDI, it is OK.

    That directory is being created when a user interactively login 'ssh'   to the host.
    Since with LSF, it is not login event, the directory is not created.

    Anyone found a fix to this ?

    Thanks,
    -- Shali --

    ------------------------------
    Shali Boharon
    ------------------------------

    #SpectrumComputingGroup


  • 2.  RE: /run/user/UID directory on Excecution hosts

    Posted Tue October 25, 2022 12:54 PM
    Hi Shali,

    You may try bsub -L option.

    Regards,

    Yi Sun

    ------------------------------
    YI SUN
    ------------------------------



  • 3.  RE: /run/user/UID directory on Excecution hosts

    Posted Wed October 26, 2022 09:15 AM
    Thanks, I've tried it.
    The directory was not created,

    We probably can ignore this error message.
    I was wondering if anyone found a workaround for this,

    ------------------------------
    Shali Boharon
    ------------------------------



  • 4.  RE: /run/user/UID directory on Excecution hosts

    Posted Wed October 26, 2022 01:23 PM
    Hi Shali,

    In your original question, the directory is created as soon as user logon through ssh,  is the directory created through profile for the user? If so I think -L option should help.

    The other way you may consider to use pre-exec program to help create the directory. Or you can use LSF integration with Linux PAM to customize PAM logon module so that the directory is created in the module.


    ------------------------------
    YI SUN
    ------------------------------



  • 5.  RE: /run/user/UID directory on Excecution hosts

    Posted Wed October 26, 2022 03:40 PM
    What I normally do for situations like this is to set up the pre / post queue execute commands to run under the lsfadmin userID (see lsf.sudoers configuration file) and then allow the lsfadmin userID (through sudo) to create folders (mkdir), as well as chown and chmod file/folders as root (for security purposes make sure to use fully defined commands for the sudo definitions eg /usr/bin/mkdir, not just mkdir so the commands can't be spoofed).

    A queue pre-script can then be used within the LSF queue configuration to create the needed folders/file and they can be assigned to the user running the job.

    ------------------------------
    Liam Donworth
    DXC
    ON
    ------------------------------