Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moodle plugin installation crashes php7.3-fpm #142

Closed
martignoni opened this issue Jul 14, 2019 · 19 comments
Closed

Moodle plugin installation crashes php7.3-fpm #142

martignoni opened this issue Jul 14, 2019 · 19 comments
Assignees
Labels
Status: test passed Feature or fix is successfully tested Type: bug Something isn't working
Milestone

Comments

@martignoni
Copy link
Member

martignoni commented Jul 14, 2019

When installing Moodle plugins, php7.3-fpm sometimes crashes.

Steps to reproduce

  1. Install Moodle plugin
  2. At the end of the installation, after database upgrade is completed, click on "Continue"

Result

An error is displayed in the browser:

502 Bad Gateway
nginx/1.14.2

Expected behaviour

No error is displayed

Context info

Has occurred on models: 3B, 3B+, 4B (1GB), 4B (2GB).

Error in /var/log/php7.3-fpm.log:

[13-Jul-2019 22:10:21] WARNING: [pool www] child 11138 exited on signal 11 (SIGSEGV) after 25.652735 seconds from start

Error in /var/log/nginx/error.log:

2019/07/13 22:10:21 [error] 10963#10963: *276 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.0.0.213, server: moodlebox, request: "GET /admin/upgradesettings.php? HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "moodlebox.home", referrer: "http://moodlebox.home/admin/index.php?cache=0&confirmplugincheck=1"

Error in /var/log/nginx/access.log:

10.0.0.213 - - [13/Jul/2019:22:10:21 +0200] "GET /admin/upgradesettings.php? HTTP/1.1" 502 173 "http://moodlebox.home/admin/index.php?cache=0&confirmplugincheck=1" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15"
@martignoni martignoni added the Status: investigate Needs further investigation label Jul 14, 2019
@martignoni martignoni self-assigned this Jul 14, 2019
@martignoni
Copy link
Member Author

This behavior cannot be consistently reproduced.

@martignoni martignoni changed the title Moodle Plugin installation Moodle plugin installation crashes php7.3-fpm Jul 14, 2019
@martignoni
Copy link
Member Author

Use following shell command if you experience this.

sudo systemctl reload php7.3-fpm

@martignoni
Copy link
Member Author

martignoni commented Jul 14, 2019

Reports indicate that this is independent of the RPi model: has occurred on 3B, 3B+, 4B (1GB), 4B (2GB).

@martignoni
Copy link
Member Author

Maybe this: https://bugs.php.net/bug.php?id=77955

@ralf-krause
Copy link

The same problem also happened with the new MoodleBox image and a Raspberry Pi 3B (not 3B+).
I did not install a plugin. I logged in and opened the website administration properly. After this I could not open the MoodleBox plugin anymore. Yes, I reload the php7.3-fpm and then it worked.

@ralf-krause
Copy link

Today I got the same problem when I tried to change a plugin setting.
I opened the page for the general feedback setting http://moodlebox.home/admin/settings.php?section=modsettingfeedback and set "allow full anonymous" to yes. When I saved the changes I got the problem. After reloading php7.3-fpm I got everything working again.

@ralf-krause
Copy link

ralf-krause commented Aug 11, 2019

Hi Nicolas,
today I updated the Raspbian to the newest version. PHP seems to be PHP 7.3.4 as it was before. But a lot of other packages were updated. After reboot I tested to install some plugins without any problem. It could be the the reason for this issue is fixed now. I was using a Raspberry Pi 4B with 4GB RAM for this test.
Ralf

Linux moodlebox 4.19.58-v7l+ #1245 SMP Fri Jul 12 17:31:45 BST 2019 armv7l

@martignoni
Copy link
Member Author

martignoni commented Aug 11, 2019

Thanks for the report. Same here, unable to reproduce since about 2019-07-15.

Let's however keep this open for some days, to be sure that this is gone.

@martignoni
Copy link
Member Author

martignoni commented Oct 30, 2019

Seems to occur from time to time even with 2019-09-26 Raspbian release. Difficult to see a reproducible pattern.

@martignoni
Copy link
Member Author

martignoni commented Feb 11, 2020

Hopefully fixed with 2020-02-05 Raspbian release? We'll see...

@martignoni
Copy link
Member Author

As a temporary workaround, we could add this to root crontab:

*/5 * * * * systemctl restart php7.3-fpm.service

martignoni added a commit that referenced this issue Feb 12, 2020
@ralf-krause
Copy link

ralf-krause commented Feb 21, 2020

Hi Nicolas,
there is an update php7.3-cli (7.3.14-1~deb10u1) for Raspbian. I can't say if this update is already part of the 2020-02-05 Raspbian release.
Ralf

@martignoni
Copy link
Member Author

martignoni commented Feb 21, 2020

The version installed on the released image is php7.3-cli/now 7.3.11-1~deb10u1. But what interests us here is php-fpm, i.e. php7.3-fpm/now 7.3.11-1~deb10u1.

@ralf-krause
Copy link

Looking at http://moodlebox.home/admin/phpinfo.php I get the same version PHP Version 7.3.14-1~deb10u1.

@martignoni
Copy link
Member Author

This is because you updated your installation. I've done it too and get the same as you.

@ralf-krause
Copy link

Could you see if this issue is repaired in Raspberry Pi OS 64 bit?

@martignoni
Copy link
Member Author

This will have to wait a release of RPi OS 64bits lite, or at least a Release Candidate. Anyway, I'm carefully monitoring this.

@martignoni
Copy link
Member Author

martignoni commented Jul 23, 2020

These indicate another workaround:

martignoni added a commit that referenced this issue Jul 23, 2020
@martignoni martignoni added Status: work started Work started on this issue and removed Status: investigate Needs further investigation labels Jul 24, 2020
@martignoni martignoni added the Type: bug Something isn't working label Jul 24, 2020
@martignoni martignoni added this to the 3.8.0 milestone Jul 24, 2020
@martignoni
Copy link
Member Author

PHP configuration is not optimal and leads to these PHP outages. Tweaking PHP settings fixes the problem.

martignoni added a commit that referenced this issue Jul 24, 2020
@martignoni martignoni added Status: test started Test of feature or fix in progress Status: test passed Feature or fix is successfully tested and removed Status: work started Work started on this issue Status: test started Test of feature or fix in progress labels Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: test passed Feature or fix is successfully tested Type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants