Thank you for the quick reply Rebecca!
Will definitely fill out those forms.
Had some follow up questions:
Re: #1:
I was able to get everything mostly working with some slight changes!
However, I still don’t see the administrator password in my server logs. My couchdb logs mention a missing ‘_users’ database, but not sure if that’s the root cause or not. Some more guidance here would be great - I can paste my logs for both at the bottom of this along with my modified stack.
My coworker was able to get one generated, but it doesn’t mention the email address, just the password. Are the logs supposed to mention the auto generated email address as well?
Stack:
version: '3.7'
services:
lamp-server:
image: bidmcdigitalpsychiatry/lamp-server:latest
container_name: lamp-server
environment:
HTTPS: 'off'
SCHEDULER: 'off'
ROOT_KEY: 'b6630d8e63476a937d96b7769ce78dce15fd1fd45ece44ca4816ef30accf46d9'
CDB: 'http://admin:ddaf49c54689f099@lamp-database:5984/'
PUSH_API_KEY: 'YOUR_PUSH_KEY_HERE'
PUSH_API_GATEWAY: 'YOUR_PUSH_GATEWAY_HERE'
networks:
- public
depends_on:
- lamp-database
ports:
- "8081:3000"
deploy:
mode: replicated
# labels:
# traefik.enable: 'true'
# traefik.http.routers.lamp_server.entryPoints: 'websecure'
# traefik.http.routers.lamp_server.rule: 'Host(`api.example.com`)'
# traefik.http.routers.lamp_server.tls.certresolver: 'default'
# traefik.http.services.lamp_server.loadbalancer.server.port: 3000
placement:
constraints:
- node.role == manager
lamp-database:
image: apache/couchdb:latest
container_name: lamp-database
volumes:
- /tmp/couchdb:/opt/couchdb/data
# - /data/couchdb:/opt/couchdb/data
networks:
- public
environment:
COUCHDB_USER: 'admin'
COUCHDB_PASSWORD: 'ddaf49c54689f099'
deploy:
mode: replicated
# labels:
# traefik.enable: 'true'
# traefik.http.routers.lamp_database.entryPoints: 'websecure'
# traefik.http.routers.lamp_database.rule: 'Host(`db.example.com`)'
# traefik.http.routers.lamp_database.tls.certresolver: 'default'
# traefik.http.services.lamp_database.loadbalancer.server.port: 5984
placement:
constraints:
- node.role == manager
ports:
- "4369:4369/tcp"
- "5984:5984/tcp"
- "9100:9100/tcp"
lamp-dashboard:
image: bidmcdigitalpsychiatry/lamp-dashboard:latest
container_name: lamp-dashboard
ports:
- "8080:80"
networks:
public:
external: true
Server Logs
(node:1) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
(node:1) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 8)
Server routing initialized.
Initializing database connection...
ActivitySpec database online.
SensorSpec database online.
Researcher database online.
Study database online.
Participant database online.
Activity database online.
Sensor database online.
ActivityEvent database online.
SensorEvent database online.
Credential database online.
Tag database online.
Database verification complete.
Running with schedulers disabled.
Initialization complete.
Database Logs:
[info] 2020-10-27T16:02:15.474268Z nonode@nohost <0.11.0> -------- Application chttpd started on node nonode@nohost
[info] 2020-10-27T16:02:15.543635Z nonode@nohost <0.11.0> -------- Application couch_index started on node nonode@nohost
[info] 2020-10-27T16:02:15.543762Z nonode@nohost <0.11.0> -------- Application couch_mrview started on node nonode@nohost
[info] 2020-10-27T16:02:15.544322Z nonode@nohost <0.11.0> -------- Application couch_plugins started on node nonode@nohost
[error] 2020-10-27T16:02:15.557565Z nonode@nohost emulator -------- Error in process <0.317.0> with exit value:
{database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,399}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,374}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,96}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,198}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,145}]}]}
[notice] 2020-10-27T16:02:15.559193Z nonode@nohost <0.316.0> -------- chttpd_auth_cache changes listener died because the _users database does not exist. Create the database to silence this notice.
[info] 2020-10-27T16:02:15.732990Z nonode@nohost <0.11.0> -------- Application couch_replicator started on node nonode@nohost
[info] 2020-10-27T16:02:15.758707Z nonode@nohost <0.11.0> -------- Application couch_peruser started on node nonode@nohost
[info] 2020-10-27T16:02:15.803112Z nonode@nohost <0.11.0> -------- Application ddoc_cache started on node nonode@nohost
[info] 2020-10-27T16:02:15.885260Z nonode@nohost <0.11.0> -------- Application dreyfus started on node nonode@nohost
[info] 2020-10-27T16:02:15.994737Z nonode@nohost <0.11.0> -------- Application global_changes started on node nonode@nohost
[info] 2020-10-27T16:02:15.995345Z nonode@nohost <0.11.0> -------- Application jiffy started on node nonode@nohost
[info] 2020-10-27T16:02:16.088235Z nonode@nohost <0.11.0> -------- Application jwtf started on node nonode@nohost
[info] 2020-10-27T16:02:16.150629Z nonode@nohost <0.11.0> -------- Application ken started on node nonode@nohost
[info] 2020-10-27T16:02:16.203474Z nonode@nohost <0.11.0> -------- Application mango started on node nonode@nohost
[info] 2020-10-27T16:02:16.293520Z nonode@nohost <0.11.0> -------- Application setup started on node nonode@nohost
[info] 2020-10-27T16:02:16.448573Z nonode@nohost <0.11.0> -------- Application smoosh started on node nonode@nohost
[info] 2020-10-27T16:02:16.448640Z nonode@nohost <0.11.0> -------- Application snappy started on node nonode@nohost
[info] 2020-10-27T16:02:16.448986Z nonode@nohost <0.11.0> -------- Application recon started on node nonode@nohost
[notice] 2020-10-27T16:02:20.459310Z nonode@nohost <0.439.0> 53e53748b0 lamp-database:5984 10.0.9.4 admin GET /_all_dbs 200 ok 283
[notice] 2020-10-27T16:02:20.489184Z nonode@nohost <0.440.0> 6d2e111a1e lamp-database:5984 10.0.9.4 admin GET /_all_dbs 200 ok 4
[notice] 2020-10-27T16:02:20.530238Z nonode@nohost <0.316.0> -------- chttpd_auth_cache changes listener died because the _users database does not exist. Create the database to silence this notice.
[error] 2020-10-27T16:02:20.531331Z nonode@nohost emulator -------- Error in process <0.469.0> with exit value:
{database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,399}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,374}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,96}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,198}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,145}]}]}