Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDK runs incredibly slowly #155

Open
DanBennettUK opened this issue May 16, 2017 · 7 comments
Open

MDK runs incredibly slowly #155

DanBennettUK opened this issue May 16, 2017 · 7 comments

Comments

@DanBennettUK
Copy link

This may just be an issue for me, but I'm finding MDK is taking an absolute age to run a command.

For example;

mdk create --version 27 --engine mariadb --install -n 27

It'll sit there for about 10 minutes or so, until eventually going on. If I attempt to cancel it (CTRL-C) it actually starts running it, but then cancels it anyway.

Is there something wrong with my build? Or am I not alone? 💃

@FMCorz
Copy link
Owner

FMCorz commented May 16, 2017

Hi Dan,
How long does installing Moodle from the command line usually takes (without MDK)?

@DanBennettUK
Copy link
Author

DanBennettUK commented May 16, 2017

Usually not long at all, the slowest part is checking out the branch. But MDK doesn't even start to create the instance until a long wait.

It's almost as if whatever MDK script I run, it doesn't even start to run it until a long wait. But no output during this time unless I CTRL-C

@FMCorz
Copy link
Owner

FMCorz commented May 16, 2017

How did you install MDK? Are your clones stored on the same disk?

Could you try to set debug mode on and see where it stalls?

mdk config set debug debug

@DanBennettUK
Copy link
Author

Installed via pip. Everything same disk (It's a VM).

Done that, it stalls just before even starting. Yet I press CTRL-C and it finally starts;

11:22:12/var/www mdk create --version 33 --engine mariadb --install -n test33
^CCreating instance test33...
Fetching cached repository moodle.git...
/usr/bin/git fetch
Cloning repository...
/usr/bin/git clone /home/dan/.moodle-sdk/moodle.git /var/www/test33/moodle

(^C I did after a minute of no output... was going to check I had debug set properly!)

It's very strange...

@DanBennettUK
Copy link
Author

https://youtu.be/4Xboau3uFiQ

Lil clip of what I mean

@FMCorz
Copy link
Owner

FMCorz commented May 16, 2017

It looks like an output buffer issue to me. I can't really say why it happens, but I have experienced that in the past, here and there. Have you tried redirecting the output to a file? E.g.

mdk create -v 33 -e mariadb -i -s test > /tmp/mdk.log & tail -f /tmp/mdk.log

@DanBennettUK
Copy link
Author

Even that, it sits there for a long time before anything is output to /tmp/mdk.log. Just nothing happens. Only having this with MDK hence raising it here 😢 Hmm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants