Skip to content

Azure functions: error while loading shared libraries: libssl3.so #24

@aorsten

Description

@aorsten

I'm trying to set this up in Azure functions, a python function which runs on Linux. I've managed to do some of the steps, but am now stuck on the conversion command.

Actually, what I need is to convert EMF and WMF files to PNG - not the entire PDF converter. But I'm trying to set up the PDF converter from a simple .TXT file first.

I've so far managed to:

  1. Connect to Azure Storage (S3 bucket equivalent) and pull the "test.txt" file into a "/tmp" folder.
  2. (I push the lo.tar.gz file along with the code - so no need to pull it from Storage/Bucket) Run the "tar -xf lo.tar.gz" and confirm that I get the executable at "/instdir/program/soffice.bin"
  3. Execute "instdir/program/soffice ~~" using subprocess (rather than os.system, so that I get the output and error messages) However, I get an error here:
        STDOUT: '',
        STDERR: '/tmp/functions\\\\standby\\\\wwwroot/instdir/program/soffice.bin: error while loading shared libraries: libssl3.so: cannot open shared object file: No such file or directory\\n',

I'm really inexperienced with Linux - so I don't understand the error message I'm getting here. Does it mean there's some system files that are required, which aren't included in the lo.tar.gz file?

I have used the lo.tar.gz file you had precompiled for Lambda. Do you reckon it should work here as well - or would I need to build my own specific file for use on Azure Functions (Python functions run on Linux)?

Any help here is much appreciated. And of course I'll share the code for Azure Functions once I manage to get it working - if that's interesting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions