-
Notifications
You must be signed in to change notification settings - Fork 47
You can not set an empty password during the initialisation (mdk init
). However, you can use the following once MDK is initialised:
mdk config set db.mysqli.password ''
mdk config set db.mariadb.password ''
You are probably missing some python packages. You should install the ones listed in requirements.txt using PIP. Unfortunately, some packages require additional Ubuntu packages.
sudo apt-get install python-dev libpq-dev libmysqlclient-dev
sudo pip install -r /opt/moodle-sdk/requirements.txt
MDK is probably still running as a Python2 program. A quick fix to this would be to uninstall both MDK and pip
and reinstall them using Python3.
# If MDK is installed locally for the user.
pip uninstall moodle-sdk
# Or, if MDK is installed system-wide.
sudo pip uninstall moodle-sdk
# Uninstall pip.
sudo pip uninstall pip
# Download the latest get-pip.py.
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
# Install pip using Python3. E.g. your Python3 executable is python3:
sudo python3 get-pip.py
# Install MDK as usual.
pip install --user moodle-sdk
# Or...
sudo pip install moodle-sdk
When a new major version is released, MDK has to be updated to reflect the new master version. Usually, a new MDK release would come close to a Moodle release. If you cannot wait, here is how to set master to Moodle 2.8:
mdk doctor --branch
Add --fix
to check out the right branches if they are incorrect.
mdk update --upgrade --all
mdk config set masterBranch <newMasterNumber>
mdk config set masterBranch 28
MDK is unaware of the name of your instances and always guesses the version you are using from version.php. To fix the problem simply check out the stable branch for the version you want.
git checkout master
git checkout MOODLE_27_STABLE
For master, you might need to reset hard to the origin branch.
mdk update -c
git checkout master
git fetch `mdk config show upstreamRemote`
git reset --hard `mdk config show upstreamRemote`/master
Yes, you will need the python package keyring
.
Using Ubuntu/Debian:
sudo apt-get install python-keyring
Using MacOS:
sudo easy_install pip
sudo pip install keyring
mdk pull --no-merge MDL-12345
It might have happened because your Firefox was automatically updated, which often means that the version of Selenium that MDK cached is outdated. Run the following command to force the download of the latest version of Selenium.
mdk behat --selenium-download
Add a file called .noupgrade
in the wwwroot of your Moodle instance. Now, when running mdk upgrade --all
this instance will be skipped.
Usually, the reason is that you do not have a database associated with the user that attempts to connect to PostgreSQL. MDK will not write anything in this database, it is just required for the connection to work.