Comments (14)
This fixed this issue for me on macOS El Capitan:
mkdir /tmp/.X11-unix
sudo chmod 1777 /tmp/.X11-unix
sudo chown root /tmp/.X11-unix/
from headless.
Had this problem too.
Needed to just run Xvfb
and/or quartz-wm
once and that solved the issue.
Apparently, that created the /tmp/.X11-unix/ folder, not sure if it created something else.
from headless.
This is an issue on every reboot. My assumption is that /tmp is clearing and I have to recreate the file each time. macOS Sierra 10.12.4, XQuartz 2.7.11. (Edit: also worth noting -- this is the only thing i use XQuartz for)
from headless.
The manual fix is described here.
Are you doing something else with the XQuartz? And please post your Headless.start
arguments.
from headless.
The manual fix (pkill Xvfb
) is a no-op for me - I can't even find a running process named Xvfb (ps aux | grep -i xvfb
doesn't show anything).
My arguments to Headless.start
:
Headless.new(display: 100, reuse: true, destroy_at_exit: true).start
I also tried it with no options at at all (Headless.new.start
) to see if using the defaults was all I needed to do. I get the same exception.
Let me know if I can provide more info or help in any way.
from headless.
I see this consistently using the Ubuntu 14 environment on Circle CI. My Headless settings are: Headless.new(reuse: true, destroy_at_exit: false)
from headless.
☝️ This worked for me using Capybara with Sierra.
from headless.
on osx EI Capitan (10.11.6)
Xfvb version: from XQuartz 2.7.9
ruby version: 2.3.1
gem uninstall capybara-webkit
brew tap homebrew/versions
brew install qt55
brew linkapps qt55
brew link --force qt55
gem install capybara-webkit
Works fine for me: Headless.new(reuse: false).start
from headless.
any updates on this? I also have the same issue on every reboot. Sierra 10.12.6, xquartz 2.7.11
from headless.
Does this happen every time? If it's a one time situation, there's a manual fix, but it shouldn't be a recurring thing.
https://github.com/leonid-shevtsov/headless#display-socket-is-taken-but-lock-file-is-missing
from headless.
This error is recurring for me. I also get it while running tests. What's the manual fix?
headless version: 2.1.0
Xfvb version: from XQuartz 2.7.9
ruby version: 2.3.1
OS: OSX 10.11.4
from headless.
Unfortunately, I can't solve this issue because it's a fundamental X server requirement to have a /tmp/.X11-unix
directory and have it owned by root. In addition, since macOS does clean /tmp
on reboot, you need to set the directory up every time.
Fortunately, XQuartz.app will do that for you, so a simple solution is to add XQuartz.app to login items.
The only thing I can do is improve the error message, and document the solution here: https://github.com/leonid-shevtsov/headless#tmpx11-unix-is-missing
from headless.
Installing chromedriver fixed this for me (on a mac brew install chromedriver
).
from headless.
@btucker 's fix worked for me.
from headless.
Related Issues (20)
- "Cannot establish any listening sockets" error precludes autopick: true
- Dimension problem HOT 1
- audio problem
- Display socket is taken but lock file is missing on mac within sidekiq
- Chrome Webdriver hangup on ruby 2.6 HOT 1
- New release? HOT 2
- Compatibility Inquiry: headless 2.3.1 with Ruby 3.3.0
- File.exists? was deprecated before 3.3.0
- How could I produce a fragmented mp4? HOT 2
- Run Concurrently (using different ports?) HOT 5
- Question: how do you anticipate headless to work with Docker Selenium HOT 4
- Audio Video recording HOT 1
- Few ideas HOT 1
- import: unable to open X server `localhost:100' @ error/import.c/ImportImageCommand/364. HOT 2
- ffmpeg issue on Mac HOT 5
- Running headless with flash HOT 1
- dimensions not the same as what I've set HOT 1
- how to use on command line
- Using headless in a multithreaded program
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headless.