Skip to content

Error in running in OKD #7

@micafer

Description

@micafer

Hi, launching this model using the container image (ai4oshub/ai4os-yolov8-torch) in the EU Node container platform (OKD) is raising this error:

## ###
## ###### ##
.##### ##### #######. .#####.
## ## ## // ## // ## ## ##
##. .## ### ### // ### ## ##
## ## #### #### #####.
Hybrid-DataCloud ##
Welcome to the DEEPaaS API API endpoint. You can directly browse to the
API documentation endpoint to check the API using the builtin Swagger UI
or you can use any of our endpoints.
API documentation: http://0.0.0.0:5000/api
API specification: http://0.0.0.0:5000/swagger.json
V2 endpoint: http://0.0.0.0:5000/v2
-------------------------------------------------------------------------
2025-06-13 11:30:19.163 1 INFO deepaas [-] Starting DEEPaaS version 2.5.2
2025-06-13 11:30:19.164 1 WARNING py.warnings [-] /opt/conda/lib/python3.10/site-packages/deepaas/api/__init__.py:72: DeprecationWarning: debug argument is deprecated
APP = web.Application(debug=CONF.debug, client_max_size=CONF.client_max_size)

2025-06-13 11:29:46.795 1 WARNING matplotlib [-] mkdir -p failed for path /.config/matplotlib: [Errno 13] Permission denied: '/.config': PermissionError: [Errno 13] Permission denied: '/.config'
2025-06-13 11:29:46.797 1 WARNING matplotlib [-] Matplotlib created a temporary cache directory at /tmp/matplotlib-hdtnmjp6 because there was an issue with the default path (/.config/matplotlib); it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
2025-06-13 11:29:47.141 1 INFO matplotlib.font_manager [-] generated new fontManager
WARNING ⚠️ user config directory '/.config/Ultralytics' is not writeable, defaulting to '/tmp' or CWD.Alternatively you can define a YOLO_CONFIG_DIR environment variable for this path.
Creating new Ultralytics Settings v0.0.6 file ✅
View Ultralytics Settings with 'yolo settings' or at '/tmp/Ultralytics/settings.json'
Update Settings with 'yolo settings key=value', i.e. 'yolo settings runs_dir=path/to/dir'. For help see https://docs.ultralytics.com/quickstart/#ultralytics-settings.
2025-06-13 11:29:48.684 1 ERROR stevedore.extension [-] Could not load 'yolov8_api': [Errno 13] Permission denied: '/srv/ai4os-yolov8-torch/models/mlruns': PermissionError: [Errno 13] Permission denied: '/srv/ai4os-yolov8-torch/models/mlruns'
2025-06-13 11:29:48.685 1 WARNING deepaas.model.v2 [-] Error loading models: No deepaas.v2.model extensions found: stevedore.exception.NoMatches: No deepaas.v2.model extensions found
2025-06-13 11:29:48.685 1 WARNING py.warnings [-] /opt/conda/lib/python3.10/site-packages/deepaas/model/__init__.py:29: DeprecationWarning: Error loading models, using test model. This will be deprecated soon.
return v2.register_models(app)
: stevedore.exception.NoMatches: No deepaas.v2.model extensions found
2025-06-13 11:29:48.686 1 CRITICAL deepaas [-] Unhandled error: TypeError: expected string or bytes-like object
2025-06-13 11:29:48.686 1 ERROR deepaas Traceback (most recent call last):
2025-06-13 11:29:48.686 1 ERROR deepaas File "/opt/conda/bin/deepaas-run", line 8, in <module>
2025-06-13 11:29:48.686 1 ERROR deepaas sys.exit(main())
2025-06-13 11:29:48.686 1 ERROR deepaas File "/opt/conda/lib/python3.10/site-packages/deepaas/cmd/run.py", line 122, in main
2025-06-13 11:29:48.686 1 ERROR deepaas web.run_app(
2025-06-13 11:29:48.686 1 ERROR deepaas File "/opt/conda/lib/python3.10/site-packages/aiohttp/web.py", line 530, in run_app
2025-06-13 11:29:48.686 1 ERROR deepaas loop.run_until_complete(main_task)
2025-06-13 11:29:48.686 1 ERROR deepaas File "/opt/conda/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
2025-06-13 11:29:48.686 1 ERROR deepaas return future.result()
2025-06-13 11:29:48.686 1 ERROR deepaas TypeError: expected string or bytes-like object
2025-06-13 11:29:48.686 1 ERROR deepaas

I think that problem is related to the fact that OKD executes the containers with non root users, and this container only works with root user.
Could you take a look?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions