Comments (4)
Nice :) Thats what I thought. Because in your log the error happened on two different API Requests it was very likely that your Moodle Platform was wrongly configured.
from moodle-dl.
You are welcome ❤
If you run moodle-dl with the verbose option you should maybe see on what request your Moodle Platform can not lock its cache. Depending on that, maybe its a known error because I need to update the API request (for that new Moodle Version) or your Moodle Administrator has to fix it on his side.
Please send me the verbose log.
from moodle-dl.
Hi @C0D3D3V, the error occurred in this line of main.py
, perhaps it is a 4xx error.
Click here to expand the full moodle.dl --verbose output.
2023-09-20 09:25:37 DEBUG {main} moodle-dl version: 2.3.2.0
2023-09-20 09:25:37 DEBUG {main} python version: 3.11.5
2023-09-20 09:25:37 DEBUG {main} Is ffmpeg available: True
2023-09-20 09:25:37 DEBUG {main} Checking for changes for the configured Moodle-Account....
2023-09-20 09:25:37 DEBUG {database} Database Version: 5
2023-09-20 09:25:37 DEBUG {selector_events} Using selector: EpollSelector
2023-09-20 09:25:37 DEBUG {moodle_service} Fetching current Moodle state...
2023-09-20 09:25:37 INFO {moodle_service} Downloading account information
2023-09-20 09:25:37 DEBUG {connectionpool} Starting new HTTPS connection (1): MY_UNI_WEBSITE.com:443
2023-09-20 09:25:37 DEBUG {connectionpool} https://MY_UNI_WEBSITE.com:443 "POST /webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_webservice_get_site_info HTTP/1.1" 200 None
2023-09-20 09:25:37 DEBUG {moodle_service} Detected moodle version: 2022112804
2023-09-20 09:25:37 DEBUG {connectionpool} Starting new HTTPS connection (1): MY_UNI_WEBSITE.com:443
2023-09-20 09:25:38 DEBUG {connectionpool} https://MY_UNI_WEBSITE.com:443 "POST /webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_enrol_get_users_courses HTTP/1.1" 200 None
2023-09-20 09:25:38 INFO {common} Loaded all pages
2023-09-20 09:25:38 INFO {common} Loaded all databases
2023-09-20 09:25:38 INFO {common} Loaded all lessons
2023-09-20 09:25:38 DEBUG {request_helper} Details about the failed request:
URL: https://MY_UNI_WEBSITE.com/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=mod_folder_get_folders_by_courses
Body: {'moodlewssettingfilter': 'true', 'moodlewssettingfileurl': 'true', 'courseids': {'0': 5629, '1': 5065, '2': 5833, '3': 6130, '4': 5513}, 'wsfunction': 'mod_folder_get_folders_by_courses', 'wstoken': 'censored'}
2023-09-20 09:25:38 DEBUG {request_helper} Details about the failed request:
URL: https://MY_UNI_WEBSITE.com/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=mod_quiz_get_quizzes_by_courses
Body: {'moodlewssettingfilter': 'true', 'moodlewssettingfileurl': 'true', 'courseids': {'0': 5629, '1': 5065, '2': 5833, '3': 6130, '4': 5513}, 'wsfunction': 'mod_quiz_get_quizzes_by_courses', 'wstoken': 'censored'}
The following error occurred during execution:
The Moodle System rejected the Request. Details: moodle_exception (Error code: ex_unabletolock, Message: Unable to lock cache.)
2023-09-20 09:25:38 DEBUG {mail_service} Mail-Notifications not configured, skipping.
2023-09-20 09:25:38 DEBUG {telegram_service} Telegram-Notifications not configured, skipping.
2023-09-20 09:25:38 DEBUG {xmpp_service} XMPP-Notifications not configured, skipping.
2023-09-20 09:25:38 ERROR {main} Traceback (most recent call last):
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/main.py", line 536, in main
choose_task(config, opts)
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/main.py", line 68, in choose_task
run_main(config, opts)
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/main.py", line 136, in run_main
raise base_err
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/main.py", line 95, in run_main
changed_courses = asyncio.run(moodle.fetch_state(database))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
❯ moodle-dl --verbose
2023-09-20 09:36:08 DEBUG {main} moodle-dl version: 2.3.2.0
2023-09-20 09:36:08 DEBUG {main} python version: 3.11.5
2023-09-20 09:36:08 DEBUG {main} Is ffmpeg available: True
2023-09-20 09:36:08 DEBUG {main} Checking for changes for the configured Moodle-Account....
2023-09-20 09:36:08 DEBUG {database} Database Version: 5
2023-09-20 09:36:08 DEBUG {selector_events} Using selector: EpollSelector
2023-09-20 09:36:08 DEBUG {moodle_service} Fetching current Moodle state...
2023-09-20 09:36:08 INFO {moodle_service} Downloading account information
2023-09-20 09:36:08 DEBUG {connectionpool} Starting new HTTPS connection (1): MY_UNI_WEBSITE.com:443
2023-09-20 09:36:09 DEBUG {connectionpool} https://MY_UNI_WEBSITE.com:443 "POST /webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_webservice_get_site_info HTTP/1.1" 200 None
2023-09-20 09:36:09 DEBUG {moodle_service} Detected moodle version: 2022112804
2023-09-20 09:36:09 DEBUG {connectionpool} Starting new HTTPS connection (1): MY_UNI_WEBSITE.com:443
2023-09-20 09:36:11 DEBUG {connectionpool} https://MY_UNI_WEBSITE.com:443 "POST /webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_enrol_get_users_courses HTTP/1.1" 200 None
2023-09-20 09:36:11 DEBUG {request_helper} Details about the failed request:
URL: https://MY_UNI_WEBSITE.com/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=mod_folder_get_folders_by_courses
Body: {'moodlewssettingfilter': 'true', 'moodlewssettingfileurl': 'true', 'courseids': {'0': 5629, '1': 5065, '2': 5833, '3': 6130, '4': 5513}, 'wsfunction': 'mod_folder_get_folders_by_courses', 'wstoken': 'censored'}
The following error occurred during execution:
The Moodle System rejected the Request. Details: moodle_exception (Error code: ex_unabletolock, Message: Unable to lock cache.)
2023-09-20 09:36:11 DEBUG {mail_service} Mail-Notifications not configured, skipping.
2023-09-20 09:36:11 DEBUG {telegram_service} Telegram-Notifications not configured, skipping.
2023-09-20 09:36:11 DEBUG {xmpp_service} XMPP-Notifications not configured, skipping.
2023-09-20 09:36:11 ERROR {main} Traceback (most recent call last):
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/main.py", line 536, in main
choose_task(config, opts)
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/main.py", line 68, in choose_task
run_main(config, opts)
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/main.py", line 136, in run_main
raise base_err
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/main.py", line 95, in run_main
changed_courses = asyncio.run(moodle.fetch_state(database))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/moodle/moodle_service.py", line 116, in fetch_state
fetched_mods_files = await fetch_mods_files(mods, courses)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/moodle/mods/init.py", line 40, in fetch_mods_files
mods_results = await asyncio.gather(*[mod.fetch_mod_entries(courses_to_load) for mod in mods_to_fetch])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/moodle/mods/common.py", line 57, in fetch_mod_entries
result = await self.real_fetch_mod_entries(courses)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/moodle/mods/folder.py", line 20, in real_fetch_mod_entries
await self.client.async_post(
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/moodle/request_helper.py", line 141, in async_post
self.check_json_for_moodle_error(resp_json, url, data)
File "/home/nick/.local/pipx/venvs/moodle-dl/lib64/python3.11/site-packages/moodle_dl/moodle/request_helper.py", line 325, in check_json_for_moodle_error
raise RequestRejectedError(
moodle_dl.moodle.request_helper.RequestRejectedError: The Moodle System rejected the Request. Details: moodle_exception (Error code: ex_unabletolock, Message: Unable to lock cache.)
from moodle-dl.
UPDATE: moodle-dl
started working again ou of the blue. I didn't change anything, so it probably was a configuration issue in my university's website.
from moodle-dl.
Related Issues (20)
- Add Regex filtering for black and whitelists HOT 6
- On macos a shortcut should be a webloc file
- The detection of moved files seems to be unreliable
- Ignored --skip-cert-verify --allow-insecure-ssl HOT 8
- Moodle System rejected the Request due to an Invalid parameter value HOT 9
- AttributeError: 'XSOEnumMixin' object has no attribute 'name' HOT 8
- Crash when downloading course information HOT 3
- Don't try to download the mailto links HOT 2
- Moodle rejected system request - invalid_response_exception HOT 3
- Nothing downloads HOT 3
- Download fails on some courses HOT 1
- Retry on timeout
- config.json should be created unreadable to others HOT 2
- Do not download large files HOT 3
- Usage of -nt -u -pw just hangs moodle-dl HOT 1
- Same file with identical content gets downloaded again every time Moodle-DL is executed HOT 5
- NoneType has no len() - not downloading HOT 1
- Size estimation increases during download HOT 8
- Rework optional downloads
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-dl.