View Issue Details

IDProjectCategoryView StatusLast Update
0014284ScribusScripterpublic2016-11-23 11:24
Reporteraw_vertel Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status newResolutionopen 
PlatformLinux / UbuntuOSOS Version
Product Version1.5.2 
Target VersionFixed in Version 
Summary0014284: Can't run script on commandline on server without X running
DescriptionScribus with parameters -g -ng -py can't run on a server without display.

QXcbConnection: Could not connect to display
Aborted (core dumped)


Steps To Reproduceaw@leia:~$ sudo apt install scribus (scribus-ng for -py)
aw@leia:~$ scribus-ng -ns -g
QXcbConnection: Could not connect to display
Aborted (core dumped)

aw@leia:~$ scribus -h
scribus: cannot connect to X server

aw@leia:~$ scribus -v
scribus: cannot connect to X server

aw@leia:~$ scribus -ns -g
scribus: cannot connect to X server

TagsNo tags attached.
PatchNo

Activities

ale

2016-09-15 12:10

manager   ~0042004

basically, you need an X server for running scribus.

some people have reported that they could run it also with a "fake" X server.

for your information: the headless support has not been implemented by the scribus team and has been added by employees of companies that have a commercial interest in running scribus on the servers.
if you're in a similar situation, please consider the possibility of allocating budget / hiring somebody to improve scribus on the server and then contribute back the patches to the project.

also: it's possible to modify the scribus code to run without an X server being available. some patches have already been provided that go in this direction.
lot of further work is needed to correctly separate the GUI from the engine.

aw_vertel

2016-09-15 14:14

reporter   ~0042006

We have developed a module for gLabels and the FLOSS erp-system Odoo https://www.odoo.com/apps/modules/8.0/report_glabels/

gLabels has a headless mode.
We are looking for the possibilities too create a module for Scribus and Odoo. But the X-problem seems to be a showstopper. I'm not sure we have a customer willing to pay us or someone else to fix this bug at this time.

The tip about fake X however seems as solution for the time beeing, thank you.

aw@leia:~$ xvfb-run -a scribus -v

Scribus, Desktop Publishing med öppen källkod
---------------------------------------------
Hemsida: http://www.scribus.net
Dokumentation: http://docs.scribus.net
Wiki: http://wiki.scribus.net
Uppgifter: http://bugs.scribus.net

Scribus version 1.4.6
aw@leia:~$

Kunda

2016-11-23 06:25

manager   ~0042507

@ale keep this ticket as an open feature request?

ale

2016-11-23 08:03

manager   ~0042509

@kunda i would say so.

it's short and describes well the current state and the workaround.

it is probably theoretically possible to run scribus without UI, but much works is needed (and it should probably be done!) to clean up the code structure so that the functionality is cleanly separated from the interface.

Issue History

Date Modified Username Field Change
2016-09-12 14:46 aw_vertel New Issue
2016-09-15 12:10 ale Note Added: 0042004
2016-09-15 14:14 aw_vertel Note Added: 0042006
2016-11-23 03:29 plinnell Severity block => feature
2016-11-23 06:22 Kunda Summary Can't run script on commandline on server => Can't run script on commandline on server without X running
2016-11-23 06:25 Kunda Note Added: 0042507
2016-11-23 08:03 ale Note Added: 0042509