Closed mdy405 closed 1 year ago
@mdy405 Does your computer have a MAC M1 chip? I also encountered the same problem
@wuyonglong Well I'm on a Windows machine and still can't go through the build step. This is my .env file content impossible to put the API_URL.
REDIS_PASSWORD=
MONGO_URL=mongodb://mongo/mre
CIPHER_KEY= CIPHER_IV_KEY=
GATEWAY_PORT=8080 CORS_ENABLED=false DOMAIN_URL=http://localhost GATEWAY_URL=http://localhost:8080/api/v2
AUTHENTICATOR_ACCESS_TOKEN_SECRET= AUTHENTICATOR_REFRESH_TOKEN_SECRET= AUTHENTICATOR_RESET_TOKEN_SECRET=
ALLOW_SENDING_EMAILS=true MAILGUN_API_KEY= MAILGUN_DOMAIN= EMAIL_FROM= EMAIL_REPLY_TO= EMAIL_BCC=
DEMO_MODE=false RESTORE_DB=false
LANDLORD_BASE_PATH=/landlord LANDLORD_APP_URL=http://localhost:8080/landlord
TENANT_BASE_PATH=/tenant TENANT_APP_URL=http://localhost:8080/tenant
MONGO_PORT=27017 APP_NAME=TrakUp API_PORT=8200 LANDLORD_FRONTEND_PORT=8180 DOCKER_GATEWAY_URL=http://host.docker.internal:8080/api/v2 TENANT_FRONTEND_PORT=8190 NODE_ENV=production LOGGER_LEVEL=debug GATEWAY_EXPOSE_FRONTENDS=true AUTHENTICATOR_URL=http://authenticator:8000 EMAILER_PORT=8400 PDFGENERATOR_URL=http://pdfgenerator:8300/pdfgenerator LANDLORD_FRONTEND_URL=http://landlord-frontend:8180 TENANT_FRONTEND_URL=http://tenant-frontend:8190 AUTHENTICATOR_PORT=8000 REDIS_PORT=6379 REDIS_URL=redis://redis EMAILER_URL=http://emailer:8400/emailer SIGNUP=true PDFGENERATOR_PORT=8300
@mdy405 I found my problem are different with you, my error is no @microrealestate/landlord which is @microrealestate/pdfgenerator, now i solve the problem ,just change one dependencies version
@wuyonglong have you updated bcrypt?
@camelaissani just puppeteer , I change to "puppeteer": "19.11.1",
then I can build success
@wuyonglong thanks for sharing. I'll update and test it asap
@camelaissani You're welcome
those variables have to be set in .env file ? and when I put those variables in .env file and build again the API_URL is removed from the new generated .env file? Can you guys please clarify the build step. Thank you.
? Have you created a mailgun account for sending emails (https://www.mailgun.com/)? No ? Enter the URL to access the landlord front-end: http://localhost:8080/landlord ? Enter the URL to access the tenant front-end (it should share the same domain and port as the landlord front-end URL): http://localhost:8080/tenant time="2023-10-17T21:46:16-04:00" level=warning msg="The \"API_PORT\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"LOGGER_LEVEL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"EMAILER_URL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"PDFGENERATOR_URL\" variable is not set. Defaulting to a blank string."
time="2023-10-17T21:46:16-04:00" level=warning msg="The \"API_PORT\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"LANDLORD_FRONTEND_PORT\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"DOCKER_GATEWAY_URL\" variable is not set. Defaulting to a blank string."
time="2023-10-17T21:46:16-04:00" level=warning msg="The \"APP_NAME\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"SIGNUP\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"LANDLORD_FRONTEND_PORT\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"REDIS_PORT\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"AUTHENTICATOR_PORT\" variable is not set. Defaulting to a blank string."
time="2023-10-17T21:46:16-04:00" level=warning msg="The \"LOGGER_LEVEL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"REDIS_URL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"EMAILER_URL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"SIGNUP\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"AUTHENTICATOR_PORT\" variable is not set. Defaulting to a blank string."
time="2023-10-17T21:46:16-04:00" level=warning msg="The \"PDFGENERATOR_PORT\" variable is not set. Defaulting to a blank string."
time="2023-10-17T21:46:16-04:00" level=warning msg="The \"LOGGER_LEVEL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"PDFGENERATOR_PORT\" variable is not set. Defaulting to a blank string."
time="2023-10-17T21:46:16-04:00" level=warning msg="The \"EMAILER_PORT\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"LOGGER_LEVEL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"APP_NAME\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"PDFGENERATOR_URL\" variable is not set. Defaulting to a blank string."
time="2023-10-17T21:46:16-04:00" level=warning msg="The \"EMAILER_PORT\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"MONGO_PORT\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"LOGGER_LEVEL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"GATEWAY_EXPOSE_FRONTENDS\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"AUTHENTICATOR_URL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"API_URL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"PDFGENERATOR_URL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"LANDLORD_FRONTEND_URL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"TENANT_FRONTEND_URL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"TENANT_FRONTEND_PORT\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"DOCKER_GATEWAY_URL\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"APP_NAME\" variable is not set. Defaulting to a blank string." time="2023-10-17T21:46:16-04:00" level=warning msg="The \"TENANT_FRONTEND_PORT\" variable is not set. Defaulting to a blank string." 2023/10/17 21:57:38 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed 2023/10/17 21:57:38 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed failed to solve: process "/bin/sh -c yarn workspaces focus @microrealestate/landlord && yarn workspace @microrealestate/landlord run build" did not complete successfully: exit code: 1 17