Hello,
First, I think you should update the LD_LIBRARY_PATH: The LD_LIBRARY_PATH environment variable is used by the system to locate shared libraries. You can try updating it to include the directory where the libpython3.8.so.1.0 library is located. Run the following command in your SSH session:
Secondly, you can try modifying the Cron Job. Update your cron job command to include the updated LD_LIBRARY_PATH. Modify your cron job entry to something like this:
This command sets the LD_LIBRARY_PATH environment variable before executing the Python script.
First, I think you should update the LD_LIBRARY_PATH: The LD_LIBRARY_PATH environment variable is used by the system to locate shared libraries. You can try updating it to include the directory where the libpython3.8.so.1.0 library is located. Run the following command in your SSH session:
CODE:
bashexport LD_LIBRARY_PATH=/mnt/md0/application/lib:$LD_LIBRARY_PATHThis command adds the "/mnt/md0/application/lib" directory to the LD_LIBRARY_PATH.
CODE:
bash*/2 * * * * MyUser env LD_LIBRARY_PATH=/mnt/md0/application/lib /usr/local/bin/python3.8 /mnt/md0/MyCoolSharing/WebServer/main.py >> /mnt/md0/MyCoolSharing/WebServer/log_api.log 2>&1
Statistics: Posted by lesliewang — Today, 17:29