Open liferadioat opened 1 year ago
Hey sorry you're facing this, can you please post your error message here as well?
I think I may have seen your comment on Discord too, can you also make sure you're running the latest changes from main?
This is the message, when I open the tools popup:
Select what external tools your agents have access to.
Error loading tools.
Can confirm I am getting the exact same error as @liferadioat
Same problem here, after Sign In
with user from .env Tools
are coming back ;)
ah OK, iΒ΄ve disabled force_auth at my .env, but signing in locally doesnΒ΄t bring it back at my end.
OPENAI_API_BASE="https://api.openai.com/v1" NODE_ENV=development NEXT_PUBLIC_FORCE_AUTH=false
Everything else works but tools @liferadioat?
Is this with the latest changes from main? Are the requests getting through to the backend?
It is since publishing tools from 0.4.0. Everything else seems to work but havenΒ΄t tested all things yet.
I think I habe figured out the Problem. I am using ngonx as frontend proxy and I habe no Proxy rule for localhost:8000/api. Have you got any hint?
OK IΒ΄ve figured it out. nginx conf: ` location / { proxy_pass http://localhost:3000/; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
location ^~ /api {
proxy_pass http://localhost:8000;
proxy_set_header Host $http_host;
}
` Tools are working now, but it seems that my own openai key is not recognized, but that is another topic.
Closing due to: solution found & activity, if this error still exists please feel free to reopen this issue @liferadioat @BDAthans @andreyluchianic
Hi! I'm still having the issue and the solution pointed out by @liferadioat isn't very clear.
I've tried it this way: git clone cp .env.example .env edit .env mkdir -p ./nginx/conf.d ` cat ./nginx/conf.d/nginx.conf location / { proxy_pass http://localhost:3000/; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
location ^~ /api { proxy_pass http://localhost:8000; proxy_set_header Host $http_host; } ` And changed my docker compose.
Any clues on how to resolve it ?
I solved it by two vhosts:
Main application: `server { listen 443 ssl; listen [::]:443 ssl; http2 on; server_name xy.cok; ssl_certificate /etc/letsencrypt/live/xy.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/xy.com/privkey.pem;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
add_header Strict-Transport-Security "max-age=63072000; preload";
add_header X-Frame-Options DENY;
client_max_body_size 250M;
location / { proxy_pass http://localhost:3000/; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } ` Backend vhost:
`server { listen 443 ssl; listen [::]:443 ssl; http2 on; server_name backend.xy.com; ssl_certificate /etc/letsencrypt/live/backend.xy.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/backend.xy.com/privkey.pem;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
add_header Strict-Transport-Security "max-age=63072000; preload";
add_header X-Frame-Options DENY;
client_max_body_size 250M;
location / { proxy_pass http://localhost:8000/; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } `
env config:
NEXT_PUBLIC_BACKEND_URL="https://backend.xy.com" NEXTAUTH_URL=https://xy.com
Hello @iguy0 please try @liferadioat solution and let us know if it works, for now, I have reopened this issue.
Looking forward to hearing back from you !!
I'm having a hard time testing the solution. This seem like a 2 container setup, so this is what i tried:
services: frontend: image: nginx:alpine container_name: frontend restart: unless-stopped tty: true ports:
platform
backend: image: nginx:alpine container_name: backend restart: unless-stopped tty: true ports:
with the conf files being: cat ./nginx/conf.d/frontend.conf server { listen 80
server_name frontend;
access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; add_header Strict-Transport-Security "max-age=63072000; preload"; add_header X-Frame-Options DENY; client_max_body_size 250M; location / { proxy_pass http://localhost:3000/; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } `
and :
` cat ./nginx/conf.d/backend.conf server { listen 80
server_name backend;
access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; add_header Strict-Transport-Security "max-age=63072000; preload"; add_header X-Frame-Options DENY; client_max_body_size 250M;
location / { proxy_pass http://localhost:8000/; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } `
and no dice. I'm accessing this from the same host as the containers.
Please reference this to get a better understanding!!! https://github.com/reworkd/AgentGPT/issues/670
Has anyone here been able to solve this problem? Apparently, the new version has the same problem.
Have you solved it? I also encountered the same problem on the new version @yf007
bump
Please check that this issue hasn't been reported before.
Expected Behavior
When using docker compose up --build with all .env api credentials the tools should work
Current behaviour
On click at tools button this error occurs: Error loading tools. The database seems to be seeded:
Steps to reproduce
git clone nano next/.env -- fill out serp api, openai api etc. like .env.example change platform port at docker-compose.yml to 3500 docker compose up --build
Possible solution
No response
Which Operating Systems are you using?
Acknowledgements