i cant start the MLAPI as a service. I get this error:
Code: Select all
● mlapi.service - Machine Learning API service
Loaded: loaded (/etc/systemd/system/mlapi.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2021-06-05 09:43:29 CEST; 1s ago
Process: 17336 ExecStart=/var/lib/zmeventnotification/mlapi/mlapi.py -c ./mlapiconfig.ini (code=exited, status=209/STDOUT)
Process: 17337 ExecStartPost=/bin/sh -c umask 022; pgrep mlapi.py > /var/run/mlapi.pid (code=exited, status=209/STDOUT)
Main PID: 17336 (code=exited, status=209/STDOUT)
Jun 05 09:43:29 mlapi systemd[1]: Failed to start Machine Learning API service.
Is there any special option to start it? Manually the MLAPI starts.
EDIT:
systemctl status mlapi.service shows:
Code: Select all
● mlapi.service - Machine Learning API service
Loaded: loaded (/etc/systemd/system/mlapi.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2021-06-05 09:57:07 CEST; 2s ago
Process: 20224 ExecStart=/var/lib/zmeventnotification/mlapi/mlapi.py -c ./mlapiconfig.ini (code=exited, status=209/STDOUT)
Process: 20225 ExecStartPost=/bin/sh -c umask 022; pgrep mlapi.py > /var/run/mlapi.pid (code=exited, status=209/STDOUT)
Main PID: 20224 (code=exited, status=209/STDOUT)
Jun 05 09:57:07 mlapi systemd[20225]: mlapi.service: Failed at step STDOUT spawning /bin/sh: No such file or directory
Jun 05 09:57:07 mlapi systemd[20224]: mlapi.service: Failed at step STDOUT spawning /var/lib/zmeventnotification/mlapi/mlapi.py: No such file or directory
Jun 05 09:57:07 mlapi systemd[1]: mlapi.service: Main process exited, code=exited, status=209/STDOUT
Jun 05 09:57:07 mlapi systemd[1]: mlapi.service: Control process exited, code=exited, status=209/STDOUT
Jun 05 09:57:07 mlapi systemd[1]: mlapi.service: Failed with result 'exit-code'.
Jun 05 09:57:07 mlapi systemd[1]: Failed to start Machine Learning API service.
~
Code: Select all
-rw-rw-r-- 1 www-data www-data 5083 Jun 4 19:44 CHANGELOG.md
-rw-rw-r-- 1 www-data www-data 6 Jun 4 19:44 LICENSE
-rw-rw-r-- 1 www-data www-data 8444 Jun 4 19:44 README.md
drwxrwxr-x 2 www-data www-data 4096 Jun 4 19:56 db
drwxrwxr-x 2 www-data www-data 4096 Jun 4 19:44 examples
-rwxrwxr-x 1 www-data www-data 5693 Jun 4 19:44 get_models.sh
drwxrwxr-x 2 www-data www-data 4096 Jun 4 19:44 images
-rwxrwxr-x 1 www-data www-data 3013 Jun 5 08:53 install_as_service.sh
drwxrwxr-x 2 www-data www-data 4096 Jun 4 19:44 known_faces
-rwxrwxr-x 1 www-data www-data 326 Jun 4 19:44 make_changelog.sh
-rwxrwxr-x 1 www-data www-data 532 Jun 4 19:44 make_tag.sh
-rwxr-xr-x 1 www-data www-data 15525 Jun 5 08:54 mlapi.py
-rw-rw-r-- 1 www-data www-data 1408 Jun 5 09:42 mlapi.service
-rw-rw-r-- 1 www-data www-data 2025 Jun 4 19:44 mlapi_dbuser.py
-rwxr-xr-x 1 www-data www-data 676 Jun 5 08:54 mlapi_face_train.py
-rwxr-xr-x 1 www-data www-data 429 Jun 5 08:54 mlapi_logrot.sh
-rw-rw-r-- 1 www-data www-data 12846 Jun 5 09:31 mlapiconfig.ini
drwxrwxr-x 7 www-data www-data 4096 Jun 4 19:47 models
drwxrwxr-x 3 www-data www-data 4096 Jun 4 19:56 modules
drwxrwxr-x 14 www-data www-data 4096 Jun 4 20:05 opencv
-rw-rw-r-- 1 www-data www-data 198 Jun 4 19:44 requirements.txt
-rw-rw-r-- 1 www-data www-data 222 Jun 4 20:55 secrets.ini
drwxrwxr-x 2 www-data www-data 4096 Jun 4 19:44 tools
drwxrwxr-x 2 www-data www-data 4096 Jun 4 19:44 unknown_faces