sidekiqをsystemctlで利用したらyarnが古いと言われた。 IT by NHM - 2021-02-242021-02-24 エラーログを確認してみた。yarn古い。アップデートするかチェックをdisableにしろと言われる。 Feb 24 02:55:05 test sidekiq: 2021-02-24T02:55:05.024Z pid=6934 tid=11a INFO: Booting Sidekiq 6.0.7 with redis options {:url=>"redis://localhost:6379"} Feb 24 02:55:05 test sidekiq: warning Integrity check: System parameters don't match Feb 24 02:55:05 test sidekiq: error Integrity check failed Feb 24 02:55:05 test sidekiq: error Found 1 errors. Feb 24 02:55:05 test sidekiq: ======================================== Feb 24 02:55:05 test sidekiq: Your Yarn packages are out of date! Feb 24 02:55:05 test sidekiq: Please run `yarn install --check-files` to update. Feb 24 02:55:05 test sidekiq: ======================================== Feb 24 02:55:05 test sidekiq: To disable this check, please change `check_yarn_integrity` Feb 24 02:55:05 test sidekiq: to `false` in your webpacker config file (config/webpacker.yml). Feb 24 02:55:05 test sidekiq: yarn check v1.22.5 Feb 24 02:55:05 test sidekiq: info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command. Feb 24 02:55:05 test
Passing ‘unlink’ command to redis as is; blind passthrough has been deprecated and will be removed in redis-namespace 2.0 IT by NHM - 2021-02-082021-02-08 initializers/sidekiq.rbにnamespaceパラメータを追加すると発生した。 下記では発生しない。 Sidekiq.configure_server do |config| config.redis = { url: 'redis://localhost:16379'} end Sidekiq.configure_client do |config| config.redis = { url: 'redis://localhost:16379'} end
Macにbundle updateでmysql2がインストールできない IT by NHM - 2021-02-082021-02-08 下記のようなエラーが出る。sslライブラリが見つからないらしい ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [mysql2.bundle] Error 1 make failed, exit code 2 opensslを利用するように指定 bundle config --global build.mysql2 --with-opt-dir="$(brew --prefix openssl)"