catalyst / moodle-report_coursesize

upgraded coursesize report
14 stars 19 forks source link

cannot run reom the command line #9

Closed doylejl closed 6 years ago

doylejl commented 6 years ago

Hi,

I'm trying to run this course size script but it keeps timing out when i run it, would it be possible to run this script from the command line?

thanks

danmarsden commented 6 years ago

typically it's the total disk size that causes the timeout - we run an internal automated task that stores the totaldisk used for each of our clients and inserts it into the db.

also - make sure you have "pathtodu" configured in your Moodle admin settings.

if pathtodu is set or you are not able to set it, you could try uncommenting this line: https://github.com/catalyst/moodle-report_coursesize/blob/master/index.php#L56

we don't currently have a cli version of this, but pull requests are always welcome.

doylejl commented 6 years ago

Hi Dan,

Thanks for your reply, I do have the “path to du” set however I think the issue with the timeout is to do with sheer volume as we have 11k courses and 1.7 million files uploaded into our moodle

Regards

John

From: Dan Marsden [mailto:notifications@github.com] Sent: Thursday 14 December 2017 19:18 To: catalyst/moodle-report_coursesize moodle-report_coursesize@noreply.github.com Cc: doylejl john.l.doyle@dcu.ie; Author author@noreply.github.com Subject: Re: [catalyst/moodle-report_coursesize] cannot run reom the command line (#9)

typically it's the total disk size that causes the timeout - we run an internal automated task that stores the totaldisk used for each of our clients and inserts it into the db.

also - make sure you have "pathtodu" configured in your Moodle admin settings.

if pathtodu is set or you are not able to set it, you could try uncommenting this line: https://github.com/catalyst/moodle-report_coursesize/blob/master/index.php#L56

we don't currently have a cli version of this, but pull requests are always welcome.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/catalyst/moodle-report_coursesize/issues/9#issuecomment-351808979 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADVQDrQfTKUJbsaI47hfb3IiHEIj4kqNks5tAXSFgaJpZM4RBwk8 .

--

Séanadh Ríomhphoist/Email DisclaimerTá an ríomhphost seo agus aon chomhad a sheoltar leis faoi rún agus is lena úsáid ag an seolaí agus sin amháin é. Is féidir tuilleadh a léamh anseo. https://www4.dcu.ie/iss/seanadh-riomhphoist.shtmlThis e-mail and any files transmitted with it are confidential and are intended solely for use by the addressee. Read more here. https://www4.dcu.ie/iss/email-disclaimer.shtml

--

https://www.facebook.com/DCU/ https://twitter.com/DublinCityUni https://www.linkedin.com/company/dublin-city-university https://www.instagram.com/dublincityuniversity/?hl=en https://www.youtube.com/user/DublinCityUniversity

danmarsden commented 6 years ago

make sure you're using the latest code from github and try uncommenting the line I mentioned to see if it makes any difference. We do have this running on some large sites and it works ok for us. Feel free to get in touch privately with us if you would like to fund some further development - pull request are always welcome too. Thanks.