1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

composer updateに失敗する原因

Last updated at Posted at 2018-08-08

症状

[root@xxxxxxx]# composer diagnose
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
Checking disk free space: OK
Composer version: 1.6.5
PHP version: 7.2.8
PHP binary path: /usr/bin/php

composer updateに失敗したのでcomposer diagnoseしてみるとこんな感じに。
rootでcomposer使うな!って警告出てるけどdockerコンテナ内なんで無視する。
エラーメッセージによるとSSL処理に失敗したらしいがブラウザから直接GitHubへの接続には問題ない。
意味がワカラン。。

原因

Kasperskyが邪魔してた模様。
機能を一時停止したら以下の状態へ。

[root@xxxxxx]# composer diagnose
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Composer version: 1.6.5
PHP version: 7.2.8
PHP binary path: /usr/bin/php

これならイケる!

対処

Kasperskyの機能を一時停止して更新できた。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?