Cannot start Docker

Does sudo service apache2 stop work?

No errors were reported from sudo service apache2 stop. But openemr still does not load in my browser.

@jsedynf

Thank you. See my reply to @snailwell above.

I am also adding a new comment below, describing exactly what I have done so far.

Here is what I have done so far:

(1) Installed docker.io.
(2) Run sudo docker pull openemr/openemr.
(3) Installed apache2.
(4) Created folder ‘openemer’ in my home folder.
(5) Copied docker-compose file from https://github.com/openemr/openemr-devops/tree/master/docker/openemr/7.0.0/#openemr-official-docker-image.
(6) Saved above as docker-compose.yml in my ~/openemr folder.
(7) Installed docker-compose and run sudo docker-compose up -d from my ~/openemr folder.
(8) Attempted to bring up openemr in my browser by typing in ‘localhost’. This produces the Apache default page.
(9) Attempted to bring up openemr in my browser by typing in ‘localhost/openemr’. This produces the Apache default page. This produces a 404 Not Found page.
(10) sudo service apache2 stop - No change in behaviour.
(11) Cleared cache from browser - No change in behaviour.
(12) Tried different browser - No change in bahavious.

no need to install apache2, the openemr docker takes care of that

go to ~/openemr

docker-compose up

I have finally found some instructions that I had been looking for till now from @stephenwaite : Blank screen on first start of OpenEMR 5.0.2 - #40 by stephenwaite .

It appears that in my attempts to remember/figure out what needed to be done I have predictably missed out a few steps, namely, after installing docker.io:

  • sudo systemctl enable --now docker
  • sudo usermod -aG docker $USER
  • newgrp docker

I have now done them and run docker-compose up -d again.

No joy.

I read in the same thread that Apache could be competing for ports, so I commented out port 80 in the docker-compose file. No difference. I have now uninstalled apache2.

Now both http://localhost and http://localhost produce ‘Problem loading page. Secure connection failed’.

you can remove apache2 and then exit out of your shell and open another so that your new group permissions take effect

robert@roberts-Lenovo-B590:~/openemr$ docker-compose up
openemr_mysql_1 is up-to-date
openemr_openemr_1 is up-to-date
Attaching to openemr_mysql_1, openemr_openemr_1
openemr_1  | Generating a RSA private key
openemr_1  | ...............++++
openemr_1  | ......................................................................................................................++++
openemr_1  | writing new private key to '/etc/ssl/private/selfsigned.key.pem'
openemr_1  | -----
openemr_1  | Running quick setup!
openemr_1  | Running quick setup!
mysql_1    | 2022-08-16 14:16:07+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.8+maria~focal started.
mysql_1    | 2022-08-16 14:16:10+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
mysql_1    | 2022-08-16 14:16:10+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.8+maria~focal started.
mysql_1    | 2022-08-16 14:16:11+00:00 [Note] [Entrypoint]: Initializing database files
mysql_1    | 
mysql_1    | 
mysql_1    | PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
mysql_1    | To do so, start the server, then issue the following command:
mysql_1    | 
mysql_1    | '/usr/bin/mysql_secure_installation'
mysql_1    | 
mysql_1    | which will also give you the option of removing the test
mysql_1    | databases and anonymous user created by default.  This is
mysql_1    | strongly recommended for production servers.
mysql_1    | 
mysql_1    | See the MariaDB Knowledgebase at https://mariadb.com/kb
mysql_1    | 
mysql_1    | Please report any problems at https://mariadb.org/jira
mysql_1    | 
mysql_1    | The latest information about MariaDB is available at https://mariadb.org/.
mysql_1    | 
mysql_1    | Consider joining MariaDB's strong and vibrant community:
mysql_1    | https://mariadb.org/get-involved/
mysql_1    | 
mysql_1    | 2022-08-16 14:17:13+00:00 [Note] [Entrypoint]: Database files initialized
mysql_1    | 2022-08-16 14:17:13+00:00 [Note] [Entrypoint]: Starting temporary server
mysql_1    | 2022-08-16 14:17:13+00:00 [Note] [Entrypoint]: Waiting for server startup
mysql_1    | 2022-08-16 14:17:13 0 [Note] mysqld (server 10.6.8-MariaDB-1:10.6.8+maria~focal) starting as process 95 ...
mysql_1    | 2022-08-16 14:17:13 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mysql_1    | 2022-08-16 14:17:13 0 [Note] InnoDB: Number of pools: 1
mysql_1    | 2022-08-16 14:17:13 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
mysql_1    | 2022-08-16 14:17:13 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
mysql_1    | 2022-08-16 14:17:13 0 [Note] InnoDB: Using Linux native AIO
mysql_1    | 2022-08-16 14:17:13 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
mysql_1    | 2022-08-16 14:17:13 0 [Note] InnoDB: Completed initialization of buffer pool
mysql_1    | 2022-08-16 14:17:15 0 [Note] InnoDB: 128 rollback segments are active.
mysql_1    | 2022-08-16 14:17:15 0 [Note] InnoDB: Creating shared tablespace for temporary tables
mysql_1    | 2022-08-16 14:17:15 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
mysql_1    | 2022-08-16 14:17:15 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
mysql_1    | 2022-08-16 14:17:15 0 [Note] InnoDB: 10.6.8 started; log sequence number 42173; transaction id 14
mysql_1    | 2022-08-16 14:17:15 0 [Note] Plugin 'FEEDBACK' is disabled.
mysql_1    | 2022-08-16 14:17:15 0 [Warning] 'user' entry 'root@f0991c55a714' ignored in --skip-name-resolve mode.
mysql_1    | 2022-08-16 14:17:15 0 [Warning] 'proxies_priv' entry '@% root@f0991c55a714' ignored in --skip-name-resolve mode.
mysql_1    | 2022-08-16 14:17:15 0 [Note] mysqld: ready for connections.
mysql_1    | Version: '10.6.8-MariaDB-1:10.6.8+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
mysql_1    | 2022-08-16 14:17:15+00:00 [Note] [Entrypoint]: Temporary server started.
mysql_1    | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
mysql_1    | Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.
mysql_1    | Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.
mysql_1    | 2022-08-16 14:17:32+00:00 [Note] [Entrypoint]: Securing system users (equivalent to running mysql_secure_installation)
mysql_1    | 
mysql_1    | 2022-08-16 14:17:32+00:00 [Note] [Entrypoint]: Stopping temporary server
mysql_1    | 2022-08-16 14:17:33 0 [Note] mysqld (initiated by: root[root] @ localhost []): Normal shutdown
mysql_1    | 2022-08-16 14:17:33 0 [Note] InnoDB: FTS optimize thread exiting.
mysql_1    | 2022-08-16 14:17:33 0 [Note] InnoDB: Starting shutdown...
mysql_1    | 2022-08-16 14:17:33 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
mysql_1    | 2022-08-16 14:17:33 0 [Note] InnoDB: Buffer pool(s) dump completed at 220816 14:17:33
mysql_1    | 2022-08-16 14:17:34 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
mysql_1    | 2022-08-16 14:17:34 0 [Note] InnoDB: Shutdown completed; log sequence number 42185; transaction id 15
mysql_1    | 2022-08-16 14:17:34 0 [Note] mysqld: Shutdown complete
mysql_1    | 
mysql_1    | 2022-08-16 14:17:35+00:00 [Note] [Entrypoint]: Temporary server stopped
mysql_1    | 
mysql_1    | 2022-08-16 14:17:35+00:00 [Note] [Entrypoint]: MariaDB init process done. Ready for start up.
mysql_1    | 
mysql_1    | 2022-08-16 14:17:35 0 [Note] mysqld (server 10.6.8-MariaDB-1:10.6.8+maria~focal) starting as process 1 ...
mysql_1    | 2022-08-16 14:17:35 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mysql_1    | 2022-08-16 14:17:35 0 [Note] InnoDB: Number of pools: 1
mysql_1    | 2022-08-16 14:17:35 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
mysql_1    | 2022-08-16 14:17:35 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
mysql_1    | 2022-08-16 14:17:35 0 [Note] InnoDB: Using Linux native AIO
mysql_1    | 2022-08-16 14:17:35 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
mysql_1    | 2022-08-16 14:17:35 0 [Note] InnoDB: Completed initialization of buffer pool
mysql_1    | 2022-08-16 14:17:37 0 [Note] InnoDB: 128 rollback segments are active.
mysql_1    | 2022-08-16 14:17:37 0 [Note] InnoDB: Creating shared tablespace for temporary tables
mysql_1    | 2022-08-16 14:17:37 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
mysql_1    | 2022-08-16 14:17:37 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
mysql_1    | 2022-08-16 14:17:37 0 [Note] InnoDB: 10.6.8 started; log sequence number 42185; transaction id 14
mysql_1    | 2022-08-16 14:17:37 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
mysql_1    | 2022-08-16 14:17:37 0 [Note] Plugin 'FEEDBACK' is disabled.
mysql_1    | 2022-08-16 14:17:37 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
mysql_1    | 2022-08-16 14:17:37 0 [Note] Server socket created on IP: '0.0.0.0'.
mysql_1    | 2022-08-16 14:17:37 0 [Note] Server socket created on IP: '::'.
mysql_1    | 2022-08-16 14:17:37 0 [Note] InnoDB: Buffer pool(s) load completed at 220816 14:17:37
mysql_1    | 2022-08-16 14:17:37 0 [Note] mysqld: ready for connections.
mysql_1    | Version: '10.6.8-MariaDB-1:10.6.8+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
mysql_1    | 2022-08-16 14:19:50 0 [Note] mysqld (initiated by: unknown): Normal shutdown
mysql_1    | 2022-08-16 14:19:50 0 [Note] InnoDB: FTS optimize thread exiting.
mysql_1    | 2022-08-16 14:19:51 0 [Note] InnoDB: Starting shutdown...
mysql_1    | 2022-08-16 14:19:51 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
mysql_1    | 2022-08-16 14:19:51 0 [Note] InnoDB: Buffer pool(s) dump completed at 220816 14:19:51
mysql_1    | 2022-08-16 14:19:52 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
mysql_1    | 2022-08-16 14:19:52 0 [Note] InnoDB: Shutdown completed; log sequence number 42341; transaction id 15
mysql_1    | 2022-08-16 14:19:52 0 [Note] mysqld: Shutdown complete
mysql_1    | 
mysql_1    | 2022-08-16 14:21:48+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.8+maria~focal started.
mysql_1    | 2022-08-16 14:21:51+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
mysql_1    | 2022-08-16 14:21:51+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.8+maria~focal started.
mysql_1    | 2022-08-16 14:21:51+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
mysql_1    | 2022-08-16 14:21:51 0 [Note] mysqld (server 10.6.8-MariaDB-1:10.6.8+maria~focal) starting as process 1 ...
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: Number of pools: 1
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
mysql_1    | 2022-08-16 14:21:51 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: Using Linux native AIO
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: Completed initialization of buffer pool
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: 128 rollback segments are active.
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: Creating shared tablespace for temporary tables
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: 10.6.8 started; log sequence number 42341; transaction id 14
mysql_1    | 2022-08-16 14:21:51 0 [Note] Plugin 'FEEDBACK' is disabled.
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
mysql_1    | 2022-08-16 14:21:51 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
mysql_1    | 2022-08-16 14:21:51 0 [Note] InnoDB: Buffer pool(s) load completed at 220816 14:21:51
mysql_1    | 2022-08-16 14:21:51 0 [Note] Server socket created on IP: '0.0.0.0'.
mysql_1    | 2022-08-16 14:21:51 0 [Note] Server socket created on IP: '::'.
mysql_1    | 2022-08-16 14:21:52 0 [Note] mysqld: ready for connections.
mysql_1    | Version: '10.6.8-MariaDB-1:10.6.8+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
mysql_1    | 2022-08-16 14:34:37 0 [Note] mysqld (initiated by: unknown): Normal shutdown
mysql_1    | 2022-08-16 14:34:37 0 [Note] InnoDB: FTS optimize thread exiting.
mysql_1    | 2022-08-16 14:34:37 0 [Note] InnoDB: Starting shutdown...
mysql_1    | 2022-08-16 14:34:37 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
mysql_1    | 2022-08-16 14:34:37 0 [Note] InnoDB: Buffer pool(s) dump completed at 220816 14:34:37
mysql_1    | 2022-08-16 14:34:38 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
mysql_1    | 2022-08-16 14:34:38 0 [Note] InnoDB: Shutdown completed; log sequence number 42353; transaction id 15
mysql_1    | 2022-08-16 14:34:38 0 [Note] mysqld: Shutdown complete
mysql_1    | 
mysql_1    | 2022-08-16 17:31:42+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.8+maria~focal started.
mysql_1    | 2022-08-16 17:31:45+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
mysql_1    | 2022-08-16 17:31:45+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.8+maria~focal started.
mysql_1    | 2022-08-16 17:31:45+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
mysql_1    | 2022-08-16 17:31:45 0 [Note] mysqld (server 10.6.8-MariaDB-1:10.6.8+maria~focal) starting as process 1 ...
mysql_1    | 2022-08-16 17:31:45 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mysql_1    | 2022-08-16 17:31:45 0 [Note] InnoDB: Number of pools: 1
mysql_1    | 2022-08-16 17:31:45 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
mysql_1    | 2022-08-16 17:31:45 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
mysql_1    | 2022-08-16 17:31:45 0 [Note] InnoDB: Using Linux native AIO
mysql_1    | 2022-08-16 17:31:45 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
mysql_1    | 2022-08-16 17:31:45 0 [Note] InnoDB: Completed initialization of buffer pool
mysql_1    | 2022-08-16 17:31:45 0 [Note] InnoDB: 128 rollback segments are active.
mysql_1    | 2022-08-16 17:31:45 0 [Note] InnoDB: Creating shared tablespace for temporary tables
mysql_1    | 2022-08-16 17:31:45 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
mysql_1    | 2022-08-16 17:31:45 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
mysql_1    | 2022-08-16 17:31:45 0 [Note] InnoDB: 10.6.8 started; log sequence number 42353; transaction id 14
mysql_1    | 2022-08-16 17:31:45 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
mysql_1    | 2022-08-16 17:31:45 0 [Note] Plugin 'FEEDBACK' is disabled.
mysql_1    | 2022-08-16 17:31:46 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
mysql_1    | 2022-08-16 17:31:46 0 [Note] InnoDB: Buffer pool(s) load completed at 220816 17:31:46
mysql_1    | 2022-08-16 17:31:46 0 [Note] Server socket created on IP: '0.0.0.0'.
mysql_1    | 2022-08-16 17:31:46 0 [Note] Server socket created on IP: '::'.
mysql_1    | 2022-08-16 17:31:46 0 [Note] mysqld: ready for connections.
mysql_1    | Version: '10.6.8-MariaDB-1:10.6.8+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
mysql_1    | 2022-08-16 19:05:47 0 [Note] mysqld (initiated by: unknown): Normal shutdown
mysql_1    | 2022-08-16 19:05:48 0 [Note] InnoDB: FTS optimize thread exiting.
mysql_1    | 2022-08-16 19:05:48 0 [Note] InnoDB: Starting shutdown...
mysql_1    | 2022-08-16 19:05:48 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
mysql_1    | 2022-08-16 19:05:48 0 [Note] InnoDB: Buffer pool(s) dump completed at 220816 19:05:48
mysql_1    | 2022-08-16 19:05:49 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
mysql_1    | 2022-08-16 19:05:49 0 [Note] InnoDB: Shutdown completed; log sequence number 42365; transaction id 15
mysql_1    | 2022-08-16 19:05:49 0 [Note] mysqld: Shutdown complete
mysql_1    | 
mysql_1    | 2022-08-16 19:06:45+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.8+maria~focal started.
mysql_1    | 2022-08-16 19:06:48+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
mysql_1    | 2022-08-16 19:06:48+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.6.8+maria~focal started.
mysql_1    | 2022-08-16 19:06:49+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
mysql_1    | 2022-08-16 19:06:49 0 [Note] mysqld (server 10.6.8-MariaDB-1:10.6.8+maria~focal) starting as process 1 ...
mysql_1    | 2022-08-16 19:06:49 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mysql_1    | 2022-08-16 19:06:49 0 [Note] InnoDB: Number of pools: 1
mysql_1    | 2022-08-16 19:06:49 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
mysql_1    | 2022-08-16 19:06:49 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
mysql_1    | 2022-08-16 19:06:49 0 [Note] InnoDB: Using Linux native AIO
mysql_1    | 2022-08-16 19:06:49 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
mysql_1    | 2022-08-16 19:06:49 0 [Note] InnoDB: Completed initialization of buffer pool
mysql_1    | 2022-08-16 19:06:50 0 [Note] InnoDB: 128 rollback segments are active.
mysql_1    | 2022-08-16 19:06:50 0 [Note] InnoDB: Creating shared tablespace for temporary tables
mysql_1    | 2022-08-16 19:06:50 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
mysql_1    | 2022-08-16 19:06:50 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
mysql_1    | 2022-08-16 19:06:50 0 [Note] InnoDB: 10.6.8 started; log sequence number 42365; transaction id 14
mysql_1    | 2022-08-16 19:06:50 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
mysql_1    | 2022-08-16 19:06:50 0 [Note] Plugin 'FEEDBACK' is disabled.
mysql_1    | 2022-08-16 19:06:50 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
mysql_1    | 2022-08-16 19:06:50 0 [Note] InnoDB: Buffer pool(s) load completed at 220816 19:06:50
mysql_1    | 2022-08-16 19:06:50 0 [Note] Server socket created on IP: '0.0.0.0'.
mysql_1    | 2022-08-16 19:06:50 0 [Note] Server socket created on IP: '::'.
mysql_1    | 2022-08-16 19:06:50 0 [Note] mysqld: ready for connections.
mysql_1    | Version: '10.6.8-MariaDB-1:10.6.8+maria~focal'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution

Thank you. From localhost as well as localhost/openemr, I am still getting ‘Problem Loading Page. Secure Connection Failed’.

I see in the above code that I have to:

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
mysql_1    | To do so, start the server, then issue the following command:
mysql_1    | 
mysql_1    | '/usr/bin/mysql_secure_installation'

Please could you confirm that I have to do this and if so, how do I “start the server”. Thank you.

Sorry, I don’t understand “exit out of your shell”. I have removed apache2 and rebooted.

when you type exit the terminal closes and then you can reopen, also the - d let’s it run detached so you can continue to use that terminal, docker-compose up -d

give it a sec to load up and then go to http://localhost/interface/login/login.php?site=default since you won’t have https running out of the box

1 Like

Thank you. It is now good to go.

Funny (and annoying) thing is it works now in Firefox but not in Chrome, my preferred browser
(“This site can’t be reached - localhost refused to connect”), even after deleting cache.

After a reboot, I can no longer load openemr in Firefox either. I get “Secure Connection Failed … PR_END_OF_FILE_ERROR”.

SO frustrating!

Any further help, please?

Now I am very confused.

I had understood that Apache was not necessary, in fact it could create problems, and I had uninstalled it.

Localhost on Firefox would work but not on Chrome.

I rebooted and it would not work on Firefox either.

On the off-chance I have now reinstalled Apache.

Localhost now connects on both browsers.

I am happy with this, but I would like some clarity for future reference!

Thank you.

You can use the following command to see what is listening on your ports:

sudo ss -ltpn

People, I am now beginning to pull my hair out. After another reboot, openemr no longer loads in the browser again. I feel like I’m going nowhere.

Thank you @snailwell for that command. But I do not know what to do with that information. It appears that there is nothing listening on either port 80 or port 443 (the ports specified in my docker-compose.yml file.

robert@roberts-Lenovo-B590:~$ sudo ss -ltpn
[sudo] password for robert:       
State     Recv-Q    Send-Q       Local Address:Port        Peer Address:Port    Process                                                                         
LISTEN    0         4096         127.0.0.53%lo:53               0.0.0.0:*        users:(("systemd-resolve",pid=769,fd=14))                                      
LISTEN    0         128              127.0.0.1:631              0.0.0.0:*        users:(("cupsd",pid=971,fd=8))                                                 
LISTEN    0         4096             127.0.0.1:35225            0.0.0.0:*        users:(("containerd",pid=987,fd=13))                                           
LISTEN    0         128                  [::1]:631                 [::]:*        users:(("cupsd",pid=971,fd=7))

I really need to get this working today.

Thanks.

@stephenwaite, please?

A thought, I had been in the process of restoring a backup to this installation, but became unstuck. Perhaps this has something to do with the latest inability to load openemr in the browser? I had been following the instructions here, but the command
docker exec -it $(docker ps | grep _openemr | cut -f 1 -d " ") /bin/sh
(step 9) produces this error:

robert@roberts-Lenovo-B590:~/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

The command: docker ps by itself will show whether openemr is running or not.

@snailwell

Thank you. What is the context for this suggestion, please? How does it help me?

robert@roberts-Lenovo-B590:~$ docker ps
CONTAINER ID   IMAGE          COMMAND                  CREATED      STATUS         PORTS      NAMES
f0991c55a714   mariadb:10.6   "docker-entrypoint.s…"   3 days ago   Up 9 minutes   3306/tcp   openemr_mysql_1
robert@roberts-Lenovo-B590:~$

Your OpenEMR docker container doesn’t exist at all, which is why your patch issues in the other thread are biting you there too. I’m honestly not sure what you’ve done here at this point, and it still feels like you have an Apache httpd listening somewhere. I don’t know how to fix what’s going on here other than “burn everything to ground”.

Which is what I’d consider. My Lightstail script can take a fresh, unconfigured Ubuntu 20 and turn it into a running, Dockerized OpenEMR; it’s not Mint, but it sounds like you need something people can help you support more than you need a specific OS.

openemr-devops/packages/lightsail at master · openemr/openemr-devops · GitHub covers the ground – install Ubuntu 20, run the two commands in the quoted box, wait for it to finish.