linux - RHEL + Codeception: invalid mit-magic-cookie-1 keyerror cannot open display :2.0 -


so i'm trying run codeception acceptance tests on linux server (with selenium). enter command:

./codecept run acceptance 

(with flags such --env firefox-linux)

codeception starts, pauses bit , firefox throws error:

invalid mit-magic-cookie-1 keyerror: cannot open display: :2.0 

i read xauth stuff, have tried deleting , re-creating xauthority, export display etc., still error.

a few things note: rhel 6.6, firefox 27 (using older version work selenium)

also have hunch might not 'x' problem, in general config? have look, suggestions appreciated.

after poking around discovered error in selenium. firstly, versions of selenium , firefox incompatible, changed that, started getting 'no display specified' error. changed selenium build command to:

export display=":1" && java -jar selenium-server-standalone-2.44.0.jar 

this temporary solution, others having issue suggest @ selenium , browser config, @ /etc/hosts , see says, try , export correct display. example /etc/hosts says:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 

i executed above command export display, started selenium, ran codeception , started correctly.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -