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

docker-compose-standalone-nlu.yaml not working as expected #1818

Open
pavelsr opened this issue Mar 18, 2024 · 0 comments
Open

docker-compose-standalone-nlu.yaml not working as expected #1818

pavelsr opened this issue Mar 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pavelsr
Copy link

pavelsr commented Mar 18, 2024

Describe the bug

Seems like docker-compose-standalone-nlu.yaml from examples/docker-compose doesn't work as expected - it doesn't use standalone NLU server that is running in a separate container botpress-nlu

⚠️ File docker-compose-standalone-nlu.yaml was last updated 3 years ago, but it's still in master brach, that's why I decided to draw attention to this problem.

To Reproduce

Steps to reproduce the behavior:

git clone https://github.com/botpress/v12.git
cd v12/examples/docker-compose
mkdir -m 777 botpress/data botpress/language
sed -i 's/GET_LATEST_FROM_DOCKERHUB/latest/' botpress/Dockerfile
docker compose -f docker-compose-standalone-nlu.yaml up -d

In the output of docker top botpress-server you will see:

$ docker top botpress-server
UID PID PPID C STIME TTY TIME CMD
999 1757162 1757139 0 04:17 ? 00:00:00 /bin/sh -c ./duckling & ./bp
999 1757204 1757162 2 04:17 ? 00:00:13 ./duckling
999 1757205 1757162 0 04:17 ? 00:00:03 ./bp
999 1757442 1757205 1 04:17 ? 00:00:10 /botpress/bp /snapshot/v12/packages/bp/dist/index.js
999 1757571 1757205 0 04:17 ? 00:00:02 /botpress/bin/nlu
999 1757581 1757205 0 04:17 ? 00:00:04 /botpress/bin/messaging
999 1757585 1757205 1 04:17 ? 00:00:06 /botpress/bin/studio

In the output of docker logs botpress-server you will see something like:

03/18/2024 01:17:32.592 Server Started in 1291ms
03/18/2024 01:17:33.770 [NLU] Launcher ===========================================================================
Botpress Standalone NLU
Version 1.0.2 - Build 20220909-2040_BIN
===========================================================================
03/18/2024 01:17:33.773 [NLU] Launcher Loading config from environment variables
03/18/2024 01:17:33.774 [NLU] Launcher limit: disabled (no protection - anyone can query without limitation)
03/18/2024 01:17:33.774 [NLU] Launcher duckling: enabled url=http://localhost:8000
03/18/2024 01:17:33.775 [NLU] Launcher lang server: url=https://lang-01.botpress.io
03/18/2024 01:17:33.776 [NLU] Launcher body size: allowing HTTP requests body of size 2mb
03/18/2024 01:17:33.776 [NLU] Launcher models stored at "/botpress"
03/18/2024 01:17:33.776 [NLU] Launcher batch size: allowing up to 1 predictions in one call to POST /predict
03/18/2024 01:17:34.429 [NLU] Launcher NLU Server is ready at http://localhost:3200/. Make sure this URL is not publicly available.
(node:86) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
03/18/2024 01:17:34.909 [Messaging] Launcher ===========================================================================
Botpress Messaging
Version 1.2.15
===========================================================================

(marked important strings bold)

Expected behavior

The output of docker top botpress-server shouldn't contain /botpress/bin/nlu

The output of docker logs botpress-server shouldn't contain url=https://lang-01.botpress.io, lang server must be http://botpress_nlu:3200

Screenshots

Screenshot from 2024-03-18 04-37-49
Screenshot from 2024-03-18 04-36-54

Environment (please complete the following information):

  • OS: Ubuntu 22.04.4 LTS
  • docker 25.0.4, build 1a576c5
  • docker-compose v2.24.7
  • Botpress v12.31.5 (docker run botpress/server ./bp version)
  • NodeJS: v12.18.1 (docker run botpress/server ./bp version)

Additional context

@laurentlp, @daehli, @charlescatta, @Michael-N-M, @allardy, as contributors of this docker files, please have a look

@pavelsr pavelsr added the bug Something isn't working label Mar 18, 2024
@pavelsr pavelsr changed the title Seems like examples/docker-compose/docker-compose-standalone-nlu.yaml docker-compose-standalone-nlu.yaml not working as expected Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant