yacron icon indicating copy to clipboard operation
yacron copied to clipboard

Scheduled command failing when running with yacron

Open FluffyDiscord opened this issue 1 year ago • 1 comments

  • Yet Another Cron version: 0.19.0
  • Python version: none, using single binary yacron-0.19.0-x86_64-unknown-linux-gnu
  • Operating System: Docker - debian 11

Description & What I Did

I am trying to run PHP command (Symfony framework) via yacron every minute. For some reason, the command fails when it's run with yacron, but works just fine when running manually within the docker container. All the packages are present and work just fine, but once it's running with yacron, I get the following error

PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20210902/imagick.so (/tmp/_MEI4v2QWZ/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16))) in Unknown on line 0

Is yacron loading system libraries/env in a different way or something like that?

Yacron is running as root just as the manual command is also ran as root user. There is no user mismatch. Yacron has execution permissions chmod +x yacron

FluffyDiscord avatar Mar 15 '23 18:03 FluffyDiscord