banyandesu
@banyandesu

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

herokuが作動しない

解決したいこと

herokuコマンドがうまく作動しないです。
laravelとmysqlにて趣味アプリを作成しているのですが、gitとherokuについて理解できていないので、ご教示いただけると幸いです…!

発生している問題・エラー

 !  Invalid path.
 !  Syntax is: git@heroku.com:<app>.git where <app> is your app's name.
 !  
 !  SSH Key Fingerprint: f9:2e:21:76:59:19:b3:03:ff:fa:58:3f:e8:ca:ab:89

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

または、問題・エラーが起きている画像をここにドラッグアンドドロップ。

該当するソースコード

git push heroku master

また、こちらのエラーも解決できていません。。

$ sudo heroku buildpacks:set heroku/nodejs
    Error: The requested API endpoint was not found. Are you using the right HTTP verb (i.e. `GET` vs. `POST`), and did you 
    specify your intended version with the `Accept` header?
 
    Error ID: not_found

必要な情報などがございましたら、随時追記していきます。
どうぞよろしくお願いいたします。

php:7.2.5
laravel/framework:7.18.0
mysql: 8.0.22 for osx10.13 on x86_64 (Homebrew)
mac(linux)

0

1Answer

Syntax is: git@heroku.com:<app>.git where <app> is your app's name.

リモートの設定がおかしそうです。 git remote -v コマンドを実行してみてください。

heroku  git@heroku.com:アプリ名.git (fetch)
heroku  git@heroku.com:アプリ名.git (push)

が含まれていれば正常です。

sudo heroku buildpacks:set heroku/nodejs

sudo をつけずに実行してください。

0Like

Comments

  1. @banyandesu

    Questioner

    ご回答いただきありがとうございます。
    heroku ssh://git@heroku.com//アプリ名.git (fetch)
    heroku ssh://git@heroku.com//アプリ名.git (push)

    とハッシュキー?が出ました。
    また、sudoをつけずにherokuコマンドを使用すると、

    (node:51262) [EACCES] Error Plugin: heroku: EACCES: permission denied, open '/Users/ユーザ名Library/Caches/heroku/lastrun'
    module: @oclif/config@1.13.2
    task: runHook init
    plugin: heroku
    root: /Users/ユーザ名/.local/share/heroku/client/7.47.6
    See more details with DEBUG=*
    (node:51262) [EACCES] Error Plugin: heroku: EACCES: permission denied, open '/Users/ユーザ名/.netrc'
    Error occurred during reading netrc file: /Users/ユーザ名/.netrc
    module: @oclif/config@1.13.2
    task: runHook prerun
    plugin: heroku
    root: /Users/ユーザ名/.local/share/heroku/client/7.47.6
    See more details with DEBUG=*
    Error: EACCES: permission denied, open '/Users/ユーザ名/.netrc'
    at Netrc.loadSync (~/.local/share/heroku/client/7.47.6/node_modules/netrc-parser/lib/netrc.js:107:31)
    at APIClient.get auth [as auth] (~/.local/share/heroku/client/7.47.6/node_modules/@heroku-cli/command/lib/api-client.js:123:38)
    at Function.request (~/.local/share/heroku/client/7.47.6/node_modules/@heroku-cli/command/lib/api-client.js:83:65)
    at Function.get (~/.local/share/heroku/client/7.47.6/node_modules/@heroku-cli/command/node_modules/http-call/lib/http.js:87:21)
    at APIClient.get (~/.local/share/heroku/client/7.47.6/node_modules/@heroku-cli/command/lib/api-client.js:153:26)
    at BuildpackCommand.fetch (~/.local/share/heroku/client/7.47.6/node_modules/@heroku-cli/plugin-buildpacks/lib/buildpacks.js:17:46)
    at Set.run (~/.local/share/heroku/client/7.47.6/node_modules/@heroku-cli/plugin-buildpacks/lib/commands/buildpacks/set.js:12:51)
    at Set._run (~/.local/share/heroku/client/7.47.6/node_modules/@oclif/command/lib/command.js:44:31)

    のようなエラーが出てしまいます。。。
  2. heroku ssh://git@heroku.com//アプリ名.git (fetch)
    heroku ssh://git@heroku.com//アプリ名.git (push)

    URL の ssh://git@heroku.com/ までは正常(git@heroku.com: を別の表記にした形なので)ですが、アプリ名の前のスラッシュが2連続なのが変かもしれません。ハッシュキーというのも気になります。

    git remote remove heroku
    heroku git:remote

    で remote を設定し直してみてください。
  3. sudo をつけずに実行すると出るエラーは一度 sudo をつけて実行してしまったからですね。 heroku コマンドは sudo をつけずに使う設計です。つけると設定ファイルなどのパーミッションがおかしくなってしまいます。

    sudo rm -rf ~/Library/Caches/heroku
    sudo rm -rf ~/.netrc
    sudo rm -rf ~/.local/share/heroku

    これで設定ファイルやローカルデータを削除して初期状態に戻せます(パスを間違えないように注意してください)。 heroku auth:login からやり直してください。
  4. @banyandesu

    Questioner

    ご教示していただいた通りremoteの設定とsudoコマンドを削除しました!
    heroku auth:login / heroku login --interactiveなどでログインしても

    (node:62334) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir '/Users/hashiguchiharuto/.local/share/heroku'
    (node:62334) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
    (node:62334) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

    と弾かれてしまいます。。。
    自分で調べながらプロキシなど変なコマンドを叩いていたのが原因だと思うのですが、こちらも教えていただけると幸いです。
  5. パーミッションが正しくないせいで ~/.local/share/heroku が作成できないようです。その上の階層の ~/.local/share か ~/.local の所有権がおかしいのが原因です。以下の手順で所有権を修正してください。

    まず ls -lad ~ でホームディレクトリの所有権を見てください。

    (例)
    $ ls -lad ~
    drwxr-xr-x 67 uasi staff 2144 12 18 13:47 .

    例では uasi がユーザー名、その次の staff がグループ名です。そして

    sudo chown -R uasi:staff ~/.local
    (uasi:staff の部分をご自分のユーザー名:グループ名に置き換えてください)

    を実行すると ~/.local とその子孫のすべての所有権が変更されます。
  6. @banyandesu

    Questioner

    おかげさまで上記エラーはなくなりました!
    再度ログインを試みると

    ```
    Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND proxy.server.com
    at ClientRequest.onError (/usr/local/lib/heroku/node_modules/tunnel-agent/index.js:177:17)
    ```

    と出てしまいます。。
    ググってみて、--interactiveなど試しましたが変わらずでした。
    正しい設定などありましたらご教示いただけると幸いです。
    よろしくお願いいたします。
  7. 別の質問に書いてあった

    export HTTP_PROXY=http://proxy.server.com:portnumber

    これを手元で実行したのではありませんか? この設定は例なので文字通り入力しても動きません。

    ターミナルを閉じると設定がクリアされます。(.bashrc などの設定ファイルに記述したのであればそれも消す必要があります。)ターミナルを開き直して heroku を実行してください。
  8. @banyandesu

    Questioner

    ターミナルを閉じて
    heroku login -i
    を実行したところ、ログインすることができました!
    度々ご回答いただきありがとうございました。
  9. @banyandesu

    Questioner

    度々失礼いたします。
    heroku addons:add cleardb
    で、mysqlを使用しようとしたところ

    ```
    The requested API endpoint was not found. Are you using the right HTTP verb (i.e. `GET` vs. `POST`), and did you specify your intended version
    ▸ with the `Accept` header?
    ```

    と出てしまいます。。
    ここ2日程、このエラーの解決法がわからずいじってしまっておりました。
    恐縮ですが、ご教授いただけると幸いです。
  10. addons:add サブコマンドは非推奨になったようです。 Heroku 側の API がもう停止されたためにエラーが出ているように見えます。

    以下のマニュアルによれば今後は addons:create サブコマンドを使うべきだそうです。

    https://devcenter.heroku.com/ja/articles/managing-add-ons
  11. @banyandesu

    Questioner

    無事mysqlを作動することができました。。ありがとうございます!
    ドキュメントやqiita過去記事を元に進めているのですが、データベース情報を取得しマイグレーションしようとすると、

    ```
    $heroku run php artisan migrate

    bash: php: command not found
    ```

    と出てしまいます。
    git push heroku masterがうまく実行されていないことが原因なのか、エラーの理解ができていません。。。
    足りない情報がありましたら、随時記載していきますので、ご確認いただけると幸いです。。
  12. push はできていそうですが、 PHP のアプリケーションとして認識されておらず php コマンドが用意されていないかもしれません。 heroku buildpacks を実行してみてください。

    (例)
    $ heroku buildpacks
    === my-app-name-1234 Buildpack
    1. heroku/php

    heroku/php があれば正常です。 heroku/XXX が他にもあって複数行になっているときは heroku/php が最後の行なら正常です。

    そうでなければ heroku buildpacks:add heroku/php を実行してください。その後何か適当に新しい変更をコミットして git push heroku master すると、環境がアップデートされ php が使えるようになります。
  13. @banyandesu

    Questioner

    $ heroku buildpacks
    === アプリ名 Buildpack URL
    heroku/php

    と出ているのですが、正常と捉えて大丈夫でしょうか?

    一応herokucliのサイトの方では、「Deployed 8b33aee6」とコミット履歴があリました。
  14. @banyandesu

    Questioner

    続けて申し訳ございません。
    git pushし、再びマイグレーションしたところ、無事マイグレーションすることができました!
    ここまでご回答いただきありがとうございます。

    heroku openで確認したところ、「server error500」が発生するのですが、確認するべき場所などございますか?
    どうぞよろしくお願いいたします。
  15. 入れ違いになったので上の回答は無視してください。
  16. 500はアプリケーションエラーですね。ログは heroku logs で表示できます。
  17. バージョンアップで解決するかは分かりません。ビルド時のエラーのようですね。そのリンク先にビルドログがあるので読んでみてください(こちらからは読めません)。
  18. @banyandesu

    Questioner

    composer.json周りかと思うので、ググってみます。。
    ビルドログを記載させていただきます。

    -----> PHP app detected
    -----> Bootstrapping...
    ! WARNING: Your 'composer.lock' is out of date!
    !
    ! The 'composer.lock' file in your project is not up to date with
    ! the main 'composer.json' file. This may result in installation
    ! of incorrect packages or package versions.
    !
    ! The lock file is required in order to guarantee reliable and
    ! reproducible installation of dependencies across systems and
    ! deploys. It must always be kept in sync with 'composer.json'.
    !
    ! Whenever you change 'composer.json', ensure that you perform
    ! the following steps locally on your computer:
    ! 1) run 'composer update'
    ! 2) add all changes using 'git add composer.json composer.lock'
    ! 3) commit using 'git commit'
    !
    ! Ensure that you updated the lock file correctly, and that you
    ! ran 'git add' on both files, before deploying again.
    !
    ! Please remember to always keep your 'composer.lock' updated in
    ! lockstep with 'composer.json' to avoid common problems related
    ! to dependencies during collaboration and deployment.
    !
    ! Please refer to the Composer documentation for further details:
    ! https://getcomposer.org/doc/
    ! https://getcomposer.org/doc/01-basic-usage.md
    -----> Installing platform packages...
    - php (7.4.13)
    - ext-intl (bundled with php)
    - ext-mbstring (bundled with php)
    - composer (2.0.8)
    - apache (2.4.46)
    - nginx (1.18.0)
    -----> Installing dependencies...
    Composer version 2.0.8 2020-12-03 17:20:38
    Installing dependencies from lock file
    Verifying lock file contents can be installed on current platform.
    Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
    Package operations: 67 installs, 0 updates, 0 removals
    - Downloading doctrine/event-manager (1.1.1)
    - Downloading doctrine/cache (1.10.2)
    - Downloading doctrine/dbal (2.12.1)
    - Downloading doctrine/inflector (2.0.3)
    - Downloading doctrine/lexer (1.2.1)
    - Downloading dragonmantank/cron-expression (v2.3.0)
    - Downloading voku/portable-ascii (1.5.2)
    - Downloading symfony/polyfill-ctype (v1.17.1)
    - Downloading phpoption/phpoption (1.7.4)
    - Downloading vlucas/phpdotenv (v4.1.7)
    - Downloading symfony/css-selector (v5.1.2)
    - Downloading tijsverkoyen/css-to-inline-styles (2.2.2)
    - Downloading symfony/polyfill-php80 (v1.17.1)
    - Downloading symfony/polyfill-mbstring (v1.17.1)
    - Downloading symfony/var-dumper (v5.1.2)
    - Downloading symfony/deprecation-contracts (v2.1.2)
    - Downloading symfony/routing (v5.1.2)
    - Downloading symfony/process (v5.1.2)
    - Downloading symfony/polyfill-php73 (v1.17.1)
    - Downloading symfony/polyfill-php72 (v1.17.0)
    - Downloading symfony/polyfill-intl-idn (v1.17.1)
    - Downloading symfony/mime (v5.1.2)
    - Downloading symfony/http-foundation (v5.1.2)
    - Downloading psr/event-dispatcher (1.0.0)
    - Downloading symfony/event-dispatcher-contracts (v2.1.2)
    - Downloading symfony/event-dispatcher (v5.1.2)
    - Downloading psr/log (1.1.3)
    - Downloading symfony/error-handler (v5.1.2)
    - Downloading symfony/http-kernel (v5.1.2)
    - Downloading symfony/finder (v5.1.2)
    - Downloading symfony/polyfill-intl-normalizer (v1.17.1)
    - Downloading symfony/polyfill-intl-grapheme (v1.17.1)
    - Downloading symfony/string (v5.1.2)
    - Downloading psr/container (1.0.0)
    - Downloading symfony/service-contracts (v2.1.2)
    - Downloading symfony/console (v5.1.2)
    - Downloading symfony/polyfill-iconv (v1.17.1)
    - Downloading egulias/email-validator (2.1.18)
    - Downloading swiftmailer/swiftmailer (v6.2.3)
    - Downloading ramsey/collection (1.0.1)
    - Downloading brick/math (0.8.15)
    - Downloading ramsey/uuid (4.0.1)
    - Downloading psr/simple-cache (1.0.1)
    - Downloading opis/closure (3.5.5)
    - Downloading symfony/translation-contracts (v2.1.2)
    - Downloading symfony/translation (v5.1.2)
    - Downloading nesbot/carbon (2.36.0)
    - Downloading monolog/monolog (2.1.0)
    - Downloading league/flysystem (1.0.69)
    - Downloading league/commonmark (1.5.1)
    - Downloading laravel/framework (v7.18.0)
    - Downloading fideloper/proxy (4.4.0)
    - Downloading asm89/stack-cors (1.3.0)
    - Downloading fruitcake/laravel-cors (v1.0.6)
    - Downloading fzaninotto/faker (v1.9.1)
    - Downloading guzzlehttp/promises (v1.3.1)
    - Downloading ralouphie/getallheaders (3.0.3)
    - Downloading psr/http-message (1.0.1)
    - Downloading guzzlehttp/psr7 (1.6.1)
    - Downloading guzzlehttp/guzzle (6.5.5)
    - Downloading league/oauth1-client (v1.8.1)
    - Downloading laravel/socialite (v5.0.1)
    - Downloading nikic/php-parser (v4.6.0)
    - Downloading dnoegel/php-xdg-base-dir (v0.1.1)
    - Downloading psy/psysh (v0.10.4)
    - Downloading laravel/tinker (v2.4.0)
    - Downloading laravel/ui (v2.2.0)
    - Installing doctrine/event-manager (1.1.1): Extracting archive
    - Installing doctrine/cache (1.10.2): Extracting archive
    - Installing doctrine/dbal (2.12.1): Extracting archive
    - Installing doctrine/inflector (2.0.3): Extracting archive
    - Installing doctrine/lexer (1.2.1): Extracting archive
    - Installing dragonmantank/cron-expression (v2.3.0): Extracting archive
    - Installing voku/portable-ascii (1.5.2): Extracting archive
    - Installing symfony/polyfill-ctype (v1.17.1): Extracting archive
    - Installing phpoption/phpoption (1.7.4): Extracting archive
    - Installing vlucas/phpdotenv (v4.1.7): Extracting archive
    - Installing symfony/css-selector (v5.1.2): Extracting archive
    - Installing tijsverkoyen/css-to-inline-styles (2.2.2): Extracting archive
    - Installing symfony/polyfill-php80 (v1.17.1): Extracting archive
    - Installing symfony/polyfill-mbstring (v1.17.1): Extracting archive
    - Installing symfony/var-dumper (v5.1.2): Extracting archive
    - Installing symfony/deprecation-contracts (v2.1.2): Extracting archive
    - Installing symfony/routing (v5.1.2): Extracting archive
    - Installing symfony/process (v5.1.2): Extracting archive
    - Installing symfony/polyfill-php73 (v1.17.1): Extracting archive
    - Installing symfony/polyfill-php72 (v1.17.0): Extracting archive
    - Installing symfony/polyfill-intl-idn (v1.17.1): Extracting archive
    - Installing symfony/mime (v5.1.2): Extracting archive
    - Installing symfony/http-foundation (v5.1.2): Extracting archive
    - Installing psr/event-dispatcher (1.0.0): Extracting archive
    - Installing symfony/event-dispatcher-contracts (v2.1.2): Extracting archive
    - Installing symfony/event-dispatcher (v5.1.2): Extracting archive
    - Installing psr/log (1.1.3): Extracting archive
    - Installing symfony/error-handler (v5.1.2): Extracting archive
    - Installing symfony/http-kernel (v5.1.2): Extracting archive
    - Installing symfony/finder (v5.1.2): Extracting archive
    - Installing symfony/polyfill-intl-normalizer (v1.17.1): Extracting archive
    - Installing symfony/polyfill-intl-grapheme (v1.17.1): Extracting archive
    - Installing symfony/string (v5.1.2): Extracting archive
    - Installing psr/container (1.0.0): Extracting archive
    - Installing symfony/service-contracts (v2.1.2): Extracting archive
    - Installing symfony/console (v5.1.2): Extracting archive
    - Installing symfony/polyfill-iconv (v1.17.1): Extracting archive
    - Installing egulias/email-validator (2.1.18): Extracting archive
    - Installing swiftmailer/swiftmailer (v6.2.3): Extracting archive
    - Installing ramsey/collection (1.0.1): Extracting archive
    - Installing brick/math (0.8.15): Extracting archive
    - Installing ramsey/uuid (4.0.1): Extracting archive
    - Installing psr/simple-cache (1.0.1): Extracting archive
    - Installing opis/closure (3.5.5): Extracting archive
    - Installing symfony/translation-contracts (v2.1.2): Extracting archive
    - Installing symfony/translation (v5.1.2): Extracting archive
    - Installing nesbot/carbon (2.36.0): Extracting archive
    - Installing monolog/monolog (2.1.0): Extracting archive
    - Installing league/flysystem (1.0.69): Extracting archive
    - Installing league/commonmark (1.5.1): Extracting archive
    - Installing laravel/framework (v7.18.0): Extracting archive
    - Installing fideloper/proxy (4.4.0): Extracting archive
    - Installing asm89/stack-cors (1.3.0): Extracting archive
    - Installing fruitcake/laravel-cors (v1.0.6): Extracting archive
    - Installing fzaninotto/faker (v1.9.1): Extracting archive
    - Installing guzzlehttp/promises (v1.3.1): Extracting archive
    - Installing ralouphie/getallheaders (3.0.3): Extracting archive
    - Installing psr/http-message (1.0.1): Extracting archive
    - Installing guzzlehttp/psr7 (1.6.1): Extracting archive
    - Installing guzzlehttp/guzzle (6.5.5): Extracting archive
    - Installing league/oauth1-client (v1.8.1): Extracting archive
    - Installing laravel/socialite (v5.0.1): Extracting archive
    - Installing nikic/php-parser (v4.6.0): Extracting archive
    - Installing dnoegel/php-xdg-base-dir (v0.1.1): Extracting archive
    - Installing psy/psysh (v0.10.4): Extracting archive
    - Installing laravel/tinker (v2.4.0): Extracting archive
    - Installing laravel/ui (v2.2.0): Extracting archive
    Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
    Generating optimized autoload files
    Class App\Http\Controllers\Auth\LoginController located in ./app/Http/Controllers/LoginController.php does not comply with psr-4 autoloading standard. Skipping.
    > Illuminate\Foundation\ComposerScripts::postAutoloadDump
    > @php artisan package:discover --ansi

    In AppServiceProvider.php line 34:

    syntax error, unexpected end of file, expecting function (T_FUNCTION) or co
    nst (T_CONST)


    Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
    ! WARNING: A post-autoload-dump script terminated with an error
    ! ERROR: Dependency installation failed!
    !
    ! The 'composer install' process failed with an error. The cause
    ! may be the download or installation of packages, or a pre- or
    ! post-install hook (e.g. a 'post-install-cmd' item in 'scripts')
    ! in your 'composer.json'.
    !
    ! Typical error cases are out-of-date or missing parts of code,
    ! timeouts when making external connections, or memory limits.
    !
    ! Check the above error output closely to determine the cause of
    ! the problem, ensure the code you're pushing is functioning
    ! properly, and that all local changes are committed correctly.
    !
    ! For more information on builds for PHP on Heroku, refer to
    ! https://devcenter.heroku.com/articles/php-support
    !
    ! REMINDER: the following warnings were emitted during the build;
    ! check the details above, as they may be related to this error:
    ! - Your 'composer.lock' is out of date!
    ! - A post-autoload-dump script terminated with an error
    ! Push rejected, failed to compile PHP app.
    ! Push failed
  19. だいたいエラーメッセージに書いてあるとおりですが、 composer.json を編集したときは composer update して composer.json と composer.lock をコミットしてください。そうしないと正しいバージョンのパッケージをインストールできません。

    パッケージのシンタックスエラーで止まっているのはそのビルドで使われている PHP 7.4.13 と互換性がないパッケージをインストールしようとしているからです。
  20. @banyandesu

    Questioner

    その通りでした。。エラーログをしっかり読むことを心がけます。。

    エラーログを理解することができていないので、よろしければ、以下もご教示いただけると幸いです。
    下の方にある「heroku[router]: sock=client at=warning code=H27 desc="Client Request Interrupted"」が間違っているのか、どこを見るべきか検討がつきません。。


    2020-12-18T08:29:08.194087+00:00 app[web.1]: DOCUMENT_ROOT changed to 'public/'
    2020-12-18T08:29:08.385473+00:00 app[web.1]: Detected 536870912 Bytes of RAM
    2020-12-18T08:29:08.473447+00:00 app[web.1]: PHP memory_limit is 128M Bytes
    2020-12-18T08:29:08.534691+00:00 app[web.1]: Starting php-fpm with 4 workers...
    2020-12-18T08:29:08.883379+00:00 app[web.1]: Starting httpd...
    2020-12-18T08:29:09.635651+00:00 heroku[web.1]: State changed from starting to up
    2020-12-18T08:29:39.065332+00:00 heroku[router]: at=info method=GET path="/" host=musashin.herokuapp.com request_id=8a00b9c1-5a53-4533-932b-d51f0c91930e fwd="133.106.56.142" dyno=web.1 connect=1ms service=498ms status=404 bytes=1764 protocol=https
    2020-12-18T08:29:39.066435+00:00 app[web.1]: 10.29.86.227 - - [18/Dec/2020:17:29:38 +0900] "GET / HTTP/1.1" 404 1552 "https://dashboard.heroku.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
    2020-12-18T08:29:50.965875+00:00 app[web.1]: 10.52.9.178 - - [18/Dec/2020:17:29:50 +0900] "GET / HTTP/1.1" 404 1552 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
    2020-12-18T08:29:50.966155+00:00 heroku[router]: at=info method=GET path="/" host=musashin.herokuapp.com request_id=33e488c4-6bd2-4a3a-97b2-9f21e6db9de2 fwd="133.106.56.142" dyno=web.1 connect=1ms service=56ms status=404 bytes=1764 protocol=https
    2020-12-18T08:29:52.007007+00:00 app[web.1]: 10.29.86.227 - - [18/Dec/2020:17:29:51 +0900] "GET /top HTTP/1.1" 500 1558 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
    2020-12-18T08:29:52.013142+00:00 heroku[router]: at=info method=GET path="/top" host=musashin.herokuapp.com request_id=a313dc12-8068-41eb-95a6-ceaeb842fb87 fwd="133.106.56.142" dyno=web.1 connect=1ms service=288ms status=500 bytes=2493 protocol=https
    2020-12-18T08:29:52.654676+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=musashin.herokuapp.com request_id=aef1f8d5-4fed-402d-af61-705a4b6cd204 fwd="133.106.56.142" dyno=web.1 connect=1ms service=4ms status=200 bytes=231 protocol=https
    2020-12-18T08:29:52.655054+00:00 app[web.1]: 10.52.9.178 - - [18/Dec/2020:17:29:52 +0900] "GET /favicon.ico HTTP/1.1" 200 - "https://musashin.herokuapp.com/top" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
    2020-12-18T08:32:34.496469+00:00 app[api]: Release v15 created by user hassy0606@gmail.com
    2020-12-18T08:32:34.496469+00:00 app[api]: Set APP_NAME config vars by user hassy0606@gmail.com
    2020-12-18T08:32:35.217057+00:00 heroku[web.1]: Restarting
    2020-12-18T08:32:35.236331+00:00 heroku[web.1]: State changed from up to starting
    2020-12-18T08:32:37.128070+00:00 heroku[web.1]: Stopping all processes with SIGTERM
    2020-12-18T08:32:37.206630+00:00 app[web.1]: SIGTERM received, attempting graceful shutdown...
    2020-12-18T08:32:37.223735+00:00 app[web.1]: Stopping httpd gracefully...
    2020-12-18T08:32:37.224106+00:00 app[web.1]: Stopping httpd...
    2020-12-18T08:32:37.347055+00:00 app[web.1]: Stopping php-fpm gracefully...
    2020-12-18T08:32:37.353739+00:00 app[web.1]: Stopping php-fpm...
    2020-12-18T08:32:37.370984+00:00 app[web.1]: Shutdown complete.
    2020-12-18T08:32:37.459197+00:00 heroku[web.1]: Process exited with status 143
    2020-12-18T08:32:41.774734+00:00 heroku[web.1]: Starting process with command `vendor/bin/heroku-php-apache2 public/`
    2020-12-18T08:32:45.362029+00:00 app[web.1]: DOCUMENT_ROOT changed to 'public/'
    2020-12-18T08:32:45.470477+00:00 app[web.1]: Detected 536870912 Bytes of RAM
    2020-12-18T08:32:45.507789+00:00 app[web.1]: PHP memory_limit is 128M Bytes
    2020-12-18T08:32:45.519151+00:00 app[web.1]: Starting php-fpm with 4 workers...
    2020-12-18T08:32:45.671352+00:00 app[web.1]: Starting httpd...
    2020-12-18T08:32:46.299043+00:00 heroku[web.1]: State changed from starting to up
    2020-12-18T08:33:35.805142+00:00 app[web.1]: 10.157.87.30 - - [18/Dec/2020:17:33:35 +0900] "GET / HTTP/1.1" 404 1552 "https://dashboard.heroku.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
    2020-12-18T08:33:35.809290+00:00 heroku[router]: at=info method=GET path="/" host=musashin.herokuapp.com request_id=f77fe9b2-f848-4a58-ba4c-d39d5699ea67 fwd="133.106.56.142" dyno=web.1 connect=0ms service=233ms status=404 bytes=1764 protocol=https
    2020-12-18T08:34:26.507805+00:00 app[api]: Release v16 created by user hassy0606@gmail.com
    2020-12-18T08:34:26.507805+00:00 app[api]: Set APP_URL config vars by user hassy0606@gmail.com
    2020-12-18T08:34:26.815107+00:00 heroku[web.1]: Restarting
    2020-12-18T08:34:26.828525+00:00 heroku[web.1]: State changed from up to starting
    2020-12-18T08:34:28.086070+00:00 heroku[web.1]: Stopping all processes with SIGTERM
    2020-12-18T08:34:28.130290+00:00 app[web.1]: Stopping php-fpm...
    2020-12-18T08:34:28.130403+00:00 app[web.1]: SIGTERM received, attempting graceful shutdown...
    2020-12-18T08:34:28.130884+00:00 app[web.1]: Stopping httpd gracefully...
    2020-12-18T08:34:28.131187+00:00 app[web.1]: Stopping httpd...
    2020-12-18T08:34:28.140676+00:00 app[web.1]: Shutdown complete.
    2020-12-18T08:34:28.250008+00:00 heroku[web.1]: Process exited with status 143
    2020-12-18T08:34:29.659096+00:00 heroku[web.1]: Starting process with command `vendor/bin/heroku-php-apache2 public/`
    2020-12-18T08:34:34.014675+00:00 app[web.1]: DOCUMENT_ROOT changed to 'public/'
    2020-12-18T08:34:34.163531+00:00 app[web.1]: Detected 536870912 Bytes of RAM
    2020-12-18T08:34:34.204984+00:00 app[web.1]: PHP memory_limit is 128M Bytes
    2020-12-18T08:34:34.223216+00:00 app[web.1]: Starting php-fpm with 4 workers...
    2020-12-18T08:34:34.386773+00:00 app[web.1]: Starting httpd...
    2020-12-18T08:34:34.967992+00:00 heroku[web.1]: State changed from starting to up
    2020-12-18T08:43:35.230168+00:00 app[api]: Starting process with command `php artisan migrate` by user hassy0606@gmail.com
    2020-12-18T08:43:39.002547+00:00 heroku[run.6243]: State changed from starting to up
    2020-12-18T08:43:39.378063+00:00 heroku[run.6243]: Awaiting client
    2020-12-18T08:43:39.407507+00:00 heroku[run.6243]: Starting process with command `php artisan migrate`
    2020-12-18T08:43:45.826085+00:00 heroku[run.6243]: Process exited with status 0
    2020-12-18T08:43:45.880884+00:00 heroku[run.6243]: State changed from up to complete
    2020-12-18T08:43:59.601833+00:00 app[web.1]: 10.45.161.126 - - [18/Dec/2020:17:43:59 +0900] "GET / HTTP/1.1" 404 1552 "https://dashboard.heroku.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
    2020-12-18T08:43:59.608523+00:00 heroku[router]: at=info method=GET path="/" host=musashin.herokuapp.com request_id=9a8de9f0-36e0-4857-b712-17606e946c1c fwd="133.106.56.142" dyno=web.1 connect=4ms service=266ms status=404 bytes=1764 protocol=https
    2020-12-18T08:44:36.383102+00:00 heroku[router]: at=info method=GET path="/" host=musashin.herokuapp.com request_id=b8084804-8b06-476b-bc2f-6365366e0ee3 fwd="133.106.56.142" dyno=web.1 connect=0ms service=28ms status=404 bytes=1764 protocol=https
    2020-12-18T08:44:36.383143+00:00 app[web.1]: 10.63.193.41 - - [18/Dec/2020:17:44:36 +0900] "GET / HTTP/1.1" 404 1552 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
    2020-12-18T08:44:37.593600+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=musashin.herokuapp.com request_id=3fee74ef-fb92-4ce5-bf41-7cd5d6268448 fwd="133.106.56.142" dyno=web.1 connect=0ms service=1ms status=200 bytes=231 protocol=https
    2020-12-18T08:44:37.593967+00:00 app[web.1]: 10.63.193.41 - - [18/Dec/2020:17:44:37 +0900] "GET /favicon.ico HTTP/1.1" 200 - "https://musashin.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
    2020-12-18T08:44:37.593967+00:00 app[web.1]: 10.63.193.41 - - [18/Dec/2020:17:44:37 +0900] "GET /favicon.ico HTTP/1.1" 200 - "https://musashin.herokuapp.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
    2020-12-18T08:44:41.425287+00:00 app[web.1]: 10.63.193.41 - - [18/Dec/2020:17:44:41 +0900] "GET /top HTTP/1.1" 500 1558 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
    2020-12-18T08:44:41.425448+00:00 heroku[router]: at=info method=GET path="/top" host=musashin.herokuapp.com request_id=582d611b-942f-4581-9d3f-8b147ddc44a8 fwd="133.106.56.142" dyno=web.1 connect=0ms service=40ms status=500 bytes=2495 protocol=https
    2020-12-18T08:44:48.839091+00:00 heroku[router]: at=info method=GET path="/top" host=musashin.herokuapp.com request_id=8cbf25fc-5151-4869-bb35-e1e82c37c45d fwd="133.106.56.142" dyno=web.1 connect=0ms service=24ms status=500 bytes=2495 protocol=https
    2020-12-18T08:44:48.839354+00:00 app[web.1]: 10.63.193.41 - - [18/Dec/2020:17:44:48 +0900] "GET /top HTTP/1.1" 500 1558 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
    2020-12-18T08:49:50.399435+00:00 app[web.1]: 10.31.120.51 - - [18/Dec/2020:17:49:50 +0900] "GET /login HTTP/1.1" 404 1552 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
    2020-12-18T08:49:50.400079+00:00 heroku[router]: at=info method=GET path="/login" host=musashin.herokuapp.com request_id=8b464b0c-b84c-4e71-99e2-293525b56f81 fwd="133.106.56.142" dyno=web.1 connect=1ms service=9ms status=404 bytes=1764 protocol=https
    2020-12-18T08:49:50.712868+00:00 app[web.1]: 10.31.120.51 - - [18/Dec/2020:17:49:50 +0900] "GET /favicon.ico HTTP/1.1" 304 - "https://musashin.herokuapp.com/login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
    2020-12-18T08:49:50.713366+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=musashin.herokuapp.com request_id=cafe3a43-cb25-4afb-8689-060c8e753e92 fwd="133.106.56.142" dyno=web.1 connect=1ms service=1ms status=304 bytes=126 protocol=https
    2020-12-18T08:50:02.484637+00:00 app[web.1]: 10.31.120.51 - - [18/Dec/2020:17:50:02 +0900] "GET /top HTTP/1.1" 500 1558 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
    2020-12-18T08:50:02.485309+00:00 heroku[router]: at=info method=GET path="/top" host=musashin.herokuapp.com request_id=4909a6b5-168c-4ee9-b5d5-7404e38b47c3 fwd="133.106.56.142" dyno=web.1 connect=1ms service=12ms status=500 bytes=2495 protocol=https
    2020-12-18T08:52:17.615941+00:00 app[web.1]: 10.61.172.160 - - [18/Dec/2020:17:52:17 +0900] "GET /favicon.ico HTTP/1.1" 304 - "https://musashin.herokuapp.com/login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
    2020-12-18T08:52:17.616062+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=musashin.herokuapp.com request_id=4f77b834-e48b-465e-b94f-62df38c8b0d1 fwd="133.106.56.142" dyno=web.1 connect=1ms service=1ms status=304 bytes=126 protocol=https
    2020-12-18T09:28:05.196908+00:00 heroku[web.1]: Idling
    2020-12-18T09:28:05.198941+00:00 heroku[web.1]: State changed from up to down
    2020-12-18T09:28:06.152990+00:00 heroku[web.1]: Stopping all processes with SIGTERM
    2020-12-18T09:28:06.192773+00:00 app[web.1]: SIGTERM received, attempting graceful shutdown...
    2020-12-18T09:28:06.192788+00:00 app[web.1]: Stopping php-fpm...
    2020-12-18T09:28:06.193236+00:00 app[web.1]: Stopping httpd...
    2020-12-18T09:28:06.205542+00:00 app[web.1]: Shutdown complete.
    2020-12-18T09:28:06.257202+00:00 heroku[web.1]: Process exited with status 143
    2020-12-18T09:56:03.575255+00:00 heroku[web.1]: Unidling
    2020-12-18T09:56:03.577402+00:00 heroku[web.1]: State changed from down to starting
    2020-12-18T09:56:06.753727+00:00 heroku[web.1]: Starting process with command `vendor/bin/heroku-php-apache2 public/`
    2020-12-18T09:56:09.769693+00:00 app[web.1]: DOCUMENT_ROOT changed to 'public/'
    2020-12-18T09:56:09.895378+00:00 app[web.1]: Detected 536870912 Bytes of RAM
    2020-12-18T09:56:09.927977+00:00 app[web.1]: PHP memory_limit is 128M Bytes
    2020-12-18T09:56:09.944721+00:00 app[web.1]: Starting php-fpm with 4 workers...
    2020-12-18T09:56:10.065481+00:00 app[web.1]: Starting httpd...
    2020-12-18T09:56:10.195545+00:00 heroku[web.1]: State changed from starting to up
    2020-12-18T09:56:10.863416+00:00 heroku[router]: sock=client at=warning code=H27 desc="Client Request Interrupted" method=GET path="/" host=musashin.herokuapp.com request_id=bf03800a-80a6-4042-9a96-52b53303066d fwd="133.106.56.190" dyno=web.1 connect=0ms service=241ms status=499 bytes= protocol=https
    2020-12-18T09:56:10.863942+00:00 app[web.1]: 10.43.152.156 - - [18/Dec/2020:18:56:10 +0900] "GET / HTTP/1.1" 404 1552 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
    2020-12-18T09:56:11.650166+00:00 app[web.1]: 10.37.232.57 - - [18/Dec/2020:18:56:11 +0900] "GET /top HTTP/1.1" 500 1558 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
    2020-12-18T09:56:11.653167+00:00 heroku[router]: at=info method=GET path="/top" host=musashin.herokuapp.com request_id=5a39a51d-95f0-4e9b-a00c-b610d7800dfd fwd="133.106.56.190" dyno=web.1 connect=0ms service=52ms status=500 bytes=2495 protocol=https
    2020-12-18T09:56:12.668370+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=musashin.herokuapp.com request_id=85e32d54-28bb-48c2-aed9-f139c441f29f fwd="133.106.56.190" dyno=web.1 connect=0ms service=1ms status=304 bytes=126 protocol=https
  21. @banyandesu

    Questioner

    無事確認することができました!
    @uasiさん、この度はお世話になりました。
    まだheroku上の画像のパスが違うので、完璧に作動できるように頑張ります!
  22. おめでとうございます!

Your answer might help someone💌