pytorch/serve

permission error while trying to remove previous artifact files in `/tmp/`

Open

#1532 aperta il 25 mar 2022

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Java (790 fork)batch import
good first issue

Metriche repository

Star
 (3844 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

https://github.com/pytorch/serve/blob/6a191f822f2e759c2aad07b8f9eacbedcb039827/model-archiver/model_archiver/model_packaging_utils.py#L137

In a multi-user system, this line can raise Permission Error because of the same file name in the shared /tmp/ directory which maybe created by another user. Maybe we can give more unique name when we store it using timestamp or something.

Guida contributor