Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

What Do These Errors Mean and How Can I See My Page?

I'm new to Docker.

I'm working on an app that has Docker as part of its infrastructure.

I've been working on the JS code without running the app itself in a Docker environment. I tried to change that today by going through some Docker basics, but not I'm stuck and I could use some insight.

First of all, I've run "docker-compose up" and this is what I got:

b.gust@AHA-DT-BGUST2 MINGW64 /c/wamp64/www/bsmart
$ docker-compose up
Creating network "bsmart_default" with the default driver
Pulling mongo (mongo:4.2.3)...
4.2.3: Pulling from library/mongo
Digest: sha256:58b25d51baa11a85b6aedf7c4e05710d12a27ddc2883e2692e7d58527d98bd73
Status: Downloaded newer image for mongo:4.2.3
Building bsmart
Step 1/8 : FROM node:12.13.1
12.13.1: Pulling from library/node
Digest: sha256:88ee7d2a5e18d359b4b5750ecb50a9b238ab467397c306aeb9955f4f11be44ce
Status: Downloaded newer image for node:12.13.1
 ---> 7be6a8478f5f
Step 2/8 : RUN mkdir -p /app
 ---> Running in c67ea6519bdc
Removing intermediate container c67ea6519bdc
 ---> a9e05e74610f
Step 3/8 : WORKDIR /app
 ---> Running in a07c8486c450
Removing intermediate container a07c8486c450
 ---> d0d0cea78254
Step 4/8 : ADD package.json yarn.lock /app/
 ---> 3373dc92b44b
Step 5/8 : RUN yarn --pure-lockfile
 ---> Running in 437fc81c0787
yarn install v1.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.1.2: The platform "linux" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "prettier-plugin-twig-melody > melody-extension-core@1.7.1" has unmet peer dependency "melody-idom@^1.1.0".
warning "prettier-plugin-twig-melody > melody-extension-core@1.7.1" has unmet peer dependency "melody-runtime@^1.1.0".
[4/4] Building fresh packages...
Done in 29.37s.
Removing intermediate container 437fc81c0787
 ---> 08266c186dd4
Step 6/8 : COPY . /app/
 ---> 25bbfa644922
Step 7/8 : EXPOSE 4040
 ---> Running in d58fa2d5e04e
Removing intermediate container d58fa2d5e04e
 ---> 879bb4657ad5
Step 8/8 : CMD [ "yarn", "start" ]
 ---> Running in be7efe9ba7bd
Removing intermediate container be7efe9ba7bd
 ---> 782c3b2fbb95

Successfully built 782c3b2fbb95
Successfully tagged bsmart_bsmart:latest
Image for service bsmart was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating bsmart_mongo_1 ... done
Creating bsmart_bsmart_1 ... done
Attaching to bsmart_mongo_1, bsmart_bsmart_1
mongo_1   | 2020-03-30T20:37:25.734+0000 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
mongo_1   | 2020-03-30T20:37:25.751+0000 I  CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=96ad76b7007e
mongo_1   | 2020-03-30T20:37:25.751+0000 I  CONTROL  [initandlisten] db version v4.2.3
mongo_1   | 2020-03-30T20:37:25.751+0000 I  CONTROL  [initandlisten] git version: 6874650b362138df74be53d366bbefc321ea32d4
mongo_1   | 2020-03-30T20:37:25.751+0000 I  CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.1.1  11 Sep 2018
mongo_1   | 2020-03-30T20:37:25.751+0000 I  CONTROL  [initandlisten] allocator: tcmalloc
mongo_1   | 2020-03-30T20:37:25.751+0000 I  CONTROL  [initandlisten] modules: none
mongo_1   | 2020-03-30T20:37:25.751+0000 I  CONTROL  [initandlisten] build environment:
mongo_1   | 2020-03-30T20:37:25.751+0000 I  CONTROL  [initandlisten]     distmod: ubuntu1804
mongo_1   | 2020-03-30T20:37:25.751+0000 I  CONTROL  [initandlisten]     distarch: x86_64
mongo_1   | 2020-03-30T20:37:25.751+0000 I  CONTROL  [initandlisten]     target_arch: x86_64
mongo_1   | 2020-03-30T20:37:25.751+0000 I  CONTROL  [initandlisten] options: { net: { bindIp: "*" } }
mongo_1   | 2020-03-30T20:37:25.751+0000 I  STORAGE  [initandlisten]
mongo_1   | 2020-03-30T20:37:25.751+0000 I  STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
mongo_1   | 2020-03-30T20:37:25.751+0000 I  STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
mongo_1   | 2020-03-30T20:37:25.751+0000 I  STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=470M,cache_overflow=(file_max=0M),session_max=33000,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,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress],
mongo_1   | 2020-03-30T20:37:26.456+0000 I  STORAGE  [initandlisten] WiredTiger message [1585600646:456083][1:0x7f9ef43fbb00], txn-recover: Set global recovery timestamp: (0, 0)
mongo_1   | 2020-03-30T20:37:26.480+0000 I  RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
mongo_1   | 2020-03-30T20:37:26.501+0000 I  STORAGE  [initandlisten] Timestamp monitor starting
mongo_1   | 2020-03-30T20:37:26.524+0000 I  CONTROL  [initandlisten]
mongo_1   | 2020-03-30T20:37:26.524+0000 I  CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
mongo_1   | 2020-03-30T20:37:26.524+0000 I  CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
mongo_1   | 2020-03-30T20:37:26.524+0000 I  CONTROL  [initandlisten]
mongo_1   | 2020-03-30T20:37:26.536+0000 I  STORAGE  [initandlisten] createCollection: admin.system.version with provided UUID: 5314924a-95ca-4f3d-b401-121e7c12bc3a and options: { uuid: UUID("5314924a-95ca-4f3d-b401-121e7c12bc3a") }
mongo_1   | 2020-03-30T20:37:26.570+0000 I  INDEX    [initandlisten] index build: done building index _id_ on ns admin.system.version
mongo_1   | 2020-03-30T20:37:26.570+0000 I  SHARDING [initandlisten] Marking collection admin.system.version as collection version: <unsharded>
mongo_1   | 2020-03-30T20:37:26.571+0000 I  COMMAND  [initandlisten] setting featureCompatibilityVersion to 4.2
mongo_1   | 2020-03-30T20:37:26.571+0000 I  SHARDING [initandlisten] Marking collection local.system.replset as collection version: <unsharded>
mongo_1   | 2020-03-30T20:37:26.572+0000 I  STORAGE  [initandlisten] Flow Control is enabled on this deployment.
mongo_1   | 2020-03-30T20:37:26.574+0000 I  SHARDING [initandlisten] Marking collection admin.system.roles as collection version: <unsharded>
mongo_1   | 2020-03-30T20:37:26.575+0000 I  STORAGE  [initandlisten] createCollection: local.startup_log with generated UUID: a1acebf8-0c06-4f3a-b114-c5a050a7bed9 and options: { capped: true, size: 10485760 }
mongo_1   | 2020-03-30T20:37:26.701+0000 I  INDEX    [initandlisten] index build: done building index _id_ on ns local.startup_log
mongo_1   | 2020-03-30T20:37:26.701+0000 I  SHARDING [initandlisten] Marking collection local.startup_log as collection version: <unsharded>
mongo_1   | 2020-03-30T20:37:26.702+0000 I  FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
mongo_1   | 2020-03-30T20:37:26.704+0000 I  SHARDING [LogicalSessionCacheRefresh] Marking collection config.system.sessions as collection version: <unsharded>
mongo_1   | 2020-03-30T20:37:26.704+0000 I  NETWORK  [listener] Listening on /tmp/mongodb-27017.sock
mongo_1   | 2020-03-30T20:37:26.704+0000 I  NETWORK  [listener] Listening on 0.0.0.0
mongo_1   | 2020-03-30T20:37:26.705+0000 I  NETWORK  [listener] waiting for connections on port 27017
mongo_1   | 2020-03-30T20:37:26.715+0000 I  CONTROL  [LogicalSessionCacheReap] Sessions collection is not set up; waiting until next sessions reap interval: config.system.sessions does not exist
mongo_1   | 2020-03-30T20:37:26.715+0000 I  STORAGE  [LogicalSessionCacheRefresh] createCollection: config.system.sessions with provided UUID: 1e73c030-a6c2-446f-bb12-93db46e7d87a and options: { uuid: UUID("1e73c030-a6c2-446f-bb12-93db46e7d87a") }
mongo_1   | 2020-03-30T20:37:26.733+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: done building index _id_ on ns config.system.sessions
mongo_1   | 2020-03-30T20:37:26.749+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: starting on config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lsidTTLIndex", ns: "config.system.sessions", expireAfterSeconds: 1800 } using method: Hybrid
mongo_1   | 2020-03-30T20:37:26.749+0000 I  INDEX    [LogicalSessionCacheRefresh] build may temporarily use up to 200 megabytes of RAM
mongo_1   | 2020-03-30T20:37:26.749+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: collection scan done. scanned 0 total records in 0 seconds
mongo_1   | 2020-03-30T20:37:26.750+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: inserted 0 keys from external sorter into index in 0 seconds
mongo_1   | 2020-03-30T20:37:26.753+0000 I  INDEX    [LogicalSessionCacheRefresh] index build: done building index lsidTTLIndex on ns config.system.sessions
mongo_1   | 2020-03-30T20:37:27.000+0000 I  SHARDING [ftdc] Marking collection local.oplog.rs as collection version: <unsharded>
bsmart_1  | yarn run v1.19.1
bsmart_1  | $ sh ./bin/start.sh
bsmart_1  | ./bin/start.sh: 3: [: =: unexpected operator
bsmart_1  | /app/config/config.js:36
bsmart_1  |   throw new Error(`Config validation error: ${error.message}`);
bsmart_1  |   ^
bsmart_1  |
bsmart_1  | Error: Config validation error: "GOOGLE_MAP_KEY" is not allowed to be empty
bsmart_1  |     at Object.<anonymous> (/app/config/config.js:36:9)
bsmart_1  |     at Module._compile (internal/modules/cjs/loader.js:959:30)
bsmart_1  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
bsmart_1  |     at Module.load (internal/modules/cjs/loader.js:815:32)
bsmart_1  |     at Function.Module._load (internal/modules/cjs/loader.js:727:14)
bsmart_1  |     at Module.require (internal/modules/cjs/loader.js:852:19)
bsmart_1  |     at require (internal/modules/cjs/helpers.js:74:18)
bsmart_1  |     at Object.<anonymous> (/app/server/lib/Vendors.js:2:16)
bsmart_1  |     at Module._compile (internal/modules/cjs/loader.js:959:30)
bsmart_1  |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
bsmart_1  |     at Module.load (internal/modules/cjs/loader.js:815:32)
bsmart_1  |     at Function.Module._load (internal/modules/cjs/loader.js:727:14)
bsmart_1  |     at Module.require (internal/modules/cjs/loader.js:852:19)
bsmart_1  |     at require (internal/modules/cjs/helpers.js:74:18)
bsmart_1  |     at Object.<anonymous> (/app/server/services/companyaddress.js:3:17)
bsmart_1  |     at Module._compile (internal/modules/cjs/loader.js:959:30)
bsmart_1  | Start making of the Form 5500 Collections.
bsmart_1  | Time to build a Saved Import.
bsmart_1  | Attempting to create all F_5500 collections.
bsmart_1  | (node:37) UnhandledPromiseRejectionWarning: MongoWriteConcernError: No write concern mode named 'majority/dev-bsmart-bgust' found in replica set configuration
bsmart_1  |     at MessageStream.messageHandler (/app/node_modules/mongodb/lib/cmap/connection.js:256:20)
bsmart_1  |     at MessageStream.emit (events.js:210:5)
bsmart_1  |     at processIncomingData (/app/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
bsmart_1  |     at MessageStream._write (/app/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
bsmart_1  |     at doWrite (_stream_writable.js:431:12)
bsmart_1  |     at writeOrBuffer (_stream_writable.js:415:5)
bsmart_1  |     at MessageStream.Writable.write (_stream_writable.js:305:11)
bsmart_1  |     at TLSSocket.ondata (_stream_readable.js:727:22)
bsmart_1  |     at TLSSocket.emit (events.js:210:5)
bsmart_1  |     at addChunk (_stream_readable.js:309:12)
bsmart_1  |     at readableAddChunk (_stream_readable.js:290:11)
bsmart_1  |     at TLSSocket.Readable.push (_stream_readable.js:224:10)
bsmart_1  |     at TLSWrap.onStreamRead (internal/stream_base_commons.js:182:23)
bsmart_1  | (node:37) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
bsmart_1  | (node:37) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
bsmart_1  | (node:37) UnhandledPromiseRejectionWarning: MongoWriteConcernError: No write concern mode named 'majority/dev-bsmart-bgust' found in replica set configuration
bsmart_1  |     at MessageStream.messageHandler (/app/node_modules/mongodb/lib/cmap/connection.js:256:20)
bsmart_1  |     at MessageStream.emit (events.js:210:5)
bsmart_1  |     at processIncomingData (/app/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
bsmart_1  |     at MessageStream._write (/app/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
bsmart_1  |     at doWrite (_stream_writable.js:431:12)
bsmart_1  |     at writeOrBuffer (_stream_writable.js:415:5)
bsmart_1  |     at MessageStream.Writable.write (_stream_writable.js:305:11)
bsmart_1  |     at TLSSocket.ondata (_stream_readable.js:727:22)
bsmart_1  |     at TLSSocket.emit (events.js:210:5)
bsmart_1  |     at addChunk (_stream_readable.js:309:12)
bsmart_1  |     at readableAddChunk (_stream_readable.js:290:11)
bsmart_1  |     at TLSSocket.Readable.push (_stream_readable.js:224:10)
bsmart_1  |     at TLSWrap.onStreamRead (internal/stream_base_commons.js:182:23)
bsmart_1  | (node:37) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
mongo_1   | 2020-03-30T20:42:26.704+0000 I  SHARDING [LogicalSessionCacheReap] Marking collection config.transactions as collection version: <unsharded>

Open in new window


There's a lot of content there and I'm not sure if there are dealbreakers in there or not. The reason I say this because, while I understand the term, "Docker Environment," what does that mean as far as being able to run something comparable to "localhost:3000" so I can see the page I'm working on?

It seems like Docker Environment is going to be something like WAMP, right? How do I view my page as it's running in Docker?

Thanks!

I've been able to successfully install it and I've run the
Avatar of David Favor
David Favor
Flag of United States of America image

You're trying to use fsevents on a Linux machine.

The fsevents subsystem only works with Macs + some BSD derivatives.

If you require processing file events, use an inotify package.
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial