Rehan_Aziz
(Rehan Aziz)
December 31, 2021, 8:07am
1
I’ve been working on openEdx juniper release for a while now. Recently while setting up devstack (at the point of provisioning) I’m getting the following error.
TASK [server_utils : Install ubuntu system packages] ***************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: "}
That is because of expired edx.org for ubunu ppa.
http://keyserver.ubuntu.com/pks/lookup?search=admin%2Bppa%40edx.org>&fingerprint=on&op=index
Rehan_Aziz
(Rehan Aziz)
December 31, 2021, 8:10am
2
Here is the solution that worked for me
docker exec -ti edx.devstack-juniper.master.lms bash
sudo nano roles/server_utils/tasks/main.yml
Comment out following tasks
Check for expired edx key
remove expired edx key
sudo nano roles/common/tasks/main.yml
Comment out following tasks
Add edX PPA apt key
Update expired apt keys
Add custom edX PPA
cd /etc/apt/
sudo nano sources.list
Comment Out edx ppa
exit
deb http://ppa.edx.org xenial main
docker commit edx.devstack-juniper.master.lms
docker images
docker tag imgid rehan/edxapp
sudo nano docker-compose.yml
Make following change:lms:
image: rehan/edxapp:latest
4 Likes
Rehan_Aziz
(Rehan Aziz)
January 18, 2022, 7:58am
3
Rehan_Aziz:
docker tag imgid rehan/edxapp
here imgid is the id of recent created image that we have committed in previous step. We can check image id using docker images
command