nanz
Forum Replies Created
- 
		AuthorPosts
- 
		
			
				
cloudyさん 
 返信ありがとうございます。
 ひとまず現状システム重複状態を解決することができましたので報告だけさせていただきます。
 純粋にシステム導入手順の問題として社内で共有いたします。ありがとうございますyosukeさん、確認ありがとうございます。 
 フォーラムへのコマンド記載間違いでした、失礼いたしました。
 実行したコマンドはkusanagi導入後
 > kusanagi nginx
 > kusanagi php8
 です。この操作の結果先の正しくないステータスとなりましたなお、これはphp8-fpmが見つからなかったことでnginxが再起動していたことがわかりました。 
 yum install kusanagiによってkusanagi-php7およびkusanagi-php8という形でPHPはインストールされたものの
 php-fpmが漏れていたことでkusanagi statusに出現しなかったようです。
 php-fpmの手動インストールによって一旦サイト復旧はいたしました。お世話になっております。サポート対象の状況にすべく 
 yum remove '*php*'からのyum install kusanagiとして
 クリアインストールを実施したのですが状況は悪化するばかりでした。kusanagi nginx 
 kusanagi php8-fpm
 と実行した直後のkusanagi statusが以下のような状態になります。○問題 
 > nginxが延々と再起動し続けます
 > php-fpmがstatusに表示されません# kusanagi status 
 Profile: ----
 FQDN: ----
 Type: WordPress
 KUSANAGI Version 8.7.12-1
 aws
 *** (active) nginx ***
 ● nginx.service - The NGINX HTTP and reverse proxy server
 Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
 Active: active (running) since 火 2023-08-29 12:58:50 JST; 235ms ago
 *** (active) MariaDB ***
 ● mariadb.service - MariaDB 10.5.22 database server
 Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
 Active: active (running) since 火 2023-08-29 12:46:29 JST; 12min ago
 *** ruby ***
 KUSANAGI Ruby is not installed yet
 *** add-on ***
 *** Cache Status ***
 bcache on
 fcache off
 *** WAF ***
 off
 *** SELinux ***
 off (permanent)[root@ip-172-31-20-37 multi-user.target.wants]# ll 
 合計 0
 lrwxrwxrwx 1 root root 37 8月 29 12:56 nginx.service -> /usr/lib/systemd/system/nginx.service
 lrwxrwxrwx 1 root root 40 8月 29 12:58 php8-fpm.service -> /usr/lib/systemd/system/php8-fpm.service
 (他省略)cloudyさん 
 返信ありがとうございます。PHPの導入に用いた手順を確認いたします。
 手動導入されている場合はサーバ内に入っているPHPを一通り除去したのちkusanagi php8コマンドで手順通りの状態に戻せるものと理解できました。
 恐らくサポート外の作業をしてしまっていたと思いますが、調査いただきありがとうございます。cloudyさん 
 返信ありがとうございます。kusanagi statusの結果はこちらとなります。# kusanagi status 
 Profile: (管理しているサイトのうち1つのprofile名)
 FQDN: (Profileで指定されるサイトドメイン)
 Type: WordPress
 KUSANAGI Version 8.7.12-1
 aws*** (active) nginx *** 
 ● nginx.service - The NGINX HTTP and reverse proxy server
 Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
 Active: active (running) since 木 2023-08-24 17:25:04 JST; 16h ago*** (active) php-fpm *** 
 ● php-fpm.service - The PHP FastCGI Process Manager
 Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
 Active: active (running) since 木 2023-08-24 17:25:05 JST; 16h ago*** (active) MariaDB *** 
 ● mariadb.service - MariaDB 10.5.22 database server
 Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
 Active: active (running) since 火 2023-08-22 17:46:41 JST; 2 days ago*** ruby *** 
 KUSANAGI Ruby is not installed yet*** add-on *** *** Cache Status *** 
 bcache on
 fcache off*** WAF *** 
 off*** SELinux *** 
 off (permanent)昨日から検証を繰り返しまして、以下手順でステータスを正常稼働にできることがわかりました。ただkusanagi restart(およびkusanagi nginx)コマンドだけは駄目なようです。どこかに複数プロセスが作られる原因があるのではないかと思うのですが... 
 # systemctl disable nginx
 Removed symlink /etc/systemd/system/multi-user.target.wants/nginx.service.
 # service nginx start
 # systemctl enable nginx
 Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service.以下サービスの設置状況です。kusanagi restartでサービス設置してもここのnginx.serviceになるものが増えていたりはしませんでした(それは当たり前かもしれませんが) 
 # pwd
 /etc/systemd/system/multi-user.target.wants
 # ll
 合計 0
 lrwxrwxrwx 1 root root 44 6月 30 2022 amazon-ssm-agent.service -> /etc/systemd/system/amazon-ssm-agent.service
 lrwxrwxrwx 1 root root 37 7月 17 2018 brandbot.path -> /usr/lib/systemd/system/brandbot.path
 lrwxrwxrwx. 1 root root 39 6月 29 2016 chronyd.service -> /usr/lib/systemd/system/chronyd.service
 lrwxrwxrwx. 1 root root 37 6月 29 2016 crond.service -> /usr/lib/systemd/system/crond.service
 lrwxrwxrwx. 1 root root 42 6月 29 2016 irqbalance.service -> /usr/lib/systemd/system/irqbalance.service
 lrwxrwxrwx. 1 root root 37 6月 29 2016 kdump.service -> /usr/lib/systemd/system/kdump.service
 lrwxrwxrwx 1 root root 39 8月 22 17:46 mariadb.service -> /usr/lib/systemd/system/mariadb.service
 lrwxrwxrwx 1 root root 37 8月 22 17:46 monit.service -> /usr/lib/systemd/system/monit.service
 lrwxrwxrwx 1 root root 37 8月 25 10:16 nginx.service -> /usr/lib/systemd/system/nginx.service
 lrwxrwxrwx 1 root root 39 8月 25 10:15 php-fpm.service -> /usr/lib/systemd/system/php-fpm.service
 lrwxrwxrwx 1 root root 39 8月 22 17:46 postfix.service -> /usr/lib/systemd/system/postfix.service
 lrwxrwxrwx. 1 root root 40 6月 29 2016 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
 lrwxrwxrwx 1 root root 46 7月 17 2018 rhel-configure.service -> /usr/lib/systemd/system/rhel-configure.service
 lrwxrwxrwx. 1 root root 39 6月 29 2016 rsyslog.service -> /usr/lib/systemd/system/rsyslog.service
 lrwxrwxrwx. 1 root root 36 6月 29 2016 sshd.service -> /usr/lib/systemd/system/sshd.service
 lrwxrwxrwx. 1 root root 39 6月 29 2016 sysstat.service -> /usr/lib/systemd/system/sysstat.service
 lrwxrwxrwx. 1 root root 37 6月 29 2016 tuned.service -> /usr/lib/systemd/system/tuned.service
 lrwxrwxrwx. 1 root root 38 6月 29 2016 vsftpd.service -> /usr/lib/systemd/system/vsftpd.service
 lrwxrwxrwx. 1 root root 38 6月 29 2016 xinetd.service -> /usr/lib/systemd/system/xinetd.service# php-fpm -v 
 PHP 8.2.9 (fpm-fcgi) (built: Aug 3 2023 11:39:08)
 Copyright (c) The PHP Group
 Zend Engine v4.2.9, Copyright (c) Zend Technologies
 with Zend OPcache v8.2.9, Copyright (c), by Zend Technologies
- 
		AuthorPosts