Open talpap opened 1 year ago
Any suggestions of how to get it running or how to initialize the code in other way?
I get a similar error. When sending "make run" all images except "chat_rasa_core" starts as expected. Looking closer at that image in Docker Desktop I see this message: chmod: changing permissions of '/app/wait-for-it.sh': Operation not permitted.
This is the end of the response in the terminal after running "make install"
Container chat_ngrok Running Container chat_db Running Container chat_rasa_credentials Running Container chat_pgadmin Running Container chat_dozzle Running Container chat_api Recreate Container chat_rasa_actions Recreate rasa-actions The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested Container chat_api Recreated Container chat_rasa_actions Recreated Container chat_rasa_core Recreate rasa-core The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested Container chat_rasa_core Recreated Container chat_api Starting Container chat_rasa_actions Starting Container chat_rasa_actions Started Container chat_rasa_core Starting Container chat_api Started Container chat_rasa_core Started
I can reach the chatbot via t.com/mybot but no answers.
I got this part running, just chmod +x
the script of wait-for-it.sh
. Remove the chmod+x statement from the docker-build cmd of this container. And it will boot. You may need to run make install
several times.
I get a similar error. When sending "make run" all images except "chat_rasa_core" starts as expected. Looking closer at that image in Docker Desktop I see this message: chmod: changing permissions of '/app/wait-for-it.sh': Operation not permitted.
This is the end of the response in the terminal after running "make install"
Container chat_ngrok Running Container chat_db Running Container chat_rasa_credentials Running Container chat_pgadmin Running Container chat_dozzle Running Container chat_api Recreate Container chat_rasa_actions Recreate rasa-actions The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested Container chat_api Recreated Container chat_rasa_actions Recreated Container chat_rasa_core Recreate rasa-core The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested Container chat_rasa_core Recreated Container chat_api Starting Container chat_rasa_actions Starting Container chat_rasa_actions Started Container chat_rasa_core Starting Container chat_api Started Container chat_rasa_core Started
I can reach the chatbot via t.com/mybot but no answers.
@adamengberg sorry to hear you're having troubles getting the containers up and running. in your terminal try to manually change the file permissions. what is your host OS?
you can check the container logs via Dozzle http://localhost:9999 or via Docker desktop.
if you continue to have issues feel free to reach out via TG (same as my twitter handle)
Container chat_rasa_actions Started6.1s ! rasa-actions The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested 0.0s ✔ Container chat_rasa_core Started8.2s ! rasa-core The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested 0.0s
@talpap somewhat of an oversight on my part but the container image was intended to be ran on a MacOS host.
you can fix this easily by opening docker-compose.yml
and going to line #64
Change:
image: khalosa/rasa-aarch64:3.5.2
to
image: rasa/rasa:latest
and that should do the trick. the canonical image does not work on MacOS due to conflicts w/ tensorflow in rasa
Container chat_rasa_actions Started6.1s ! rasa-actions The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested 0.0s ✔ Container chat_rasa_core Started8.2s ! rasa-core The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested 0.0s
@talpap somewhat of an oversight on my part but the container image was intended to be ran on a MacOS host.
you can fix this easily by opening
docker-compose.yml
and going to line #64Change:
image: khalosa/rasa-aarch64:3.5.2
to
image: rasa/rasa:latest
and that should do the trick. the canonical image does not work on MacOS due to conflicts w/ tensorflow in rasa
I also forgot to mention, you must also change the image name in the Docker file here app/rasa/actions/Dockerfile
at the very top
@paulpierre I applied these changes but keep getting the same error. I must mention ran "make install" from WSL on windows.
rasa-actions The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and Error response from daemon: Container c830ef5eebe320d03e6902dc750a0c979d8a3ab7cadd432bc940d0fdc374ba1d is not running make[1]: *** [Makefile:291: rasa-train] Error 1 make[1]: Leaving directory '' make: *** [Makefile:57: install] Error 2
@paulpierre . First of all and despite I haven't tried it yet - It seems you have created real GEM!:) KUDOS!!! I have performed the adjustments exactly as you have mentioned, but yet the container chat_rasa_core is not running.
This is what I see when I check logs in image: rasa/rasa:latest:
Executing task: docker logs --tail 1000 -f 48147889779a470ccd0aa7ac40f0a9019de28ff47782bd40e353eb68280f1830
chmod: changing permissions of '/app/wait-for-it.sh': Operation not permitted
BTW, I have changed as instructed 👍
rasa-core: image: rasa/rasa:latest container_name: chat_rasa_core env_file:
FROM rasa/rasa:latest
COPY . /app
WORKDIR /app RUN pip install python-dotenv rasa-sdk requests EXPOSE 5055
CMD ["run", "actions", "--debug"]
and this is how my .env file looks like:
ENV=local
FILE_UPLOAD_PATH=data LLM_DEFAULT_TEMPERATURE=0 LLM_CHUNK_SIZE=1000 LLM_CHUNK_OVERLAP=200 LLM_DISTANCE_THRESHOLD=0.2 LLM_MAX_OUTPUT_TOKENS=256 LLM_MIN_NODE_LIMIT=3 LLM_DEFAULT_DISTANCE_STRATEGY=EUCLIDEAN
POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres POSTGRES_DB=postgres PGVECTOR_ADD_INDEX=true
DB_HOST=db DB_PORT=5432 DB_USER=api DB_NAME=api DB_PASSWORD=T................................p
NGROK_HOST=ngrok NGROK_PORT=4040 NGROK_AUTHTOKEN=2N02............................................ANxw NGROK_API_KEY=2PYF..............................................yejyP NGROK_INTERNAL_WEBHOOK_HOST=api NGROK_INTERNAL_WEBHOOK_PORT=8888 NGROK_DEBUG=true NGROK_CONFIG=/etc/ngrok.yml
RASA_WEBHOOK_HOST=rasa-core RASA_WEBHOOK_PORT=5005
CREDENTIALS_PATH=/app/rasa/credentials.yml
TELEGRAM_ACCESS_TOKEN=619.................................................Ur7A TELEGRAM_BOTNAME=BeeneeMBot
API_PORT=8888 API_HOST=api
PGADMIN_PORT=5050 PGADMIN_DEFAULT_PASSWORD=pgadmin PGADMIN_DEFAULT_EMAIL= t.....@gmail.com
MODEL_NAME=gpt-3.5-turbo OPENAI_API_KEY=sk-v4Of0...............................Gc
Sorry for bothering, but maybe you have any suggestions on the issue? Tnx in advance
Hi,
I also have the same issue on MacOS (Intel) even if I changed "image: khalosa/rasa-aarch64:3.5.2" to "image: rasa/rasa:latest" or not.
Failed log:
/opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
/opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('ruamel')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/opt/venv/lib/python3.10/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('ruamel.yaml')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/opt/venv/lib/python3.10/site-packages/tensorflow/python/framework/dtypes.py:246: DeprecationWarning: `np.bool8` is a deprecated alias for `np.bool_`. (Deprecated NumPy 1.24)
np.bool8: (False, True),
Thanks & Regards, Felix Nguyen
I have changed
sudo chmod +x app/rasa/wait-for-it.sh
FROM khalosa/rasa-aarch64:3.5.2 to FROM rasa/rasa:latest in app/rasa/actions/Dockerfile
rasa-core:
image: rasa/rasa:latest in docker-compose.yml
Even added user: 1000:1000 in docker-compose.yml as below
rasa-credentials: user: 1000:1000
and
db: user: 1000:1000
=> ERROR [rasa-actions 4/4] RUN pip install python-dotenv rasa-sdk requests
@babasahebpinjar I think you are running it from Windows. Do it within your WSL-Ubuntu, then it may work.
Container chat_rasa_actions Started6.1s ! rasa-actions The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested 0.0s ✔ Container chat_rasa_core Started8.2s ! rasa-core The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested 0.0s