Skip to content

Plugin installation not completed on first attempt (Moodle 4.5.3+) #520

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

Open
erseco opened this issue Apr 6, 2025 · 1 comment
Open

Comments

@erseco
Copy link

erseco commented Apr 6, 2025

I'm using a clean installation of Moodle 4.5.3+ (same on 5.0.0-rc1) and testing with Moosh 1.27. When I try to install a plugin using moosh plugin-install, it appears in the plugin overview as "To be installed", but there's no way to continue the installation via the Moodle UI or Moosh.

If I re-run the same command with the --delete (-d) option, the plugin then installs correctly.

Example:

/var/www/html $ moosh plugin-install availability_ipaddress
Installing
	name:    availability_ipaddress
	version: 2025040401
Done

At this point, the plugin is shown in Moodle as "To be installed", but cannot be configured or completed.

Only after running:

/var/www/html $ moosh plugin-install -d availability_ipaddress
Removing previously installed availability_ipaddress from /var/www/html/availability/condition/ipaddress
Installing
	name:    availability_ipaddress
	version: 2025040401
-->availability_ipaddress
++ Success (0.02 seconds) ++
Done

…does the installation complete successfully.

Question:

Is this a known issue with the first-time plugin installation in recent Moodle versions? Could there be a change in Moodle's plugin installation process that's not handled correctly in Moosh 1.27?

Let me know if you need more debug output or a specific plugin to test with.

Thanks!

@erseco
Copy link
Author

erseco commented Apr 6, 2025

Just adding a note: the plugin installation also completes successfully if I run:

moosh module-reinstall availability_ipaddress

after the first plugin-install. So it seems that some step is missing in the initial install process.

Tested with the latest master branch of Moosh, on Alpine 3.20 with PHP 8.3. The issue still occurs.

Happy to provide more debug info or test further if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant