Skip to content

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

@erseco

Description

@erseco

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions