Bitnami 无法重启。(Drupal,AWS Lightsail)

0

【以下的问题经过翻译处理】 你好,我正在寻求帮助,解决关于bitnami无法启动的问题。我的其中一个使用bitnami LAMP和Drupal的Lightsail实例无法重新启动。这个问题超出了我的能力范围,但是我必须尝试修复它。我已经花了大约72个小时来尝试解决它。根据该主题的几篇帖子,我运行了以下诊断,并得到了以下结果。 A. free -m B. df -h C. systemctl status bitnami.service D. sudo journalctl -xe

结果

A. free -m total used free shared buff/cache available Mem: 1982 191 1500 5 289 1643 Swap: 0 0 0

B. df -h Filesystem Size Used Avail Use% Mounted on udev 981M 0 981M 0% /dev tmpfs 199M 416K 198M 1% /run /dev/xvda1 59G 5.1G 52G 9% / tmpfs 992M 0 992M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/xvda15 124M 11M 114M 9% /boot/efi tmpfs 199M 0 199M 0% /run/user/1000

C. sudo systemctl status bitnami.service ● bitnami.service - LSB: bitnami init script Loaded: loaded (/etc/init.d/bitnami; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2023-02-13 17:06:13 UTC; 5min ago Process: 3722 ExecStart=/etc/init.d/bitnami start (code=exited, status=1/FAILURE) Tasks: 29 (limit: 2353) Memory: 240.6M CPU: 1.825s CGroup: /system.slice/bitnami.service ├─947 php-fpm: master process (/opt/bitnami/php/etc/php-fpm.conf) ├─951 php-fpm: pool www ├─952 php-fpm: pool www ├─953 php-fpm: pool www ├─954 php-fpm: pool www ├─955 php-fpm: pool www ├─956 php-fpm: pool www ├─957 php-fpm: pool www ├─958 php-fpm: pool www ├─959 php-fpm: pool www ├─960 php-fpm: pool www ├─961 php-fpm: pool www ├─962 php-fpm: pool www ├─963 php-fpm: pool www ├─964 php-fpm: pool www ├─965 php-fpm: pool www ├─966 php-fpm: pool www ├─967 php-fpm: pool www ├─968 php-fpm: pool www ├─969 php-fpm: pool www ├─970 php-fpm: pool www └─982 /opt/bitnami/mariadb/sbin/mysqld --defaults-file=/opt/bitnami/mariadb/conf/my.cnf --basedir=/opt/bitnam>

Feb 13 17:06:13 ip-172-26-2-48 systemd[1]: bitnami.service: Unit process 964 (php-fpm) remains running after unit stopped. Feb 13 17:06:13 ip-172-26-2-48 systemd[1]: bitnami.service: Unit process 965 (php-fpm) remains running after unit stopped. Feb 13 17:06:13 ip-172-26-2-48 systemd[1]: bitnami.service: Unit process 966 (php-fpm) remains running after unit stopped. Feb 13 17:06:13 ip-172-26-2-48 systemd[1]: bitnami.service: Unit process 967 (php-fpm) remains running after unit stopped. Feb 13 17:06:13 ip-172-26-2-48 systemd[1]: bitnami.service: Unit process 968 (php-fpm) remains running after unit stopped. Feb 13 17:06:13 ip-172-26-2-48 systemd[1]: bitnami.service: Unit process 969 (php-fpm) remains running after unit stopped. Feb 13 17:06:13 ip-172-26-2-48 systemd[1]: bitnami.service: Unit process 970 (php-fpm) remains running after unit stopped. Feb 13 17:06:13 ip-172-26-2-48 systemd[1]: bitnami.service: Unit process 982 (mysqld) remains running after unit stopped. Feb 13 17:06:13 ip-172-26-2-48 systemd[1]: Failed to start LSB: bitnami init script. Feb 13 17:06:13 ip-172-26-2-48 systemd[1]: bitnami.service: Consumed 1.754s CPU time.

D. sudo journalctl -xe Feb 13 19:49:48 ip-172-26-2-48 dhclient[421]: XMT: Renew on eth0, interval 10100ms. Feb 13 19:49:48 ip-172-26-2-48 dhclient[421]: RCV: Reply message on eth0 from fe80::c2:f4ff:fe6b:8e02. Feb 13 19:49:53 ip-172-26-2-48 sshd[18843]: Received disconnect from 24.199.118.157 port 45194:11: Bye Bye [preauth] Feb 13 19:49:53 ip-172-26-2-48 sshd[18843]: Disconnected from authenticating user root 24.199.118.157 port 45194 [preauth] Feb 13 19:49:58 ip-172-26-2-48 sshd[18845]: Received disconnect from 187.95.162.20 port 22203:11: Bye Bye [preauth] Feb 13 19:49:58 ip-172-26-2-48 sshd[18845]: Disconnected from authenticating user root 187.95.162.20 port 22203 [preauth] Feb 13 19:50:08 ip-172-26-2-48 sshd[18847]: Received disconnect from 34.78.185.36 port 35536:11: Bye Bye [preauth] Feb 13 19:50:08 ip-172-26-2-48 sshd[18847]: Disconnected from authenticating user root 34.78.185.36 port 35536 [preauth] Feb 13 19:50:34 ip-172-26-2-48 sshd[18849]: Received disconnect from 103.211.217.103 port 45502:11: Bye Bye [preauth] Feb 13 19:50:34 ip-172-26-2-48 sshd[18849]: Disconnected from authenticating user root 103.211.217.103 port 45502 [preauth] Feb 13 19:50:35 ip-172-26-2-48 sshd[18851]: Received disconnect from 139.59.121.221 port 33362:11: Bye Bye [preauth] Feb 13 19:50:35 ip-172-26-2-48 sshd[18851]: Disconnected from authenticating user root 139.59.121.221 port 33362 [preauth] Feb 13 19:50:56 ip-172-26-2-48 sshd[18853]: Received disconnect from 159.223.202.231 port 36660:11: Bye Bye [preauth] Feb 13 19:50:56 ip-172-26-2-48 sshd[18853]: Disconnected from authenticating user root 159.223.202.231 port 36660 [preauth] Feb 13 19:50:58 ip-172-26-2-48 dhclient[421]: PRC: Renewing lease on eth0. Feb 13 19:50:58 ip-172-26-2-48 dhclient[421]: XMT: Renew on eth0, interval 9500ms. Feb 13 19:50:58 ip-172-26-2-48 dhclient[421]: RCV: Reply message on eth0 from fe80::c2:f4ff:fe6b:8e02. Feb 13 19:51:12 ip-172-26-2-48 sshd[18859]: Connection reset by 104.191.174.129 port 40154 [preauth] Feb 13 19:51:39 ip-172-26-2-48 sshd[18862]: Received disconnect from 222.119.64.11 port 54872:11: Bye Bye [preauth] Feb 13 19:51:39 ip-172-26-2-48 sshd[18862]: Disconnected from authenticating user root 222.119.64.11 port 54872 [preauth] Feb 13 19:51:39 ip-172-26-2-48 sshd[18864]: Received disconnect from 34.78.185.36 port 37170:11: Bye Bye [preauth] Feb 13 19:51:39 ip-172-26-2-48 sshd[18864]: Disconnected from authenticating user root 34.78.185.36 port 37170 [preauth] Feb 13 19:51:54 ip-172-26-2-48 sshd[18866]: Received disconnect from 187.95.162.20 port 21810:11: Bye Bye [preauth] Feb 13 19:51:54 ip-172-26-2-48 sshd[18866]: Disconnected from authenticating user root 187.95.162.20 port 21810 [preauth] Feb 13 19:52:01 ip-172-26-2-48 CRON[18870]: pam_unix(cron:session): session opened for user bitnami(uid=1000) by (uid=0) Feb 13 19:52:01 ip-172-26-2-48 CRON[18871]: (bitnami) CMD (cd /opt/bitnami/stats && ./agent.bin --run -D) Feb 13 19:52:01 ip-172-26-2-48 CRON[18870]: pam_unix(cron:session): session closed for user bitnami Feb 13 19:52:02 ip-172-26-2-48 sshd[18868]: Received disconnect from 103.211.217.103 port 36608:11: Bye Bye [preauth] Feb 13 19:52:02 ip-172-26-2-48 sshd[18868]: Disconnected from authenticating user root 103.211.217.103 port 36608 [preauth] Feb 13 19:52:08 ip-172-26-2-48 dhclient[421]: PRC: Renewing lease on eth0. Feb 13 19:52:08 ip-172-26-2-48 dhclient[421]: XMT: Renew on eth0, interval 9660ms. Feb 13 19:52:08 ip-172-26-2-48 dhclient[421]: RCV: Reply message on eth0 from fe80::c2:f4ff:fe6b:8e02. Feb 13 19:52:24 ip-172-26-2-48 sshd[18948]: Received disconnect from 159.223.202.231 port 39616:11: Bye Bye [preauth] Feb 13 19:52:24 ip-172-26-2-48 sshd[18948]: Disconnected from authenticating user root 159.223.202.231 port 39616 [preauth] Feb 13 19:52:27 ip-172-26-2-48 sshd[18950]: Received disconnect from 139.59.121.221 port 38756:11: Bye Bye [preauth] Feb 13 19:52:27 ip-172-26-2-48 sshd[18950]: Disconnected from authenticating user root 139.59.121.221 port 38756 [preauth] Feb 13 19:52:39 ip-172-26-2-48 sshd[18952]: Received disconnect from 24.199.118.157 port 60840:11: Bye Bye [preauth] Feb 13 19:52:39 ip-172-26-2-48 sshd[18952]: Disconnected from authenticating user root 24.199.118.157 port 60840 [preauth] Feb 13 19:53:18 ip-172-26-2-48 dhclient[421]: PRC: Renewing lease on eth0. Feb 13 19:53:18 ip-172-26-2-48 dhclient[421]: XMT: Renew on eth0, interval 9150ms. Feb 13 19:53:18 ip-172-26-2-48 dhclient[421]: RCV: Reply message on eth0 from fe80::c2:f4ff:fe6b:8e02. Feb 13 19:53:19 ip-172-26-2-48 sshd[18954]: Received disconnect from 34.78.185.36 port 46468:11: Bye Bye [preauth] Feb 13 19:53:19 ip-172-26-2-48 sshd[18954]: Disconnected from authenticating user root 34.78.185.36 port 46468 [preauth] Feb 13 19:53:28 ip-172-26-2-48 sshd[18960]: Received disconnect from 103.211.217.103 port 39666:11: Bye Bye [preauth] Feb 13 19:53:28 ip-172-26-2-48 sshd[18960]: Disconnected from authenticating user root 103.211.217.103 port 39666 [preauth] Feb 13 19:53:28 ip-172-26-2-48 sshd[18962]: Received disconnect from 222.119.64.11 port 59804:11: Bye Bye [preauth] Feb 13 19:53:28 ip-172-26-2-48 sshd[18962]: Disconnected from authenticating user root 222.119.64.11 port 59804 [preauth] Feb 13 19:53:44 ip-172-26-2-48 sudo[18973]: bitnami : TTY=pts/1 ; PWD=/ ; USER=root ; COMMAND=/usr/bin/journalctl -xe Feb 13 19:53:44 ip-172-26-2-48 sudo[18973]: pam_unix(sudo:session): session opened for user root(uid=0) by bitnami(uid=1000). 我对这个错误感到非常沮丧!我真的需要帮助来克服它。提前感谢您提供的任何帮助。玛亚

profile picture
专家
已提问 5 个月前25 查看次数
1 回答
0

【以下的回答经过翻译处理】 我成功解决了这个问题,方法是用由openssl在设置ssl时创建的备份副本替换/opt/bitnami/apache/conf/文件夹中的httpd.conf文件。虽然我仍不知道最初的错误原因,但问题已解决。 -- M.

profile picture
专家
已回答 5 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则