Altpapier / Altpapier/SkyHelper-Networth

Permission error when running in Docker

オープン
#65 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
JavaScript
スター
27
フォーク
13
平均マージ
3日 1時間
マージ済み PR(30日)
2

説明

# Permission error when running in Docker

## Issue
When running in a Docker container, the module fails with permission errors when trying to write to the `.itemsBackup.json` file within the module's parent directory. This breaks in containerized environments with restricted permissions.

```
[3/26/2025, 20:05:27 UTC] Warning > [SKYHELPER-NETWORTH] Failed to retrieve items: Error: EACCES: permission denied, open '/usr/src/app/node_modules/skyhelper-networth/.itemsBackup.json'. Retrying (3 attempt(s) left)...
[3/26/2025, 20:05:28 UTC] Warning > [SKYHELPER-NETWORTH] Failed to retrieve items: Error: EACCES: permission denied, open '/usr/src/app/node_modules/skyhelper-networth/.itemsBackup.json'. Retrying (2 attempt(s) left)...
[3/26/2025, 20:05:29 UTC] Warning > [SKYHELPER-NETWORTH] Failed to retrieve items: Error: EACCES: permission denied, open '/usr/src/app/node_modules/skyhelper-networth/.itemsBackup.json'. Retrying (1 attempt(s) left)...
ItemsError: [SKYHELPER-NETWORTH] Failed to retrieve items: Error: EACCES: permission denied, open '/usr/src/app/node_modules/skyhelper-networth/.itemsBackup.json'.
at NetworthManager.updateItems (/usr/src/app/node_modules/skyhelper-networth/managers/NetworthManager.js:161:28)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async NetworthManager.updateItems (/usr/src/app/node_modules/skyhelper-networth/managers/NetworthManager.js:165:20)
at async NetworthManager.updateItems (/usr/src/app/node_modules/skyhelper-networth/managers/NetworthManager.js:165:20)
at async NetworthManager.updateItems (/usr/src/app/node_modules/skyhelper-networth/managers/NetworthManager.js:165:20)
```

## Environment
- Container environment: Docker
- Node.js version: 22.14.0
- Module version: v2

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。