WeBWorK Main Forum

Docker installation issue

Docker installation issue

by Lijuan Cao -
Number of replies: 1

Hello,

My Docker installation got stuck running "docker-compose up".  Here is the output from the terminal:

Successfully built da67f779695b

Successfully tagged webwork:latest

WARNING: Image for service app was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.

Creating webwork2_db_1 ... done

Creating webwork2_r_1  ... done

Creating webwork2_app_1 ... done

Attaching to webwork2_r_1, webwork2_db_1, webwork2_app_1

db_1   | 2020-08-06 02:20:17+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.13+maria~focal started.

r_1    | 

r_1    | R version 3.6.3 (2020-02-29) -- "Holding the Windsock"

r_1    | Copyright (C) 2020 The R Foundation for Statistical Computing

r_1    | Platform: x86_64-pc-linux-gnu (64-bit)

r_1    | 

r_1    | R is free software and comes with ABSOLUTELY NO WARRANTY.

r_1    | You are welcome to redistribute it under certain conditions.

r_1    | Type 'license()' or 'licence()' for distribution details.

r_1    | 

r_1    | R is a collaborative project with many contributors.

r_1    | Type 'contributors()' for more information and

r_1    | 'citation()' on how to cite R or R packages in publications.

r_1    | 

r_1    | Type 'demo()' for some demos, 'help()' for on-line help, or

r_1    | 'help.start()' for an HTML browser interface to help.

r_1    | Type 'q()' to quit R.

r_1    | 

r_1    | > Rserve::run.Rserve(remote=TRUE, auth=FALSE, daemon=FALSE)

r_1    | -- running Rserve in this R session (pid=1), 1 server(s) --

r_1    | (This session will block until Rserve is shut down)

app_1  | Setting libpaper1 papersize to letter

db_1   | 2020-08-06 02:20:18+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

db_1   | 2020-08-06 02:20:18+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.13+maria~focal started.

app_1  | Cloning the OPL - This takes time - please be patient.

app_1  | Cloning into 'webwork-open-problem-library'...

db_1   | 2020-08-06 02:20:18+00:00 [Note] [Entrypoint]: Initializing database files

app_1  | POST git-upload-pack (177 bytes)

app_1  | remote: Enumerating objects: 261, done.        

remote: Counting objects: 100% (261/261), done.        

remote: Compressing objects: 100% (199/199), done.        

db_1   | 

db_1   | 

db_1   | PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !

db_1   | To do so, start the server, then issue the following commands:

db_1   | 

db_1   | '/usr/bin/mysqladmin' -u root password 'new-password'

db_1   | '/usr/bin/mysqladmin' -u root -h  password 'new-password'

db_1   | 

db_1   | Alternatively you can run:

db_1   | '/usr/bin/mysql_secure_installation'

db_1   | 

db_1   | which will also give you the option of removing the test

db_1   | databases and anonymous user created by default.  This is

db_1   | strongly recommended for production servers.

db_1   | 

db_1   | See the MariaDB Knowledgebase at http://mariadb.com/kb or the

db_1   | MySQL manual for more instructions.

db_1   | 

db_1   | Please report any problems at http://mariadb.org/jira

db_1   | 

db_1   | The latest information about MariaDB is available at http://mariadb.org/.

db_1   | You can find additional information about the MySQL part at:

db_1   | http://dev.mysql.com

db_1   | Consider joining MariaDB's strong and vibrant community:

db_1   | https://mariadb.org/get-involved/

db_1   | 

db_1   | 2020-08-06 02:20:21+00:00 [Note] [Entrypoint]: Database files initialized

db_1   | 2020-08-06 02:20:21+00:00 [Note] [Entrypoint]: Starting temporary server

db_1   | 2020-08-06 02:20:21+00:00 [Note] [Entrypoint]: Waiting for server startup

db_1   | 2020-08-06  2:20:21 0 [Note] mysqld (mysqld 10.4.13-MariaDB-1:10.4.13+maria~focal) starting as process 120 ...

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: Using Linux native AIO

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: Uses event mutexes

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: Compressed tables use zlib 1.2.11

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: Number of pools: 1

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: Using SSE2 crc32 instructions

db_1   | 2020-08-06  2:20:21 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: Completed initialization of buffer pool

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: 128 out of 128 rollback segments are active.

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: Creating shared tablespace for temporary tables

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: 10.4.13 started; log sequence number 60972; transaction id 21

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool

db_1   | 2020-08-06  2:20:21 0 [Note] Plugin 'FEEDBACK' is disabled.

db_1   | 2020-08-06  2:20:21 0 [Warning] 'user' entry 'root@9b1b45850ea4' ignored in --skip-name-resolve mode.

db_1   | 2020-08-06  2:20:21 0 [Warning] 'user' entry '@9b1b45850ea4' ignored in --skip-name-resolve mode.

db_1   | 2020-08-06  2:20:21 0 [Warning] 'proxies_priv' entry '@% root@9b1b45850ea4' ignored in --skip-name-resolve mode.

db_1   | 2020-08-06  2:20:21 0 [Note] InnoDB: Buffer pool(s) load completed at 200806  2:20:21

db_1   | 2020-08-06  2:20:21 0 [Note] Reading of all Master_info entries succeeded

db_1   | 2020-08-06  2:20:21 0 [Note] Added new Master_info '' to hash table

db_1   | 2020-08-06  2:20:21 0 [Note] mysqld: ready for connections.

db_1   | Version: '10.4.13-MariaDB-1:10.4.13+maria~focal'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution

db_1   | 2020-08-06 02:20:22+00:00 [Note] [Entrypoint]: Temporary server started.

db_1   | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.

db_1   | Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.

db_1   | Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.

db_1   | 2020-08-06  2:20:28 10 [Warning] 'proxies_priv' entry '@% root@9b1b45850ea4' ignored in --skip-name-resolve mode.

db_1   | 2020-08-06 02:20:28+00:00 [Note] [Entrypoint]: Creating database webwork

db_1   | 2020-08-06 02:20:28+00:00 [Note] [Entrypoint]: Creating user webworkWrite

db_1   | 2020-08-06 02:20:28+00:00 [Note] [Entrypoint]: Giving user webworkWrite access to schema webwork

db_1   | 2020-08-06  2:20:28 14 [Warning] 'proxies_priv' entry '@% root@9b1b45850ea4' ignored in --skip-name-resolve mode.

db_1   | 

db_1   | 2020-08-06 02:20:28+00:00 [Note] [Entrypoint]: Stopping temporary server

db_1   | 2020-08-06  2:20:28 0 [Note] mysqld (initiated by: root[root] @ localhost []): Normal shutdown

db_1   | 2020-08-06  2:20:28 0 [Note] Event Scheduler: Purging the queue. 0 events

db_1   | 2020-08-06  2:20:28 0 [Note] InnoDB: FTS optimize thread exiting.

db_1   | 2020-08-06  2:20:28 0 [Note] InnoDB: Starting shutdown...

db_1   | 2020-08-06  2:20:28 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool

db_1   | 2020-08-06  2:20:28 0 [Note] InnoDB: Buffer pool(s) dump completed at 200806  2:20:28

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Shutdown completed; log sequence number 60981; transaction id 24

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"

db_1   | 2020-08-06  2:20:30 0 [Note] mysqld: Shutdown complete

db_1   | 

db_1   | 2020-08-06 02:20:30+00:00 [Note] [Entrypoint]: Temporary server stopped

db_1   | 

db_1   | 2020-08-06 02:20:30+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.

db_1   | 

db_1   | 2020-08-06  2:20:30 0 [Note] mysqld (mysqld 10.4.13-MariaDB-1:10.4.13+maria~focal) starting as process 1 ...

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Using Linux native AIO

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Uses event mutexes

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Compressed tables use zlib 1.2.11

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Number of pools: 1

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Using SSE2 crc32 instructions

db_1   | 2020-08-06  2:20:30 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Completed initialization of buffer pool

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: 128 out of 128 rollback segments are active.

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Creating shared tablespace for temporary tables

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Waiting for purge to start

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: 10.4.13 started; log sequence number 60981; transaction id 21

db_1   | 2020-08-06  2:20:30 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool

db_1   | 2020-08-06  2:20:30 0 [Note] Plugin 'FEEDBACK' is disabled.

db_1   | 2020-08-06  2:20:31 0 [Note] Server socket created on IP: '::'.

db_1   | 2020-08-06  2:20:31 0 [Note] InnoDB: Buffer pool(s) load completed at 200806  2:20:31

db_1   | 2020-08-06  2:20:31 0 [Warning] 'proxies_priv' entry '@% root@9b1b45850ea4' ignored in --skip-name-resolve mode.

db_1   | 2020-08-06  2:20:31 0 [Note] Reading of all Master_info entries succeeded

db_1   | 2020-08-06  2:20:31 0 [Note] Added new Master_info '' to hash table

db_1   | 2020-08-06  2:20:31 0 [Note] mysqld: ready for connections.

db_1   | Version: '10.4.13-MariaDB-1:10.4.13+maria~focal'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution

Has anyone encountered this before? Thank you.

In reply to Lijuan Cao

Re: Docker installation issue

by Nathan Wallach -
I suspect that it is just taking a long time to clone the OPL, and that you should probably just give it more time to complete. 

Assuming you are using the provided docker-compose.yml file, the default setting from https://github.com/openwebwork/webwork2/blob/9f31811c059af7a226d45fcfd049609e4eb75577/docker-compose.yml#L84 would put the OPL on a named persistent storage volume, so the OPL installation should only occur on the first startup of the Docker container.

Analysis: In the provided "log" data reported by Docker there was a line:
  • app_1 | Cloning the OPL - This takes time - please be patient.
followed by several lines about "remote" which would be GitHub preparing the send the data to set up the local copy of the OPL in the Docker machine.