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
Newbie help again #133
Comments
Hi @roblhibbard! Did you make sure all containers were stopped (with |
I think I did, but it could be a possibility I did not
…On Mon, Jan 21, 2019, 1:06 PM Régis Behmo ***@***.*** wrote:
Hi @roblhibbard <https://github.com/roblhibbard>! Did you make sure all
containers were stopped (with docker stop) prior to restarting the
platform?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#133 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AQkaHOxBrC43IjQG1LJcak7rjIvOkXvjks5vFh2sgaJpZM4aLabc>
.
|
i started with a completely new install of ubuntu server 18.04 and with make all command I am getting the same mysql error. not sure if something has changed. thank you, Robert |
Can you try the following commands:
Please paste the complete output of these commands here. |
Output of Make stop:
```
robert@hibbsedx:~/tutor/deploy/local$ make stop
docker-compose rm --stop --force
Stopping local_forum_1 ... done
Going to remove local_nginx_1, local_lms_worker_1, local_cms_worker_1, local_lms_1, local_cms_1, local_forum_1, local_notes_1, local_memcached_1, local_openedx-assets_1, local_rabbitmq_1, local_elasticsearch_1, local_mongodb_1, local_smtp_1, local_mysql_1
Removing local_nginx_1 ... done
Removing local_lms_worker_1 ... done
Removing local_cms_worker_1 ... done
Removing local_lms_1 ... done
Removing local_cms_1 ... done
Removing local_forum_1 ... done
Removing local_notes_1 ... done
Removing local_memcached_1 ... done
Removing local_openedx-assets_1 ... done
Removing local_rabbitmq_1 ... done
Removing local_elasticsearch_1 ... done
Removing local_mongodb_1 ... done
Removing local_smtp_1 ... done
Removing local_mysql_1 ... done
```
```
robert@hibbsedx:~/tutor/deploy/local$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
```
output of make all
```
robert@hibbsedx:~/tutor/deploy/local$ make all
Unable to find image 'regis/openedx-configurator:hawthorn' locally
hawthorn: Pulling from regis/openedx-configurator
cd784148e348: Pull complete
a5ca736b15eb: Pull complete
4a98ed320893: Pull complete
7b49c8b5b952: Pull complete
4a3c25efc1ef: Pull complete
c21df7563729: Pull complete
691788fdd100: Pull complete
b3c21482ee7f: Pull complete
7edcbdc352ec: Pull complete
Digest: sha256:2e220eab5052cf567ca13313a6fb7c7047ce53e27e28547613f0bf5ce30c094b
Status: Downloaded newer image for regis/openedx-configurator:hawthorn
make[1]: Entering directory '/home/robert/tutor/deploy/local'
make[1]: Leaving directory '/home/robert/tutor/deploy/local'
make[1]: Entering directory '/home/robert/tutor/deploy/local'
make[1]: Leaving directory '/home/robert/tutor/deploy/local'
make[1]: Entering directory '/home/robert/tutor/deploy/local'
docker-compose pull
Pulling memcached ... done
Pulling mongodb ... done
Pulling mysql ... done
Pulling elasticsearch ... done
Pulling openedx-assets ... done
Pulling rabbitmq ... done
Pulling smtp ... done
Pulling forum ... done
Pulling lms ... done
Pulling cms ... done
Pulling lms_worker ... done
Pulling cms_worker ... done
Pulling notes ... done
Pulling nginx ... done
make[1]: Leaving directory '/home/robert/tutor/deploy/local'
make[1]: Entering directory '/home/robert/tutor/deploy/local'
docker-compose up -d mysql
Creating local_mysql_1 ... done
docker-compose stop mysql
Stopping local_mysql_1 ... done
docker-compose run --rm -v $(pwd)/../env/openedx/scripts:/openedx/scripts lms /openedx/scripts/provision.sh
Creating local_memcached_1 ... done
Starting local_mysql_1 ... done
Creating local_rabbitmq_1 ... done
Creating local_smtp_1 ... done
Creating local_elasticsearch_1 ... done
Creating local_mongodb_1 ... done
Creating local_forum_1 ... done
2019/01/22 13:22:03 Waiting for: tcp://mysql:3306
2019/01/22 13:22:03 Connected to tcp://mysql:3306
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1130 (HY000): Host '172.18.0.9' is not allowed to connect to this MySQL server
Waiting for mysql database to be ready...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1130 (HY000): Host '172.18.0.9' is not allowed to connect to this MySQL server
Waiting for mysql database to be ready...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1130 (HY000): Host '172.18.0.9' is not allowed to connect to this MySQL server
Waiting for mysql database to be ready...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1130 (HY000): Host '172.18.0.9' is not allowed to connect to this MySQL server
```
Maybe this will make sense to you.
Again thank you for taking a look at this.
Robert
|
This is really strange. Let's start from a blank slate:
|
Same problem here, workaround is to connect to mysql and grant access explicitly:
then just re-run the last command |
@isabyr did you try my proposed fix #133 (comment) ? |
Same issue,
Can you send me a snapshot of what the docker networks should be. My local
default seems out of the ordinary.
Robert
…On Tue, Jan 22, 2019, 1:20 PM Régis Behmo ***@***.*** wrote:
@isabyr <https://github.com/isabyr> did you try my proposed fix #133
(comment)
<#133 (comment)> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#133 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AQkaHKBSagdS6qEI-kIAEA3ej5iK3vxzks5vF3KogaJpZM4aLabc>
.
|
You should have pretty much the same configuration:
|
You should have pretty much the same configuration:
@roblhibbard can you please also paste the result of the |
I will have to get back with you later tonight, will be out for the next 3-4 hours
|
<pre>rob@hibbsedxbox:~/tutor/deploy/local$ docker network inspect local_default
[
{
"Name": "local_default",
"Id": "adb0640f1fd0025c0d52e375bb0cde4541eea0209a57b892deeca05293d19cb1",
"Created": "2019-01-22T06:55:14.588270635-07:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.18.0.0/16",
"Gateway": "172.18.0.1"
}
]
},
"Internal": false,
"Attachable": true,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"077fb71eae0cbe653b2ef757cf90437907dbe22b398497ee5a0083b0b6f8d86d": {
"Name": "local_elasticsearch_1_81a254b950d3",
"EndpointID": "a0feef85294ca54a80830b68ce70e291dbf244bf5ac73b8ac03462441e8a1535",
"MacAddress": "02:42:ac:12:00:04",
"IPv4Address": "172.18.0.4/16",
"IPv6Address": ""
},
"19f604d6d556d7e9e29ce7ad9d29a01101ee2761d7f71efa1f64478bd710b8a6": {
"Name": "local_smtp_1_30b0b029daec",
"EndpointID": "3436a59ca34e5725318de0de2cc78f22a89fcc722b337c94e2a0396f950e8bcf",
"MacAddress": "02:42:ac:12:00:03",
"IPv4Address": "172.18.0.3/16",
"IPv6Address": ""
},
"79b33538f9c8f11129e63749efe440add29fda4cd818a105cfc8186897f90969": {
"Name": "local_mysql_1_c558848ef2ae",
"EndpointID": "29db485661efd1a9d094ecab9cd8638a6c44e716099255ca9bb22778542f8846",
"MacAddress": "02:42:ac:12:00:02",
"IPv4Address": "172.18.0.2/16",
"IPv6Address": ""
},
"845768407f22a623994a41f92f6b0beb73348272fb4035d9f9add6fe5ee95319": {
"Name": "local_memcached_1_663dd38826d6",
"EndpointID": "b8ca85565e79a561ada19b74e39a62bc1afaa938b4dd53884fba95268b244082",
"MacAddress": "02:42:ac:12:00:05",
"IPv4Address": "172.18.0.5/16",
"IPv6Address": ""
},
"988563ef52955cc6c689e50a776e0d43bf487eae800d9ea66cf5849a497fbf86": {
"Name": "local_rabbitmq_1_db3d11f1d304",
"EndpointID": "37487c50f0090469d6bc24d9ba3f742e31540dc87c149f5ebb458650df97d348",
"MacAddress": "02:42:ac:12:00:06",
"IPv4Address": "172.18.0.6/16",
"IPv6Address": ""
},
"f56b1f11c1d7616453b1dd1c48a2d1e372c768aef3112c9878a63a715df71dd1": {
"Name": "local_mongodb_1_68cfa5444b2e",
"EndpointID": "6e16ed6d5fc7a16abc0e14c7cc4c4104eef0e5d7ec811a9e5b15a829a66808f8",
"MacAddress": "02:42:ac:12:00:07",
"IPv4Address": "172.18.0.7/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {
"com.docker.compose.network": "default",
"com.docker.compose.project": "local",
"com.docker.compose.version": "1.23.1"
}
}
]
make -s -C ../.. info
Linux hibbsedxbox 4.4.0-131-generic #157-Ubuntu SMP Thu Jul 12 15:51:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
-------------------------
6d70ded
…-------------------------
Client:
Version: 18.09.1
API version: 1.39
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:35:23 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.1
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:02:44 2019
OS/Arch: linux/amd64
Experimental: false
-------------------------
docker-compose version 1.23.1, build b02f1306
-------------------------
</pre>
|
@roblhibbard the lms and the cms do not appear in your |
There may be a race condition, where the mysql container is initialized without creating the root user. To address this, we wait until the right message from the mysql logs. In practice, we should do even better by running the provision.sh scripts directly inside the mysql container. This is for issues #132 and #133
@roblhibbard I think I found a solution. This might be due to a change I introduced recently that tried to make sure mysql is initialized properly prior to creating the databases. Apparently, it's not working that well... Please try the following:
|
Here are the containers that launch before the error.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
10a7adf5b8e0 regis/openedx:hawthorn "docker-entrypoint.s…" About a minute ago Up About a minute 8000/tcp local_lms_run_1_acb0d9a3e2f2
2e38d7764edb regis/openedx-forum:hawthorn "/bin/sh -c './bin/u…" 2 hours ago Restarting (101) 35 seconds ago local_forum_1_83624ffb0e11
d443fb48a792 rabbitmq:3.6.10 "docker-entrypoint.s…" 2 hours ago Up 2 hours 4369/tcp, 5671-5672/tcp, 25672/tcp local_rabbitmq_1_8d51c0ea4f61
c4f4d9ec8945 mongo:3.2.16 "docker-entrypoint.s…" 2 hours ago Up 2 hours 27017/tcp local_mongodb_1_5c7a49f3e285
57e588515eb7 namshi/smtp "/bin/entrypoint.sh …" 2 hours ago Up 2 hours 25/tcp local_smtp_1_847574056e4e
7798c40c58f3 elasticsearch:1.5.2 "/docker-entrypoint.…" 2 hours ago Up 2 hours 9200/tcp, 9300/tcp local_elasticsearch_1_65a891fe23fd
42d5636a0da8 memcached:1.4.38 "docker-entrypoint.s…" 2 hours ago Up 2 hours 11211/tcp local_memcached_1_3267e6f763ec
66c991001776 mysql:5.6.36 "docker-entrypoint.s…" 2 hours ago Up About a minute 3306/tcp local_mysql_1_d017b71191db
The only reason I thought it was out of the ordinary was I seen another instance of one working and it did not seem to has as many of the connections.
Robert
|
I will give this a try now.
Thank you,
Robert
|
Yeah,
Back up and running again,
Thank you,
Robert
|
Awesome! Pfiuh, that was hard. |
So now that my platform is working again, I was able to get the jupyter-edx-grader-xblock installed and working on my testbox. I ended up adding
run pip install --src ../venv/src -r IPython==5.0
run pip install --src ../venv/src -r ipykernel==4.10
to the openedx Dockerfile. This allowed for jupyter to be installed via the private.txt. I cloned the edx-platform and added the other items via the CMS and LMS.
Thanks again for all your help,
Robert
|
That's great news! FYI, you don't have to modify the Dockerfile. You just need to add your dependencies to your private requirements.
|
Hello,
This is most likely not related to tutor, but after I got the jupyter-edx-grader-xblock installed and showing up in Studio, when I try and upload a instructor notebook I receive this error.
cms_1 | 2019-01-26 15:51:09,767 INFO 10 [xblock_jupyter_graded.xblock_jupyter_graded] xblock_jupyter_graded.py:233 - Handling instructor nb upload for course: course-v1:CHS+PR101+2019S2, xblock: block-v1:CHS+PR101+2019S2+type@xblock_jupyter_graded+block@def39e2a27154b9c879a5a30c0e7d92f
cms_1 | 2019-01-26 15:51:09,770 INFO 10 [xblock_jupyter_graded.file_manager] file_manager.py:101 - Found solution cell
cms_1 | 2019-01-26 15:51:09,770 INFO 10 [xblock_jupyter_graded.file_manager] file_manager.py:63 - Wrote file: /var/www/nbgrader/courses/CHS_PR101_2019S2/source/xblock_jupyter_graded_block_def39e2a27154b9c879a5a30c0e7d92f/problem3.ipynb
cms_1 | 2019-01-26 15:51:09,784 ERROR 10 [xblock_jupyter_graded.xblock_jupyter_graded] xblock_jupyter_graded.py:266 - [Errno 2] No such file or directory
cms_1 | Traceback (most recent call last):
cms_1 | File "/usr/local/lib/python2.7/dist-packages/xblock_jupyter_graded/xblock_jupyter_graded.py", line 246, in handle_instructor_nb_upload
cms_1 | str(self.course_id), str(self.location), f)
cms_1 | File "/usr/local/lib/python2.7/dist-packages/xblock_jupyter_graded/nbgrader_utils.py", line 54, in generate_student_nb
cms_1 | max_score = _run_assign_container(f.filename, course, unit)
cms_1 | File "/usr/local/lib/python2.7/dist-packages/xblock_jupyter_graded/nbgrader_utils.py", line 79, in _run_assign_container
cms_1 | build_container_if_not_exists(course_id)
cms_1 | File "/usr/local/lib/python2.7/dist-packages/xblock_jupyter_graded/nbgrader_utils.py", line 211, in build_container_if_not_exists
cms_1 | if not manager.container_exists():
cms_1 | File "/usr/local/lib/python2.7/dist-packages/xblock_jupyter_graded/container_manager.py", line 158, in container_exists
cms_1 | p = Popen(cmd, stdout=PIPE, stderr=PIPE)
cms_1 | File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
cms_1 | errread, errwrite)
cms_1 | File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
cms_1 | raise child_exception
cms_1 | OSError: [Errno 2] No such file or directory
if you have any ideas, it would be much appreciated.
Thank you,
Robert H
From: Régis Behmo <notifications@github.com>
Sent: Wednesday, January 23, 2019 11:15 PM
To: regisb/tutor <tutor@noreply.github.com>
Cc: Robert Hibbard <roblhibbard@gmail.com>; Mention <mention@noreply.github.com>
Subject: Re: [regisb/tutor] Newbie help again (#133)
That's great news! FYI, you don't have to modify the Dockerfile. You just need to add your dependencies to your private requirements.
private.txt:
IPython==5.0
ipykernel==4.10
git+https://github.com/ibleducation/jupyter-edx-grader-xblock.git
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#133 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AQkaHMUm5oG6EHh7-nqajZRnZfSBb9X9ks5vGU9vgaJpZM4aLabc> . <https://github.com/notifications/beacon/AQkaHI5DIfUULhIVpu0yM76EBk0VpVCcks5vGU9vgaJpZM4aLabc.gif>
|
Indeed, this is not related to tutor at all. But I suspect the xblock requires docker, which is not available from inside the container... You would need to add When I quickly checked the documentation of xblock_jupyter_graded, I didn't realize that the xblock was itself running docker containers. It's possible to launch containers inside containers, but it's tricky. |
I decided to start from scratch on a testbox and all was going well until I decided to remove all volumes, containers and such.
I removed the tutor directory also.
Started with the quick start and get an error stating:
Host '172.18.0.1' is not allowed to connect to this MySQL.
any suggestions.
thank you,
Robert H
The text was updated successfully, but these errors were encountered: