You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Session management in the Ersilia CLI has introduced the convenience to run multiple simultaneous models across different terminal "sessions", thereby increasing user productivity. However, the way Ersilia handles sessions currently, wherein a session is linked to a terminal process makes creates several complications especially in the following situations:
Session directories (typically found in ~/eos/sessions ) do not get cleared up if they contain files that don't have write permissions, meaning they don't get successfully deleted, leaving behind the session directory as well.
If a terminal is accidentally closed, or if a user's system crashes, or the docker engine crashes (in case of using Dockerized models), the session directories tend to remain on the system.
For the 1st case, we have identified issues with log files or temporary directories from model containers present in mounted storage on the system owned by the root user from the container, and having 700 permission. These files cannot be deleted by a regular user without running sudo, therefore these files do not get removed, causing the entire session directory to remain on disk.
Hey @DhanshreeA here is what I encountered when running closing session:
First I serve the model and some session folder gets created, for instance session_3226. The folder contains
- console.logcurrent.log_logslogseos-id.pidsession.json
Then when executing the close command only eos-id.pidsession.json removed other files and the folders remains.
I expected the close command to remove the session_3226 completely. Because when serving again other folder will be created and this will remain which is not good.
I confirm the session folders are never deleted and I can only resort to manually deleting them from time to time. I believe this should be easy to fix? I am referring to these kind of errors:
PermissionError: [Errno 13] Permission denied: '/home/gturon/eos/sessions/session_17939/_logs/tmp/ersilia-o9wneg9i'
A note on running several models in parallel sessions: this is not documented anywhere
Summary
Session management in the Ersilia CLI has introduced the convenience to run multiple simultaneous models across different terminal "sessions", thereby increasing user productivity. However, the way Ersilia handles sessions currently, wherein a session is linked to a terminal process makes creates several complications especially in the following situations:
~/eos/sessions
) do not get cleared up if they contain files that don't have write permissions, meaning they don't get successfully deleted, leaving behind the session directory as well.For the 1st case, we have identified issues with log files or temporary directories from model containers present in mounted storage on the system owned by the
root
user from the container, and having 700 permission. These files cannot be deleted by a regular user without running sudo, therefore these files do not get removed, causing the entire session directory to remain on disk.Objective(s)
Documentation
No response
The text was updated successfully, but these errors were encountered: