Bug 508739 - xvfb-run <command> errors out with: "mktemp: too few X's in template `Xauthority'"
xvfb-run <command> errors out with: "mktemp: too few X's in template `Xauthor...
Status: CLOSED DUPLICATE of bug 544036
Product: Fedora
Classification: Fedora
Component: xorg-x11-server (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Adam Jackson
Fedora Extras Quality Assurance
: EasyFix, Patch, Reopened, Triaged
Depends On:
  Show dependency treegraph
Reported: 2009-06-29 13:15 EDT by Lorand Bruhacs
Modified: 2010-09-14 12:06 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-09-14 12:06:44 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Lorand Bruhacs 2009-06-29 13:15:25 EDT
Description of problem:

xvfb-run fails to create temporary Xauthority file due to mktemp incompatibility.

Version-Release number of selected component (if applicable):


How reproducible:

$ xvfb-run /usr/local/bin/flashplayer

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Matěj Cepl 2009-06-30 04:43:02 EDT
Yes, this just cannot work:

# If the user did not specify an X authorization file to use, set up a temporary
# directory to house one.
if [ -z "$AUTHFILE" ]; then
    if ! mkdir -p -m 700 "$XVFB_RUN_TMPDIR"; then
        error "temporary directory $XVFB_RUN_TMPDIR already exists"
        exit 4
    AUTHFILE=$(mktemp -p "$XVFB_RUN_TMPDIR" Xauthority)

testing signature
Comment 2 Kai Engert (:kaie) 2009-08-20 02:57:44 EDT
Matej, I ran into the same problem but I don't understand how your proposal can work.

I ran the commands in your script manually, but when mktemp command gets executed, it still complains with the very same error message "to few X in template". This is because mktemp seems to expect a filename template that contains mutliple XXX in order to replace them with the temporary name.

So, but your hint towards Xauthority was helpful.

I ran
  xvfb-run --help
and saw that one can manually specify a file.

I used

  xfvb-run -f /tmp/any-filename-for-xauthority run-my-command

and that works for me.
Comment 3 Orion Poplawski 2009-09-08 23:48:01 EDT
Should be:


or some such.
Comment 4 Matěj Cepl 2009-11-05 13:33:27 EST
Since this bugzilla report was filed, there have been several major updates in various components of the Xorg system, which may have resolved this issue. Users who have experienced this problem are encouraged to upgrade their system to the latest version of their packages. For packages from updates-testing repository you can use command

yum upgrade --enablerepo='*-updates-testing'

Alternatively, you can also try to test whether this bug is reproducible with the upcoming Fedora 12 distribution by downloading LiveMedia of F12 Beta available at http://alt.fedoraproject.org/pub/alt/nightly-composes/ . By using that you get all the latest packages without need to install anything on your computer. For more information on using LiveMedia take a look at https://fedoraproject.org/wiki/FedoraLiveCD .

Please, if you experience this problem on the up-to-date system, let us now in the comment for this bug, or whether the upgraded system works for you.

If you won't be able to reply in one month, I will have to close this bug as INSUFFICIENT_DATA. Thank you.

[This is a bulk message for all open Fedora Rawhide Xorg-related bugs. I'm adding myself to the CC list for each bug, so I'll see any comments you make after this and do my best to make sure every issue gets proper attention.]
Comment 5 Orion Poplawski 2009-11-05 17:04:42 EST
This is still an issue.  Fix is in the bug report - should be simple.
Comment 6 olesen 2010-04-15 14:43:26 EDT
Still an issue in FC12 using coreutils-7.6-9.fc12.i686 

Thanks Orion for the "some such!"

the actual edit (vi `which xvfb-run`) is 2 lines down : 

- AUTHFILE=$(mktemp -p "$XVFB_RUN_TMPDIR" Xauthority)
+ AUTHFILE=$(mktemp -p "$XVFB_RUN_TMPDIR" Xauthority.XXXXXXXX)
Comment 7 Bug Zapper 2010-04-27 11:21:02 EDT
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
Comment 8 Bug Zapper 2010-06-28 09:22:36 EDT
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.
Comment 9 Matěj Cepl 2010-08-20 13:20:25 EDT
Still alive and well in xorg-x11-server-Xvfb-
Comment 10 Matěj Cepl 2010-09-14 12:06:44 EDT

*** This bug has been marked as a duplicate of bug 544036 ***

Note You need to log in before you can comment on or make changes to this bug.