Back

Error loading shared library libresolv.so.2

  • 0
  • Functions
Eric
21 Feb, 2025, 04:17

OSError: Error loading shared library libresolv.so.2: No such file or directory (needed by /usr/local/server/src/function/runtime-env/lib/python3.12/site-packages/hrequests/bin/hrequests-cgo-3.1-linux-amd64.so)

Getting this error when attempting to execute my function. I tried including apk add gcompat or apk add libc6-compat to the build setting but no dice.

TL;DR
Issue: Error message stating "Error loading shared library libresolv.so.2: No such file or directory" when trying to run a function. Solution: Instead of `apk add gcompat` or `apk add libc6-compat`, try including `apk add musl-dev` in the build settings.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more