pytorch/serve

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

Open

#1,532 创建于 2022年3月25日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Java (3,844 star) (790 fork)batch import
good first issue

描述

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.

贡献者指南

permission error while trying to remove previous artifact files in `/tmp/` · pytorch/serve#1532 | Good First Issue