- 投稿日:2019-10-28T23:51:22+09:00
Could not resolve hostname hogehoge: nodename nor servname provided, or not knownって出てSSH接続出来ない
Could not resolve hostname hogehoge: nodename nor servname provided, or not known
いつもの様に人のPCの設定をしていたらこんなメッセージ。
やろうとしていた事
ssh hogehoge↑のコマンドで123.123.12.123(例です)というIPアドレスに接続する
ポートも指定する。
しかし設定を終えてコマンドを叩くと冒頭のメッセージ。解決
hostsにIPアドレスを記述していなかったので、
vi /etc/hostsで追記。
無事に接続できる様になりました。補足
今回やりたかった事をするには
~/.ssh/config/etc/hostsそれぞれに設定の記述が必要。
Could not resolve hostnameって出てるので、
エラーメッセージ通りの間違いでしたね。
- 投稿日:2019-10-28T22:14:14+09:00
Linux一般ユーザーがTABキーや矢印キー押しても補完機能が動作しない
一般ユーザーがTABキーや矢印キー押しても補完機能が動作しない
Linuxで一般ユーザーでログインした時に矢印キーやTABキーを押下してもコマンドの候補が表示されない場合があります。そのような場合は、作成したユーザーのシェルがbashではなくshになっている可能性があります。
UNIX系では、「/etc/passwd」というファイルにユーザー情報が格納されます。
このファイルの1行が1人のユーザに該当する情報です。また、各行はさらに「:(コロン)」で区切られており、以下の意味を持ちます。ユーザ名:パスワード:ユーザ番号:グループ番号:コメント:ホームディレクトリー:シェル対策
もし、TABキーや矢印キー押しても思った通り動作しなかった場合は、そのユーザーの情報を確認します。例えば、「dakc」というユーザーでログインした時に発生した場合は、以下のコマンドで「dakc」の情報を確認します。
# cat /etc/passwd |grep dakc dakc:x:1092:1092::/home/kc:/bin/sh最後に見たらわかりますが、シェルが/bin/bashではなく、/bin/shになっています。
このままターミナルからbashを実行してもいいですが、これが一時的なものなので、以下のコマンドを実行します。
# chsh -s /bin/bash dakc-sの意味は、ユーザのシェルを新たに 指定したシエルにする意味です。
(--shellでもOK)上記の方法で/etc/passwdの中身を確認するとシェルがbashに変わったのが確認できるかと思います。もし、似たような事で困っていたら、まずユーザーの情報を調べてみてください。
- 投稿日:2019-10-28T21:29:04+09:00
pipを使おうとして「TypeError: 'module' object is not callable」が出た場合の対処方法メモ
正確な発動条件が定かではないですが、ubuntu18.04にpipを手動インストールし、pyenvで環境構築した際にタイトルのエラーが発生したので、解決できた方法をメモします。
現象
上記条件で、pyenvで作成したpython環境でpipを実行しようとすると次のエラーが出て動かない。
>> pip Traceback (most recent call last): File "/home/dev-user/.pyenv/versions/3.6.7/bin/pip", line 11, in <module> sys.exit(main()) TypeError: 'module' object is not callable解決方法
pyenv環境で次のコマンドでpipインストールを再実行したところ解決。
curl -kL https://bootstrap.pypa.io/get-pip.py | pythonあとがき
エラーメッセージで検索すると、aptでpipをアップデートしている記事や、pip install pip==18.0などでversionを戻している記事などはあったのですが、直接的な解法にたどり着くのに時間がかかったのでメモを兼ねて記事にしました。
- 投稿日:2019-10-28T18:56:58+09:00
シェルスクリプトとcrontabでrssを自動取得してみる
免責事項
この記事は初心者視点でザックリとした説明をしています。正確性に欠ける可能性がございますが、ご了承ください。「明らかに違うよ」ということがありましたら、ご指摘くださると幸いです。
環境
OS:最新版ではないMacOS
VirtualBox:5.2.26
Vagrant:2.2.6
Ubuntu:ubuntu/bionic64 v20181129.0.0やること
シェルスクリプトとcrontabコマンドの設定を使い、総務省のニュースを自動取得する仕組みを作っていきます。
1. ディレクトリをつくる
まずはrssのデータ(xml形式のファイル)が保存されるディレクトリをつくりましょう。
$ mkdir ディレクトリ名2. シェルスクリプトを書くファイルをつくる
シェルスクリプトを書くファイルをつくります。
シェルスクリプトを書くファイル名はなんでも良いです。
ここでは、soumu-rss.shとしておきます。
ついでに実行権限をすべてのユーザーに与えます。//ファイルを作る $ touch soumu-rss.sh //ファイルの実行権限の設定 $ chmod a+x soumu-rss.sh3. ファイルにシェルスクリプトを書く
ファイルには以下のように書きます。
soumu-rss.sh#!/bin/bash dirname="../ディレクトリ名" filename1="${dirname}/soumu-news.xml" curl http://www.soumu.go.jp/news.rdf -s -o $filename1 -H "User-Agent: CrawlBot; 自分のメールアドレス" filename2="${dirname}/soumu-news-`date +'%Y%m%d%H%M'`.xml" iconv -s -f Shift_JIS -t utf-8 $filename1 -o $filename2 echo "Save to $filename2"解説
#!/bin/bash は、シバングの設定です。
dirname="../ディレクトリ名" は、ディレクトリを相対パスで変数に入れています。
filename1="\${dirname}/soumu-news.xml" は、RSSを仮保存するファイル名を変数に入れています。
curl http://www.soumu.go.jp/news.rdf -s -o $filename1 -H "User-Agent: CrawlBot; 自分のメールアドレス"
は、
curl http://www.soumu.go.jp/news.rdf でURLのxmlをコンソールに出力
-s でそのコンソールへの出力をなくします。
-o $filename1で出力を保存するファイルをfilename1に指定。
-H "User-Agent: CrawlBot; 自分のメールアドレス" でHTTP通信のヘッダーの設定を行なっています。詳しくはわかりません。
filename2="\${dirname}/soumu-news-`date +'%Y%m%d%H%M'`.xml" は、RSSを保存するファイルを変数に入れています。
iconv -s -f Shift_JIS -t utf-8 \$filename1 -o \$filename2 は、
iconvは文字コードの変更を行います。
-sはコンソールへの出力をなくします。
-fで元の文字コードを指定します。元の文字コードはShift_JISです。
-tで変更先の文字コードを指定します。一般的に使いやすいutf-8に指定しました。
iconv 元のファイル名(filename1) -o 変更先のファイル名(filename2)とします。
echo "Save to $filename2"で、filename2の保存が終わったことをコンソールに表示します。4. シェルスクリプトファイルの実行
先ほど書いたファイルの実行を行います。
$ ./soumu-rss.shとコンソールに打つと、
Save to ../ディレクトリ名/soumu-news-201910281814.xmlと言う風にコンソールに表示されると思います。
最初に作ったディレクトリを確認してみると、soumu-news-201910281814.xmlが取得できているはずです。5. RSSの自動取得
続いて、先ほどのRSSを毎時間自動取得していきます。
コンソールに、$ select-editor入力すると以下のような画面がでてきます。
今回は1のエディターを選択します。
エディターを選択したら、続いてコンソールに以下のコマンドを打ちます。$ crontab -eこれはコマンドを決めた時間に自動で打つように設定できるコマンドです。
すると、以下のような画面が表示されます。
そして、マウス等で一番下まで移動すると以下のような文字が出てきます。
一番下に、# m h dom mon dow commandとあり、その下に
10 * * * * ../soumu-rss.sh
と書き込みます。
以下のような感じです。
これは、毎時間の10分になったら、
$ ./soumu-rss.shが自動的に実行されるという設定になります。
以上でシェルスクリプトとcrontabを使うrssの自動取得が完了しました。
参考
「N予備校 プログラミングコース」
https://www.nnn.ed.nico/
「iconv - ファイルの文字コードを変換 - Linuxコマンド」
https://webkaru.net/linux/iconv-command/
- 投稿日:2019-10-28T17:23:08+09:00
CRL証明書が発行できない
1.Error内容
秘密鍵、証明書作成はスムーズに進み、CRLを作るぞっと思ったら以下のErrorで作成出来ない。
[daikon@CentOS7 ~]$openssl ca -gencrl -out CA.crl /etc/pki/CA/crlnumber: No such file or directory error while loading CRL number 140699256829584:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('/home/holly/CA/crlnumber','r') 140699256829584:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:2.解決方法
内容を見てみると、どうも「/etc/pki/CA/crlnumber」が存在せずErrorが出ているみたい。
ということで、以下のコマンドでcrlnumberファイルを作成して解決。
echo '00' > /etc/pki/CA/crlnumber
- 投稿日:2019-10-28T13:25:26+09:00
SNMPv3 の Trap受信設定をしてみる(CentOS7)
1. はじめに
Centos7のサーバー上でLBからのSNMPv3 Trap受信設定をした際の備忘録です。
SNMPv3関連の情報があまり見当たらなかったので記事にします。2. サーバーへのTrap受信設定方法
1.まずはfirewalldをオフにする
systemctl stop firewalld
or
systemctl disable firewalld2.「/etc/snmp/snmptrapd.conf」に設定を追加
# Example configuration file for snmptrapd # # No traps are handled by default, you must edit this file! # # authCommunity log,execute,net public # traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script cold createUser -e <EngineID> <UserName> SHA <Password> AES authuser log <UserName>3.SNMP Trapの動作確認
[daikon@CentOS7 ~]$ sudo snmptrapd -f -C -c /etc/snmp/snmptrapd.conf -Le NET-SNMP version 5.7.2 ~Trap受信時にログが出力される~4. trapが出力されない時。。。
1.「No access configuration」が出力される場合
「/etc/snmp/snmptrapd.conf」の設定内容が不足しています。[root@CentOS7-149 snmp]# snmptrapd -f -C -c /etc/snmp/snmptrapd.conf -Le Warning: no access control information configured. (Config search path: /etc/snmp:/usr/share/snmp:/usr/lib64/snmp:/root/.snmp) This receiver will *NOT* accept any incoming notifications. NET-SNMP version 5.7.2 No access configuration - dropping trap. No access configuration - dropping trap.2.「Authentication failed」が出力される場合
設定するパスワードが間違っています。[disaito@CentOS7-149 ~]$ sudo snmptrapd -f -C -c /etc/snmp/snmptrapd.conf -Le NET-SNMP version 5.7.2 Authentication failed for SNMPv3userMD53.何も出力されない場合
ユーザーID,Engine IDを間違えています。[disaito@CentOS7-149 ~]$ sudo snmptrapd -f -C -c /etc/snmp/snmptrapd.conf -Le NET-SNMP version 5.7.25. 参考
4. 終わりに
参考になれば幸いです。
- 投稿日:2019-10-28T11:04:39+09:00
Ubuntu18.04 で コマンド`$ rails server` を実行した時にエラーが出た話
目的
- サーバをスタートするコマンド
$ rails serverを実行した時のエラー解決法を知る。- ほぼほぼすでに投稿してある記事と内容は一緒である。
Mac で コマンド$ rails server を実行した時にエラーが出た話エラー内容
$ rails s => Booting Puma => Rails 6.0.0 application starting in development => Run `rails server --help` for more startup options RAILS_ENV=development environment is not defined in config/webpacker.yml, falling back to production environment Exiting Traceback (most recent call last): 68: from bin/rails:4:in `<main>' 67: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require' 66: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency' ・ ・ ・ 2: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:84:in `data' 1: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:87:in `load' /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:91:in `rescue in load': Webpacker configuration file not found /home/miriwo/workspace/aaa/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /home/miriwo/workspace/aaa/config/webpacker.yml (RuntimeError)解決方法
- コマンド
$ rails webpacker:installを実行しようとしたところでエラーがでた。$ rails webpacker:install Yarn not installed. Please download and install Yarn from https://yarnpkg.com/lang/en/docs/install/
- yarnが入っていないためエラーが出たようなのでコマンド
brew install yarnを実行して入れた。$ brew install yarn ==> Installing dependencies for yarn: node ==> Installing yarn dependency: node ==> Downloading https://homebrew.bintray.com/bottles/node-12.12.0.high_sierra.bottle.tar.gz ==> Downloading from https://akamai.bintray.com/0f/0f35e88be5a84c808dba472d053af25639b300c095392f63e85d9ae94cf12b20 ・ ・ ・
- コマンド
$ rails webpacker:installを実行した。$ rails webpacker:install RAILS_ENV=development environment is not defined in config/webpacker.yml, falling back to production environment create config/webpacker.yml Copying webpack core config create config/webpack create config/webpack/development.js create config/webpack/environment.js ・ ・ ・
- コマンド
$ rails serverを実行したところ、正常にローカルサーバが起動した。$ rails s => Booting Puma => Rails 6.0.0 application starting in development => Run `rails server --help` for more startup options Puma starting in single mode... * Version 3.12.1 (ruby 2.6.4-p104), codename: Llamas in Pajamas * Min threads: 5, max threads: 5 * Environment: development * Listening on tcp://localhost:3000 ・ ・ ・付録
- コマンド
$ rails serverを実行した時のエラーを記載する。$ rails s => Booting Puma => Rails 6.0.0 application starting in development => Run `rails server --help` for more startup options RAILS_ENV=development environment is not defined in config/webpacker.yml, falling back to production environment Exiting Traceback (most recent call last): 68: from bin/rails:4:in `<main>' 67: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require' 66: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency' 65: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `block in require' 64: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' 63: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' 62: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 61: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' 60: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' 59: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/commands.rb:18:in `<main>' 58: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/command.rb:46:in `invoke' 57: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/command/base.rb:65:in `perform' 56: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch' 55: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command' 54: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run' 53: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:138:in `perform' 52: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:138:in `tap' 51: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:147:in `block in perform' 50: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:37:in `start' 49: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout' 48: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:354:in `wrapped_app' 47: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:219:in `app' 46: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:319:in `build_app_and_options_from_config' 45: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:40:in `parse_file' 44: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `new_from_string' 43: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `eval' 42: from config.ru:in `<main>' 41: from config.ru:in `new' 40: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `initialize' 39: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `instance_eval' 38: from config.ru:3:in `block in <main>' 37: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in `require_relative' 36: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require' 35: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency' 34: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `block in require' 33: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/zeitwerk-2.2.0/lib/zeitwerk/kernel.rb:23:in `require' 32: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' 31: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' 30: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 29: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' 28: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' 27: from /home/miriwo/workspace/aaa/config/environment.rb:5:in `<main>' 26: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application.rb:363:in `initialize!' 25: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:60:in `run_initializers' 24: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each' 23: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each' 22: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component' 21: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `call' 20: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `each' 19: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component' 18: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from' 17: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component' 16: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each' 15: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:61:in `block in run_initializers' 14: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `run' 13: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `instance_exec' 12: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/railtie.rb:84:in `block in <class:Engine>' 11: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker.rb:27:in `bootstrap' 10: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/commands.rb:14:in `bootstrap' 9: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/manifest.rb:18:in `refresh' 8: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/manifest.rb:83:in `load' 7: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:47:in `public_manifest_path' 6: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:43:in `public_output_path' 5: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:39:in `public_path' 4: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:80:in `fetch' 3: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:84:in `data' 2: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:88:in `load' 1: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:88:in `read' /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:88:in `read': No such file or directory @ rb_sysopen - /home/miriwo/workspace/aaa/config/webpacker.yml (Errno::ENOENT) 67: from bin/rails:4:in `<main>' 66: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require' 65: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency' 64: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `block in require' 63: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' 62: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' 61: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 60: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' 59: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' 58: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/commands.rb:18:in `<main>' 57: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/command.rb:46:in `invoke' 56: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/command/base.rb:65:in `perform' 55: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch' 54: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command' 53: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run' 52: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:138:in `perform' 51: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:138:in `tap' 50: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:147:in `block in perform' 49: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:37:in `start' 48: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout' 47: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:354:in `wrapped_app' 46: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:219:in `app' 45: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:319:in `build_app_and_options_from_config' 44: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:40:in `parse_file' 43: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `new_from_string' 42: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `eval' 41: from config.ru:in `<main>' 40: from config.ru:in `new' 39: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `initialize' 38: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `instance_eval' 37: from config.ru:3:in `block in <main>' 36: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in `require_relative' 35: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require' 34: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency' 33: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `block in require' 32: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/zeitwerk-2.2.0/lib/zeitwerk/kernel.rb:23:in `require' 31: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' 30: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi' 29: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' 28: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi' 27: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require' 26: from /home/miriwo/workspace/aaa/config/environment.rb:5:in `<main>' 25: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/application.rb:363:in `initialize!' 24: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:60:in `run_initializers' 23: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each' 22: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each' 21: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component' 20: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `call' 19: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `each' 18: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component' 17: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from' 16: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component' 15: from /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each' 14: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:61:in `block in run_initializers' 13: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `run' 12: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/railties-6.0.0/lib/rails/initializable.rb:32:in `instance_exec' 11: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/railtie.rb:84:in `block in <class:Engine>' 10: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker.rb:27:in `bootstrap' 9: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/commands.rb:14:in `bootstrap' 8: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/manifest.rb:18:in `refresh' 7: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/manifest.rb:83:in `load' 6: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:47:in `public_manifest_path' 5: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:43:in `public_output_path' 4: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:39:in `public_path' 3: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:80:in `fetch' 2: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:84:in `data' 1: from /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:87:in `load' /home/linuxbrew/.linuxbrew/lib/ruby/gems/2.6.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:91:in `rescue in load': Webpacker configuration file not found /home/miriwo/workspace/aaa/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /home/miriwo/workspace/aaa/config/webpacker.yml (RuntimeError)



