Skip to content

Instantly share code, notes, and snippets.

@xyulex
Created January 9, 2019 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xyulex/3efe8a802d6e50b334001838480bc0d3 to your computer and use it in GitHub Desktop.
Save xyulex/3efe8a802d6e50b334001838480bc0d3 to your computer and use it in GitHub Desktop.
MOODLE: Not sending forum emails
Aleshores vaig a tasques
Captura de Pantalla 2019-01-09 a les 15.03.15.png
i veig que fa un dia que no s'executa la d'enviament del fòrum (https://hubbik.elearnlab.org/admin/tool/task/scheduledtasks.php)
Aleshroes em connecto per SSH
sudo su
/usr/bin/php /var/www/html/moodle/admin/tool/task/cli/schedule_task.php --execute='\mod_forum\task\cron_task'
Retorna error "Cannot obtain task lock"
Aleshores miro els procesos cron
ps aux | grep cron.php
Captura de Pantalla 2019-01-09 a les 15.33.36.png
Hi ha dos tasques des d'ahir enganxades!
Les mato
kill -9 30910
kill -9 30913
Torno a executar la tasca
/usr/bin/php /var/www/html/moodle/admin/tool/task/cli/schedule_task.php --execute='\mod_forum\task\cron_task'
Execute scheduled task: Correos del foro y trabajos de mantenimiento (mod_forum\task\cron_task)
Processing user 370
Sending post 751: Re: Presentaciones Eficaces
Processing user 257
....
Ara està en ello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment