28
Troubleshooting Moodle Marcus Green Senior Developer Titus Learning 1

Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Troubleshooting Moodle

Marcus Green

Senior Developer

Titus Learning

1

Page 2: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Moodle is strong and stable

● But you don’t just run Moodle

● You run integrations such as SSO

● You run 3rd party plugins

2

Page 3: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Using plugins is fine and necessary

● Moodle.org’s Moodle cloud has 5

● But you do become dependent on them

● https://www.tituslearning.com/evaluating-moodle-plugins/

3

Page 4: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Categories of trouble

● Things are broken

● Things are slow

● Everything is fine (but not as expected)

4

Page 5: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Interviewing the suspect (PICNIC)

● People ‘mis-report’

● Give vague explanations

● Have sausage fingers

5

Page 6: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Something has changed

● Your system was working

● It’s broken so something has changed

● No, really something has changed

6

Page 7: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

The admin did it

● It is hard for end users to break it

● The admin has changed something

● Even if they say they didn’t

- Even if that is YOU

7

Page 8: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Purge your cache

● Zero danger takes a matter of seconds

● From the browser

○ admin/purgecaches.php

● From the command line

○ admin/cli/purge_caches.php

8

Page 9: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Eliminate the theme

● Not only for display issues

● Change to a core theme (Boost/Clean)

● Allow theme changes in the URL

- admin/settings.php?section=themesettings

9

Page 10: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Everything is logged

● Moodle has excellent logging

● Your web server will record all requests

● You need to understand its logging

10

Page 11: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

The core report filter

11

Page 12: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Extended log search

12

Page 13: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Extended log search interface

13

Page 14: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Apache webserver logging

● Apache is the A in LAMP

● All requests can be logged on the server

● The level can be raised to give more detail

14

Page 15: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Raise Apache log level

Then restart the server

15

Page 16: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

500 errors

16

Page 17: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Error.log

● Probably the most useful

● Gives the line in the file where error occured

17

Page 18: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Access.log

Access.log

18

Page 19: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Theme designer mode

● Is your site unusably slow

● /admin/settings.php?section=themesettings

19

Page 20: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Performance and hardware

● How much hardware do you need?

● Hardware and performance forum

● Hardware and performance FAQ

20

Page 21: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

White screen of death

● Or ‘random gibberish’

● Turn on moodle debugging

● That may tell you which plugin is broken

21

Page 22: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

If the web interface is working

● admin/settings.php?section=debugging

● https://docs.moodle.org/36/en/Debugging

22

Page 23: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

From the command line

● In config.php

//NOT FOR PRODUCTION SERVERS!@error_reporting(E_ALL | E_STRICT); @ini_set('display_errors', '1'); $CFG->debug = (E_ALL | E_STRICT);

$CFG->debugdisplay = 1;$CFG->debugusers = '2';

23

Page 24: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Email problems?

● Almost never a Moodle problem

● Moodle just talks to it, but this might help

24

Page 25: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Forgot admin password?

● From the command line

● admin/cli/php reset_password.php

● == Password reset ==

● Enter username (manual authentication only)

● : admin

25

Page 26: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Terrible interface?

● Don’t like the default interface

● Take a look at the themes in the plugins db

○ (We like Fordson)

● Get Titus to customise and brand it for you

26

Page 27: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Moodle forums

● General Help

● Full description

● Rate response as ‘Useful’

27

Page 28: Troubleshooting Moodle Marcus Green Senior Developer Titus … · Purge your cache Zero danger takes a matter of seconds From the browser admin/purgecaches.php From the command line

Fin

[email protected]

https://twitter.com/marcusavgreen

https://twitter.com/TitusLearning

Any Questions?

28