简体   繁体   English

Xvfb启动失败错误

[英]Xvfb failed start error

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-script-on-ubuntu/blob/master/install and I executed last line and it gives me an error 我有Ubuntu 11.04我正在尝试安装Xvfb和CutyCapt以获取网页的快照我按照指令https://github.com/jaequery/cutycapt-installer-script-on-ubuntu/blob/master/install和我执行了最后一行,它给了我一个错误

xvfb-run: error:Xvfb failed to start xvfb-run:错误:Xvfb无法启动

Any solution for that? 任何解决方案? Thank you in advance 先感谢您

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. 我在Ubuntu 14.04上收到此错误“xvfb-run:error:Xvfb无法启动”,之前我的脚本在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" 我的脚本运行多次调用xvfb-run,但由于错误“服务器已经激活显示99”,我看到失败了

It seemed that the Xvfb wasn't ending when the xvfb-run command returned. 当xvfb-run命令返回时,似乎Xvfb没有结束。

My solution was to use "xvfb-run -a [mycommand]" so xvfb uses another display if 99 is in use. 我的解决方案是使用"xvfb-run -a [mycommand]"因此如果99正在使用,xvfb将使用另一个显示。

Run xvfb-run -e /dev/stdout [mycommand] as @wumpus suggested. 运行xvfb-run -e /dev/stdout [mycommand]为@wumpus建议。

I received the server lock message: 我收到了服务器锁定消息:

Fatal server error:
Could not create server lock file: /tmp/.X99-lock

xvfb-run: 

error: Xvfb failed to start

Using sudo resolved the issue for me: 使用sudo为我解决了这个问题:

sudo xvfb-run -e /dev/stdout [mycommand]

Had the same issue, solved it by running this instead: 有同样的问题,通过运行它来解决它:

xvfb-run --auto-servernum --server-num=1 [your script]

--auto-servernum : Try to get a free server number, starting at 99, or the argument to --server-num --auto-servernum :尝试获取一个免费的服务器号,从99开始,或者参数为--server-num

Found the problem There is hanging process in system with name 发现问题系统中有挂起进程的名称

Xvfb

I killed it and work fine. 我杀了它并且工作正常。 I newer found it earlier beacuse I used to try to find process with 'xvfb' name 我之前发现它更早,因为我曾经尝试使用'xvfb'名称来查找进程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM