Permission denied when creating /etc/astra-sim directory

オープン
#200 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
shell
領域
build-system

調査の方向性

まず ./scripts/build.sh -c analytical を実行し、/etc/astra-sim の作成処理の周辺にある scripts/build.sh を読みます。そのディレクトリがビルドまたは後続の機能に必要かどうかを判断し、root 権限を必要としない想定の設定パスを特定します。コマンドが不適切な権限エラーを生成しなくなり、結果として得られる設定の動作が検証されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Hi,

When running the command ./scripts/build.sh -c analytical, I encountered the following error:

mkdir: cannot create directory ‘/etc/astra-sim’: Permission denied

It seems like the script is trying to create a directory under /etc/(presumably to store configuration files?). However, as a regular user, I don't have permission to write to /etc/, so the directory creation failed.
That said, the overall build command still seemed to complete successfully.

My questions are:​

  1. Was the intention of the script to write configuration files or create directories under /etc/astra-sim?
  2. Since the directory creation failed due to permission issues, could this lead to any missing functionality or misconfiguration later on?
  3. Is there a recommended way to run this script (e.g., specifying a different config location, or using sudo) to avoid this issue while still ensuring everything works as intended?

Thanks in advance for your help!

主要言語
Python
スター
1.2k
フォーク
194
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aliyun/SimAI のほかの issue

aliyun/SimAI の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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