Hi,
I am trying to test the backup and restore process following the documentation.
Apologies on the long post, I kept adding to it as I tried to resolve.
When trying to restore a back up nginx keeps producing an error due to a letsencrypt file not being found
nginx_1 | nginx: [emerg] BIO_new_file(“/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem”) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
nginx_1 | 2020/10/09 13:51:20 [emerg] 1#1: BIO_new_file(“/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem”) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
tutor version 10.2.0.
$TUTOR_ROOT = /usr/local/share/tutor
What am I doing wrong?
What was unnessary?
What should I never do again?
I have the logs for different stages saved to file, if needed
Backed up tutor:
tutor local stop
sudo rsync -avr “$(tutor config printroot)”/ /tmp/tutor-backup/
tutor local start -d
It took about 20mins for the system to get up and running properly, receiving 504 Gateway timeout within that time. Is that normal?
I then created a new User and new Course, with the intention of testing if they were removed when restore the created backup
I then tried to restore the backup
tutor local stop
sudo rsync -avr /tmp/tutor-backup/ “$(tutor config printroot)”/
tutor local start -d
But even after 20min, was not able to connect to server with error in logs
nginx_1 | 2020/10/09 11:32:41 [emerg] 1#1: BIO_new_file(“/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem”) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
tried renewing the certificate
tutor local stop nginx
tutor local https renew
tutr local start -d
But no change
So tried building nginx image
tutor images build nginx
…but it didn’t give an output so I presumed it did nothing and built all (which I’d never tried before, but saw it referenced in the forum not the docs)
tutor images build all
but got error
The command ‘/bin/sh -c bundle install --deployment’ returned a non-zero code: 7
Error: Command failed with status 7: docker build -t docker.io/overhangio/openedx-forum:10.2.0 /usr/local/share/tutor/env/build/forum
So just built openedx and quickstart
tutor images build openedx
tutor local quickstart
Same issue with nginx
nginx_1 | 2020/10/09 12:33:29 [emerg] 1#1: BIO_new_file(“/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem”) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
nginx_1 | nginx: [emerg] BIO_new_file(“/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem”) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
So tried removing all docker containers etc, rebuild image remove all files in $TUTOR_ROOT, transfer in backup and quickstart, while also deleting rabbitmq and letsencrypt data
docker system prune -a
tutor images build openedx
sudo rm -r “$(tutor config printroot)”/
sudo mkdir “$(tutor config printroot)”
sudo rsync -avr /tmp/tutor-backup/ “$(tutor config printroot)”/
sudo chmod -R 777 “$(tutor config printroot)”
sudo rm -r “$(tutor config printroot)”/data/rabbitmq
sudo rm -r “$(tutor config printroot)”/data/letsencrypt
Same nginx issue
tutor local stop
sudo rm -r “$(tutor config printroot)”
sudo mkdir tutor
sudo rsync -avr /tmp/tutor-backup/ “$(tutor config printroot)”/
sudo rm -r “$(tutor config printroot)”/data/letsencrypt
sudo rm -r “$(tutor config printroot)”/data/rabbitmq
sudo chmod -R 777 “$(tutor config printroot)”
tutor local quickstart
Same nginx error
nginx_1 | nginx: [emerg] BIO_new_file(“/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem”) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
nginx_1 | 2020/10/09 13:51:16 [emerg] 1#1: BIO_new_file(“/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem”) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/etc/letsencrypt/live/icip3-learn.ichec.ie/fullchain.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)