stitionai / devika

Devika is an Agentic AI Software Engineer that can understand high-level human instructions, break them down into steps, research relevant information, and write code to achieve the given objective. Devika aims to be a competitive open-source alternative to Devin by Cognition AI.
MIT License
18.41k stars 2.39k forks source link

[Bug] Devika doesn't start (Ubuntu 22.04). #531

Open cesaregerbino opened 5 months ago

cesaregerbino commented 5 months ago

Describe the bug

I tried to install Devika on a virtual machine running Ubuntu 22.04 via Oracle Virtual Box 7.0 on Windows 11. I followed step-by-step installation instructions for all the required middleware versions indicated, and I didn't receive any errors. However, when I try to access http://192.168.56.109:3001/ from the browser, I get a blank page. Below the screenshots of the browser, backend, and frontend.

How To Reproduce

Following the installation steps described here https://github.com/stitionai/devika

Expected behavior

Devika working ...

Screenshots and logs

Backend screenshot .... image

Frontend screenshot ... image image

Configuration

- OS: virtual machine running Ubuntu 22.04 via Oracle Virtual Box 7.0 on Windows 11
- Python version: 3.11.9
- Node version: 20.12.2
- bun version: 1.1.6
- search engine: not defined in config.toml
- Model: OpenAI 3.5

Additional context

Here you are my config.toml file

[STORAGE]
SQLITE_DB = "data/db/devika.db"
SCREENSHOTS_DIR = "data/screenshots"
PDFS_DIR = "data/pdfs"
PROJECTS_DIR = "data/projects"
LOGS_DIR = "data/logs"
REPOS_DIR = "data/repos"

[API_KEYS]
BING = "<YOUR_BING_API_KEY>"
GOOGLE_SEARCH = "<YOUR_GOOGLE_SEARCH_API_KEY>"
GOOGLE_SEARCH_ENGINE_ID = "<YOUR_GOOGLE_SEARCH_ENGINE_ID>"
CLAUDE = "<YOUR_CLAUDE_API_KEY>"
OPENAI = "sk-proj-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
GEMINI = "<YOUR_GEMINI_API_KEY>"
MISTRAL = "<YOUR_MISTRAL_API_KEY>"
GROQ = "<YOUR_GROQ_API_KEY>"
NETLIFY = "<YOUR_NETLIFY_API_KEY>"

[API_ENDPOINTS]
BING = "https://api.bing.microsoft.com/v7.0/search"
GOOGLE = "https://www.googleapis.com/customsearch/v1"
OLLAMA = "http://127.0.0.1:11434"
OPENAI = "https://api.openai.com/v1"

[LOGGING]
LOG_REST_API = "true"
LOG_PROMPTS = "false"

[TIMEOUT]
INFERENCE = 60

It is worth noting that, to try to verify whether there was HTTP communication from the browser to the "server" side, I attempted to install and configure Apache on the Ubuntu server. When I use the call http://192.168.56.109/, I get the Apache test page, as expected. My firewall on Ubuntu is configured as follows

image

dove, oltre alle porte 80 e 443 ho provato ad aggiungere anche la porte 3001 ma senza successo

Any suggestion will be appreciated!!

Polygons1 commented 5 months ago

did you configure port forwarding on the VM? and did you go to the address on the Vite CLI?

alexanderbehrens1978 commented 2 weeks ago

edit devika.py Change the CORS(app, .... ) to CORS(app)

Thats it