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 4.2+ requires 64-bit PHP (IIAB should likely enforce 64-bit CPU &/or 64-bit OS &/or 64-bit kernel here?) #3640

Closed
holta opened this issue Sep 11, 2023 · 0 comments
Milestone

Comments

@holta
Copy link
Member

holta commented Sep 11, 2023

Example Moodle 4.2.2 install attempt on "32-bit" (armhf) RasPiOS 12 even when running a 64-bit (aarch64) kernel:

TASK [moodle : Execute /opt/iiab/moodle/moodle_installer IF /opt/iiab/moodle/config.php doesn't yet exist -- REQUIRES 'max_input_vars = 5000' (or higher) in /etc/php/8.2/cli/php.ini IF PHP 8+ (as set up by www_options/tasks/main.yml) -- WHEREAS LATER ON Moodle uses /etc/php/8.2/fpm/php.ini during regular operation] ***
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": "/opt/iiab/moodle/moodle_installer", "delta": "0:00:01.594587", "end": "2023-09-11 10:16:17.235924", "msg": "non-zero return code", "rc": 1, "start": "2023-09-11 10:16:15.641337", "stderr": "+ sudo -u www-data /usr/bin/php /opt/iiab/moodle/admin/cli/install.php --wwwroot=http://box.lan/moodle --dataroot=/library/moodle --dbtype=pgsql --dbname=moodle --dbuser=Admin --dbpass=changeme --fullname=Your_School --shortname=School --adminuser=admin --adminpass=changeme --non-interactive --agree-license --allow-unstable", "stderr_lines": ["+ sudo -u www-data /usr/bin/php /opt/iiab/moodle/admin/cli/install.php --wwwroot=http://box.lan/moodle --dataroot=/library/moodle --dbtype=pgsql --dbname=moodle --dbuser=Admin --dbpass=changeme --fullname=Your_School --shortname=School --adminuser=admin --adminpass=changeme --non-interactive --agree-license --allow-unstable"], "stdout": " .-..-. \n _____ | || | \n //-.--- .---. .---. .-.| || | .---. \n | | _ _ |/ _ \/ _ \/ _ || |/ __ \\n * | | | | | || || || || || || || || |/\n || || ||\/\/\||_|\)\n\nMoodle 4.2.2+ (Build: 20230908) command line installation program\n== Environment ==\n!! php not 64 bits !!\n[System] this test must pass - It has been detected that your site is not using a 64-bit PHP version. You\nare required to upgrade your system (operating system, PHP...) before\ninstalling this Moodle version.", "stdout_lines": [" .-..-. ", " _____ | || | ", " //-.--- .---. .---. .-.| || | .---. ", " | | _ _ |/ _ \/ _ \/ _ || |/ __ \", " * | | | | | || || || || || || || || |/", " || || ||\/\/\||_|\)", "", "Moodle 4.2.2+ (Build: 20230908) command line installation program", "== Environment ==", "!! php not 64 bits !!", "[System] this test must pass - It has been detected that your site is not using a 64-bit PHP version. You", "are required to upgrade your system (operating system, PHP...) before", "installing this Moodle version."]}

Context:

root@raspberrypi:~# iiab-summary
install_date = 2023-09-11T06:16:28Z   Current TZ: EDT

iiab: 821f1448b, 50 PR's / 225 commits since tag 8.1-preview-2
    "CLARIF: apt-not-pip on 32-bit i386 for ansible-core"
    https://github.com/iiab/iiab   branch: master

iiab-admin-console: f085beb, 19 PR's / 62 commits since tag v0.6.2
    "Merge pull request #545 from tim-moody/0.6.6-job-outp"
    https://github.com/iiab/iiab-admin-console   branch: master

Raspberry Pi reference 2023-05-03
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 47eee1f0ddcf8811559d51eea1c1bb48335e3e88, stage2
/etc/debian-version: 12.1
display-manager? inactive   Arch1: armhf   Arch2:
box 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64
Cortex-A72   CPU(s): 4   Mem: 1849 Swap: 1023
Raspberry Pi 4 Model B Rev 1.1
Temperature(s): 53556

Filesystem      Size  Used Avail Use% Mounted on
/dev/root        59G  7.5G   50G  13% /      ZIMs: 1 OER2Go: 0 Apps2B: 12

lo eth0 wlan0
openvpn_enabled: False
openvpn_handle: 183-raspios-armhf-aarch64-LARGE
192.168.0.183

Somewhat related issues:

@holta holta added this to the 8.1 milestone Sep 11, 2023
@holta holta changed the title Moodle 4.1+ requires 64-bit (IIAB should likely enforce this...) Moodle 4.1+ requires fully 64-bit CPU & OS (IIAB should likely enforce this...) Sep 11, 2023
@holta holta changed the title Moodle 4.1+ requires fully 64-bit CPU & OS (IIAB should likely enforce this...) Moodle 4.1+ requires 64-bit PHP (IIAB should likely enforce 64-bit CPU &/or 64-bit OS &/or 64-bit kernel here?) Sep 12, 2023
@holta holta changed the title Moodle 4.1+ requires 64-bit PHP (IIAB should likely enforce 64-bit CPU &/or 64-bit OS &/or 64-bit kernel here?) Moodle 4.2+ requires 64-bit PHP (IIAB should likely enforce 64-bit CPU &/or 64-bit OS &/or 64-bit kernel here?) Oct 1, 2023
@holta holta closed this as completed Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant