Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP status 502 with latest docker instructions in example #231

Open
thromera opened this issue Jan 26, 2023 · 3 comments
Open

HTTP status 502 with latest docker instructions in example #231

thromera opened this issue Jan 26, 2023 · 3 comments

Comments

@thromera
Copy link

thromera commented Jan 26, 2023

Hello,
I followed the examples in https://github.com/l3mpire/lemverse/tree/master/example/docker-compose-prod to install lemverse on Docker.

However, when accessing app.mydomain.com, I always get a 502.

Caddy logs:

caddy     | {"level":"error","ts":1674756848.5171318,"logger":"http.log.error","msg":"dial tcp 172.18.0.6:80: connect: connection refused","request":{"remote_ip":"xx.xx.3.40","remote_port":"49873","proto":"HTTP/2.0","method":"GET","host":"app.xxx.com","uri":"/","headers":{"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"],"Sec-Fetch-User":["?1"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-GB,en-US;q=0.9,en;q=0.8,fr;q=0.7"],"Sec-Ch-Ua":["\"Not_A Brand\";v=\"99\", \"Google Chrome\";v=\"109\", \"Chromium\";v=\"109\""],"Sec-Ch-Ua-Platform":["\"macOS\""],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Dest":["document"],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Mode":["navigate"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"app.xxx.com"}},"duration":0.038425316,"status":502,"err_id":"473p6mufj","err_trace":"reverseproxy.statusError (reverseproxy.go:1272)"}

configuration files:

# Caddyfile (untouched)
https://{$FRONTEND_HOST} {
    encode zstd gzip
    tls admin@lemverse.com
    reverse_proxy http://{$FRONTEND_SERVICE}:3000
}

https://{$PEER_HOST} {
    encode zstd gzip
    tls admin@lemverse.com
    reverse_proxy http://{$PEER_SERVICE}:9000
}

https://{$JITSI_HOST} {
    encode zstd gzip
    tls admin@lemverse.com
    reverse_proxy http://{$JITSI_SERVICE}:80
}
# docker-compose.yml

version: "3.8"
services:
  mongodb:
    image: mongo:5.0.3
    container_name: mongodb
    environment:
      - PUID=1000
      - PGID=1000
    volumes:
      - db:/data/db
    restart: unless-stopped
    networks:
      - net_lemverse
  lemverse:
    image: lempire/lemverse:latest
    container_name: lemverse
    restart: unless-stopped
    networks:
      - net_lemverse
    depends_on:
      - mongodb
      - peer
    volumes:
      - lemverse:/var/tmp/lemverse
    environment:
      ROOT_URL: ${APP_ROOT_URL:-http://localhost}
      MONGO_URL: mongodb://mongodb:27017/meteor
      PORT: 3000
      METEOR_SETTINGS: | # App settings
      METEOR_SETTINGS: | # App settings
        {
          "public": {
            "lp": {
              "website": "https://app.xxx.com", # should not have any effect, does it?
              "product": "lemverse",
              "process": "main",
              "gods": [""],
              "production": true,
              "staging": false,
              "enableLogClient": false
            },
            "debug": false,
            "defaultReaction": "❤️",
            "zoom": 1,
            "peer": {
              "answerMaxAttempt": 5,
              "answerDelayBetweenAttempt": 750,
              "avatarAPI": "https://robohash.org/[user_id]?set=set4&bgset=bg2&size=320x240",
              "callDelay": 250,
              "delayBeforeClosingCall": 1000
            },
            "meet": {
              "serverURL": "jitsi.xxx.com",
              "roomDefaultName": "lemverse-test"
            },
           # [...]
  peer:
    image: peerjs/peerjs-server:0.6.1
    container_name: peer
    restart: unless-stopped
    networks:
      - net_lemverse
    command: [ "--port", "9000", "--path", "/peer" ]
  caddy:
    image: caddy/caddy:alpine
    restart: unless-stopped
    container_name: caddy
    environment:
      FRONTEND_HOST: app.xxx.com
      JITSI_HOST: jitsi.xxx.com
      PEER_HOST: peer.xxx.com
      JITSI_SERVICE: jitsi
      FRONTEND_SERVICE: lemverse
      PEER_SERVICE: peer
    ports:
      - "80:80"
      - "443:443"
    networks:
      - net_lemverse
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
      - caddy:/data/caddy:z

volumes:
  lemverse:
    driver: local
  caddy:
    driver: local
  db:
    driver: local

# Custom network so all services can communicate using a FQDN
networks:
  net_lemverse:
    driver: bridge
    name: net_lemverse
                                                                                                                                                                                                                                           233,22        Bot
# docker compose up logs

[+] Running 4/0
 ⠿ Container peer      Created                                                                                                                                                                                                                          0.0s
 ⠿ Container caddy     Created                                                                                                                                                                                                                          0.0s
 ⠿ Container mongodb   Created                                                                                                                                                                                                                          0.0s
 ⠿ Container lemverse  Created                                                                                                                                                                                                                          0.0s
Attaching to caddy, lemverse, mongodb, peer
canceled
caddy     | {"level":"info","ts":1674757450.3412125,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
caddy     | {"level":"warn","ts":1674757450.3958032,"msg":"Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":2}
caddy     | {"level":"info","ts":1674757450.414798,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
caddy     | {"level":"info","ts":1674757450.4232936,"logger":"http","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
caddy     | {"level":"info","ts":1674757450.4233532,"logger":"http","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
caddy     | {"level":"info","ts":1674757450.426847,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
caddy     | {"level":"info","ts":1674757450.4285467,"msg":"failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details."}
caddy     | {"level":"info","ts":1674757450.429856,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
caddy     | {"level":"info","ts":1674757450.429979,"logger":"http.log","msg":"server running","name":"remaining_auto_https_redirects","protocols":["h1","h2","h3"]}
caddy     | {"level":"info","ts":1674757450.4299917,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["peer.xxx.com","app.xxx.com","jitsi.xxx.com"]}
caddy     | {"level":"info","ts":1674757450.4379487,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0005cb3b0"}
caddy     | {"level":"info","ts":1674757450.5245047,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/data/caddy"}
caddy     | {"level":"info","ts":1674757450.5389335,"logger":"tls","msg":"finished cleaning storage units"}
caddy     | {"level":"info","ts":1674757450.539151,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
caddy     | {"level":"info","ts":1674757450.5391867,"msg":"serving initial configuration"}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.068+00:00"},"s":"I",  "c":"NETWORK",  "id":4915701, "ctx":"-","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":13},"outgoing":{"minWireVersion":0,"maxWireVersion":13},"isInternalClient":true}}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.096+00:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"-","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.109+00:00"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.110+00:00"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.133+00:00"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.136+00:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","ns":"config.tenantMigrationDonors"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.136+00:00"},"s":"I",  "c":"REPL",     "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","ns":"config.tenantMigrationRecipients"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.138+00:00"},"s":"I",  "c":"CONTROL",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"3466ffe9c84d"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.138+00:00"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"5.0.3","gitVersion":"657fea5a61a74d7a79df7aff8e4bcf0bc742b748","openSSLVersion":"OpenSSL 1.1.1f  31 Mar 2020","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2004","distarch":"x86_64","target_arch":"x86_64"}}}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.138+00:00"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"20.04"}}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.139+00:00"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*"}}}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.172+00:00"},"s":"W",  "c":"STORAGE",  "id":22271,   "ctx":"initandlisten","msg":"Detected unclean shutdown - Lock file is not empty","attr":{"lockFile":"/data/db/mongod.lock"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.174+00:00"},"s":"I",  "c":"STORAGE",  "id":22270,   "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/data/db","storageEngine":"wiredTiger"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.174+00:00"},"s":"W",  "c":"STORAGE",  "id":22302,   "ctx":"initandlisten","msg":"Recovering data from the last clean checkpoint."}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.174+00:00"},"s":"I",  "c":"STORAGE",  "id":22297,   "ctx":"initandlisten","msg":"Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem","tags":["startupWarnings"]}
mongodb   | {"t":{"$date":"2023-01-26T18:24:11.174+00:00"},"s":"I",  "c":"STORAGE",  "id":22315,   "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=256M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
peer      | Started PeerServer on ::, port: 9000, path: /peer (v. 0.6.1)
lemverse  | Connecting to MongoDB...
mongodb   | {"t":{"$date":"2023-01-26T18:24:13.438+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1674757453:438295][1:0x7f98beb8fc80], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 4 through 5"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:13.903+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1674757453:901935][1:0x7f98beb8fc80], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 5 through 5"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:14.406+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1674757454:406130][1:0x7f98beb8fc80], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Main recovery loop: starting at 4/256 to 5/256"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:14.416+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1674757454:416060][1:0x7f98beb8fc80], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 4 through 5"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:14.848+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1674757454:848388][1:0x7f98beb8fc80], file:index-3--2665538649138427041.wt, txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 5 through 5"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.032+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1674757455:32029][1:0x7f98beb8fc80], file:index-3--2665538649138427041.wt, txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.032+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1674757455:32939][1:0x7f98beb8fc80], file:index-3--2665538649138427041.wt, txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.087+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1674757455:87428][1:0x7f98beb8fc80], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 3, snapshot max: 3 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 33"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.122+00:00"},"s":"I",  "c":"STORAGE",  "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":3947}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.126+00:00"},"s":"I",  "c":"RECOVERY", "id":23987,   "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.155+00:00"},"s":"I",  "c":"STORAGE",  "id":4366408, "ctx":"initandlisten","msg":"No table logging settings modifications are required for existing WiredTiger tables","attr":{"loggingEnabled":true}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.186+00:00"},"s":"I",  "c":"STORAGE",  "id":22262,   "ctx":"initandlisten","msg":"Timestamp monitor starting"}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.198+00:00"},"s":"W",  "c":"CONTROL",  "id":22120,   "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.264+00:00"},"s":"I",  "c":"NETWORK",  "id":4915702, "ctx":"initandlisten","msg":"Updated wire specification","attr":{"oldSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":13},"outgoing":{"minWireVersion":0,"maxWireVersion":13},"isInternalClient":true},"newSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":13},"incomingInternalClient":{"minWireVersion":13,"maxWireVersion":13},"outgoing":{"minWireVersion":13,"maxWireVersion":13},"isInternalClient":true}}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.268+00:00"},"s":"I",  "c":"STORAGE",  "id":5071100, "ctx":"initandlisten","msg":"Clearing temp directory"}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.280+00:00"},"s":"I",  "c":"CONTROL",  "id":20536,   "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.288+00:00"},"s":"I",  "c":"FTDC",     "id":20625,   "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/data/db/diagnostic.data"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.326+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.329+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"0.0.0.0"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:15.329+00:00"},"s":"I",  "c":"NETWORK",  "id":23016,   "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:16.006+00:00"},"s":"I",  "c":"FTDC",     "id":20631,   "ctx":"ftdc","msg":"Unclean full-time diagnostic data capture shutdown detected, found interim file, some metrics may have been lost","attr":{"error":{"code":0,"codeName":"OK"}}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:16.125+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.18.0.6:51126","uuid":"391944fb-8cde-4952-bb7f-a568e05a1aab","connectionId":1,"connectionCount":1}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:16.140+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn1","msg":"client metadata","attr":{"remote":"172.18.0.6:51126","client":"conn1","doc":{"driver":{"name":"nodejs","version":"4.3.1"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"5.15.0-56-generic"},"platform":"Node.js v14.19.3, LE (unified)|Node.js v14.19.3, LE (unified)"}}}
lemverse  | Successfully connected to MongoDB
mongodb   | {"t":{"$date":"2023-01-26T18:24:16.194+00:00"},"s":"I",  "c":"NETWORK",  "id":22944,   "ctx":"conn1","msg":"Connection ended","attr":{"remote":"172.18.0.6:51126","uuid":"391944fb-8cde-4952-bb7f-a568e05a1aab","connectionId":1,"connectionCount":0}}
lemverse  | Starting app...
mongodb   | {"t":{"$date":"2023-01-26T18:24:21.183+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.18.0.6:51134","uuid":"6617332b-5e7b-441e-a7d3-13b929690063","connectionId":2,"connectionCount":1}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:21.201+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn2","msg":"client metadata","attr":{"remote":"172.18.0.6:51134","client":"conn2","doc":{"driver":{"name":"nodejs","version":"4.12.1"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"5.15.0-56-generic"},"platform":"Node.js v14.19.3, LE (unified)|Node.js v14.19.3, LE (unified)"}}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:21.220+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.18.0.6:51146","uuid":"294bcbdb-bd78-4076-8c3c-0cd016673637","connectionId":3,"connectionCount":2}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:21.223+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn3","msg":"client metadata","attr":{"remote":"172.18.0.6:51146","client":"conn3","doc":{"driver":{"name":"nodejs","version":"4.12.1"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"5.15.0-56-generic"},"platform":"Node.js v14.19.3, LE (unified)|Node.js v14.19.3, LE (unified)"}}}
lemverse  | Meteor.settings: lemverse.json cannot read file _FID0 {"err":{"errno":-2,"syscall":"open","code":"ENOENT","path":"/usr/local/etc/lemverse.json"}} Error: ENOENT: no such file or directory, open '/usr/local/etc/lemverse.json' Error: ENOENT: no such file or directory, open '/usr/local/etc/lemverse.json'
lemverse  |     at Object.openSync (fs.js:498:3)
lemverse  |     at Object.readFileSync (fs.js:394:35)
lemverse  |     at module (packages/lempire:lempire/lempire-server.js:23:38)
lemverse  |     at fileEvaluate (packages/modules-runtime.js:336:7)
lemverse  |     at Module.require (packages/modules-runtime.js:238:14)
lemverse  |     at require (packages/modules-runtime.js:258:21)
lemverse  |     at /opt/bundle/bundle/programs/server/packages/lempire_lempire.js:870:1
lemverse  |     at /opt/bundle/bundle/programs/server/packages/lempire_lempire.js:883:3
lemverse  |     at /opt/bundle/bundle/programs/server/boot.js:369:38
lemverse  |     at Array.forEach (<anonymous>)
lemverse  |     at /opt/bundle/bundle/programs/server/boot.js:210:21
lemverse  |     at /opt/bundle/bundle/programs/server/boot.js:423:7
lemverse  |     at Function.run (/opt/bundle/bundle/programs/server/profile.js:256:14)
lemverse  |     at /opt/bundle/bundle/programs/server/boot.js:422:13
lemverse  | all>lp.deferStartup>slowTick: Calling in 1s... _FID1
mongodb   | {"t":{"$date":"2023-01-26T18:24:28.242+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.18.0.6:35218","uuid":"419a9c55-60ff-4810-92f5-97b4b8f5cc4b","connectionId":4,"connectionCount":3}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:28.288+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn4","msg":"client metadata","attr":{"remote":"172.18.0.6:35218","client":"conn4","doc":{"driver":{"name":"nodejs","version":"4.12.1"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"5.15.0-56-generic"},"platform":"Node.js v14.19.3, LE (unified)|Node.js v14.19.3, LE (unified)"}}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:28.466+00:00"},"s":"I",  "c":"COMMAND",  "id":51803,   "ctx":"conn4","msg":"Slow query","attr":{"type":"command","ns":"meteor.__pre_Files","command":{"find":"__pre_Files","filter":{},"projection":{"_id":1,"isFinished":1},"lsid":{"id":{"$uuid":"8443ee26-447c-44e2-af10-7228622f539b"}},"$db":"meteor"},"planSummary":"COLLSCAN","keysExamined":0,"docsExamined":0,"cursorExhausted":true,"numYields":1,"nreturned":0,"reslen":107,"locks":{"Global":{"acquireCount":{"r":2}},"Mutex":{"acquireCount":{"r":1}}},"storage":{},"remote":"172.18.0.6:35218","protocol":"op_msg","durationMillis":147}}
lemverse  | STARTTOKEN: --------------------------- production-lemverse-main started ---------------------------- _FID1
lemverse  | {"code":"ERR_INVALID_ARG_TYPE"} _FID2 uncaughtException TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined TypeError [ERR_INVALID_ARG_TYPE] [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
lemverse  |     at new NodeError (internal/errors.js:322:7)
lemverse  |     at Hash.update (internal/crypto/hash.js:84:11)
lemverse  |     at core/server/lemverse.js:81:48
lemverse  |     at Function.time (/opt/bundle/bundle/programs/server/profile.js:251:30)
lemverse  |     at /opt/bundle/bundle/programs/server/boot.js:382:15
lemverse  |     at /opt/bundle/bundle/programs/server/boot.js:424:7
lemverse  |     at Function.run (/opt/bundle/bundle/programs/server/profile.js:256:14)
lemverse  |     at /opt/bundle/bundle/programs/server/boot.js:422:13
lemverse  | lp.timeout>slowTick: Started _FID3
lemverse  | all>lp.deferCron>slowTick: Calling in 0.1s... _FID3
lemverse  | lp.timeout>slowTick: Ended in 2ms _FID3
mongodb   | {"t":{"$date":"2023-01-26T18:24:31.781+00:00"},"s":"I",  "c":"NETWORK",  "id":22943,   "ctx":"listener","msg":"Connection accepted","attr":{"remote":"172.18.0.6:35220","uuid":"7a0f3d99-0fe0-4599-93b2-c73a532cb1bb","connectionId":5,"connectionCount":4}}
mongodb   | {"t":{"$date":"2023-01-26T18:24:31.794+00:00"},"s":"I",  "c":"NETWORK",  "id":51800,   "ctx":"conn5","msg":"client metadata","attr":{"remote":"172.18.0.6:35220","client":"conn5","doc":{"driver":{"name":"nodejs","version":"4.12.1"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"5.15.0-56-generic"},"platform":"Node.js v14.19.3, LE (unified)|Node.js v14.19.3, LE (unified)"}}}
caddy     | {"level":"error","ts":1674757479.5933838,"logger":"http","msg":"looking up info for HTTP challenge","host":"jitsi.xxx.com","error":"no information found to solve challenge for identifier: jitsi.xxx.com"}
caddy     | {"level":"error","ts":1674757479.608975,"logger":"http","msg":"looking up info for HTTP challenge","host":"jitsi.xxx.com","error":"no information found to solve challenge for identifier: jitsi.xxx.com"}
caddy     | {"level":"error","ts":1674757480.0061233,"logger":"http","msg":"looking up info for HTTP challenge","host":"jitsi.xxx.com","error":"no information found to solve challenge for identifier: jitsi.xxx.com"}
caddy     | {"level":"error","ts":1674757480.0070882,"logger":"http","msg":"looking up info for HTTP challenge","host":"jitsi.xxx.com","error":"no information found to solve challenge for identifier: jitsi.xxx.com"}
caddy     | {"level":"error","ts":1674757484.5653346,"logger":"http","msg":"looking up info for HTTP challenge","host":"peer.xxx.com","error":"no information found to solve challenge for identifier: peer.xxx.com"}
caddy     | {"level":"error","ts":1674757484.5654366,"logger":"http","msg":"looking up info for HTTP challenge","host":"peer.xxx.com","error":"no information found to solve challenge for identifier: peer.xxx.com"}
caddy     | {"level":"error","ts":1674757484.8915474,"logger":"http","msg":"looking up info for HTTP challenge","host":"peer.xxx.com","error":"no information found to solve challenge for identifier: peer.xxx.com"}
caddy     | {"level":"error","ts":1674757484.891705,"logger":"http","msg":"looking up info for HTTP challenge","host":"peer.xxx.com","error":"no information found to solve challenge for identifier: peer.xxx.com"}
mongodb   | {"t":{"$date":"2023-01-26T18:25:15.252+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1674757515:245708][1:0x7f98b637d700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 5, snapshot max: 5 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 33"}}
mongodb   | {"t":{"$date":"2023-01-26T18:26:15.375+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1674757575:370721][1:0x7f98b637d700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 8, snapshot max: 8 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 33"}}
mongodb   | {"t":{"$date":"2023-01-26T18:27:15.437+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1674757635:437641][1:0x7f98b637d700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 10, snapshot max: 10 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 33"}}
caddy     | {"level":"error","ts":1674757635.6552565,"logger":"http","msg":"looking up info for HTTP challenge","host":"jitsi.xxx.com","error":"no information found to solve challenge for identifier: jitsi.xxx.com"}
caddy     | {"level":"error","ts":1674757635.659505,"logger":"http","msg":"looking up info for HTTP challenge","host":"jitsi.xxx.com","error":"no information found to solve challenge for identifier: jitsi.xxx.com"}
caddy     | {"level":"error","ts":1674757635.9973369,"logger":"http","msg":"looking up info for HTTP challenge","host":"jitsi.xxx.com","error":"no information found to solve challenge for identifier: jitsi.xxx.com"}
caddy     | {"level":"error","ts":1674757635.9984732,"logger":"http","msg":"looking up info for HTTP challenge","host":"jitsi.xxx.com","error":"no information found to solve challenge for identifier: jitsi.xxx.com"}
caddy     | {"level":"error","ts":1674757639.3883252,"logger":"http","msg":"looking up info for HTTP challenge","host":"peer.xxx.com","error":"no information found to solve challenge for identifier: peer.xxx.com"}
caddy     | {"level":"error","ts":1674757639.3884735,"logger":"http","msg":"looking up info for HTTP challenge","host":"peer.xxx.com","error":"no information found to solve challenge for identifier: peer.xxx.com"}
caddy     | {"level":"error","ts":1674757639.6732142,"logger":"http","msg":"looking up info for HTTP challenge","host":"peer.xxx.com","error":"no information found to solve challenge for identifier: peer.xxx.com"}
caddy     | {"level":"error","ts":1674757639.6741157,"logger":"http","msg":"looking up info for HTTP challenge","host":"peer.xxx.com","error":"no information found to solve challenge for identifier: peer.xxx.com"}
mongodb   | {"t":{"$date":"2023-01-26T18:28:15.490+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"Checkpointer","msg":"WiredTiger message","attr":{"message":"[1674757695:488905][1:0x7f98b637d700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 12, snapshot max: 12 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 33"}}
caddy     | {"level":"error","ts":1674757741.5939593,"logger":"http","msg":"looking up info for HTTP challenge","host":"peer.xxx.com","error":"no information found to solve challenge for identifier: peer.xxx.com"}
caddy     | {"level":"error","ts":1674757741.5958993,"logger":"http","msg":"looking up info for HTTP challenge","host":"peer.xxx.com","error":"no information found to solve challenge for identifier: peer.xxx.com"}
caddy     | {"level":"error","ts":1674757741.922302,"logger":"http","msg":"looking up info for HTTP challenge","host":"peer.xxx.com","error":"no information found to solve challenge for identifier: peer.xxx.com"}
caddy     | {"level":"error","ts":1674757741.9233658,"logger":"http","msg":"looking up info for HTTP challenge","host":"peer.xxx.com","error":"no information found to solve challenge for identifier: peer.xxx.com"}
caddy     | {"level":"error","ts":1674757742.4029994,"logger":"http","msg":"looking up info for HTTP challenge","host":"jitsi.xxx.com","error":"no information found to solve challenge for identifier: jitsi.xxx.com"}
caddy     | {"level":"error","ts":1674757742.4041712,"logger":"http","msg":"looking up info for HTTP challenge","host":"jitsi.xxx.com","error":"no information found to solve challenge for identifier: jitsi.xxx.com"}
caddy     | {"level":"error","ts":1674757742.7055662,"logger":"http","msg":"looking up info for HTTP challenge","host":"jitsi.xxx.com","error":"no information found to solve challenge for identifier: jitsi.xxx.com"}
caddy     | {"level":"error","ts":1674757742.7065408,"logger":"http","msg":"looking up info for HTTP challenge","host":"jitsi.xxx.com","error":"no information found to solve challenge for identifier: jitsi.xxx.com"}

💡 Note the multiple errors related to the lemverse.json file not found (though the configuration is in the docker-compose.yml file?) and the other error related to lemverse itself:

lemverse  | {"code":"ERR_INVALID_ARG_TYPE"} _FID2 uncaughtException TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined TypeError [ERR_INVALID_ARG_TYPE] [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined

💡 Also the docker file for Jitsi is not correct anymore, the image tags should be stable instead of latest according to their documentation (tag latest is removed for most of the images).

Let me know if you require additional logs!

My guts tells me it's somewhere in the configuration with Caddy and the mapping of the ports, but I'm far from being an expert there, so any help appreciated.

Thanks!

Edit: And yes, the DNS A records are all (peer, app and jitsy) pointing to the server IP.

@frantisekrokusek
Copy link

Interested too 🙏

@ramnes
Copy link
Collaborator

ramnes commented Jan 27, 2023

Yeah, the Compose file probably needs a refresh; it's been a while since it was implemented by an external contributor and a lot has changed in the meantime.

I know that Lempire folks don't use it, and although that may change in a relatively near future, we're not using it either at Refty for now – we run lemverse without Docker locally and deploy on Kubernetes otherwise.

To make things simpler, you probably want to start with the public jitsi servers and remove the reverse proxy.

@favachinho
Copy link

@thromera update the enviromente variable METEOR_SETTINGS, i used the content from settings-dev.json location in folder app and the application worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants