Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Executing Algorithms - Docker - TimeEval-algorithms #4

Open
kalifou opened this issue Sep 9, 2024 · 3 comments
Open
Assignees
Labels
question Further information is requested

Comments

@kalifou
Copy link

kalifou commented Sep 9, 2024

Hello,

I am currently having issues with executing and benchmarking algorithms on your repo.
After installing the repo and I have decided to follow the steps in the ESA-TimeEval-algorithms guiding page:
https://github.com/kplabs-pl/ESA-ADB/tree/main/TimeEval-algorithms

The issue is related to the containerization of the algorithms.
It occurs when I use the commands in section 3. Train your algorithm or 4. Execute your algorithm (after building the individual images).
It also occurs when I run the test.sh script: bash test.sh algorithm {train / execute}
This occurs for all, e.g lof, pcc, copod, knn...

(docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/entrypoint.sh": permission denied: unknown)

However, this does not occur then doing the same experiments on the original repository of TimeEval-algorithms (same machine and docker setting, same commands, different repo).

Would you have pointers on how to fix this issue ?
I initially thought it had to do with my docker installation...which now cleared after the comparison .

Many thanks
René

@Kotrix
Copy link
Collaborator

Kotrix commented Sep 9, 2024

Hi, adjusting permissions of the entrypoint.sh before building the Docker image should solve the problem. However, it is interesting that you do not encounter the same problem when working with the original TimeEval. I will try to investigate this problem next week.

@kalifou
Copy link
Author

kalifou commented Sep 9, 2024

Hi,

Thank you for your reply.

Sure, regarding the permissions, I have looked a bit into it.
For instance, I looked into the Dockerfile of a target algorithm, say pcc, to see how to add missing rights to the configuration.
(https://github.com/kplabs-pl/ESA-ADB/blob/main/TimeEval-algorithms/pcc/Dockerfile), but without success.

Example of line added:
RUN ["chmod", "+x", "/app/algorithm.py"]
ENTRYPOINT["/app/algorithm.py"] (tried with and without previous line)
Outcome: issue not solved.

Would you have any recommendations?

Another possible directon would be the difference in the Dockerfiles accross repositories for the algos..
For instannce, for KNN, here is the diffs of the files, which appear at the first line, somehow related to the base image version:

< FROM registry.gitlab.hpi.de/akita/i/pyod-1.1.2
---
> FROM ghcr.io/timeeval/pyod:0.3.1

I am not sure yet how this could cause/relate to my issue.
Cheers

@Kotrix
Copy link
Collaborator

Kotrix commented Nov 25, 2024

Hi, have you managed to solve the problem? Because I cannot directly reproduce it.

One thing I can recommend is to set up permissions not in the Dockerfile, but for the original file on your computer, before running anything.

@Kotrix Kotrix self-assigned this Jan 24, 2025
@Kotrix Kotrix added the question Further information is requested label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants