by Mike Kelly.
Just want to mention for others who come across this:
If you use moosh, you *must* run it as the same user that Moodle runs as (on an Ubuntu system, that would most likely be www-data)
eg: sudo -u www-data moosh [command]
If you use moosh, you *must* run it as the same user that Moodle runs as (on an Ubuntu system, that would most likely be www-data)
eg: sudo -u www-data moosh [command]
If you run moosh under a different userid, there's a good chance it will create files in moodledata/ owned by that user, and not the web server user. Which will definitely cause issues.