学習方法

メンター情報

料金

対応時間帯

返信スピード

学習方法

メンター情報

料金

対応時間帯

返信スピード

募集をシェアしてメンターを探そう
シェア

※ この募集は締め切られました。

インフラ・クラウド AWS Docker

Fargate構築時のエラーへのアドバイス

2023年8月15日
単発
予算
20,000円
提案数
3人が提案中
応募期限
終了

【教えてもらいたいこと】
プログラミング/インフラ・クラウド, AWS, Docker

【利用目的】
技術的な質問・相談

【具体的な相談内容】
CodeBuildからECRにイメージを生成し、それをFargateで動かそうとしております。

Fargateのクラスタの作成は完了しており、サービスの生成時にエラーがでております。

具体的には以下のエラーが派生しており、 npm install時にpackage-lock.jsonのパーミッションエラーが発生しております。

chmodを実行したりといろいろと調整しているもののエラーが解消されず、ペアプロ形式でその場でデバッグしてアドバイスいただきたいです。


```
#15 [stage-0 9/9] RUN npm install
#15 10.27 npm notice
#15 10.27 npm notice New patch version of npm available! 9.8.0 -> 9.8.1
#15 10.27 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.8.1>
#15 10.27 npm notice Run `npm install -g npm@9.8.1` to update!
#15 10.27 npm notice
#15 10.27 npm ERR! code EACCES
#15 10.27 npm ERR! syscall open
#15 10.27 npm ERR! path /app/package-lock.json
#15 10.27 npm ERR! errno -13
#15 10.28 npm ERR! Error: EACCES: permission denied, open '/app/package-lock.json'
#15 10.28 npm ERR! [Error: EACCES: permission denied, open '/app/package-lock.json'] {
#15 10.28 npm ERR! errno: -13,
#15 10.28 npm ERR! code: 'EACCES',
#15 10.28 npm ERR! syscall: 'open',
#15 10.28 npm ERR! path: '/app/package-lock.json'
#15 10.28 npm ERR! }
#15 10.28 npm ERR!
#15 10.28 npm ERR! The operation was rejected by your operating system.
#15 10.28 npm ERR! It is likely you do not have the permissions to access this file as the current user
#15 10.28 npm ERR!
#15 10.28 npm ERR! If you believe this might be a permissions issue, please double-check the
#15 10.28 npm ERR! permissions of the file and its containing directories, or try running
#15 10.28 npm ERR! the command again as root/Administrator.
#15 10.28
#15 10.28 npm ERR! A complete log of this run can be found in: /home/node/.npm/_logs/2023-08-15T02_32_48_649Z-debug-0.log
#15 ERROR: process "/bin/sh -c npm install" did not complete successfully: exit code: 243
------
> [stage-0 9/9] RUN npm install:
10.28 npm ERR! }
10.28 npm ERR!
10.28 npm ERR! The operation was rejected by your operating system.
10.28 npm ERR! It is likely you do not have the permissions to access this file as the current user
10.28 npm ERR!
10.28 npm ERR! If you believe this might be a permissions issue, please double-check the
10.28 npm ERR! permissions of the file and its containing directories, or try running
10.28 npm ERR! the command again as root/Administrator.
10.28
10.28 npm ERR! A complete log of this run can be found in: /home/node/.npm/_logs/2023-08-15T02_32_48_649Z-debug-0.log
------
Dockerfile:15
--------------------
13 | COPY package.json ./
14 |
15 | >>> RUN npm install
16 |
17 |
--------------------
ERROR: failed to solve: process "/bin/sh -c npm install" did not complete successfully: exit code: 243

```

より詳細なエラーの内容などは応募いただいた方に共有させていただきます。

Dockerファイルの修正などもはいるのと、Node.jsの環境構築ができるぐらいのアプリケーションレイヤーの知識は必要となります。

初回1時間だけで終わらない可能性もあるのは想定済みですので、
場合によっては持ち帰っていただいても大丈夫です。

最終的に動作できるところまでをゴールとしたいですが、そこにあたっての簡単な概算見積もりと、インフラ周りの過去の実績などを添えてメッセージいただけた方から順次ご返信させていただきます。


宜しくおねがいします。

【希望相談スタイル】
ビデオ通話

【目安予算】
20000円

募集をシェアしてメンターを探そう
シェア