Setting up Maxima Pool and Stack on a sepearte server

Setting up Maxima Pool and Stack on a sepearte server

by Bruce Musinguzi -
Number of replies: 6

Has any one succeeded on setting up Maxima and stack on a different server from Moodle???
I have tried  this 

https://github.com/maths/stack_util_maximapool

but can't seem to make it work.

Please help 

Average of ratings: -
In reply to Bruce Musinguzi

Re: Setting up Maxima Pool and Stack on a sepearte server

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Yes, we use it.

It is one of those thigns that can be a major pain to get working, but once it is working, then it is fine.

You need to use the built in diagnostics. Go to the URL .../MaximaPool/MaximaPool, and then use the 'Low level helthcheck' link(s). (Also, trying to run some of the commands yourself from the command-line on the server can help.)
Average of ratings: Useful (1)
In reply to Tim Hunt

Re: Setting up Maxima Pool and Stack on a sepearte server

by Bruce Musinguzi -
Hi Tim,
I appreciate your reply, a quick question here, the instructions in the link below, are they meant to setup the Maxima Pool on the same server with Moodle or on a different server that the stack plugin connects to from the Moodle server
https://github.com/maths/stack_util_maximapool

I am trying to install it on the seperate server
In reply to Bruce Musinguzi

Re: Setting up Maxima Pool and Stack on a sepearte server

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Installing it on a separate server is better for various reasons.

However, if you are doing that, there is no need to install STACK + Moodle on the same server. You just need to generate the maxima-optimised executable somewere, (Ensuring that maxima-optimised will run is the kind of thing I meant when I suggested testing that you can run things from the command-line.

https://github.com/maths/stack_util_maximapool/blob/multiple-pools/doc/server-setup.txt is another useful doc for how a working setup should look.

As an alternative, you can run it in docker using https://github.com/uni-halle/maximapool-docker

And, there is also https://github.com/mathinstitut/goemaxima, which I started looking at a few months ago, but that got caught up in other work. My feeling is that goemaxima is the best option for the future, once you are in a containerised world. However, I have not completed our switch yet, which won't happend until we have done some testing of our own, but it looks promising.
Average of ratings: Useful (1)
In reply to Tim Hunt

Re: Setting up Maxima Pool and Stack on a sepearte server

by Bruce Musinguzi -
I had tried https://github.com/mathinstitut/goemaxima but did not succeed, i plan to go back to it, but i have just tried
https://github.com/uni-halle/maximapool-docker
had a few set backs, i think the authors assume every body knows what they are doing.
I didn't know about docker, after knocking a few walls, i installed one using
"apt install docker.io"

I found .env: hanging in space

I then along the way, i found "docker-compose.yaml" i did know what to do with it, i could not find it as file neither could i run it as a command.

So i installed docker-compose by running the commands below;
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

but still no sign of "docker-compose.yaml"

Assuming that "volumes/pool.conf" is created any were and then its path is specified in;
docker run -d \
--name TestMaximaPool \
-e "MAXIMAPOOL_ADMIN_PASSWORD=PUT A STRONG SECRET PASSWORD HERE!" \
-p "8765:8080" \
-v "/path/to/volumes/pool.conf:/opt/maximapool/pool.conf:ro" \
unihalle/maximapool

Please help me demystify
.env:
docker-compose.yaml
In reply to Bruce Musinguzi

Re: Setting up Maxima Pool and Stack on a sepearte server

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I found getting started with Docker similarly dented-wall-inducing, and I am still very much a novice, so I don't really know the answer to your question.

This is a good talk if you want to understand what containers are really doing: .

And, I remember getting very confused by the jargon around Docker, which the docs do not properly explain (https://docs.docker.com/). Still at least for me, containers are going to be something I need to understand, and so it was worth reading some of the background information. However, I think I need to read it all again, becuase I seem to have forgotten bits.
Average of ratings: Useful (1)
In reply to Tim Hunt

Re: Setting up Maxima Pool and Stack on a sepearte server

by Bruce Musinguzi -
Thank you Tim for your help, i managed to get goemaxima working. I guess i can proudly say i am living in "the future".
I have to learn more about docker though, That was new to me.
Thank you for your help in this journey
Average of ratings: Useful (1)