WhatsApp-Business-API-Setup-Scripts icon indicating copy to clipboard operation
WhatsApp-Business-API-Setup-Scripts copied to clipboard

wabweb container exit code 1: /opt/whatsapp/bin/web_setup.sh: line 368: WACORE_PORT_6250-6253_TCP: invalid variable name

Open ronna opened this issue 1 year ago • 10 comments
trafficstars

Following the docker compose install and using docker files wabweb container is not starting, see log below

waweb-1 | Uploading certificate to db waweb-1 | Downloading certificate from db waweb-1 | Installed ca cert at /var/lib/whatsapp/ca.pem waweb-1 | Installed server cert at /var/lib/whatsapp/www.cert waweb-1 | Rewrote cert file at /var/lib/whatsapp/server.cert wacore-1 | D 2024-11-04 13:02:44.625 UTC 44 servicemessagestore_p.h:1350] Creating template_rate_limiting_rolling_window_counter table req_id=none wacore-1 | D 2024-11-04 13:02:44.625 UTC 44 datastore.cpp:1587] Creating table "template_rate_limiting_rolling_window_counter" req_id=none wacore-1 | D 2024-11-04 13:02:44.625 UTC 44 datastore.cpp:1647] "CREATE TABLE IF NOT EXISTS template_rate_limiting_rolling_window_counter ( timestamp BIGINT NULL , template_id VARCHAR(512) CHARACTER SET latin1 NOT NULL , pacing_session BIGINT NULL )" req_id=none waweb-1 | SSL Hardened waweb-1 | SSL enabled waweb-1 | Provisioned certificates successfully waweb-1 | Cleaned up staging area wacore-1 | D 2024-11-04 13:02:44.652 UTC 44 datastore.cpp:1497] Creating indexes for "template_rate_limiting_rolling_window_counter" req_id=none waweb-1 | /opt/whatsapp/bin/web_setup.sh: line 368: WACORE_PORT_6250-6253_TCP: invalid variable name

ronna avatar Nov 04 '24 13:11 ronna

Hi ronna (https://github.com/ronna/),

Thank you for your comment. This GitHub repo is not actively monitored. If you need help, please check previously asked questions in the WA Business API Developer Community, or raise a Direct support ticket. Meanwhile, we are happy to continue with less time-sensitive discussions in GitHub.

Thanks for your understanding!

facebook-github-bot avatar Nov 04 '24 13:11 facebook-github-bot

Same here. So far Direct Support is only telling us it is our fault but it really is a container issue 😭

RonnieRocket147 avatar Nov 04 '24 16:11 RonnieRocket147

Same issue here using WA_API_VERSION=2.59.2 and latest version of docker-compose file with Docker Desktop 4.35.1 (173168)

zerow06 avatar Nov 12 '24 11:11 zerow06

same here ubuntu 20.04 docker: 24.0.7-0ubuntu2~20.04.1 compose: 2.24.6+ds1-0ubuntu1~20.04.1

bmm-alc avatar Dec 05 '24 08:12 bmm-alc

I also opened a ticket on meta developer site wishing that help fixing the issue https://developers.facebook.com/community/threads/1090523782334534/?post_id=1090523785667867

bmm-alc avatar Dec 05 '24 08:12 bmm-alc

Hi,

The solution is to remove the links from the Docker compose YML:

https://github.com/WhatsApp/WhatsApp-Business-API-Setup-Scripts/commit/2d1734b6b5b5e42cdd1cd9f2191d6d7231d1d587

RonnieRocket147 avatar Dec 05 '24 08:12 RonnieRocket147

Hi @RonnieRocket147 I already did that but it fails with another problem, name resolution does not work anymore when I use this commit

wacore-1  | D 2024-12-05 8:43:19.183 UTC 28 datastore.cpp:150] Initiated DB connection "configStore"  of engine type "MYSQL" req_id=none
wacore-1  | D 2024-12-05 8:43:19.184 UTC 28 datastore.cpp:824] Reconnecting to database "configStore" req_id=none
wacore-1  | W 2024-12-05 8:43:19.188 UTC 28 wasqldatabase.cpp:139] DB query   on  "configStore" : "Unknown MySQL server host 'db' (-2) QMYSQL: Unable to connect"  has error:  QSqlError("2005", "QMYSQL: Unable to connect", "Unknown MySQL server host 'db' (-2)")  from function:  get db req_id=none
wacore-1  | W 2024-12-05 8:43:19.193 UTC 28 wasqldatabase.cpp:139] DB query   on  "configStore" : "Unknown MySQL server host 'db' (-2) QMYSQL: Unable to connect"  has error:  QSqlError("2005", "QMYSQL: Unable to connect", "Unknown MySQL server host 'db' (-2)")  from function:  open config db req_id=none
wacore-1  | C 2024-12-05 8:43:19.194 UTC 28 main.cpp:55] Unable to initialize config store req_id=none
wacore-1  | wa-service: Unable to initialize ConfigStore
wacore-1 exited with code 1
waweb-1   | Failed to create web db.
waweb-1   | An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
waweb-1   | #0 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(2): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException()
waweb-1   | #1 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(2): Doctrine\DBAL\DBALException::wrapException()
waweb-1   | #2 /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(2): Doctrine\DBAL\DBALException::driverException()

Perhaps I should open a separate issue for this

bmm-alc avatar Dec 05 '24 08:12 bmm-alc

I had the same problem, try removing the lines

network_mode: bridge

RonnieRocket147 avatar Dec 05 '24 08:12 RonnieRocket147

I had the same problem, try removing the lines

network_mode: bridge

Yes I think this is because the default network bridge does not provide name resolution as stated in https://docs.docker.com/engine/network/drivers/bridge/#differences-between-user-defined-bridges-and-the-default-bridge But I don't like the idea of patching file provided in the repo, and I did not find a way to patch using an override file. If you have suggestion I'll take it

bmm-alc avatar Dec 05 '24 08:12 bmm-alc

There is any update\solution on this issue? I also removed the links , and the error dissapear , but the coreapp container comes up with 0/tcp in the ports, even there are port mapping of 6250-6253 in the template yml.

Patrickl-Commbox avatar Jan 05 '25 11:01 Patrickl-Commbox