"Blender -b" command does not work on headless Ubuntu server #77339

Closed
opened 2020-06-04 03:46:52 +02:00 by Zach Hixson · 9 comments

System Information
Operating system: Ubuntu 18.04.4
Graphics card: 2x Nvidia P106-100

Blender Version
Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: 211b6c29f7
Worked: 2.82

Short description of error
When running "blender -b," from command like, it throws the error "Unable to open a display; Aborted (core dumped)," which is the same error it always threw if trying to render without the "-b" command on a headless server. The error occurs even if a .blend file is specified, or if you input the "--python-console," command. Seems to work all-right on Windows, so only broken on Linux as far as I can tell.

Exact steps for others to reproduce the error

  1. Open Ubuntu Terminal
  2. Run "Blender -b" on a headless machine
**System Information** Operating system: Ubuntu 18.04.4 Graphics card: 2x Nvidia [P106](https://archive.blender.org/developer/P106.txt)-100 **Blender Version** Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: `211b6c29f7` Worked: 2.82 **Short description of error** When running "blender -b," from command like, it throws the error "Unable to open a display; Aborted (core dumped)," which is the same error it always threw if trying to render without the "-b" command on a headless server. The error occurs even if a .blend file is specified, or if you input the "--python-console," command. Seems to work all-right on Windows, so only broken on Linux as far as I can tell. **Exact steps for others to reproduce the error** 1. Open Ubuntu Terminal 2. Run "Blender -b" on a headless machine
Author

Added subscriber: @ZachHixson

Added subscriber: @ZachHixson

Added subscriber: @ideasman42

Added subscriber: @ideasman42

This is quite strange, tested 2.83 release on Arch Linux without X11 running.

blender -b --factory-startup --python-console

Works without any errors.

It's possible the rendering attempts to access the GPU in background mode, however that should only happen if you attempt to use EEVEE for rendering.

This is quite strange, tested 2.83 release on Arch Linux without X11 running. `blender -b --factory-startup --python-console` Works without any errors. It's possible the rendering attempts to access the GPU in background mode, however that should only happen if you attempt to use EEVEE for rendering.

Tested with Ubuntu 18.04 server, and can't redo the error.

Tested with Ubuntu 18.04 server, and can't redo the error.

Closed as duplicate of #77348

Closed as duplicate of #77348

Closed as duplicate of #77367

Closed as duplicate of #77367

Added subscriber: @kaptkaos

Added subscriber: @kaptkaos

Operating System: Oracle-Linux-7.8 (a variant of Red Hat)
Graphics Card: NVIDIA Corporation GP100GL [Tesla P100 SXM2 16GB] (rev a1)

I'm seeing the same behavior on a Red Hat Linux install. I create the default.blend file on my Mac (its literally just the default sube with no modifications to lighting ot the camera). Here are some of the samle command and their output:

[opc@test2 ~]$ blender -b default.blend -f 1 -noaudio
Blender 2.83.3 (hash 353e5bd749 built 2020-07-22 06:01:36)
found bundled python: /home/opc/blender/2.83/python
Read blend: /home/opc/default.blend
Unable to open a display
Aborted (core dumped)

[opc@test2 ~]$ blender -b default.blend -f 1 -o//test.png -noaudio
Blender 2.83.3 (hash 353e5bd749 built 2020-07-22 06:01:36)
found bundled python: /home/opc/blender/2.83/python
Read blend: /home/opc/default.blend
Unable to open a display
Aborted (core dumped)

There are no audio cards on cloud servers so I'm using the -noaudio option. I hope this helps.

Operating System: Oracle-Linux-7.8 (a variant of Red Hat) Graphics Card: NVIDIA Corporation GP100GL [Tesla [P100](https://archive.blender.org/developer/P100.txt) SXM2 16GB] (rev a1) I'm seeing the same behavior on a Red Hat Linux install. I create the default.blend file on my Mac (its literally just the default sube with no modifications to lighting ot the camera). Here are some of the samle command and their output: [opc@test2 ~]$ blender -b default.blend -f 1 -noaudio Blender 2.83.3 (hash 353e5bd7493e built 2020-07-22 06:01:36) found bundled python: /home/opc/blender/2.83/python Read blend: /home/opc/default.blend Unable to open a display Aborted (core dumped) [opc@test2 ~]$ blender -b default.blend -f 1 -o//test.png -noaudio Blender 2.83.3 (hash 353e5bd7493e built 2020-07-22 06:01:36) found bundled python: /home/opc/blender/2.83/python Read blend: /home/opc/default.blend Unable to open a display Aborted (core dumped) There are no audio cards on cloud servers so I'm using the -noaudio option. I hope this helps.

Quick note, if i specify CYCLES on the command line, I can get it to compile. If I specify cycles in the .blend file only and not on the command line, I get the failure message. Here is a sample working CLI on my linux box in the cloud:

blender -b default.blend -E CYCLES -o //test.png -f 1 -F PNG -noaudio

Quick note, if i specify CYCLES on the command line, I can get it to compile. If I specify cycles in the .blend file only and not on the command line, I get the failure message. Here is a sample working CLI on my linux box in the cloud: blender -b default.blend -E CYCLES -o //test.png -f 1 -F PNG -noaudio
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#77339
No description provided.