Xvfb failed start error

前端 未结 4 1699
忘掉有多难
忘掉有多难 2021-01-30 12:41

I have Ubuntu 11.04 I am trying to install Xvfb and CutyCapt in order to take a snapshot of webpage I followed a instruction https://github.com/jaequery/cutycapt-installer-scri

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-30 12:56

    I was getting this error "xvfb-run: error: Xvfb failed to start" on Ubuntu 14.04, where previously my script had run without problems on Ubuntu 12.04.

    My scripts were running calling xvfb-run multiple times, but I was seeing fails due to the error "Server is already active for display 99"

    It seemed that the Xvfb wasn't ending when the xvfb-run command returned.

    My solution was to use "xvfb-run -a [mycommand]" so xvfb uses another display if 99 is in use.

提交回复
热议问题