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

Error while loading shared libraries #105

Closed
jweissman opened this issue Mar 2, 2021 · 13 comments
Closed

Error while loading shared libraries #105

jweissman opened this issue Mar 2, 2021 · 13 comments

Comments

@jweissman
Copy link

I'm seeing issues with the chrome binary throwing errors around loading shared libraries:

~ $ /app/.apt/usr/bin/google-chrome --product-version   
/app/.apt/opt/google/chrome/chrome: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directory

I'm using this buildpack along with the chromedriver one (https://github.com/heroku/heroku-buildpack-chromedriver).

I can seemingly reproduce this issue outside of test cases but I'm ultimately trying to use this via Ruby and the webdrivers gem.

@evjan
Copy link

evjan commented Mar 3, 2021

I have the same issue as of today

@fedegl
Copy link

fedegl commented Mar 3, 2021

I started having the same problem today on 2 different applications. I had been using selenium fine until today, and given the problems I also tried with Cuprite / Ferrum which doesn't even need the chromedriver and it raised the same error

@MrHecka
Copy link

MrHecka commented Mar 3, 2021

yeah, i got this error too

@Thornolf
Copy link

Thornolf commented Mar 3, 2021

Hello, we have a real problem with this. Could you please tell us if someone is working on it ? That would be really awesome, thank you for your work ❤️

@geoffw8
Copy link

geoffw8 commented Mar 3, 2021

+1 - no changes our side. I'm getting this from CI:

~ $ google-chrome-stable -v
/app/.apt/opt/google/chrome/chrome: error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such fi
le or directory

@tektoh
Copy link

tektoh commented Mar 3, 2021

I got the same problem, and I installed libxshmfence-dev with apt, it got better.
https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-apt

Aptfile:

libxshmfence-dev

@pierreolivier-mrpeinture

Thx @tektoh ! I found heroku-buildpack-apt documentation unclear, so here is what I did:
I added the buildpack to my app.json

"environments": {
  "test": {
    ...
    "buildpacks": [
      {
        ... 
        "url": "https://github.com/heroku/heroku-buildpack-apt"
      }
    ]
  }
}

And created the Aptfile in my project root folder. Works like a charm !

@reumng120
Copy link

Thanks, @tektoh and @pierreolivier-mrpeinture
I also got the same issue.

  1. Add buildpack: https://github.com/heroku/heroku-buildpack-apt
  2. Create a file name Aptfile and paste libxshmfence-dev in the file.

it works for me.

@Thornolf
Copy link

Thornolf commented Mar 3, 2021

Thank you @pierreolivier-mrpeinture, that was the thing that was missing on my side. ❤️

@motyah
Copy link

motyah commented Mar 3, 2021

thank for answer @reumng120 and @tektoh

@sadleb
Copy link

sadleb commented Mar 3, 2021

Running heroku ci:debug and then this

~ $ ldd $GOOGLE_CHROME_BIN | grep not
	libxshmfence.so.1 => not found

I think this new dependency just needs to be added to bin/compile like this commit did for others: b0a371e

Looks like there are already two PRs opened to add this. Hopefully the maintainers merge it soon.

@cimm
Copy link

cimm commented Mar 4, 2021

Pull request #104 has been merged with master in 4a2c3ca. I tried this out today on Heroku CI (cleared the caches first) and it seems to work. Can this issue be closed?

@edmorley edmorley closed this as completed Mar 4, 2021
luffy84217 added a commit to square-gaming/diatopia-server that referenced this issue May 12, 2021
@alpharameeztech
Copy link

alpharameeztech commented Jun 8, 2021

I got the same problem, and I installed libxshmfence-dev with apt, it got better.
https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-apt

Aptfile:

libxshmfence-dev

Can you please explain how I can use it with Node?

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