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

Open
martignoni opened this issue Jul 14, 2019 · 8 comments

Comments

@martignoni
Copy link
Member

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 self-assigned this Jul 14, 2019

@martignoni

This comment has been minimized.

Copy link
Member Author

commented Jul 14, 2019

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

This comment has been minimized.

Copy link
Member Author

commented Jul 14, 2019

Use following shell command if you experience this.

sudo systemctl reload php7.3-fpm
@martignoni

This comment has been minimized.

Copy link
Member Author

commented Jul 14, 2019

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

@martignoni

This comment has been minimized.

Copy link
Member Author

commented Jul 14, 2019

@ralf-krause

This comment has been minimized.

Copy link

commented Jul 15, 2019

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

This comment has been minimized.

Copy link

commented Jul 16, 2019

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Member Author

commented Aug 11, 2019

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.