Situation
I have come unstuck restoring a backup. I have followed the instructions here (message 52/131). The command in point 9 did not carry through, but stupidly I did not realise it and proceeded to point 10, which seemed to complete. However, when I then go to localhost/sql_upgrade.php in my browser, I get the Apache default page. Clearing the cache makes no difference. Here is my terminal output:
robert@robert-ideacentre-AIO-520-22IKU:~$ cd ~/Downloads
robert@robert-ideacentre-AIO-520-22IKU:~/Downloads$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ae8693b8a741 mariadb:10.4 "docker-entrypoint.sâŚ" 3 days ago Up About an hour 3306/tcp openemr_mysql_1
robert@robert-ideacentre-AIO-520-22IKU:~/Downloads$ docker cp /home/$USER/Downloads/openemr.sql ae8693b8a741:.
robert@robert-ideacentre-AIO-520-22IKU:~/Downloads$ docker exec -it ae8693b8a741 /bin/bash
root@ae8693b8a741:/# mysql -uroot -proot openemr < openemr.sql
root@ae8693b8a741:/# exit
exit
robert@robert-ideacentre-AIO-520-22IKU:~/Downloads$ docker exec -it $(docker ps | grep _openemr | cut -f 1 -d " ") /bin/sh
"docker exec" requires at least 2 arguments.
See 'docker exec --help'.
Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
Run a command in a running container
robert@robert-ideacentre-AIO-520-22IKU:~/Downloads$ wget https://raw.githubusercontent.com/openemr/openemr/rel-502/sql_upgrade.php
--2021-11-03 09:50:26-- https://raw.githubusercontent.com/openemr/openemr/rel-502/sql_upgrade.php
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5477 (5,3K) [text/plain]
Saving to: âsql_upgrade.phpâ
sql_upgrade.php 100%[===================>] 5,35K --.-KB/s in 0s
2021-11-03 09:50:26 (12,5 MB/s) - âsql_upgrade.phpâ saved [5477/5477]
robert@robert-ideacentre-AIO-520-22IKU:~/Downloads$
OpenEMR Version
6.0.0 Docker
Browser:
Chrome, Firefox
Operating System
Linux Mint 19.1
Logs
Did you check the logs? No, if you need them, please tell me where to find them.
robert@robert-ideacentre-AIO-520-22IKU:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
81cfe62619f5 openemr/openemr:6.0.0 "./run_openemr.sh" 46 hours ago Exited (255) 34 hours ago 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp openemr_openemr_1
ae8693b8a741 mariadb:10.4 "docker-entrypoint.sâŚ" 4 days ago Up About an hour 3306/tcp openemr_mysql_1
robert@robert-ideacentre-AIO-520-22IKU:~$
I find this morning that I do have to do âsudo service apache2 stopâ then âdocker start 81cfe62619fâ at each reboot.
Yet in my docker-compose.yml I have ârestart: alwaysâ.
I have looked at the example commands on the page you linked to @jesdynf but I do not know what the value after â-pâ should be, and I do not want to make a mistake with my command.