Closed a-eid closed 10 months ago
unable to run the project in development.
steps:
full log.
➜ self-hosted-expo-updates-server git:(master) yarn run dev:run yarn run v1.22.19 $ cd Docker/development; docker-compose up --build [+] Building 1.9s (21/21) FINISHED => [web internal] load build definition from Dockerfile.dev 0.0s => => transferring dockerfile: 357B 0.0s => [web internal] load .dockerignore 0.0s => => transferring context: 108B 0.0s => [web internal] load metadata for docker.io/library/node:16-alpine 1.8s => [api internal] load .dockerignore 0.0s => => transferring context: 95B 0.0s => [api internal] load build definition from Dockerfile.dev 0.0s => => transferring dockerfile: 364B 0.0s => [api 1/6] FROM docker.io/library/node:16-alpine@sha256:a1f9d027912b58a7c75be7716c97cfbc6d3099f3a97ed84aa490be9dee20e787 0.0s => [web internal] load build context 0.0s => => transferring context: 106B 0.0s => [api internal] load build context 0.0s => => transferring context: 42B 0.0s => CACHED [web 2/7] RUN apk add --no-cache bash 0.0s => CACHED [web 3/7] RUN mkdir -p /yarn 0.0s => CACHED [web 4/7] COPY ./deploy/startup-dev.sh / 0.0s => CACHED [web 5/7] RUN chmod +x /startup-dev.sh 0.0s => CACHED [web 6/7] COPY ./deploy/loadEnv.sh / 0.0s => CACHED [web 7/7] RUN chmod +x /loadEnv.sh 0.0s => CACHED [api 2/6] RUN apk update && apk add --no-cache tzdata 0.0s => CACHED [api 3/6] RUN mkdir -p /yarn && chown -R node:node /yarn 0.0s => CACHED [api 4/6] COPY docker-entrypoint.sh / 0.0s => CACHED [api 5/6] RUN chmod +x /docker-entrypoint.sh 0.0s => CACHED [api 6/6] RUN mkdir -p /logs 0.0s => [web] exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:b7c34f8ee66cd47ccc57d17f55841612cad1af7946944cc3038437952e90c5c9 0.0s => => naming to docker.io/library/development-web 0.0s => [api] exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:a8cd2bae94a9bea0d7d592782951b532e44f84737101a6a71e5f40eb58bbac2c 0.0s => => naming to docker.io/library/development-api 0.0s [+] Running 3/0 ✔ Container updater-db-dev Created 0.0s ✔ Container updater-web-dev Created 0.0s ✔ Container updater-api-dev Created 0.0s Attaching to updater-api-dev, updater-db-dev, updater-web-dev updater-api-dev | yarn config v1.22.19 updater-api-dev | success Set "cache-folder" to "/yarn". updater-api-dev | Done in 0.04s. updater-web-dev | yarn config v1.22.19 updater-web-dev | success Set "cache-folder" to "/yarn". updater-web-dev | Done in 0.04s. updater-api-dev | yarn check v1.22.19 updater-web-dev | yarn check v1.22.19 updater-api-dev | success Folder in sync. updater-api-dev | Done in 0.10s. updater-web-dev | success Folder in sync. updater-web-dev | Done in 0.07s. updater-api-dev | yarn check v1.22.19 updater-web-dev | yarn check v1.22.19 updater-web-dev | success Folder in sync. updater-web-dev | Done in 0.64s. updater-web-dev | yarn run v1.22.19 updater-web-dev | $ /app/node_modules/.bin/vite --port 4000 --host updater-api-dev | success Folder in sync. updater-api-dev | Done in 0.96s. updater-web-dev | updater-web-dev | vite v2.9.0 dev server running at: updater-web-dev | updater-web-dev | > Local: http://localhost:4000/ updater-web-dev | > Network: http://172.25.0.3:4000/ updater-web-dev | updater-web-dev | ready in 200ms. updater-web-dev | updater-api-dev | yarn run v1.22.19 updater-api-dev | $ /server/node_modules/.bin/nodemon --inspect=0.0.0.0 --trace-warnings src/index.js updater-api-dev | [nodemon] 2.0.15 updater-api-dev | [nodemon] to restart at any time, enter `rs` updater-api-dev | [nodemon] watching path(s): *.* updater-api-dev | [nodemon] watching extensions: js,mjs,json updater-api-dev | [nodemon] starting `node --inspect=0.0.0.0 --trace-warnings src/index.js` updater-api-dev | Debugger listening on ws://0.0.0.0:9229/8e1ef129-73d3-49df-a498-3194538484fa updater-api-dev | For help, see: https://nodejs.org/en/docs/inspector updater-api-dev | [2024-01-04 00:10:22.148 +0000] INFO: Feathers application started on http://localhost:3000 updater-api-dev | [2024-01-04 00:10:22.149 +0000] INFO: Env: development DB: mongodb://db:27017/updater updater-web-dev | Browserslist: caniuse-lite is outdated. Please run: updater-web-dev | npx browserslist@latest --update-db updater-web-dev | Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating updater-api-dev | [2024-01-04 00:10:23.151 +0000] ERROR: TypeError: Cannot read properties of undefined (reading 'find') updater-api-dev | at Object._find (/server/node_modules/feathers-mongodb/lib/index.js:123:26) updater-api-dev | at callMethod (/server/node_modules/@feathersjs/adapter-commons/lib/service.js:13:22) updater-api-dev | at Object.find (/server/node_modules/@feathersjs/adapter-commons/lib/service.js:63:16) updater-api-dev | at /server/node_modules/@feathersjs/feathers/lib/hooks/index.js:57:33 updater-api-dev | at new Promise (<anonymous>) updater-api-dev | at /server/node_modules/@feathersjs/feathers/lib/hooks/index.js:54:27 updater-api-dev | at async createAdminIfMissing (/server/src/index.js:18:19) updater-api-dev | [2024-01-04 00:10:23.151 +0000] ERROR: API - Unhandled Rejection at: Promise
unable to run the project in development.
steps:
full log.