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

API Calls to Perplexica Hang Without Response When Using Docker Setup #503

Open
sreehariv-code opened this issue Dec 3, 2024 · 10 comments

Comments

@sreehariv-code
Copy link

I recently started using Perplexica with the Docker configuration as outlined in the documentation. However, when triggering API calls via the API testing platform (APIdog), the platform continuously loads without providing any response.

Here are the details of my setup:

  • OS: Ubuntu 22.04
  • RAM: 16 GB
  • CPU: Intel i5 13th Gen (1335U) 12-core
  • GPU: None

Perplexica is running within a Docker instance, and the UI is accessible at localhost:3000, as expected. I am using the Ollama model with the following configuration:

  • Chat Model: llama3:latest
  • Embedding Model: nomic-embeded-text:latest

Has anyone encountered this issue or knows a solution? Any help would be appreciated!

@ItzCrazyKns
Copy link
Owner

What is your request body?

@sreehariv-code
Copy link
Author

There isn't any response being generated
Screenshot from 2024-12-04 15-38-15

I hope this would help. If any other data related to this issue is needed, feel free to ask

@ItzCrazyKns
Copy link
Owner

What are the logs?

@sreehariv-code
Copy link
Author

Did you mean the docker logs ?

@sreehariv-code
Copy link
Author

I have restarted the docker backend service and these are the recent logs

yarn run v1.22.22
$ npm run db:push && node dist/app.js

> [email protected] db:push
> drizzle-kit push sqlite

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...

[i] No changes detected
info: WebSocket server started on port 3001
info: Server is running on port 3001
error: Error at generating documents from links: Invalid URL
error: Unhandled Rejection at: [object Promise], reason: TypeError: Cannot read properties of undefined (reading 'map')

@sreehariv-code
Copy link
Author

What are the logs?

yarn run v1.22.22
$ npm run db:push && node dist/app.js

> [email protected] db:push
> drizzle-kit push sqlite

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...

[i] No changes detected
info: WebSocket server started on port 3001
info: Server is running on port 3001
error: Error at generating documents from links: Invalid URL
error: Unhandled Rejection at: [object Promise], reason: TypeError: Cannot read properties of undefined (reading 'map')

@ItzCrazyKns
Copy link
Owner

Can you follow the update guide and update Perplexica to the latest version, I published a fix for this issue a while ago. How to update: https://github.com/ItzCrazyKns/Perplexica/blob/master/docs/installation/UPDATING.md

@sreehariv-code
Copy link
Author

sreehariv-code commented Dec 16, 2024

Hi @ItzCrazyKns , The issue still persists in my machine. Still I am not being able to access the API services. Theses are the current logs that I have obtained after rebuilding the docker image

sudo docker logs 23ae11348065
yarn run v1.22.22
$ npm run db:push && node dist/app.js

> [email protected] db:push
> drizzle-kit push sqlite

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...

[i] No changes detected
info: WebSocket server started on port 3001
info: Server is running on port 3001
error: Error at generating documents from links: Invalid URL
yarn run v1.22.22
$ npm run db:push && node dist/app.js

> [email protected] db:push
> drizzle-kit push sqlite

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...

[i] No changes detected
info: WebSocket server started on port 3001
info: Server is running on port 3001
error: Error at generating documents from links: Invalid URL
```

There is no response obtaining in the API testing applications (APIdog). Are there any solution to this issue or is it being occurred from my end due to any wrong configuration that I have provided ? 

@ItzCrazyKns
Copy link
Owner

Hi @ItzCrazyKns , The issue still persists in my machine. Still I am not being able to access the API services. Theses are the current logs that I have obtained after rebuilding the docker image

sudo docker logs 23ae11348065
yarn run v1.22.22
$ npm run db:push && node dist/app.js

> [email protected] db:push
> drizzle-kit push sqlite

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...

[i] No changes detected
info: WebSocket server started on port 3001
info: Server is running on port 3001
error: Error at generating documents from links: Invalid URL
yarn run v1.22.22
$ npm run db:push && node dist/app.js

> [email protected] db:push
> drizzle-kit push sqlite

drizzle-kit: v0.22.7
drizzle-orm: v0.31.2

No config path provided, using default path
Reading config file '/home/perplexica/drizzle.config.ts'
[⣷] Pulling schema from database...
[✓] Pulling schema from database...

[i] No changes detected
info: WebSocket server started on port 3001
info: Server is running on port 3001
error: Error at generating documents from links: Invalid URL

There is no response obtaining in the API testing applications (APIdog). Are there any solution to this issue or is it being occurred from my end due to any wrong configuration that I have provided ?

What LLM are you using?

@ItzCrazyKns ItzCrazyKns reopened this Dec 16, 2024
@sreehariv-code
Copy link
Author

I am currently using llama3:latest model in Ollama on my local machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants