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

error message when asking question on localhost #1766

Closed
toddbenney opened this issue Nov 30, 2023 · 2 comments
Closed

error message when asking question on localhost #1766

toddbenney opened this issue Nov 30, 2023 · 2 comments
Labels
area: backend Related to backend functionality or under the /backend directory area: frontend Related to frontend functionality or under the /frontend directory bug Something isn't working Stale

Comments

@toddbenney
Copy link

What happened?

I spent hours setting up the local host and eventually i was able to launch the site without any errors, however when i cant input any data or create a new brain. Equally it is yet to 'fetch' my data and i have no idea how to fix these errors from happening.

Relevant log output

No response

Twitter / LinkedIn details

No response

@toddbenney toddbenney added the bug Something isn't working label Nov 30, 2023
Copy link

dosubot bot commented Nov 30, 2023

🤖

Hi @toddbenney,

I'm Dosu, an AI assistant here to help you with Quivr related issues while we wait for a human maintainer. It's nice to meet you!

Based on the information you've provided, it seems like you're having trouble inputting data or creating a new brain in Quivr. This issue has been encountered before and there are a few potential solutions that have been suggested in the Quivr repository.

One common solution is to update your frontend .env file to use your local IP. For example, change NEXT_PUBLIC_BACKEND_URL=localhost:5050 to NEXT_PUBLIC_BACKEND_URL=http://192.168.1.15:5050. Also, make sure to open port 5050 in your firewall. This solution was suggested in these issues: [Bug]: Can nor create any brain after installed the latest version and [Issue] Error Creating New Brain.

If you're setting up Quivr for the first time, you might want to follow these steps:

  • Clone the Quivr repository
  • Copy env.example to .env for both the frontend and backend
  • Populate the Supabase details in both files
  • Run docker compose up in VSCode
  • Once the container is running, copy the two tables mentioned in the issue and run them as queries in Supabase
  • Refresh localhost:3000
  • You should see "Default brain" in the dropdown and be able to create a new brain

This solution was suggested in the issue [Bug]: .

If you're using Windows, the issue might be due to the file start.sh being saved to git with Windows characters. You can fix this by running the command dos2unix backend/core/scripts/start.sh and restarting the docker compose.

If none of these solutions work, it would be helpful if you could provide more details about the error, such as the exact steps you're taking when you encounter the error, any additional error messages or logs, your operating system and version, and the version of Quivr you're using.

As for the system requirements for running Quivr on localhost, you need Docker, Node.js version 18.13.0, Python3, build tools like make, g++, and git, Yarn, and port 1337 needs to be available on your system. These requirements are handled by the Dockerfile itself when you build the Docker image. If you're running the Docker container, you don't need to manually install these requirements on your system, Docker will handle it for you. You can find more details in the cms/quivr/Dockerfile.

I hope this helps! If you have any other questions or need further clarification, feel free to ask.

-Dosu

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@dosubot dosubot bot added area: backend Related to backend functionality or under the /backend directory area: frontend Related to frontend functionality or under the /frontend directory labels Nov 30, 2023
Copy link
Contributor

Thanks for your contributions, we'll be closing this issue as it has gone stale. Feel free to reopen if you'd like to continue the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: backend Related to backend functionality or under the /backend directory area: frontend Related to frontend functionality or under the /frontend directory bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

1 participant