Ticket 11876

Summary: unable to start device PNG; unable to open connection to X11 display; Noninteractively
Product: Slurm Reporter: Sid <siddhesh.salunke45>
Component: ConfigurationAssignee: Jacob Jenson <jacob>
Status: RESOLVED INVALID QA Contact:
Severity: 6 - No support contract    
Priority: ---    
Version: 21.08.x   
Hardware: Linux   
OS: Linux   
Site: -Other- Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Sid 2021-06-22 06:38:20 MDT
Hello,

I am running R code on parallelcluster which is slurm based. Upon running job on compute, I receive below error:

Error in .External2(C_X11, paste0("png::", filename), g$width, g$height,  :
  unable to start device PNG
Calls: ggsave -> dev -> png_dev
In addition: Warning message:
In png_dev(..., res = dpi, units = "in") :
  unable to open connection to X11 display ''
Execution halted


I enabled x11 forwarding on compute and master via changes in sshd_config. x11, xorg and other packages installed as well. The script runs fine on master and compute when logged in to it and triggered manually.

But fails when run via batch job script or non-interactively.

Please If anyone can help.