Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sh: 0: Can't open /etc/init.d/xvfb and curl: (22) The requested URL returned error: 404 Not Found #163

Closed
evandrocoan opened this issue Aug 4, 2019 · 7 comments

Comments

@evandrocoan
Copy link
Contributor

Travis is trying to be very funny lately.

First using a build matrix for Python 3.3 is:

  1. With python: 3.3

Then, I tried using Python 3.4, and now it says it cannot open xvfb

  1. With python: 3.4

Any ideas how I could fix this?

@randy3k
Copy link
Member

randy3k commented Aug 9, 2019

are there still issues?

@evandrocoan
Copy link
Contributor Author

Yes. I restarted both builds above. The python 3.3 link above still 404 not found:

  1. https://travis-ci.org/evandrocoan/debugtools/jobs/567462750

And the python 3.4 still saying sh: 0: Can't open /etc/init.d/xvfb.

  1. https://travis-ci.org/evandrocoan/debugtools/jobs/567464482

This is my part of the xvfb on my .travis

  1. https://github.com/evandrocoan/debugtools/blob/a54da83a35f406179f105bf350294cf693b41edd/.travis.yml#L79-L82
        # enable gui, see https://docs.travis-ci.com/user/gui-and-headless-browsers
        - if [ -z "$TOXENV" ] && [ "$TRAVIS_OS_NAME" == "linux"  ]; then
                export DISPLAY=:99.0;
                sh -e /etc/init.d/xvfb start;
          fi
    

@ehuss
Copy link
Contributor

ehuss commented Aug 9, 2019

I'm seeing the same thing:

$ if [ "$TRAVIS_OS_NAME" == "linux" ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi

sh: 0: Can't open /etc/init.d/xvfb

The command "if [ "$TRAVIS_OS_NAME" == "linux" ]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; fi" failed and exited with 127 during .

It looks like Travis switched my default image from Trusty to Xenial a few days ago, which requires a new way for using xvfb (see docs). I just added this to my yaml file:

services:
  - xvfb

And removed manually starting xvfb. It looks like Travis takes care of setting DISPLAY, too.

evandrocoan added a commit to evandrocoan/debugtools that referenced this issue Aug 9, 2019
sh: 0: Can't open /etc/init.d/xvfb
SublimeText/UnitTesting#163
evandrocoan added a commit to evandrocoan/debugtools that referenced this issue Aug 9, 2019
sh: 0: Can't open /etc/init.d/xvfb
SublimeText/UnitTesting#163
gwenzek added a commit to gwenzek/SublimeSetWindowTitle that referenced this issue Sep 3, 2019
@gwenzek
Copy link

gwenzek commented Sep 3, 2019

I've the same errors. For python 3.3 I don't think we can do much, since it's not supported by Travis anymore: https://docs.travis-ci.com/user/languages/python/#specifying-python-versions

Here is how I modified my config to make it work again:
gwenzek/SublimeSetWindowTitle@665bf6e

@randy3k
Copy link
Member

randy3k commented Sep 17, 2019

anyone mind pushing a working .travis?

@randy3k
Copy link
Member

randy3k commented Sep 18, 2019

Fixed on master

@randy3k randy3k closed this as completed Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants