mediadc icon indicating copy to clipboard operation
mediadc copied to clipboard

nohup: can't execute '.../main.py' No such file or directory

Open slothds opened this issue 2 years ago • 1 comments

Describe the bug When task first created its remains in "Pending" state. And in log file appeared error:

nohup: can't execute '..../data/appdata_...../mediadc/main.py': No such file or directory

After restart task its executed normally.

my config options:

  • nc_py_api
    • python_command: "/usr/bin/python3"
    • php_path: "/usr/local/bin/php"
    • use_php_from_settings: true
  • mediadc
    • python_binary: false
    • python_limit: 5
    • hashing_algorithm: phash

To Reproduce Steps to reproduce the behavior:

  1. Go to 'MediaDC'
  2. Click on 'Tasks'
  3. Select target dirs
  4. Click on 'Run new Task'

Expected behavior New task run normally

Desktop (please complete the following information):

  • OS [Alpine Linux 3.18]
  • CPU [ARM64 (aarch64)]
  • Nextcloud version [27.1.3]
  • Database configuration [mariadb 10.5]
  • Python version [3.11.6]
  • MediaDC version [0.3.7]
  • cloud_py_api version [0.1.8]

Additional context My NextCloud instance runned on alpine linux inside docker container. Python and all required libraries installed

python3 -m pip list

Package         Version
--------------- -------
asn1crypto      1.5.1
cffi            1.16.0
cryptography    41.0.5
hexhamming      2.2.3
nc-py-api       0.0.11
numpy           1.26.2
packaging       23.1
pg8000          1.30.3
pi-heif         0.13.1
Pillow          10.1.0
pillow-heif     0.13.1
pip             23.1.2
pycparser       2.21
PyMySQL         1.1.0
PyNaCl          1.5.0
pyparsing       3.0.9
python-dateutil 2.8.2
PyWavelets      1.5.0
scipy           1.11.4
scramp          1.4.4
setuptools      67.7.2
six             1.16.0
supervisor      4.2.5

slothds avatar Nov 20 '23 21:11 slothds

I faced the same bug and restart helped

gymnae avatar Apr 16 '24 08:04 gymnae