Hello @newToAzure thanks for bringing this to our attention. we're sorry to hear you're experiencing this issue.
seems like there is a problem with the wkhtmltopdf
dependence and the installation isn't persisting across restarts. To troubleshoot this further:
- The first step in troubleshooting is to check the server logs. Look for any error messages or exceptions related to the wkhtmltopdf package. You can find these logs in your Azure portal or by using tools like Application Insights. Ensure that the logs provide detailed information about what’s going wrong during the execution of your API.
- Consider using Python dependency management tools like
pip
to manage your dependencies within your application code. This approach avoids relying on package managers likeapt-get
. Create arequirements.txt
file that lists the required dependencies, includingwkhtmltopdf
. During deployment, use tools likepip
to install these dependencies from your requirements file. Azure App Service can be configured to run deployment scripts during deployment. Make sure that the wkhtmltopdf package is listed in your requirements.txt file with the correct version.
Hope that helps.
-Grace