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
System Information (please complete the following information):
OS & Version: Linux Ubuntu 22.04.4 LTS
ML.NET Version: ML.NET 3.0.1
.NET Version: .NET 8.0
Describe the bug
When multiple users are running ML.NET on the same server. each process seems to require a temporary directory - however its name is hardcoded and the second user running ml.net will fail because /tmp/ml_dotnet is not accessible.
2024-06-08 20:00:31.5387|FATAL|Datahunter.Core.Helpers.MLHelper|Error initializing ML Model System.UnauthorizedAccessException: Access to the path '/tmp/ml_dotnet/hetgfm5v.kvn' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)
at System.IO.Directory.CreateDirectory(String path)
at Microsoft.ML.Repository.GetShortTempDir(IExceptionContext ectx)
at Microsoft.ML.Repository..ctor(Boolean needDir, IExceptionContext ectx)
at Microsoft.ML.RepositoryReader..ctor(Stream stream, IExceptionContext ectx, Boolean useFileSystem)
at Microsoft.ML.RepositoryReader.Open(Stream stream, IExceptionContext ectx, Boolean useFileSystem)
at Microsoft.ML.ModelOperationsCatalog.Load(Stream stream, DataViewSchema& inputSchema)
To Reproduce
Steps to reproduce the behavior:
Launch one process with user one
Launch same process with user two
User two will get an IOException
Expected behavior
Temporary directory should be unique for each user
The text was updated successfully, but these errors were encountered:
System Information (please complete the following information):
Describe the bug
When multiple users are running ML.NET on the same server. each process seems to require a temporary directory - however its name is hardcoded and the second user running ml.net will fail because /tmp/ml_dotnet is not accessible.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Temporary directory should be unique for each user
The text was updated successfully, but these errors were encountered: