Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,856
Community Members
 
Community Events
176
Community Groups

Chromedriver unexpectedly exits during pipeline run

I'm trying to run a selenium test on my pipeline but this error shows up:

WebDriverException(
selenium.common.exceptions.WebDriverException: Message: Service /root/.wdm/drivers/chromedriver/linux64/99.0.4844.51/chromedriver unexpectedly exited. Status code was: 127

This is the pipeline step:

- step:

        name: Get latest versions of libraries

        image: python:3.8.2

        script:

          - pip install selenium

          - pip install beautifulsoup4

          - pip install lxml

          - pip install webdriver-manager

          - python webscrape.py

        artifacts:

          - latest_vers.json

This is the python script:

if __name__ == '__main__':

    # s = Service("chromedriver.exe")

    # driver = webdriver.Chrome(service=s)

    driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))

    driver.maximize_window()

    driver.get("https://www.npmjs.com/")

    data = get_libraries()

    latest_ver = scrape(driver, data)

    output_latest_ver(latest_ver)

1 answer

0 votes
Norbert C Atlassian Team Mar 07, 2022

Hi @Chong Jing Hong 

Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you! Welcome to the Atlassian Community!

When I was searching about this issue, I found the following site, which mentions, that the selenium test might require additional drivers: https://stackoverflow.com/questions/49323099/webdriverexception-message-service-chromedriver-unexpectedly-exited-status-co

As recommended on this page, can you try to install the following applications?

apt-get install -y libglib2.0-0=2.50.3-2 \
    libnss3=2:3.26.2-1.1+deb9u1 \
    libgconf-2-4=3.2.6-4+b1 \
    libfontconfig1=2.11.0-6.7+b1

and/or

apt-get install -y chromium-browser

Please let us know how it goes.

Best Regards,
Norbert
Atlassian Bitbucket Cloud Support 

hi @Norbert C 

I tried both suggestions, and both gave errors

 

Version '2.50.3-2' for 'libglib2.0-0' was not found
Unable to locate package libnss3
Unable to locate package libgconf-2-4
Unable to locate package libfontconfig1

Unable to locate package chromium-browser

 

E: Version '2.50.3-2' for 'libglib2.0-0' was not found
E: Unable to locate package libnss3
E: Unable to locate package libgconf-2-4
E: Unable to locate package libfontconfig1
Norbert C Atlassian Team Mar 11, 2022

Hi @Chong Jing Hong ,

Thank you for your reply. It seems that those versions are not available within the build.

Can I ask you to try to install these packages without providing the version numbers? The command for that is:

apt-get install -y libglib2.0 libnss3 libgconf-2-4 libfontconfig1

Please let me know how it goes.

Best Regards,
Norbert
Atlassian Bitbucket Cloud Support

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events