バージョン選択

フォーラム

メニュー

オンライン状況

51 人のユーザが現在オンラインです。 (18 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 51
もっと...

サイト内検索

質問 > その他 > 【bin/console】コマンドの使い方について

その他

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
ogn
投稿日時: 2022/6/15 10:53
対応状況: −−−
半人前
登録日: 2021/12/22
居住地:
投稿: 12
【bin/console】コマンドの使い方について
[EC-CUBE] 4.0.6-p1 ~ 4.1.2
[レンタルサーバ] CORESERVER
[OS] Ubuntu
[PHP] 7.4


パケージ版を利用しています。
sshで接続し「php bin/console cache:clear」などのコマンドを実行すると.envファイルを
APP_ENV=prod
APP_DEBUG=0
にしていると

Symfony 4.4.36 (env: prod, debug: false)

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -e, --env=ENV         The Environment name. [default: "prod"]
      --no-debug        Switches off debug mode.
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  about                                      Display information about the current project
  help                                       Display help for a command
  list                                       List commands
 assets
  assets:install                             Install bundle's web assets under a public directory
 cache
  cache:clear                                Clear the cache
  cache:pool:clear                           Clear cache pools
  cache:pool:delete                          Delete an item from a cache pool
  cache:pool:list                            List available cache pools
  cache:pool:prune                           Prune cache pools
  cache:warmup                               Warm up an empty cache
 config
  config:dump-reference                      Dump the default configuration for an extension
 debug
  debug:autowiring                           List classes/interfaces you can use for autowiring
  debug:config                               Dump the current configuration for an extension
  debug:container                            Display current services for an application
  debug:event-dispatcher                     Display configured listeners for an application
  debug:form                                 Display form type information
  debug:router                               Display current routes for an application
  debug:swiftmailer                          Displays current mailers for an application
  debug:translation                          Display translation messages information
  debug:twig                                 Show a list of twig functions, filters, globals and tests
 doctrine
  doctrine:cache:clear-collection-region     Clear a second-level cache collection region
  doctrine:cache:clear-entity-region         Clear a second-level cache entity region
  doctrine:cache:clear-metadata              Clears all metadata cache for an entity manager
  doctrine:cache:clear-query                 Clears all query cache for an entity manager
  doctrine:cache:clear-query-region          Clear a second-level cache query region
  doctrine:cache:clear-result                Clears result cache for an entity manager
  doctrine:cache:contains                    Check if a cache entry exists
  doctrine:cache:delete                      Delete a cache entry
  doctrine:cache:flush                       [doctrine:cache:clear] Flush a given cache
  doctrine:cache:stats                       Get stats on a given cache provider
  doctrine:database:create                   Creates the configured database
  doctrine:database:drop                     Drops the configured database
  doctrine:database:import                   Import SQL file(s) directly to Database.
  doctrine:ensure-production-settings        Verify that Doctrine is properly configured for a production environment
  doctrine:fixtures:load                     Load data fixtures to your database
  doctrine:generate:entities                 [generate:doctrine:entities] Generates entity classes and method stubs from your mapping information
  doctrine:mapping:convert                   [orm:convert:mapping] Convert mapping information between supported formats
  doctrine:mapping:import                    Imports mapping information from an existing database
  doctrine:mapping:info
  doctrine:migrations:diff                   Generate a migration by comparing your current database to your mapping information.
  doctrine:migrations:execute                Execute a single migration version up or down manually.
  doctrine:migrations:generate               Generate a blank migration class.
  doctrine:migrations:latest                 Outputs the latest version number
  doctrine:migrations:migrate                Execute a migration to a specified version or the latest available version.
  doctrine:migrations:status                 View the status of a set of migrations.
  doctrine:migrations:version                Manually add and delete migration versions from the version table.
  doctrine:query:dql                         Executes arbitrary DQL directly from the command line
  doctrine:query:sql                         Executes arbitrary SQL directly from the command line.
  doctrine:schema:create                     Executes (or dumps) the SQL needed to generate the database schema
  doctrine:schema:drop                       Executes (or dumps) the SQL needed to drop the current database schema
  doctrine:schema:validate                   Validate the mapping files
 eccube
  eccube:composer:install
  eccube:composer:remove
  eccube:composer:require
  eccube:composer:require-already-installed
  eccube:composer:update
  eccube:delete-carts                        Delete Carts from the database
  eccube:fixtures:generate                   Dummy data generator
  eccube:fixtures:load                       Load data fixtures to your database.
  eccube:generate:proxies                    Generate entity proxies
  eccube:install                             Install EC-CUBE
  eccube:plugin:disable
  eccube:plugin:enable
  eccube:plugin:generate                     Generate plugin skeleton.
  eccube:plugin:install                      Install plugin from local.
  eccube:plugin:schema-update                Execute plugin schema update.
  eccube:plugin:uninstall                    Uninstall plugin.
  eccube:plugin:update                       Execute plugin update process.
  eccube:schema:update                       [doctrine:schema:update] Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata
 lint
  lint:container                             Ensure that arguments injected into services match type declarations
  lint:twig                                  Lint a template and outputs encountered errors
  lint:xliff                                 Lint an XLIFF file and outputs encountered errors
  lint:yaml                                  Lint a file and outputs encountered errors
 router
  router:match                               Help debug routes by simulating a path info match
 secrets
  secrets:decrypt-to-local                   Decrypt all secrets and stores them in the local vault.
  secrets:encrypt-from-local                 Encrypt all local secrets to the vault.
  secrets:generate-keys                      Generate new encryption keys.
  secrets:list                               List all secrets.
  secrets:remove                             Remove a secret from the vault.
  secrets:set                                Set a secret in the vault.
 security
  security:encode-password                   Encode a password.
 swiftmailer
  swiftmailer:email:send                     Send simple email message
  swiftmailer:spool:send                     Sends emails from the spool
 translation
  translation:update                         Update the translation file
 trikoder
  trikoder:oauth2:clear-expired-tokens       Clears all expired access and/or refresh tokens
  trikoder:oauth2:create-client              Creates a new oAuth2 client
  trikoder:oauth2:delete-client              Deletes an oAuth2 client
  trikoder:oauth2:list-clients               Lists existing oAuth2 clients
  trikoder:oauth2:update-client              Updates an oAuth2 client
 workflow
  workflow:dump                              Dump a workflow

と表示され
APP_ENV=dev
APP_DEBUG=1
にしていると

Symfony 4.4.36 (env: dev, debug: true)

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -e, --env=ENV         The Environment name. [default: "dev"]
      --no-debug        Switches off debug mode.
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Status: 500 Internal Server Error
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta name="robots" content="noindex,nofollow,noarchive" />
    <title>An Error Occurred: Internal Server Error</title>
    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.container { margin: 30px; max-width: 600px; }
h1 { color: #dc3545; font-size: 24px; }
h2 { font-size: 18px; }</style>
</head>
<body>
<div class="container">
    <h1>Oops! An Error Occurred</h1>
    <h2>The server returned a "500 Internal Server Error".</h2>

    <p>
        Something is broken. Please let us know what you were doing when this error occurred.
        We will fix it as soon as possible. Sorry for any inconvenience caused.
    </p>
</div>
</body>
</html>

と表示されます。

コマンドを使うには別途設定や別ファイルが必要なのでしょうか?
ご教授いただければ幸いです。
よろしくお願いいたします。
red
投稿日時: 2022/6/15 21:14
対応状況: −−−
登録日: 2010/2/15
居住地: 東京都
投稿: 1524
Re: 【bin/console】コマンドの使い方について
APP_ENV=dev
APP_DEBUG=1

でエラーになるのはメモリが足りない可能性がありますが、実物見てみないとよくわからないですね

cache:clearのときは↓のほうがいいです
php bin/console cache:clear --no-warmup


----------------
EC-CUBEのカスタマイズ、トラブル解決承ります
お気軽にお問い合わせ下さい
https://www.ec-cube.net/integrate/partner/partner.php?partner_id=690

ogn
投稿日時: 2022/6/16 9:17
対応状況: −−−
半人前
登録日: 2021/12/22
居住地:
投稿: 12
Re: 【bin/console】コマンドの使い方について
red様

ご回答ありがとうございます。


php bin/console cache:clear --no-warmup

も試したのですが、同じ状態です。


free -h

でメモリの確認をしたところ

total        used        free      shared  buff/cache   available
Mem:          995Gi        23Gi       958Gi        13Gi        13Gi       971Gi
Swap:            0B          0B          0B

と表示されたのですが少ないのでしょうか?


キャッシュクリア以外のコマンドも一部試してみたり

php bin/console list

でも同じ状態です。
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン



統計情報

総メンバー数は74,774名です
総投稿数は104,231件です

投稿数ランキング

1
seasoft
7333
2
468
3217
3
AMUAMU
2712
4
nanasess
2202
5
umebius
2085
6
yuh
1664
7
red
1524
8
h_tanaka
1189
9
tsuji
942
10
fukap
907
11
shutta
835
12
tao_s
794
13 ramrun 789
14 karin 689
15 sumida 641
16
homan
633
17 DELIGHT 572
18
patapata
502
19
flealog
485
20 tonton 437


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.