hexagon logo

Running Aview in Batch Mode On Headless Machine

I'm working with a heavily parameterized (lots of design variables) model and am trying to generate the adm/acf input files for a Monte Carlo through Adams Insight. Unfortunately the process of writing out the adm/acf input files for every Monte Carlo case (not even running the simulation) takes many hours (I suspect due to the number of design variables in the model). I was hoping to submit this process to our compute cluster to speed things up, but that system has no displays present.
 
With previous versions of Adams I was able to run aview in batch mode on a headless machine by connecting to a dummy Xvfb display (en.wikipedia.org/.../Xvfb), but Adams 2019.2 just throws these errors when I follow the same process (ip address replaced with XX.XXX.X.XX).
 
Tue Dec 15 12:46:02 2020 ERROR! pid[10285] failed to connect DS server.
Tue Dec 15 12:46:02 2020 ERROR! pid[10285] Failed to connect to DSServer, DS address="XX.XXX.X.XX".
Tue Dec 15 12:46:02 2020 SCA.SCASystemException - Failed to connect to DSServer, DS address="XX.XXX.X.XX". (ID=2028000000)
SCA.SCASystemException - Failed to connect to DSServer, DS address="XX.XXX.X.XX". (ID=2028000000)
 
Has anyone had any luck running recent version of aview headless? I have no issues running solver on the headless compute cluster but unfortunately the adm/acf generation process must be run inside aview.
Parents
  • Did anyone ever figure this out?
     
    The following produces no aview.log file at all. It just shows  "Begin execution of Adams View ..." and the returns to the selection menu.
     
    ```
    #!/bin/bash
    Xvfb :1 -pixdepths 8 16 24 -fp /usr/share/X11/fonts/misc/ -screen 0 1600x1200x24 -fbdir /usr/tmp &
    export DISPLAY=127.0.0.1:1
    export MSC_ADAMS_VIEW_SCA_REMOTING_OFF=1
    xvfbPID=$!
    /opt/hexagon/adams/2023_2/mdi -c aview ru-st f hello_world.cmd
    kill $xvfbPID
    unset DISPLAY
    ```
     
Reply
  • Did anyone ever figure this out?
     
    The following produces no aview.log file at all. It just shows  "Begin execution of Adams View ..." and the returns to the selection menu.
     
    ```
    #!/bin/bash
    Xvfb :1 -pixdepths 8 16 24 -fp /usr/share/X11/fonts/misc/ -screen 0 1600x1200x24 -fbdir /usr/tmp &
    export DISPLAY=127.0.0.1:1
    export MSC_ADAMS_VIEW_SCA_REMOTING_OFF=1
    xvfbPID=$!
    /opt/hexagon/adams/2023_2/mdi -c aview ru-st f hello_world.cmd
    kill $xvfbPID
    unset DISPLAY
    ```
     
Children
No Data