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
Migration from openedX Native #87
Comments
Basically, all you need to do is to migrate the data in MySQL and Mongodb. Did you make important changes to your platform? Do you have some experience with docker and server administration? |
Hey @regisb, some changes were made to the platform which weren't documented, but I see some changes in the git repos of the edx-platform etc. Server administration yes, docker so-so. |
Mysql data migration
You will need to root password to the database, which is indicated in openedx-docker/config/config.json Mongodb data migrationSimilarly, you have to transfer the
And you should be fine. Please try out these recommendations and come back with the result of your attempt. It would be great if others could benefit from your experience. |
I am trying and will write a Howto, when I'm finished completely.
|
Do you mean the password for Mongodb in your current native install? It should be in
Hmmm that's right, I had forgotten about those. In openedx-docker, uploads are stored in As for themes... Well I'm not so sure, as themes are not (yet) supported out of the box in openedx-docker. You might want to check this issue. |
@kbitr how did it go? |
@regisb I didn't find the time to yet, I will update this when I did. ✌🏻 |
Okay, I had a few tries and this is how far I got: mysql: mongodb: I don't know how to continue by now. |
The command to interact with the MySQL server from inside the container was incorrect. Here's the correct command:
(I'll edit my previous answer) As for interacting with your current MongoDb server, I don't know how it's configured so it's kind of hard to make a recommentation. You need to find the right password. Maybe I can help you if you send me privately your lms.auth.json. |
mysql:
mongo:
scp and chown were used besides that. I transferred the theme with the newly merged themes folder. So far so good, still my openedx looks the very same as before. (just the demo course from docker). Additionally, where does the content of native's |
Awesome! You will probably have to move the content of /edx/var/edxapp/data to ./data/lms and/or ./data/cms. It's hard to say without viewing the folder content. |
Please check the logs in order to debug 500 errors: https://github.com/regisb/openedx-docker/#logging |
I am not quite sure what I am looking for there. And do not want to spam this issue. 😅 |
No worries! Just trigger a 500 error by visiting the lms page mentioned above, and then paste here the output of |
Here we go, I added timestamps. |
Here is the relevant error:
This is likely due to a missing migration. Are you sure that the previous install was based on Hawthorn, and that all migrations had been correctly applied? Please run |
@kbitr did you make some progress on this issue? |
@regisb Sorry, have to freeze this for a while. But, you were right, actually it was a Ginkgo release which I wasn't aware of. Have some trouble with an edx service provider who originally installed this and documented nothing. 😑 |
I feel your pain! Maybe you can try to use the ginkgo branch? |
@regisb I am not sure if i should go with opening my own issue or add it in here, I have ficus installation and I want to go with hawthorn, but it seems that the mysql schema is different, what should i do to migrate it ? |
@mostafahussein Indeed, this is a very different issue than the original one. Please don't post here. Also, Tutor was not created at the time of the Ficus release, so Tutor does not support migrating from Ficus. In general, migrating from older versions of Open edX depends heavily on your own setup. If you have a very customised setup, with a fork of edx-platform for example, then a lot of work is required and no one will help you for free. If you installed the official Open edX, release, you should follow the standard upgrade path from version to version (Ficus -> Ginkgo -> Hawthorn -> Ironwood). I noticed you already posted questions in the Open edX slack channels and discussion groups. It is very hard for people to help you if you don't provide more details in your question. In particular, you need to describe what you already tried. I strongly encourage you to read the following very well-written articles: |
@regisb Thanks, I am not sure which question you mean but yes i posted to discussion group, and i already mentioned that i tried to dump database and then restore it as mentioned in the official way to upgrade which is similar to your comment: #87 (comment) maybe i was not clear enough in the explanation. anyway i will try to upgrade it from version to version so i can use it hawthorn in docker. Thanks again |
I put together my journey / steps here in case anyone stumbles upon this issue. |
Hey, I have a customized openedX Native version up and running on an AWS EC2 instance. Now I want to migrate to the docker version provided.
Any suggestions how to do this in the first place?
The text was updated successfully, but these errors were encountered: