作成日: 2021/08/13
0

yarn

yarn installで「info There appears to be trouble with your network connection. Retrying...」

yarn installしたときに「info There appears to be trouble with your network connection. Retrying...」が発生しました。

> docker build . -t nestjs
[+] Building 280.3s (13/17)                                                                                                                  
 => [internal] load build definition from Dockerfile                                                                                    0.0s
 => => transferring dockerfile: 37B                                                                                                     0.0s
 => [internal] load .dockerignore                                                                                                       0.0s
 => => transferring context: 34B                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/node:14-slim                                                                         2.6s
 => [internal] load metadata for gcr.io/distroless/nodejs:14                                                                            0.8s
 => [auth] library/node:pull token for registry-1.docker.io                                                                             0.0s
 => [node_modules 1/4] FROM docker.io/library/node:14-slim@sha256:a3ff0656dfa88cc5c4092af3e18d16cbbbf50417ce4d0565d013f9ef51860b3a      0.0s
 => [stage-2 1/4] FROM gcr.io/distroless/nodejs:14@sha256:f7a059c07ea667a42db19a011be49f4384d066ad63d42d8c5e7e8ab339dd5092              0.0s
 => [internal] load build context                                                                                                       0.0s
 => => transferring context: 727B                                                                                                       0.0s
 => CACHED [stage-2 2/4] WORKDIR /app                                                                                                   0.0s
 => CACHED [node_modules 2/4] WORKDIR /app                                                                                              0.0s
 => CACHED [node_modules 3/4] COPY package.json yarn.lock ./                                                                            0.0s
 => CANCELED [build 4/6] RUN yarn install --non-interactive --frozen-lockfile                                                         277.4s
 => ERROR [node_modules 4/4] RUN yarn install --non-interactive --frozen-lockfile --prod                                              273.4s
------                                                                                                                                       
 > [node_modules 4/4] RUN yarn install --non-interactive --frozen-lockfile --prod:                                                           
#16 1.706 yarn install v1.22.5                                                                                                               
#16 2.013 [1/4] Resolving packages...                                                                                                        
#16 3.755 [2/4] Fetching packages...                                                                                                         
#16 48.05 info There appears to be trouble with your network connection. Retrying...                                                         
#16 56.55 info There appears to be trouble with your network connection. Retrying...                                                         
#16 69.62 info There appears to be trouble with your network connection. Retrying...                                                         
#16 81.99 info There appears to be trouble with your network connection. Retrying...                                                         
#16 90.70 info There appears to be trouble with your network connection. Retrying...                                                         
#16 116.8 info There appears to be trouble with your network connection. Retrying...                                                         
#16 150.2 info There appears to be trouble with your network connection. Retrying...                                                         
#16 191.1 error An unexpected error occurred: "<https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz:> ESOCKETTIMEDOUT".
#16 191.1 info If you think this is a bug, please open a bug report with the information provided in "/app/yarn-error.log".
#16 191.1 info Visit <https://yarnpkg.com/en/docs/cli/install> for documentation about this command.
#16 203.9 info There appears to be trouble with your network connection. Retrying...
#16 236.0 info There appears to be trouble with your network connection. Retrying...
------
executor failed running [/bin/sh -c yarn install --non-interactive --frozen-lockfile --prod]: exit code: 1

timeout の場合は、.yarnrcnetwork-timeout に書かれている数字を大きくすると解消できる場合がある。

【Tips】yarn install時に発生しうるESOCKETTIMEDOUTの回避 - Qiita

vyos

事象

leaseに重複するアドレスが存在してしまう。

分かっている事

2s以内に一括でDHCP offerを送ると、IPアドレスが重複する

解消方法

  • reset dhcp server leases
    

    → clientをreboot

    • lease期間によっては、同じIPアドレスが振られる事があるので非推奨
  • dhcp clientの起動間隔を長くする

    • terraformならdepends_on

Qiita

自分の記事をmarkdownで取得するコマンド

  • タイトルに/が入っていない事
  • 使用コマンド
    • jq
    • nkf
user_id=yumenomatayume
articles=$(curl -s "https://qiita.com/api/v2//users/${user_id}/items?per_page=100" | jq -r ".[].url")

for article in $articles;do
  file=$(echo "$(curl -s $article.md | grep '^title:' | sed -E 's/^title: //g').md" | nkf -w --url-input)
  curl -s $article.md > "$file"
done

Git

git logにファイルの差分を表示させたい時

git log -p

git logでコミットしたファイルの差分を見ながら更新履歴を追う - Qiita


インフラエンジニアです。 メモで利用しています。まとまったら以下に移行予定です。 Zenn: https://zenn.dev/ymmmtym 個人ブログ: https://blog.ymmmtym.com/ Scrapbox:https://scrapbox.io/yumenomatayume/