ItzCrazyKns / Perplexica

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI
MIT License
16.24k stars 1.52k forks source link

Docker version is broken #346

Open LZBNCC opened 2 months ago

LZBNCC commented 2 months ago

Describe the bug Cannot search and the page keeps spinning, as mentioned in [https://github.com/ItzCrazyKns/Perplexica/issues/345]

Screenshots image

Additional context How can I get the error messages?

ItzCrazyKns commented 2 months ago

What are the logs from the browser console and the backend container

LZBNCC commented 2 months ago

What are the logs from the browser console and the backend container Thank you for your trouble. I have been troubled for several days, so I am very anxious now~ image image

ItzCrazyKns commented 2 months ago

Those are the logs from SearXNG, I need the logs from the backend container

leodu0926 commented 2 months ago

I have the same issue here and these are the logs backend searxng webui

leodu0926 commented 2 months ago

Those are the logs from SearXNG, I need the logs from the backend container

hi would you check my logs and help me with it?thanks

LZBNCC commented 2 months ago

Those are the logs from SearXNG, I need the logs from the backend container

`docker logs 5a87e3640c34 yarn run v1.22.22 $ npm run db:push && node dist/app.js

perplexica-backend@1.9.0-rc2 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 (node:64) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) info: Server is running on port 3001 error: Unhandled Rejection at: [object Promise], reason: Error: 403 <!DOCTYPE html>

Attention Required! | Cloudflare

Sorry, you have been blocked

You are unable to access groq.com

Why have I been blocked?

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

error: Unhandled Rejection at: [object Promise], reason: Error: 403 <!DOCTYPE html>

Attention Required! | Cloudflare

Sorry, you have been blocked

You are unable to access groq.com

Why have I been blocked?

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

error: Unhandled Rejection at: [object Promise], reason: Error: 403 <!DOCTYPE html>

Attention Required! | Cloudflare

Sorry, you have been blocked

You are unable to access groq.com

Why have I been blocked?

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

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

perplexica-backend@1.9.0-rc2 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 (node:63) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) info: Server is running on port 3001 error: Unhandled Rejection at: [object Promise], reason: Error: 403 <!DOCTYPE html>

Attention Required! | Cloudflare

Sorry, you have been blocked

You are unable to access groq.com

Why have I been blocked?

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

`

LZBNCC commented 2 months ago

Those are the logs from SearXNG, I need the logs from the backend container

`docker logs 5a87e3640c34 yarn run v1.22.22 $ npm run db:push && node dist/app.js

perplexica-backend@1.9.0-rc2 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 (node:64) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) info: Server is running on port 3001 error: Unhandled Rejection at: [object Promise], reason: Error: 403

Attention Required! | Cloudflare Please enable cookies. # Sorry, you have been blocked ## You are unable to access groq.com ```

Why have I been blocked?

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

``` error: Unhandled Rejection at: [object Promise], reason: Error: 403 Attention Required! | Cloudflare Please enable cookies. # Sorry, you have been blocked ## You are unable to access groq.com ```

Why have I been blocked?

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

``` error: Unhandled Rejection at: [object Promise], reason: Error: 403 Attention Required! | Cloudflare Please enable cookies. # Sorry, you have been blocked ## You are unable to access groq.com ```

Why have I been blocked?

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

``` yarn run v1.22.22 $ npm run db:push && node dist/app.js > perplexica-backend@1.9.0-rc2 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 (node:63) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) info: Server is running on port 3001 error: Unhandled Rejection at: [object Promise], reason: Error: 403 Attention Required! | Cloudflare Please enable cookies. # Sorry, you have been blocked ## You are unable to access groq.com ```

Why have I been blocked?

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

``` `

It worked when I switched the chat model from groq to ollama, but why is there no Internet search? And why isn't groq working? Do you need to do anything other than provide the apikey? image

Jiayou-Chao commented 2 months ago

I'm having the same issue! It only works if the question doesn't require an Internet search. I solved this temporarily by reverting back to the commit e8ed4df31aaac4001192f64a66701c48bc6e9378.

LZBNCC commented 2 months ago

我遇到了同样的问题!只有当问题不需要互联网搜索时,它才有效。 我通过恢复到提交e8ed4df暂时解决了这个问题。

Do you use vpn when deploying projects? If so, how to set it?

Jiayou-Chao commented 2 months ago

Do you use vpn when deploying projects? If so, how to set it?

No, I don't use a VPN. I mean, this is definitely not the network issue. I can open localhost:4000 to use SearXNG with no issues. And commit e8ed4df works for me.

streetmeat commented 2 months ago

Same groq issues here.

Nocturna22 commented 1 month ago

i used a fresh docker installation and could not perform an online search. i only ever get a search entry of “example.com”. localhost:4000 works though.

ItzCrazyKns commented 1 month ago

i used a fresh docker installation and could not perform an online search. i only ever get a search entry of “example.com”. localhost:4000 works though.

Seems like you're using a very low parameter model that is not able to understand the prompt correctly

Nocturna22 commented 1 month ago

i used a fresh docker installation and could not perform an online search. i only ever get a search entry of “example.com”. localhost:4000 works though.

Seems like you're using a very low parameter model that is not able to understand the prompt correctly

Oh, I'm using Llama 3.2, is there a list of supported models?

Nocturna22 commented 1 month ago

Ok, sorry you are right. Im in the wrong bug thread. I managed to fix it.

i used a fresh docker installation and could not perform an online search. i only ever get a search entry of “example.com”. localhost:4000 works though.

Seems like you're using a very low parameter model that is not able to understand the prompt correctly

creaper3 commented 1 month ago

Also having the same issues with ollama. It only gets from example.com. If you want anymore info or logs let me know.

UPDATE: Solved by using llama 3.1:70B, discover still doesn't work though.

ItzCrazyKns commented 1 month ago

Discover is under development so it is intended to not work