Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RuntimeError: Data processing error: I/O error: Permission denied (os error 13)
- Fetching 339 files: 0%| | 0/339 [00:00<?, ?it/s]
- Fetching 339 files: 1%| | 3/339 [00:00<00:26, 12.46it/s]
- [06/12/25 21:51:00] ERROR Exception in ASGI application
- ╭─────── Traceback (most recent call last) ───────╮
- │ /usr/src/immich_ml/main.py:177 in predict │
- │ │
- │ 174 │ │ inputs = text │
- │ 175 │ else: │
- │ 176 │ │ raise HTTPException(400, "Either │
- │ ❱ 177 │ response = await run_inference(inputs │
- │ 178 │ return ORJSONResponse(response) │
- │ 179 │
- │ 180 │
- │ │
- │ /usr/src/immich_ml/main.py:200 in run_inference │
- │ │
- │ 197 │ │ response[entry["task"]] = output │
- │ 198 │ │
- │ 199 │ without_deps, with_deps = entries │
- │ ❱ 200 │ await asyncio.gather(*[_run_inference │
- │ 201 │ if with_deps: │
- │ 202 │ │ await asyncio.gather(*[_run_infer │
- │ 203 │ if isinstance(payload, Image): │
- │ │
- │ /usr/src/immich_ml/main.py:194 in │
- │ _run_inference │
- │ │
- │ 191 │ │ │ except KeyError: │
- │ 192 │ │ │ │ message = f"Task {entry[' │
- │ output of {dep}" │
- │ 193 │ │ │ │ raise HTTPException(400, │
- │ ❱ 194 │ │ model = await load(model) │
- │ 195 │ │ output = await run(model.predict, │
- │ 196 │ │ outputs[model.identity] = output │
- │ 197 │ │ response[entry["task"]] = output │
- │ │
- │ /usr/src/immich_ml/main.py:238 in load │
- │ │
- │ 235 │ │ return model │
- │ 236 │ │
- │ 237 │ try: │
- │ ❱ 238 │ │ return await run(_load, model) │
- │ 239 │ except (OSError, InvalidProtobuf, Bad │
- │ 240 │ │ log.warning(f"Failed to load {mod │
- │ '{model.model_name}'. Clearing cache.") │
- │ 241 │ │ model.clear_cache() │
- │ │
- │ /usr/src/immich_ml/main.py:213 in run │
- │ │
- │ 210 │ if thread_pool is None: │
- │ 211 │ │ return func(*args, **kwargs) │
- │ 212 │ partial_func = partial(func, *args, * │
- │ ❱ 213 │ return await asyncio.get_running_loop │
- │ 214 │
- │ 215 │
- │ 216 async def load(model: InferenceModel) -> │
- │ │
- │ /usr/local/lib/python3.11/concurrent/futures/th │
- │ read.py:58 in run │
- │ │
- │ /usr/src/immich_ml/main.py:225 in _load │
- │ │
- │ 222 │ │ │ raise HTTPException(500, f"Fa │
- │ 223 │ │ with lock: │
- │ 224 │ │ │ try: │
- │ ❱ 225 │ │ │ │ model.load() │
- │ 226 │ │ │ except FileNotFoundError as e │
- │ 227 │ │ │ │ if model.model_format == │
- │ 228 │ │ │ │ │ raise e │
- │ │
- │ /usr/src/immich_ml/models/base.py:51 in load │
- │ │
- │ 48 │ │ │ return │
- │ 49 │ │ self.load_attempts += 1 │
- │ 50 │ │ │
- │ ❱ 51 │ │ self.download() │
- │ 52 │ │ attempt = f"Attempt #{self.load_a │
- │ else "Loading" │
- │ 53 │ │ log.info(f"{attempt} {self.model_ │
- │ '{self.model_name}' to memory") │
- │ 54 │ │ self.session = self._load() │
- │ │
- │ /usr/src/immich_ml/models/base.py:44 in │
- │ download │
- │ │
- │ 41 │ │ │ log.info( │
- │ 42 │ │ │ │ f"Downloading {self.model │
- │ '{self.model_name}'. This may take a whil │
- │ 43 │ │ │ ) │
- │ ❱ 44 │ │ │ self._download() │
- │ 45 │ │
- │ 46 │ def load(self) -> None: │
- │ 47 │ │ if self.loaded: │
- │ │
- │ /usr/src/immich_ml/models/base.py:76 in │
- │ _download │
- │ │
- │ 73 │ │ │ ModelFormat.RKNN: ["*.armnn"] │
- │ 74 │ │ } │
- │ 75 │ │ │
- │ ❱ 76 │ │ snapshot_download( │
- │ 77 │ │ │ f"immich-app/{clean_name(self │
- │ 78 │ │ │ cache_dir=self.cache_dir, │
- │ 79 │ │ │ local_dir=self.cache_dir, │
- │ │
- │ /opt/venv/lib/python3.11/site-packages/huggingf │
- │ ace_hub/utils/_validators.py:114 in _inner_fn │
- │ │
- │ 111 │ │ if check_use_auth_token: │
- │ 112 │ │ │ kwargs = smoothly_deprecate_u │
- │ has_token=has_token, kwargs=kwargs) │
- │ 113 │ │ │
- │ ❱ 114 │ │ return fn(*args, **kwargs) │
- │ 115 │ │
- │ 116 │ return _inner_fn # type: ignore │
- │ 117 │
- │ │
- │ /opt/venv/lib/python3.11/site-packages/huggingf │
- │ ace_hub/_snapshot_download.py:297 in │
- │ snapshot_download │
- │ │
- │ 294 │ │ for file in filtered_repo_files: │
- │ 295 │ │ │ _inner_hf_hub_download(file) │
- │ 296 │ else: │
- │ ❱ 297 │ │ thread_map( │
- │ 298 │ │ │ _inner_hf_hub_download, │
- │ 299 │ │ │ filtered_repo_files, │
- │ 300 │ │ │ desc=f"Fetching {len(filtered │
- │ │
- │ /opt/venv/lib/python3.11/site-packages/tqdm/con │
- │ trib/concurrent.py:69 in thread_map │
- │ │
- │ 66 │ │ [default: max(32, cpu_count() + 4 │
- │ 67 │ """ │
- │ 68 │ from concurrent.futures import Thread │
- │ ❱ 69 │ return _executor_map(ThreadPoolExecut │
- │ 70 │
- │ 71 │
- │ 72 def process_map(fn, *iterables, **tqdm_kw │
- │ │
- │ /opt/venv/lib/python3.11/site-packages/tqdm/con │
- │ trib/concurrent.py:51 in _executor_map │
- │ │
- │ 48 │ │ # share lock in case workers are │
- │ 49 │ │ with PoolExecutor(max_workers=max │
- │ 50 │ │ │ │ │ │ initargs=(lk,)) │
- │ ❱ 51 │ │ │ return list(tqdm_class(ex.map │
- │ **kwargs)) │
- │ 52 │
- │ 53 │
- │ 54 def thread_map(fn, *iterables, **tqdm_kwa │
- │ │
- │ /opt/venv/lib/python3.11/site-packages/tqdm/std │
- │ .py:1181 in __iter__ │
- │ │
- │ 1178 │ │ time = self._time │
- │ 1179 │ │ │
- │ 1180 │ │ try: │
- │ ❱ 1181 │ │ │ for obj in iterable: │
- │ 1182 │ │ │ │ yield obj │
- │ 1183 │ │ │ │ # Update and possibly pr │
- │ 1184 │ │ │ │ # Note: does not call se │
- │ │
- │ /usr/local/lib/python3.11/concurrent/futures/_b │
- │ ase.py:619 in result_iterator │
- │ │
- │ /usr/local/lib/python3.11/concurrent/futures/_b │
- │ ase.py:317 in _result_or_cancel │
- │ │
- │ /usr/local/lib/python3.11/concurrent/futures/_b │
- │ ase.py:456 in result │
- │ │
- │ /usr/local/lib/python3.11/concurrent/futures/_b │
- │ ase.py:401 in __get_result │
- │ │
- │ /usr/local/lib/python3.11/concurrent/futures/th │
- │ read.py:58 in run │
- │ │
- │ /opt/venv/lib/python3.11/site-packages/huggingf │
- │ ace_hub/_snapshot_download.py:271 in │
- │ _inner_hf_hub_download │
- │ │
- │ 268 │ # so no network call happens if we al │
- │ 269 │ # have the file locally. │
- │ 270 │ def _inner_hf_hub_download(repo_file: │
- │ ❱ 271 │ │ return hf_hub_download( │
- │ 272 │ │ │ repo_id, │
- │ 273 │ │ │ filename=repo_file, │
- │ 274 │ │ │ repo_type=repo_type, │
- │ │
- │ /opt/venv/lib/python3.11/site-packages/huggingf │
- │ ace_hub/utils/_validators.py:114 in _inner_fn │
- │ │
- │ 111 │ │ if check_use_auth_token: │
- │ 112 │ │ │ kwargs = smoothly_deprecate_u │
- │ has_token=has_token, kwargs=kwargs) │
- │ 113 │ │ │
- │ ❱ 114 │ │ return fn(*args, **kwargs) │
- │ 115 │ │
- │ 116 │ return _inner_fn # type: ignore │
- │ 117 │
- │ │
- │ /opt/venv/lib/python3.11/site-packages/huggingf │
- │ ace_hub/file_download.py:988 in hf_hub_download │
- │ │
- │ 985 │ │ │ │ "For more details, check │
- │ https://huggingface.co/docs/huggingface_ │
- │ cal-folder." │
- │ 986 │ │ │ ) │
- │ 987 │ │ │
- │ ❱ 988 │ │ return _hf_hub_download_to_local │
- │ 989 │ │ │ # Destination │
- │ 990 │ │ │ local_dir=local_dir, │
- │ 991 │ │ │ # File info │
- │ │
- │ /opt/venv/lib/python3.11/site-packages/huggingf │
- │ ace_hub/file_download.py:1288 in │
- │ _hf_hub_download_to_local_dir │
- │ │
- │ 1285 │ # Otherwise, let's download the file │
- │ 1286 │ with WeakFileLock(paths.lock_path): │
- │ 1287 │ │ paths.file_path.unlink(missing_o │
- │ ❱ 1288 │ │ _download_to_tmp_and_move( │
- │ 1289 │ │ │ incomplete_path=paths.incomp │
- │ 1290 │ │ │ destination_path=paths.file_ │
- │ 1291 │ │ │ url_to_download=url_to_downl │
- │ │
- │ /opt/venv/lib/python3.11/site-packages/huggingf │
- │ ace_hub/file_download.py:1708 in │
- │ _download_to_tmp_and_move │
- │ │
- │ 1705 │ │ │
- │ 1706 │ │ if xet_file_data is not None and │
- │ 1707 │ │ │ logger.info("Xet Storage is │
- │ Storage..") │
- │ ❱ 1708 │ │ │ xet_get( │
- │ 1709 │ │ │ │ incomplete_path=incomple │
- │ 1710 │ │ │ │ xet_file_data=xet_file_d │
- │ 1711 │ │ │ │ headers=headers, │
- │ │
- │ /opt/venv/lib/python3.11/site-packages/huggingf │
- │ ace_hub/file_download.py:627 in xet_get │
- │ │
- │ 624 │ │ def progress_updater(progress_by │
- │ 625 │ │ │ progress.update(progress_byt │
- │ 626 │ │ │
- │ ❱ 627 │ │ download_files( │
- │ 628 │ │ │ xet_download_info, │
- │ 629 │ │ │ endpoint=connection_info.end │
- │ 630 │ │ │ token_info=(connection_info. │
- │ connection_info.expiration_unix_epoch), │
- ╰─────────────────────────────────────────────────╯
- RuntimeError: Data processing error: I/O error:
- Permission denied (os error 13)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement