kusanagi9の初期設定で失敗する

TOP Forums インストール(Installing KUSANAGI) kusanagi9の初期設定で失敗する

kusanagi9の初期設定で失敗する

Viewing 3 reply threads
  • Author
    Posts
    • #1292
      Y___
      Participant

        【概要】
        ・この度テスト環境が必要なため、さくらサーバー上でサーバーを構築しました。
        ・プロビジョニングの前にkusanagi9の初期設定が必要なため実行しましたが、エラーになり解決方法を知りたく存じます。

        【やりたいこと】
        ・プロビジョニングが成功し、各サイトページの生成

        【実施した内容】
        ・以下をコマンド通り実施

        KUSANAGIの初期設定

        [root@test01 ~]# dnf upgrade -y
        サブスクリプション管理リポジトリーを更新しています。
        コンシューマー識別子を読み込めません

        このシステムは、エンタイトルメントサーバーに登録されていません。subscription-manager で登録できます。

        メタデータの期限切れの最終確認: 2:36:18 前の 2023年10月30日 16時53分32秒 に実施 しました。
        依存関係が解決しました。
        ================================================================================
        パッケージ Arch バージョン リポジトリー サイズ
        ================================================================================
        アップグレード:
        kusanagi-openssl x86_64 3.1.4-1.el8 kusanagi 924 k
        kusanagi-openssl-devel x86_64 3.1.4-1.el8 kusanagi 3.8 M
        kusanagi-openssl-libs x86_64 3.1.4-1.el8 kusanagi 2.8 M
        kusanagi-php81 x86_64 8.1.25-1.el8 kusanagi 11 M

        トランザクションの概要
        ================================================================================
        アップグレード 4 パッケージ

        ダウンロードサイズの合計: 18 M
        パッケージのダウンロード:
        (1/4): kusanagi-openssl-3.1.4-1.el8.x86_64.rpm 3.7 MB/s | 924 kB 00:00
        (2/4): kusanagi-openssl-libs-3.1.4-1.el8.x86_64 9.6 MB/s | 2.8 MB 00:00
        (3/4): kusanagi-openssl-devel-3.1.4-1.el8.x86_6 11 MB/s | 3.8 MB 00:00
        (4/4): kusanagi-php81-8.1.25-1.el8.x86_64.rpm 38 MB/s | 11 MB 00:00
        ——————————————————————————–
        合計 33 MB/s | 18 MB 00:00
        トランザクションの確認を実行中
        トランザクションの確認に成功しました。
        トランザクションのテストを実行中
        トランザクションのテストに成功しました。
        トランザクションを実行中
        準備 : 1/1
        scriptletの実行中: kusanagi-openssl-libs-3.1.4-1.el8.x86_64 1/1
        アップグレード中 : kusanagi-openssl-libs-3.1.4-1.el8.x86_64 1/8
        scriptletの実行中: kusanagi-openssl-libs-3.1.4-1.el8.x86_64 1/8
        アップグレード中 : kusanagi-openssl-3.1.4-1.el8.x86_64 2/8
        アップグレード中 : kusanagi-openssl-devel-3.1.4-1.el8.x86_64 3/8
        アップグレード中 : kusanagi-php81-8.1.25-1.el8.x86_64 4/8
        scriptletの実行中: kusanagi-php81-8.1.25-1.el8.x86_64 4/8
        整理 : kusanagi-openssl-3.1.2-1.el8.x86_64 5/8
        整理 : kusanagi-openssl-devel-3.1.2-1.el8.x86_64 6/8
        整理 : kusanagi-php81-8.1.24-1.el8.x86_64 7/8
        整理 : kusanagi-openssl-libs-3.1.2-1.el8.x86_64 8/8
        scriptletの実行中: kusanagi-openssl-libs-3.1.2-1.el8.x86_64 8/8
        検証 : kusanagi-openssl-3.1.4-1.el8.x86_64 1/8
        検証 : kusanagi-openssl-3.1.2-1.el8.x86_64 2/8
        検証 : kusanagi-openssl-devel-3.1.4-1.el8.x86_64 3/8
        検証 : kusanagi-openssl-devel-3.1.2-1.el8.x86_64 4/8
        検証 : kusanagi-openssl-libs-3.1.4-1.el8.x86_64 5/8
        検証 : kusanagi-openssl-libs-3.1.2-1.el8.x86_64 6/8
        検証 : kusanagi-php81-8.1.25-1.el8.x86_64 7/8
        検証 : kusanagi-php81-8.1.24-1.el8.x86_64 8/8
        インストール済みの製品が更新されています。

        アップグレード済み:
        kusanagi-openssl-3.1.4-1.el8.x86_64
        kusanagi-openssl-devel-3.1.4-1.el8.x86_64
        kusanagi-openssl-libs-3.1.4-1.el8.x86_64
        kusanagi-php81-8.1.25-1.el8.x86_64

        完了しました!

        [root@test01 ~]# reboot
        [root@test01 ~]# kusanagi init –passwd “x9v&+BKiEj” –nophrase –dbrootpass “xrtFz4kifF”
        Applying Location: Asia/Tokyo.
        Set kusanagi user password used for software update.
        Generate kusanagi user ssh-key.
        Generating public/private rsa key pair.
        Your identification has been saved in /root/kusanagi.pem.
        Your public key has been saved in /root/kusanagi.pem.pub.
        The key fingerprint is:
        SHA256:cHhK8NuvbVFHU1rIIZsF1lGhEzWkQZuKM2MJVCg3mns root@test01
        The key’s randomart image is:
        +—[RSA 3072]—-+
        | . .o. =B*@=|
        | +.= . =&o.|
        | X.+ oB.. |
        | + B. o o o |
        | + SB o . |
        | . E..= |
        | . .. |
        | o. |
        | … |
        +—-[SHA256]—–+
        nginx: the configuration file /etc/opt/kusanagi/nginx/nginx.conf syntax is ok
        nginx: configuration file /etc/opt/kusanagi/nginx/nginx.conf test is successful
        nginx completed.
        Syntax OK
        httpd completed.
        php completed.
        Failed.
        kusanagi init: error: command returned 1
        kusanagi init: error: init failed
        新しいメールが /var/spool/mail/root にあります

        上記のようにエラーになってしまいます。

        kusanagi init: error: command returned 1
        kusanagi init: error: init failed

        解決方法をご存じであればご教示いただけますでしょうか。
        よろしくお願いいたします。

      • #1293
        hideishi
        Participant

          こんにちは。
          kusanagi statusの情報がないので憶測で書きます。
          kusanagi initの中でMariaDBのインストールをする処理で止まっているものと思われます。
          その場合、ここ数日はMariaDBのリポジトリへのアクセスが不安定だったのでその影響が考えられます。
          時間をあけて再度試してみてはいかがでしょうか?
          また /var/opt/kusanagi/log/kusanagi.log の中身を見ることで詳細が分かるかもしれません。

          • This reply was modified 6 months ago by hideishi.
          • This reply was modified 6 months ago by hideishi.
          • #1296
            Y___
            Participant

              ご返信ありがとうございます。
              kusanagi statusの結果を添付させていただきます。

              [root@test01 ~]# kusanagi status
              KUSANAGI Version 9.4.3-1.el8
              sakura

              *** (active) nginx : nginx123 ***
              * nginx.service – The NGINX HTTP and reverse proxy server
              Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor prese : disabled)
              Active: active (running) since Mon 2023-10-30 19:50:32 JST; 14h ago

              *** (inactive) httpd : httpd ***
              * httpd.service – The Apache HTTP Server
              Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor pres t: disabled)
              Active: inactive (dead)

              *** (active) php : php80 ***
              * php-fpm.service – The PHP FastCGI Process Manager
              Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor pre et: disabled)
              Active: active (running) since Mon 2023-10-30 19:50:38 JST; 14h ago

              *** (active) mariadb : mariadb10.5 ***
              * mariadb.service – MariaDB 10.5.22 database server
              Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor pr set: disabled)
              Active: active (running) since Mon 2023-10-30 19:50:14 JST; 14h ago

              *** (inactive) psql : ***

              *** (inactive) pgpool-II : ***

              *** python ***
              Python 3.9.18

              *** ruby ***
              ruby is not installed.

              *** Cache status ***

              *** WAF ***
              off

              *** SELinux ***
              off (permanent)

              status completed.

              また、logの中身も添付させていただきます。
              どこを見たらよいかご存じであればご教示いただけますと幸いです。

              Oct 30 19:31:37 test01 kusanagi[565]: INFO:kusanagi.server:Boot
              Oct 30 19:33:15 test01 kusanagi[565]: ERROR:kusanagi.server:init failed
              Oct 30 19:33:15 test01 kusanagi[565]: Traceback (most recent call last):
              Oct 30 19:33:15 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 645, in async_action
              Oct 30 19:33:15 test01 kusanagi[565]: return await self.async_execute_comman (
              Oct 30 19:33:15 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 223, in async_wrapper
              Oct 30 19:33:15 test01 kusanagi[565]: return await (k_benchmark(logger=self. logger)(func))(
              Oct 30 19:33:15 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/decorators.py”, line 28, in async_wrapper
              Oct 30 19:33:15 test01 kusanagi[565]: result = await func(*args, **kwargs)
              Oct 30 19:33:15 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 292, in async_execute_command
              Oct 30 19:33:15 test01 kusanagi[565]: raise KusanagiExecutionError(
              Oct 30 19:33:15 test01 kusanagi[565]: kusanagi.errors.KusanagiExecutionError: ‘ opt/kusanagi/lib64/python3.9/site-packages/kusanagi/dispatchers/scripts/dispatc er init’ returned 1
              Oct 30 19:33:15 test01 kusanagi[565]: The above exception was the direct cause f the following exception:
              Oct 30 19:33:15 test01 kusanagi[565]: Traceback (most recent call last):
              Oct 30 19:33:15 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 83, in async_dispatch_stream
              Oct 30 19:33:15 test01 kusanagi[565]: await dispatcher.async_action(
              Oct 30 19:33:15 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 652, in async_action
              Oct 30 19:33:15 test01 kusanagi[565]: raise KusanagiActionError(
              Oct 30 19:33:15 test01 kusanagi[565]: kusanagi.errors.KusanagiActionError: init failed
              Oct 30 19:36:30 test01 kusanagi[565]: ERROR:kusanagi.server:init failed
              Oct 30 19:36:30 test01 kusanagi[565]: Traceback (most recent call last):
              Oct 30 19:36:30 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 645, in async_action
              Oct 30 19:36:30 test01 kusanagi[565]: return await self.async_execute_comman (
              Oct 30 19:36:30 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 223, in async_wrapper
              Oct 30 19:36:30 test01 kusanagi[565]: return await (k_benchmark(logger=self. logger)(func))(
              Oct 30 19:36:30 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/decorators.py”, line 28, in async_wrapper
              Oct 30 19:36:30 test01 kusanagi[565]: result = await func(*args, **kwargs)
              Oct 30 19:36:30 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 292, in async_execute_command
              Oct 30 19:36:30 test01 kusanagi[565]: raise KusanagiExecutionError(
              Oct 30 19:36:30 test01 kusanagi[565]: kusanagi.errors.KusanagiExecutionError: ‘ opt/kusanagi/lib64/python3.9/site-packages/kusanagi/dispatchers/scripts/dispatc er init’ returned 1
              Oct 30 19:36:30 test01 kusanagi[565]: The above exception was the direct cause f the following exception:
              Oct 30 19:36:30 test01 kusanagi[565]: Traceback (most recent call last):
              Oct 30 19:36:30 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 83, in async_dispatch_stream
              Oct 30 19:36:30 test01 kusanagi[565]: await dispatcher.async_action(
              Oct 30 19:36:30 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 652, in async_action
              Oct 30 19:36:30 test01 kusanagi[565]: raise KusanagiActionError(
              Oct 30 19:36:30 test01 kusanagi[565]: kusanagi.errors.KusanagiActionError: init failed
              Oct 30 19:43:39 test01 kusanagi[565]: ERROR:kusanagi.server:init failed
              Oct 30 19:43:39 test01 kusanagi[565]: Traceback (most recent call last):
              Oct 30 19:43:39 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 645, in async_action
              Oct 30 19:43:39 test01 kusanagi[565]: return await self.async_execute_comman (
              Oct 30 19:43:39 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 223, in async_wrapper
              Oct 30 19:43:39 test01 kusanagi[565]: return await (k_benchmark(logger=self. logger)(func))(
              Oct 30 19:43:39 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/decorators.py”, line 28, in async_wrapper
              Oct 30 19:43:39 test01 kusanagi[565]: result = await func(*args, **kwargs)
              Oct 30 19:43:39 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 292, in async_execute_command
              Oct 30 19:43:39 test01 kusanagi[565]: raise KusanagiExecutionError(
              Oct 30 19:43:39 test01 kusanagi[565]: kusanagi.errors.KusanagiExecutionError: ‘ opt/kusanagi/lib64/python3.9/site-packages/kusanagi/dispatchers/scripts/dispatc er init’ returned 1
              Oct 30 19:43:39 test01 kusanagi[565]: The above exception was the direct cause f the following exception:
              Oct 30 19:43:39 test01 kusanagi[565]: Traceback (most recent call last):
              Oct 30 19:43:39 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 83, in async_dispatch_stream
              Oct 30 19:43:39 test01 kusanagi[565]: await dispatcher.async_action(
              Oct 30 19:43:39 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 652, in async_action
              Oct 30 19:43:39 test01 kusanagi[565]: raise KusanagiActionError(
              Oct 30 19:43:39 test01 kusanagi[565]: kusanagi.errors.KusanagiActionError: init failed
              Oct 30 19:44:50 test01 kusanagi[565]: ERROR:kusanagi.server:init failed
              Oct 30 19:44:50 test01 kusanagi[565]: Traceback (most recent call last):
              Oct 30 19:44:50 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 645, in async_action
              Oct 30 19:44:50 test01 kusanagi[565]: return await self.async_execute_comman (
              Oct 30 19:44:50 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 223, in async_wrapper
              Oct 30 19:44:50 test01 kusanagi[565]: return await (k_benchmark(logger=self. logger)(func))(
              Oct 30 19:44:50 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/decorators.py”, line 28, in async_wrapper
              Oct 30 19:44:50 test01 kusanagi[565]: result = await func(*args, **kwargs)
              Oct 30 19:44:50 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 292, in async_execute_command
              Oct 30 19:44:50 test01 kusanagi[565]: raise KusanagiExecutionError(
              Oct 30 19:44:50 test01 kusanagi[565]: kusanagi.errors.KusanagiExecutionError: ‘ opt/kusanagi/lib64/python3.9/site-packages/kusanagi/dispatchers/scripts/dispatc er init’ returned 1
              Oct 30 19:44:50 test01 kusanagi[565]: The above exception was the direct cause f the following exception:
              Oct 30 19:44:50 test01 kusanagi[565]: Traceback (most recent call last):
              Oct 30 19:44:50 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 83, in async_dispatch_stream
              Oct 30 19:44:50 test01 kusanagi[565]: await dispatcher.async_action(
              Oct 30 19:44:50 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 652, in async_action
              Oct 30 19:44:50 test01 kusanagi[565]: raise KusanagiActionError(
              Oct 30 19:44:50 test01 kusanagi[565]: kusanagi.errors.KusanagiActionError: init failed
              Oct 30 19:49:39 test01 kusanagi[565]: INFO:kusanagi.server:benchmark: async_exe ute_command() took 2.557 s to execute.
              Oct 30 19:50:40 test01 kusanagi[565]: ERROR:kusanagi.server:init failed
              Oct 30 19:50:40 test01 kusanagi[565]: Traceback (most recent call last):
              Oct 30 19:50:40 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 645, in async_action
              Oct 30 19:50:40 test01 kusanagi[565]: return await self.async_execute_comman (
              Oct 30 19:50:40 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 223, in async_wrapper
              Oct 30 19:50:40 test01 kusanagi[565]: return await (k_benchmark(logger=self. logger)(func))(
              Oct 30 19:50:40 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/decorators.py”, line 28, in async_wrapper
              Oct 30 19:50:40 test01 kusanagi[565]: result = await func(*args, **kwargs)
              Oct 30 19:50:40 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 292, in async_execute_command
              Oct 30 19:50:40 test01 kusanagi[565]: raise KusanagiExecutionError(
              Oct 30 19:50:40 test01 kusanagi[565]: kusanagi.errors.KusanagiExecutionError: ‘ opt/kusanagi/lib64/python3.9/site-packages/kusanagi/dispatchers/scripts/dispatc er init’ returned 1
              Oct 30 19:50:40 test01 kusanagi[565]: The above exception was the direct cause f the following exception:
              Oct 30 19:50:40 test01 kusanagi[565]: Traceback (most recent call last):
              Oct 30 19:50:40 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 83, in async_dispatch_stream
              Oct 30 19:50:40 test01 kusanagi[565]: await dispatcher.async_action(
              Oct 30 19:50:40 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 652, in async_action
              Oct 30 19:50:40 test01 kusanagi[565]: raise KusanagiActionError(
              Oct 30 19:50:40 test01 kusanagi[565]: kusanagi.errors.KusanagiActionError: init failed
              Oct 30 19:55:44 test01 kusanagi[565]: ERROR:kusanagi.server:provision failed
              Oct 30 19:55:44 test01 kusanagi[565]: Traceback (most recent call last):
              Oct 30 19:55:44 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 645, in async_action
              Oct 30 19:55:44 test01 kusanagi[565]: return await self.async_execute_comman (
              Oct 30 19:55:44 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 223, in async_wrapper
              Oct 30 19:55:44 test01 kusanagi[565]: return await (k_benchmark(logger=self. logger)(func))(
              Oct 30 19:55:44 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/decorators.py”, line 28, in async_wrapper
              Oct 30 19:55:44 test01 kusanagi[565]: result = await func(*args, **kwargs)
              Oct 30 19:55:44 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 292, in async_execute_command
              Oct 30 19:55:44 test01 kusanagi[565]: raise KusanagiExecutionError(
              Oct 30 19:55:44 test01 kusanagi[565]: kusanagi.errors.KusanagiExecutionError: ‘ opt/kusanagi/lib64/python3.9/site-packages/kusanagi/dispatchers/scripts/dispatc er provision’ returned 1
              Oct 30 19:55:44 test01 kusanagi[565]: The above exception was the direct cause f the following exception:
              Oct 30 19:55:44 test01 kusanagi[565]: Traceback (most recent call last):
              Oct 30 19:55:44 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 83, in async_dispatch_stream
              Oct 30 19:55:44 test01 kusanagi[565]: await dispatcher.async_action(
              Oct 30 19:55:44 test01 kusanagi[565]: File “/opt/kusanagi/lib64/python3.9/site packages/kusanagi/dispatcher.py”, line 652, in async_action
              Oct 30 19:55:44 test01 kusanagi[565]: raise KusanagiActionError(
              Oct 30 19:55:44 test01 kusanagi[565]: kusanagi.errors.KusanagiActionError: prov sion failed
              Oct 31 10:48:30 test01 kusanagi[565]: INFO:kusanagi.server:benchmark: async_exe ute_command() took 9.023 s to execute.

              お手数おかけいたしますが、よろしくお願いいたします。

          • #1297
            hideishi
            Participant

              kusanagi statusとログの提供ありがとうございます。

              kusanagi statusの結果からはmariadbが正常に起動しているので、initに問題はなさそうです。
              そのままprovisionできるのではないかと思います。

              今回実行されたinitは初回のinitではなく、2回目以降のinitの実行ですね?
              再度initを実行しても同じになるか確認ください。
              それでもダメならば kusanagi dbinit mariadb を実行してみてください。
              それでも解決しない場合はVMを作り直す方が早いと思います。

              • #1298
                Y___
                Participant

                  ご返信ありがとうございます。provisionするとエラーになります。
                  証明書の設定とMySQLの設定が正常にされていないからでしょうか。

                  Saving debug log to /var/log/letsencrypt/letsencrypt.log
                  Some challenges have failed.
                  Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
                  Execution failed: certbot certonly –text –noninteractive –webroot -w /home/kusanagi/test/DocumentRoot -d test.xxx.com -m xxxx@~~~ –agree-tos
                  Return code was 1
                  Failed to get Let’s Encrypt SSL certificate files.
                  ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
                  Execution failed: RESET QUERY CACHE;
                  Return code was 1
                  kusanagi provision: error: command returned 1
                  kusanagi provision: error: provision failed

                  おっしゃる通り、2回目以降のinitになります。
                  kusanagi dbinit mariadb実行後、initを試しましたが前回同様のエラーとなりました。
                  恐れ入りますが、VMの作り直しはどのような手順になるか教えていただけますと幸いです。。。

              • #1299
                hideishi
                Participant

                  初回initの際に何らかの理由でMariaDBのパスワードが正しく設定できなかった結果、その後MariaDBにアクセスできない状態にあるのがinitとprovisionの両方が失敗する原因と考えられます。
                  いずれにしてもVMの作り直しがもっとも近道だと思います。

                  手順についてはKUSANAGIでは分かりかねますので、お使いのクラウド事業者様にお問い合わせいただけますでしょうか。
                  よろしくお願いいたします。

                  • This reply was modified 6 months ago by hideishi.
              Viewing 3 reply threads
              • You must be logged in to reply to this topic.

              Next article

              フォーラムについて