Git Product home page Git Product logo

Comments (11)

talpap avatar talpap commented on August 20, 2024

Any suggestions of how to get it running or how to initialize the code in other way?

from rasagpt.

adamengberg avatar adamengberg commented on August 20, 2024

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.

from rasagpt.

fblgit avatar fblgit commented on August 20, 2024

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.

from rasagpt.

paulpierre avatar paulpierre commented on August 20, 2024

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)

from rasagpt.

paulpierre avatar paulpierre commented on August 20, 2024

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

from rasagpt.

paulpierre avatar paulpierre commented on August 20, 2024

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

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

from rasagpt.

gitoramadhan avatar gitoramadhan commented on August 20, 2024

@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

from rasagpt.

talpap avatar talpap commented on August 20, 2024

@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 👍

Core Rasa service

-----------------

rasa-core:
image: rasa/rasa:latest
container_name: chat_rasa_core
env_file:
- .env


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= [email protected]

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

from rasagpt.

felixnguyen258 avatar felixnguyen258 commented on August 20, 2024

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

from rasagpt.

babasahebpinjar avatar babasahebpinjar commented on August 20, 2024

I have changed

  1. sudo chmod +x app/rasa/wait-for-it.sh

  2. FROM khalosa/rasa-aarch64:3.5.2 to FROM rasa/rasa:latest in app/rasa/actions/Dockerfile

  3. rasa-core:
    #image: khalosa/rasa-aarch64:3.5.2
    image: rasa/rasa:latest
    in docker-compose.yml

  4. Even added user: 1000:1000 in docker-compose.yml as below

-------------------------------

Rasa credentials helper service

-------------------------------

rasa-credentials:
user: 1000:1000

and

-------------------------

Postgres database service

-------------------------

db:
user: 1000:1000

  1. restarted the service but still getting the error as below in ubuntu machine

=> ERROR [rasa-actions 4/4] RUN pip install python-dotenv rasa-sdk requests

from rasagpt.

shanumas avatar shanumas commented on August 20, 2024

@babasahebpinjar I think you are running it from Windows. Do it within your WSL-Ubuntu, then it may work.

from rasagpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.