<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1485534803074_2709">Hi,</div><div id="yui_3_16_0_ym19_1_1485534803074_2709"><br></div><div id="yui_3_16_0_ym19_1_1485534803074_2709" dir="ltr">I have this Python Selenium script that works if I go into the '/usr/lib/xymon/server/bin/' and fire off 'xymoncmd' and execute the script -- it reports to the Xymon Display and life is peachy.</div><div id="yui_3_16_0_ym19_1_1485534803074_2709" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1485534803074_2709" dir="ltr">When I put the script in tasks.cfg,  it runs at the desired internal of every two minutes but it errors out. The script uses a combination of a driver '/usr/local/bin/geckodriver' which I even gave 777 permissions on it and changed ownership to 'xymon:xymon'. The script also uses an executable script in '/usr/bin/firefox' which I gave '777' permissions on it. Any help will be greatly appreciated.</div><div id="yui_3_16_0_ym19_1_1485534803074_2709" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1485534803074_2709" dir="ltr">Here is the error message:</div><div id="yui_3_16_0_ym19_1_1485534803074_2709" dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2953">Fri Jan 27 11:37:39 2017</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2954">Traceback (most recent call last):</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2955">  File "/usr/lib/xymon/server/ext/wslcb_licensee.py", line 31, in <module></div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2956">    driver = webdriver.Firefox()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2957">  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 150, in __init__</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2958">    keep_alive=True)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2959">  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 92, in __init__</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2960">    self.start_session(desired_capabilities, browser_profile)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2961">  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 179, in start_session</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2962">    response = self.execute(Command.NEW_SESSION, capabilities)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2963">  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2964">    self.error_handler.check_response(response)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2965">  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 192, in check_response</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2966">    raise exception_class(message, screen, stacktrace)</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2967">selenium.common.exceptions.WebDriverException: Message: connection refused</div><div dir="ltr" id="yui_3_16_0_ym19_1_1485534803074_2968"><br id="yui_3_16_0_ym19_1_1485534803074_2969"></div></div></body></html>