Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: Error writing to database

$
0
0
by Ken Task.  

Well, you've meet the course from he--!

You've looked at the course and it doesn't appear to be needing such settings, but ...

Your setting are higher, but maybe just not high enough for demonic course.   Tweak the settings a little higher.

There are other time outs ... if you had linux I would suggest this:

php -i |grep timeout

which returns this:

hard_timeout => 2 => 2
memcached.default_connect_timeout => 0 => 0
memcached.sess_connect_timeout => 0 => 0
Read timeout => 86400
redis.arrays.connecttimeout => 0 => 0
redis.arrays.readtimeout => 0 => 0
redis.clusters.read_timeout => 0 => 0
redis.clusters.timeout => 0 => 0
default_socket_timeout => 60 => 60
opcache.force_restart_timeout => 180 => 180

And, if you had Linux, I'd suggest installing moosh.

moosh has a command to get course info on one course.

Example:

Course ID: 9
No of contexts: 16
Context by level:
    CONTEXT_MODULE (70):    15
    CONTEXT_BLOCK (80):    1
Context by module:
    assign (1):    4
    folder (8):    1
    label (13):    2
    resource (18):    5
    googlemeet (25):    1
    hvp (26):    2
Number of role capability overwrites: 0
Role capability overwrites by context:
Number of local role assignments: 0
Locally assigned roles by context:
Number of enrolled users: 2
Users enrolled by role:
    editingteacher (3):    1
    student (5):    1
Number of groups: 0
Group statistics:
    Min number of members in a group:    0
    Max number of members in a group:    0
    Avg number of members in a group:    0
Course modinfo size: 32254
Number of sections: 2
Section statistics:
    Sections visible:    2
    Sections hidden:    0
    Min number of modules in a section:    2
    Max number of modules in a section:    13
    Avg number of modules in a section:    7
Number of grades: 21
Number of log entries: 4688
Number of files: 23
Total file size: 185943146
Cache build time: 0.057547807693481

Something else ... one can backup a course from the command line ... takes web service out of the loop.

From code/admin/cli/

php backup.php
Perform backup of the given course.

Options:
--courseid=INTEGER          Course ID for backup.
--courseshortname=STRING    Course shortname for backup.
--destination=STRING        Path where to store backup file. If not set the backup
                            will be stored within the course backup file area.
-h, --help                  Print out this help.

Example:
$sudo -u www-data /usr/bin/php admin/cli/backup.php --courseid=2 --destination=/moodle/backup/

If you do CLI, make the destination to some location outside of Moodle code/data where you can see the file!

'SoS', Ken






Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>