How to Fix Loading Error from Missing .so File?

    Table of contents

    Question: When starting my app on Heroku, I get the following error repeated mulitple times:

          ERROR: object ‘/app/vendor/nss_wrapper/’ from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

    What does it mean and how do I fix it?

    Answer: This error is due to a missing .so file.

    If you aren’t using transparent mode, then your application will work without the file and the error is just informational. You can either add the missing .so file (directions below) or you can turn off transparent mode in your configuration.

    Transparent mode allows us to override the DNS setting for your destination hostname to be localhost, which is where the qgtunnel is listening.

    To add the missing .so file, redownload qgtunnel into the root of your project:

    curl | tar xz

    Commit and push your code:

    Be sure that vendor/nss_wrapper/ is also added to your repository.
    Git skips .so files by default, you will likely have to add it with:

    git add -f vendor/nss_wrapper/

    Ready to Get Started?

    Get in touch or create a free trial account