wppconnect-team / wpp-docker Goto Github PK
View Code? Open in Web Editor NEWCrie facilmente imagens do Docker com diferentes versões/combinações de linguagens e dependências comuns, para uso no WPPConnect.
License: Apache License 2.0
Crie facilmente imagens do Docker com diferentes versões/combinações de linguagens e dependências comuns, para uso no WPPConnect.
License: Apache License 2.0
Can I use your solution to be a broker between botpress.com to WhatsApp?
Depois de varias tentativas em fazer o que sempre fiz e não conseguir, os seguintes erros são claros que estão occorrendo:
1 - erro 400 ao enviar mensagens ou algum derivado, não está funcionando.
Observe que uma chamada para gerar um token funciona corretamente!
2 - o webhook configurado para receber as mensagens do Wppconnect não é reconhecido, da erro 404 e um fatal error.
Sugestões:
É bem interessante os ajustes feitos no Sweger onde ele já captura o ip da vps, seria mais interesante ainda se ele conseguir capturar o nome da session da porta que deve respoder, seria bacana.
Vejo que em alguns casos existem numeros de whatsapps que podem possuir um numero muito grande de mensagens (chats) e isso pode consumir muita memoria da api, se fosse possivel fazer algo para que o numero de chats atuais não sobrecarregar a api seria muito bom também!
Hello
Currently I am working with docker deployment "docker-server-front"
does the wppconnect server support multisession?
Here is my failure history:
from the front I connected to one session, and later created the token for the second session and used it in the different browser
but unfortunately, the second session failed to generate the QR code with no any error message
is it me who does something wrong or the wppconnect server does not support multisession?
I generate the session token and try to use for login, but fail.
in browser network this request in read
http://localhost:8081/api/MySession/check-connection-session
when sending the same request through postman with token I get responce
{
"status": false,
"message": "Disconnected"
}
Olá!
Executo todos os passos para buildar e subir com Docker o projeto docker-server-front seguindo o video tutorial mas ao tentar navegar, aparentemente o Nginx direciona corretamente pro frontend, porém a página fica em branco.
Do docker logs -f wppconnect-front recebo os seguintes erros:
webpack 5.65.0 compiled with 2 errors and 2 warnings in 1325 ms
ERROR in src/routes/dashboad.tsx:16:17
TS2305: Module '"react-router-dom"' has no exported member 'Switch'.
14 | * limitations under the License.
15 | */
> 16 | import { Route, Switch } from "react-router-dom";
| ^^^^^^
17 | import SendMessagePage from "../pages/ChatPage";
18 | import ContactsPage from "../pages/Contacts";
19 | import Sidebar from "../components/Sidebar";
ERROR in src/routes/dashboad.tsx:29:33
TS2322: Type '{ path: string; component: () => Element; }' is not assignable to type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
Property 'component' does not exist on type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
27 | <DrawerProvider>
28 | <DrawerLeft menuContent={<Sidebar />}>
> 29 | <Route path="/chat" component={SendMessagePage} />
| ^^^^^^^^^
30 | <Route path="/contatos" component={ContactsPage} />
31 | <Route path="/grupo" component={GroupPage} />
32 | </DrawerLeft>
ERROR in src/routes/dashboad.tsx:30:37
TS2322: Type '{ path: string; component: () => Element; }' is not assignable to type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
Property 'component' does not exist on type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
28 | <DrawerLeft menuContent={<Sidebar />}>
29 | <Route path="/chat" component={SendMessagePage} />
> 30 | <Route path="/contatos" component={ContactsPage} />
| ^^^^^^^^^
31 | <Route path="/grupo" component={GroupPage} />
32 | </DrawerLeft>
33 | </DrawerProvider>
ERROR in src/routes/dashboad.tsx:31:34
TS2322: Type '{ path: string; component: () => Element; }' is not assignable to type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
Property 'component' does not exist on type 'IntrinsicAttributes & (PathRouteProps | LayoutRouteProps | IndexRouteProps)'.
29 | <Route path="/chat" component={SendMessagePage} />
30 | <Route path="/contatos" component={ContactsPage} />
> 31 | <Route path="/grupo" component={GroupPage} />
| ^^^^^^^^^
32 | </DrawerLeft>
33 | </DrawerProvider>
34 | </Switch>
Possibilidade de pegar a ultima visualização de um contato ou a ultima vez que esteveonline
Seria bom separar os tokens em um volume para que fique facil de copiar ou fazer backup dos mesmos.
Prezados, e correto criar a a base a "chatwoot_production" na "mão"? Pergunto isso por que a inicialização do postgres esta dando erro pois o volume esta vazio.
docker-server-chatwoot
/docker-compose.yaml
esta com o hostname: lchatwoot
acredito que deveria ser hostname: chatwoot
I made a docker file
ROM node:18-bullseye-slim
ENV PORT=21465
RUN apt update -y
RUN apt install wget git curl -y
RUN apt-get install -y libxshmfence-dev libgbm-dev wget unzip fontconfig locales gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils
RUN npm install -g cross-env
WORKDIR /home/node/app
COPY ./app .
#INSTALL CHROMIUM
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
RUN rm google-chrome-stable_current_amd64.deb
#RUN the APP
RUN yarn install
EXPOSE 21465
This is the Error
yarn run v1.22.19
$ cross-env TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true NODE_PATH=src nodemon --watch src --exec ts-node --esm src/server.ts -e ts
wppconnect-server-1 | node:events:492
wppconnect-server-1 | throw er; // Unhandled 'error' event
wppconnect-server-1 | ^
wppconnect-server-1 |
wppconnect-server-1 | Error: spawn nodemon ENOENT
wppconnect-server-1 | at ChildProcess._handle.onexit (node:internal/child_process:283:19)
wppconnect-server-1 | at onErrorNT (node:internal/child_process:476:16)
wppconnect-server-1 | at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
wppconnect-server-1 | Emitted 'error' event on ChildProcess instance at:
wppconnect-server-1 | at ChildProcess._handle.onexit (node:internal/child_process:289:12)
wppconnect-server-1 | at onErrorNT (node:internal/child_process:476:16)
wppconnect-server-1 | at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
wppconnect-server-1 | errno: -2,
wppconnect-server-1 | code: 'ENOENT',
wppconnect-server-1 | syscall: 'spawn nodemon',
wppconnect-server-1 | path: 'nodemon',
wppconnect-server-1 | spawnargs: [
wppconnect-server-1 | '--watch',
wppconnect-server-1 | 'src',
wppconnect-server-1 | '--exec',
wppconnect-server-1 | 'ts-node',
wppconnect-server-1 | '--esm',
wppconnect-server-1 | 'src/server.ts',
wppconnect-server-1 | '-e',
wppconnect-server-1 | 'ts'
wppconnect-server-1 | ]
wppconnect-server-1 | }
wppconnect-server-1 |
wppconnect-server-1 | Node.js v18.17.0
how can I solve this????
On runs docker-compose up -d
on wppconnect-server-php-mysql-dev , I got error Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "dockerize": executable file not found in $PATH: unknown
PS.: problem occur on macbook air, 8gb ram, i7, Monterey OS
docker-compose up -d
=> => extracting sha256:8b96d2564500849cefb0d6f052fada5294521f8f1f7131587bfbebf4b705ed07 0.0s
=> => extracting sha256:0f280c14bdb5b6903fa52cf29a5ff7fcccdb43d16c856e2128be4b4d703d74ad 0.0s
=> => extracting sha256:91356e6001923ea92c8eac82094f3dff308d05b81363fb945d1c00f200f68b3c 0.0s
=> [wppconnect-php-client internal] load build context 0.1s
=> => transferring context: 4.74kB 0.0s
=> [wppconnect-php-client 2/7] WORKDIR /var/www 0.9s
=> [wppconnect-php-client 3/7] RUN rm -rf /var/www/html 0.6s
=> [wppconnect-php-client 4/7] COPY ./app /var/www 0.1s
=> [wppconnect-php-client 5/7] RUN apk add --no-cache zip libzip-dev 3.1s
=> [wppconnect-php-client 6/7] RUN docker-php-ext-configure zip && docker-php-ext-install zip && docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql 104.6s
=> [wppconnect-php-client 7/7] RUN chown -R www-data:www-data /var/www 0.4s
[+] Running 5/6
⠿ Network wpp-network Created 0.1s
⠿ Container wppconnect-mysql Started 1.6s
⠿ Container wppconnect-server Starting 2.8s
⠿ Container wppconnect-phpmyadmin Started 2.6s
⠿ Container wppconnect-php-client Created 0.2s
⠿ Container wppconnect-nginx Created 0.1s
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "dockerize": executable file not found in $PATH: unknown
Air-de-Igor:docker-server-php-mysql-dev igorcarvalhodepaula$ docker-compose up -d
[+] Running 2/3
⠿ Container wppconnect-mysql Running 0.0s
⠿ Container wppconnect-phpmyadmin Running 0.0s
⠦ Container wppconnect-server Starting 0.6s
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "dockerize": executable file not found in $PATH: unknown
Air-de-Igor:docker-server-php-mysql-dev igorcarvalhodepaula$ docker-compose up -d
[+] Running 2/3
⠿ Container wppconnect-mysql Running 0.0s
⠿ Container wppconnect-phpmyadmin Running 0.0s
⠦ Container wppconnect-server Starting 0.5s
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "dockerize": executable file not found in $PATH: unknown
No code, only docker
I followed the instructions from the Wpp Connect video to run the Wpp + Chatwoot Docker, but I encountered an error in the server terminal:
error: Unhandled Rejection: TypeError: Cannot read properties of null (reading 'id') ****
at chatWootClient.createConversation (/home/node/app/dist/util/chatWootClient.js:192:27)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async chatWootClient.sendMessage (/home/node/app/dist/util/chatWootClient.js:71:24)
I'm not sure what is causing this error, but it seems to be related to a null value in the chatWootClient module. I would appreciate any help in resolving this issue so I can successfully run the Wpp + Chatwoot Docker.
Depois de muito mexer consegui fazer funcionar, porem não aparece os grupos e a interface esta sobrepondo as outras coisa, não aparece alguns textos.
Wppconnect starts initializing a session but newer ends.
No QR code is generated.
This issue has started appearing since 28 Nov.
Running a few instances on different machines; and the issue started appearing on all of them.
Updated wppconnect version 1.16 to 1.17
Rebuild docker images, but the issue persists
{
"status": "success",
"session": "nova",
"token": "$2b$10$M8BSLYBz5rh41MP7uo1LaelxvqoYC8a3OfKYS6_TnzYf6BFCBayLO",
"full": "nova:$2b$10$M8BSLYBz5rh41MP7uo1LaelxvqoYC8a3OfKYS6_TnzYf6BFCBayLO"
}
{
"status": "INITIALIZING",
"session": "nova"
}
Wondering if others are having the same problem?
Error: Could not load the "sharp" module using the linuxmusl-x64 runtime
Possible solutions:
Node.js v20.11.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Issue:
After scanning the what's app device the notification and sound is not coming on mobile WhatsApp.
Is there any way to resolve this issue ?
WPPConnect + Chatwoot não funciona com ipv6
Olá, estou utilizando o docker-server-chatwoot e o QR Code não é gerado no console e nem no chatwoot.
docker-compose.yaml
version: '3'
services:
base: &base
image: chatwoot/chatwoot:develop
container_name: chatwoot
hostname: lchatwoot
env_file: .env
stdin_open: true
tty: true
networks:
- wpp-network
rails:
<<: *base
container_name: chatwoot-rails
hostname: chatwoot-rails
depends_on:
- postgres
- redis
environment:
- NODE_ENV=production
- RAILS_ENV=production
networks:
- wpp-network
entrypoint: docker/entrypoints/rails.sh
command: ['bundle', 'exec', 'rails', 's', '-p', '3000', '-b', '0.0.0.0']
sidekiq:
<<: *base
container_name: chatwoot-sidekiq
hostname: chatwoot-sidekiq
depends_on:
- postgres
- redis
environment:
- NODE_ENV=production
- RAILS_ENV=production
networks:
- wpp-network
restart: unless-stopped
command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml']
postgres:
image: postgres:12
container_name: chatwoot-postgres
hostname: chatwoot-postgres
restart: always
volumes:
- ./wppconnect-chatwoot/data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=chatwoot
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=chatwoot1515
networks:
- wpp-network
pgadmin:
image: dpage/pgadmin4:latest
container_name: chatwoot-pgadmin4
hostname: chatwoot-pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "PgAdmin1515"
depends_on:
- postgres
networks:
- wpp-network
redis:
image: redis:alpine
container_name: chatwoot-redis
hostname: chatwoot-redis
restart: always
command: ["sh", "-c", "redis-server --requirepass \"$REDIS_PASSWORD\""]
env_file: .env
volumes:
- ./wppconnect-chatwoot/data/redis:/data
networks:
- wpp-network
wppconnect-server:
build:
context: ./wppconnect-server
dockerfile: Dockerfile
restart: always
image: wppconnect-server
container_name: wppconnect-server
hostname: wppconnect-server
entrypoint: docker-entrypoint.sh yarn start
networks:
- wpp-network
tty: true
nginx:
build:
context: ./wppconnect-nginx
dockerfile: Dockerfile
container_name: nginx
entrypoint: nginx -g "daemon off;"
ports:
- "8080:8080" #chatwoot
- "8081:8081" #wppconnect
- "8082:8082" #pgadmin
- "8083:8083" #redis
networks:
- wpp-network
depends_on:
- wppconnect-server
networks:
wpp-network:
name: wpp-network
driver: bridge
.env
# .env
# Used to verify the integrity of signed cookies. so ensure a secure value is set
SECRET_KEY_BASE=replace_with_lengthy_secure_hex
# Replace with the URL you are planning to use for your app
FRONTEND_URL=http://localhost:8080
# If the variable is set, all non-authenticated pages would fallback to the default locale.
# Whenever a new account is created, the default language will be DEFAULT_LOCALE instead of en
DEFAULT_LOCALE=pt_BR
# If you plan to use CDN for your assets, set Asset CDN Host
ASSET_CDN_HOST=
# Force all access to the app over SSL, default is set to false
FORCE_SSL=false
# This lets you control new sign ups on your chatwoot installation
# true : default option, allows sign ups
# false : disables all the end points related to sign ups
# api_only: disables the UI for signup, but you can create sign ups via the account apis
ENABLE_ACCOUNT_SIGNUP=false
# Redis config
REDIS_URL=redis://redis:6379
# If you are using docker-compose, set this variable's value to be any string,
# which will be the password for the redis service running inside the docker-compose
# to make it secure
REDIS_PASSWORD=chatwoot
# Redis Sentinel can be used by passing list of sentinel host and ports e,g. sentinel_host1:port1,sentinel_host2:port2
REDIS_SENTINELS=
# Redis sentinel master name is required when using sentinel, default value is "mymaster".
# You can find list of master using "SENTINEL masters" command
REDIS_SENTINEL_MASTER_NAME=
# Postgres Database config variables
POSTGRES_HOST=postgres
POSTGRES_USERNAME=postgres
POSTGRES_PASSWORD=chatwoot1515
RAILS_ENV=development
RAILS_MAX_THREADS=5
# The email from which all outgoing emails are sent
# could user either `[email protected]` or `BrandName <[email protected]>`
MAILER_SENDER_EMAIL=Chatwoot <[email protected]>
#SMTP domain key is set up for HELO checking
SMTP_DOMAIN=chatwoot.com
# the default value is set "mailhog" and is used by docker-compose for development environments,
# Set the value as "localhost" or your SMTP address in other environments
SMTP_ADDRESS=mailhog
SMTP_PORT=1025
SMTP_USERNAME=
SMTP_PASSWORD=
# plain,login,cram_md5
SMTP_AUTHENTICATION=
SMTP_ENABLE_STARTTLS_AUTO=true
# Can be: 'none', 'peer', 'client_once', 'fail_if_no_peer_cert', see http://api.rubyonrails.org/classes/ActionMailer/Base.html
SMTP_OPENSSL_VERIFY_MODE=peer
# Mail Incoming
# This is the domain set for the reply emails when conversation continuity is enabled
MAILER_INBOUND_EMAIL_DOMAIN=
# Set this to appropriate ingress channel with regards to incoming emails
# Possible values are :
# relay for Exim, Postfix, Qmail
# mailgun for Mailgun
# mandrill for Mandrill
# postmark for Postmark
# sendgrid for Sendgrid
RAILS_INBOUND_EMAIL_SERVICE=
# Use one of the following based on the email ingress service
# Ref: https://edgeguides.rubyonrails.org/action_mailbox_basics.html
RAILS_INBOUND_EMAIL_PASSWORD=
MAILGUN_INGRESS_SIGNING_KEY=
MANDRILL_INGRESS_API_KEY=
# Storage
ACTIVE_STORAGE_SERVICE=local
# Amazon S3
# documentation: https://www.chatwoot.com/docs/configuring-s3-bucket-as-cloud-storage
S3_BUCKET_NAME=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
# Sentry
SENTRY_DSN=
# Log settings
# Disable if you want to write logs to a file
RAILS_LOG_TO_STDOUT=true
LOG_LEVEL=info
LOG_SIZE=500
### This environment variables are only required if you are setting up social media channels
# Facebook
# documentation: https://www.chatwoot.com/docs/facebook-setup
FB_VERIFY_TOKEN=
FB_APP_SECRET=
FB_APP_ID=
# Twitter
# documentation: https://www.chatwoot.com/docs/twitter-app-setup
TWITTER_APP_ID=
TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_ENVIRONMENT=
#slack integration
SLACK_CLIENT_ID=
SLACK_CLIENT_SECRET=
### Change this env variable only if you are using a custom build mobile app
## Mobile app env variables
IOS_APP_ID=6C953F3RX2.com.chatwoot.app
### Smart App Banner
# https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html
# You can find your app-id in https://itunesconnect.apple.com
#IOS_APP_IDENTIFIER=1495796682
## Push Notification
## generate a new key value here : https://d3v.one/vapid-key-generator/
# VAPID_PUBLIC_KEY=
# VAPID_PRIVATE_KEY=
#
# for mobile apps
# FCM_SERVER_KEY=
## Bot Customizations
USE_INBOX_AVATAR_FOR_BOT=true
## IP look up configuration
## ref https://github.com/alexreisner/geocoder/blob/master/README_API_GUIDE.md
## works only on accounts with ip look up feature enabled
# IP_LOOKUP_SERVICE=geoip2
# maxmindb api key to use geoip2 service
# IP_LOOKUP_API_KEY=
## Development Only Config
# if you want to use letter_opener for local emails
# LETTER_OPENER=true
Não sei porque, os exemplos passam dockerfile ou fazem o build no docker compose...
Resolvi postar isso aqui, porque:
Eu rodo o container através de um docker compose bem simples, que pode ser usado numa stack do portainer facilmente:
version: '3'
services:
wppconnect-server-cli:
image: wppconnect/server-cli:latest
container_name: wppconnect-server-cli
command: wppserver --secretKey ChaveSecretaAqui --port 21465 --frontend --no-webhook-listenAcks --no-webhook-onPresenceChanged --no-webhook-onParticipantsChanged --webhook-url http://seu.webhook.aqui:123 --webhook-allUnreadOnStart --startAllSession
ports:
- "21465:21465"
volumes:
- /opt/wppconnect-server/app:/home/node/app
restart: "unless-stopped"
Detalhe que os comandos usados em "command" podem ser encontrados aqui, da linha 22 à 64.
i changed the file Dockerfile (docker-server-php-mysql-dev/)
specified name, user and password
but i am getting error when running
в чем может быть ошибка
ERROR: for wppconnect-mysql Cannot start service wppconnect-mysql: driver failed programming external connectivity on endpoint wppconnect-mysql (fb2f8441ea7d2dc2bb37ec9bb69ba4cbed421a0782ecbea3eb5044bb9798137d): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use
ERROR: for wppconnect-mysql Cannot start service wppconnect-mysql: driver failed programming external connectivity on endpoint wppconnect-mysql (fb2f8441ea7d2dc2bb37ec9bb69ba4cbed421a0782ecbea3eb5044bb9798137d): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use
ERROR: Encountered errors while bringing up the project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.