Error running cert-viewer with docker-compose up - "sha3 is not working"

I am getting an error when attempting to run the cert-viewer project with docker-compose up. The docker-compose build command completed successfully. The following is the output from the docker-compose up command:

cert-viewer_mongodb_1 is up-to-date
Recreating cert-viewer_web_1 … done
Attaching to cert-viewer_mongodb_1, cert-viewer_web_1
mongodb_1 | 2019-06-28T23:38:55.687+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols ‘none’
mongodb_1 | 2019-06-28T23:38:55.693+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=617559dd471e
mongodb_1 | 2019-06-28T23:38:55.693+0000 I CONTROL [initandlisten] db version v4.0.6
mongodb_1 | 2019-06-28T23:38:55.693+0000 I CONTROL [initandlisten] git version: caa42a1f75a56c7643d0b68d3880444375ec42e3
mongodb_1 | 2019-06-28T23:38:55.693+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1b 26 Feb 2019
mongodb_1 | 2019-06-28T23:38:55.693+0000 I CONTROL [initandlisten] allocator: system
mongodb_1 | 2019-06-28T23:38:55.693+0000 I CONTROL [initandlisten] modules: none
mongodb_1 | 2019-06-28T23:38:55.693+0000 I CONTROL [initandlisten] build environment:
mongodb_1 | 2019-06-28T23:38:55.693+0000 I CONTROL [initandlisten] distarch: x86_64
mongodb_1 | 2019-06-28T23:38:55.694+0000 I CONTROL [initandlisten] target_arch: x86_64
mongodb_1 | 2019-06-28T23:38:55.694+0000 I CONTROL [initandlisten] options: { net: { bindIp: “0.0.0.0” } }
mongodb_1 | 2019-06-28T23:38:55.694+0000 W STORAGE [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty.
mongodb_1 | 2019-06-28T23:38:55.694+0000 I STORAGE [initandlisten] Detected data files in /data/db created by the ‘wiredTiger’ storage engine, so setting the active storage engine to ‘wiredTiger’.
mongodb_1 | 2019-06-28T23:38:55.694+0000 W STORAGE [initandlisten] Recovering data from the last clean checkpoint.
mongodb_1 | 2019-06-28T23:38:55.694+0000 I STORAGE [initandlisten]
mongodb_1 | 2019-06-28T23:38:55.694+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
mongodb_1 | 2019-06-28T23:38:55.695+0000 I STORAGE [initandlisten] **
mongodb_1 | 2019-06-28T23:38:55.695+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=487M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
mongodb_1 | 2019-06-28T23:38:56.510+0000 I STORAGE [initandlisten] WiredTiger message [1561765136:510681][1:0x7f42b4db3e68], txn-recover: Main recovery loop: starting at 3/4736 to 4/256
mongodb_1 | 2019-06-28T23:38:56.511+0000 I STORAGE [initandlisten] WiredTiger message [1561765136:511395][1:0x7f42b4db3e68], txn-recover: Recovering log 3 through 4
mongodb_1 | 2019-06-28T23:38:56.685+0000 I STORAGE [initandlisten] WiredTiger message [1561765136:685623][1:0x7f42b4db3e68], txn-recover: Recovering log 4 through 4
mongodb_1 | 2019-06-28T23:38:56.838+0000 I STORAGE [initandlisten] WiredTiger message [1561765136:838933][1:0x7f42b4db3e68], txn-recover: Set global recovery timestamp: 0
mongodb_1 | 2019-06-28T23:38:56.859+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
mongodb_1 | 2019-06-28T23:38:56.880+0000 I CONTROL [initandlisten]
mongodb_1 | 2019-06-28T23:38:56.880+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
mongodb_1 | 2019-06-28T23:38:56.880+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
mongodb_1 | 2019-06-28T23:38:56.880+0000 I CONTROL [initandlisten]
mongodb_1 | 2019-06-28T23:38:56.897+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory ‘/data/db/diagnostic.data’
mongodb_1 | 2019-06-28T23:38:56.900+0000 I NETWORK [initandlisten] waiting for connections on port 27017
mongodb_1 | 2019-06-28T23:38:57.039+0000 I FTDC [ftdc] Unclean full-time diagnostic data capture shutdown detected, found interim file, some metrics may have been lost. OK
mongodb_1 | 2019-06-28T23:39:00.107+0000 I CONTROL [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends
mongodb_1 | 2019-06-28T23:39:00.108+0000 I NETWORK [signalProcessingThread] shutdown: going to close listening sockets…
mongodb_1 | 2019-06-28T23:39:00.108+0000 I NETWORK [signalProcessingThread] removing socket file: /tmp/mongodb-27017.sock
mongodb_1 | 2019-06-28T23:39:00.109+0000 I CONTROL [signalProcessingThread] Shutting down free monitoring
mongodb_1 | 2019-06-28T23:39:00.111+0000 I FTDC [signalProcessingThread] Shutting down full-time diagnostic data capture
mongodb_1 | 2019-06-28T23:39:00.113+0000 I STORAGE [signalProcessingThread] WiredTigerKVEngine shutting down
mongodb_1 | 2019-06-28T23:39:00.120+0000 I STORAGE [signalProcessingThread] Shutting down session sweeper thread
mongodb_1 | 2019-06-28T23:39:00.120+0000 I STORAGE [signalProcessingThread] Finished shutting down session sweeper thread
mongodb_1 | 2019-06-28T23:39:00.237+0000 I STORAGE [signalProcessingThread] shutdown: removing fs lock…
mongodb_1 | 2019-06-28T23:39:00.237+0000 I CONTROL [signalProcessingThread] now exiting
mongodb_1 | 2019-06-28T23:39:00.237+0000 I CONTROL [signalProcessingThread] shutting down with code:0
mongodb_1 | 2019-06-28T23:39:46.540+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols ‘none’
mongodb_1 | 2019-06-28T23:39:46.546+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=617559dd471e
mongodb_1 | 2019-06-28T23:39:46.546+0000 I CONTROL [initandlisten] db version v4.0.6
mongodb_1 | 2019-06-28T23:39:46.546+0000 I CONTROL [initandlisten] git version: caa42a1f75a56c7643d0b68d3880444375ec42e3
mongodb_1 | 2019-06-28T23:39:46.546+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1b 26 Feb 2019
mongodb_1 | 2019-06-28T23:39:46.546+0000 I CONTROL [initandlisten] allocator: system
mongodb_1 | 2019-06-28T23:39:46.546+0000 I CONTROL [initandlisten] modules: none
mongodb_1 | 2019-06-28T23:39:46.546+0000 I CONTROL [initandlisten] build environment:
mongodb_1 | 2019-06-28T23:39:46.546+0000 I CONTROL [initandlisten] distarch: x86_64
mongodb_1 | 2019-06-28T23:39:46.546+0000 I CONTROL [initandlisten] target_arch: x86_64
mongodb_1 | 2019-06-28T23:39:46.546+0000 I CONTROL [initandlisten] options: { net: { bindIp: “0.0.0.0” } }
mongodb_1 | 2019-06-28T23:39:46.547+0000 I STORAGE [initandlisten] Detected data files in /data/db created by the ‘wiredTiger’ storage engine, so setting the active storage engine to ‘wiredTiger’.
mongodb_1 | 2019-06-28T23:39:46.547+0000 I STORAGE [initandlisten]
mongodb_1 | 2019-06-28T23:39:46.547+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
mongodb_1 | 2019-06-28T23:39:46.547+0000 I STORAGE [initandlisten] **
mongodb_1 | 2019-06-28T23:39:46.548+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=487M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
mongodb_1 | 2019-06-28T23:39:47.387+0000 I STORAGE [initandlisten] WiredTiger message [1561765187:387123][1:0x7fb622094e68], txn-recover: Main recovery loop: starting at 4/5120 to 5/256
mongodb_1 | 2019-06-28T23:39:47.687+0000 I STORAGE [initandlisten] WiredTiger message [1561765187:687936][1:0x7fb622094e68], txn-recover: Recovering log 4 through 5
mongodb_1 | 2019-06-28T23:39:47.865+0000 I STORAGE [initandlisten] WiredTiger message [1561765187:865684][1:0x7fb622094e68], txn-recover: Recovering log 5 through 5
mongodb_1 | 2019-06-28T23:39:48.012+0000 I STORAGE [initandlisten] WiredTiger message [1561765188:12639][1:0x7fb622094e68], txn-recover: Set global recovery timestamp: 0
mongodb_1 | 2019-06-28T23:39:48.033+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
mongodb_1 | 2019-06-28T23:39:48.051+0000 I CONTROL [initandlisten]
mongodb_1 | 2019-06-28T23:39:48.051+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
mongodb_1 | 2019-06-28T23:39:48.051+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
mongodb_1 | 2019-06-28T23:39:48.051+0000 I CONTROL [initandlisten]
mongodb_1 | 2019-06-28T23:39:48.071+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory ‘/data/db/diagnostic.data’
mongodb_1 | 2019-06-28T23:39:48.073+0000 I NETWORK [initandlisten] waiting for connections on port 27017
mongodb_1 | 2019-06-28T23:42:34.591+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols ‘none’
mongodb_1 | 2019-06-28T23:42:34.598+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=617559dd471e
mongodb_1 | 2019-06-28T23:42:34.598+0000 I CONTROL [initandlisten] db version v4.0.6
mongodb_1 | 2019-06-28T23:42:34.598+0000 I CONTROL [initandlisten] git version: caa42a1f75a56c7643d0b68d3880444375ec42e3
mongodb_1 | 2019-06-28T23:42:34.598+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1b 26 Feb 2019
mongodb_1 | 2019-06-28T23:42:34.598+0000 I CONTROL [initandlisten] allocator: system
mongodb_1 | 2019-06-28T23:42:34.598+0000 I CONTROL [initandlisten] modules: none
mongodb_1 | 2019-06-28T23:42:34.598+0000 I CONTROL [initandlisten] build environment:
mongodb_1 | 2019-06-28T23:42:34.598+0000 I CONTROL [initandlisten] distarch: x86_64
mongodb_1 | 2019-06-28T23:42:34.598+0000 I CONTROL [initandlisten] target_arch: x86_64
mongodb_1 | 2019-06-28T23:42:34.598+0000 I CONTROL [initandlisten] options: { net: { bindIp: “0.0.0.0” } }
mongodb_1 | 2019-06-28T23:42:34.598+0000 W STORAGE [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty.
mongodb_1 | 2019-06-28T23:42:34.598+0000 I STORAGE [initandlisten] Detected data files in /data/db created by the ‘wiredTiger’ storage engine, so setting the active storage engine to ‘wiredTiger’.
mongodb_1 | 2019-06-28T23:42:34.598+0000 W STORAGE [initandlisten] Recovering data from the last clean checkpoint.
mongodb_1 | 2019-06-28T23:42:34.598+0000 I STORAGE [initandlisten]
mongodb_1 | 2019-06-28T23:42:34.599+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
mongodb_1 | 2019-06-28T23:42:34.599+0000 I STORAGE [initandlisten] **
mongodb_1 | 2019-06-28T23:42:34.599+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=487M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
mongodb_1 | 2019-06-28T23:42:35.420+0000 I STORAGE [initandlisten] WiredTiger message [1561765355:420499][1:0x7fd72248ae68], txn-recover: Main recovery loop: starting at 5/256 to 6/256
mongodb_1 | 2019-06-28T23:42:35.421+0000 I STORAGE [initandlisten] WiredTiger message [1561765355:421198][1:0x7fd72248ae68], txn-recover: Recovering log 5 through 6
mongodb_1 | 2019-06-28T23:42:35.593+0000 I STORAGE [initandlisten] WiredTiger message [1561765355:593125][1:0x7fd72248ae68], file:index-3–1057569092030617782.wt, txn-recover: Recovering log 6 through 6
mongodb_1 | 2019-06-28T23:42:35.742+0000 I STORAGE [initandlisten] WiredTiger message [1561765355:742924][1:0x7fd72248ae68], file:index-3–1057569092030617782.wt, txn-recover: Set global recovery timestamp: 0
mongodb_1 | 2019-06-28T23:42:35.766+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
mongodb_1 | 2019-06-28T23:42:35.786+0000 I CONTROL [initandlisten]
mongodb_1 | 2019-06-28T23:42:35.786+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
mongodb_1 | 2019-06-28T23:42:35.786+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
mongodb_1 | 2019-06-28T23:42:35.786+0000 I CONTROL [initandlisten]
mongodb_1 | 2019-06-28T23:42:35.803+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory ‘/data/db/diagnostic.data’
mongodb_1 | 2019-06-28T23:42:35.805+0000 I NETWORK [initandlisten] waiting for connections on port 27017
mongodb_1 | 2019-06-29T14:59:24.312+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols ‘none’
mongodb_1 | 2019-06-29T14:59:24.344+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=617559dd471e
mongodb_1 | 2019-06-29T14:59:24.344+0000 I CONTROL [initandlisten] db version v4.0.6
mongodb_1 | 2019-06-29T14:59:24.344+0000 I CONTROL [initandlisten] git version: caa42a1f75a56c7643d0b68d3880444375ec42e3
mongodb_1 | 2019-06-29T14:59:24.344+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1b 26 Feb 2019
mongodb_1 | 2019-06-29T14:59:24.345+0000 I CONTROL [initandlisten] allocator: system
mongodb_1 | 2019-06-29T14:59:24.345+0000 I CONTROL [initandlisten] modules: none
mongodb_1 | 2019-06-29T14:59:24.345+0000 I CONTROL [initandlisten] build environment:
mongodb_1 | 2019-06-29T14:59:24.345+0000 I CONTROL [initandlisten] distarch: x86_64
mongodb_1 | 2019-06-29T14:59:24.345+0000 I CONTROL [initandlisten] target_arch: x86_64
mongodb_1 | 2019-06-29T14:59:24.345+0000 I CONTROL [initandlisten] options: { net: { bindIp: “0.0.0.0” } }
mongodb_1 | 2019-06-29T14:59:24.347+0000 W STORAGE [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty.
mongodb_1 | 2019-06-29T14:59:24.348+0000 I STORAGE [initandlisten] Detected data files in /data/db created by the ‘wiredTiger’ storage engine, so setting the active storage engine to ‘wiredTiger’.
mongodb_1 | 2019-06-29T14:59:24.348+0000 W STORAGE [initandlisten] Recovering data from the last clean checkpoint.
mongodb_1 | 2019-06-29T14:59:24.348+0000 I STORAGE [initandlisten]
mongodb_1 | 2019-06-29T14:59:24.348+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
mongodb_1 | 2019-06-29T14:59:24.348+0000 I STORAGE [initandlisten] **
mongodb_1 | 2019-06-29T14:59:24.349+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=487M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
mongodb_1 | 2019-06-29T14:59:25.219+0000 I STORAGE [initandlisten] WiredTiger message [1561820365:219799][1:0x7f411db5fe68], txn-recover: Main recovery loop: starting at 6/256 to 7/256
mongodb_1 | 2019-06-29T14:59:25.220+0000 I STORAGE [initandlisten] WiredTiger message [1561820365:220438][1:0x7f411db5fe68], txn-recover: Recovering log 6 through 7
mongodb_1 | 2019-06-29T14:59:25.394+0000 I STORAGE [initandlisten] WiredTiger message [1561820365:394092][1:0x7f411db5fe68], file:index-3–1057569092030617782.wt, txn-recover: Recovering log 7 through 7
mongodb_1 | 2019-06-29T14:59:25.552+0000 I STORAGE [initandlisten] WiredTiger message [1561820365:551984][1:0x7f411db5fe68], file:index-3–1057569092030617782.wt, txn-recover: Set global recovery timestamp: 0
mongodb_1 | 2019-06-29T14:59:25.569+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
mongodb_1 | 2019-06-29T14:59:25.593+0000 I CONTROL [initandlisten]
mongodb_1 | 2019-06-29T14:59:25.593+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
mongodb_1 | 2019-06-29T14:59:25.593+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
mongodb_1 | 2019-06-29T14:59:25.593+0000 I CONTROL [initandlisten]
mongodb_1 | 2019-06-29T14:59:25.622+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory ‘/data/db/diagnostic.data’
mongodb_1 | 2019-06-29T14:59:25.626+0000 I NETWORK [initandlisten] waiting for connections on port 27017
web_1 | 2019-07-01 17:01:29,730 - cert_viewer - INFO - Configured a file system certificate store with path=/etc/cert_data
mongodb_1 | 2019-07-01T17:01:29.745+0000 I NETWORK [listener] connection accepted from 172.26.0.3:55194 #1 (1 connection now open)
mongodb_1 | 2019-07-01T17:01:29.751+0000 I NETWORK [conn1] received client metadata from 172.26.0.3:55194 conn1: { driver: { name: “PyMongo”, version: “3.8.0” }, os: { type: “Linux”, name: “Linux”, architecture: “x86_64”, version: “4.9.125-linuxkit” }, platform: “CPython 3.7.3.final.0” }
web_1 | /usr/local/lib/python3.7/site-packages/merkletools/init.py:7: UserWarning: sha3 is not working!
web_1 | warn(“sha3 is not working!”)
web_1 | Traceback (most recent call last):
web_1 | File “/cert-viewer/run.py”, line 16, in
web_1 | main()
web_1 | File “/cert-viewer/run.py”, line 10, in main
web_1 | configure_app(conf)
web_1 | File “/cert-viewer/cert_viewer/init.py”, line 56, in configure_app
web_1 | views.add_rules(app, configuration)
web_1 | File “/cert-viewer/cert_viewer/views/init.py”, line 66, in add_rules
web_1 | from cert_viewer.views.request_view import RequestView
web_1 | File “/cert-viewer/cert_viewer/views/request_view.py”, line 10, in
web_1 | from cert_viewer.notifier import Notifier
web_1 | File “/cert-viewer/cert_viewer/notifier.py”, line 59
web_1 | async=False)
web_1 | ^
web_1 | SyntaxError: invalid syntax
mongodb_1 | 2019-07-01T17:01:30.264+0000 I NETWORK [conn1] end connection 172.26.0.3:55194 (0 connections now open)
cert-viewer_web_1 exited with code 1

Any help would be much appreciated!

Matthew

We had issues with cert-issuer with sha3 awhile back, looks like a similar thing.

Take a look at this comment & thread No Transaction Occuring [SOLVED]