LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   need help with xvfb-run (xauth not found) (https://www.linuxquestions.org/questions/linux-server-73/need-help-with-xvfb-run-xauth-not-found-4175579603/)

imadsani 05-12-2016 07:17 AM

need help with xvfb-run (xauth not found)
 
Hello,

I have a server setup with apache 2.4 and php-fpm 5.4. My application executes xvfb-run via php to get the screenshot of a website using CutyCapt. The problem is with php-fpm if I run the command I get an error like the following:

Code:

xvfb-run: error: xauth command not found
any ideas?

malekmustaq 05-13-2016 01:52 AM

In your script try define the path for "xvfb-run" and "CutyCapt". Check also if your an "apache" user.

Good luck.

m.m.

imadsani 05-13-2016 03:37 AM

I was able to fix this by commenting the lines where xvfb-run was checking for xauth. Turns out this issue is only on php-fpm. I now have another issue, I keep getting the following warnings which is breaking my application:

Code:

libEGL warning: DRI2: failed to open swrast (search paths /usr/lib64/dri)
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib64/dri)

This is CentOS 7 btw

edit: fixed this as well, had to install mesa-dri-drivers

igluck 06-02-2016 10:27 AM

Quote:

I was able to fix this by commenting the lines where xvfb-run was checking for xauth
How did you do this?????

imadsani 06-02-2016 11:10 AM

I followed this guy: http://vinh-tran.tumblr.com/post/509...un-error-xauth

igluck 06-03-2016 02:29 AM

Thank you
Now it works

Flavio Botelho 10-18-2016 01:48 PM

PHP-FPM cleans all environment variables, thus PATH needs to be populated for xvfb-run to find xauth:

You need to put:

Quote:

env[PATH] = '/usr/local/bin:/usr/bin:/bin'
In the www conf file of PHP-FPM.


All times are GMT -5. The time now is 10:27 PM.