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

[Bug]: No answer from KI in Assistent #142

Open
5 of 8 tasks
cheesynator opened this issue Oct 4, 2024 · 5 comments
Open
5 of 8 tasks

[Bug]: No answer from KI in Assistent #142

cheesynator opened this issue Oct 4, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@cheesynator
Copy link

cheesynator commented Oct 4, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

Here is the translation:

"I'm running Nextcloud on my Unraid server, which I have set up in a Docker container using the Linuxserver Image. Additionally, I've installed a local AI (Ollama and LocalAI) as well.

When I enter the IP address of the AI (Ollama or LocalAI) into the App LocalAI under Nextcloud, the AI is found and displays the installed LLMs. The LLMs are running smoothly and I can chat with the KI using OpenWebUI or through the chat in (LocalAI).

However, when I start a chat in the Nextcloud Assistant, I don't receive an answer. However, my question goes into Ollama and LocalAI (which can be seen in their logs) but is not processed.

But if I set up a prompt using the Nextcloud App on my iPhone under "More / Assistant", I immediately get a response from the KI.

After long searching, I was able to pinpoint the error. Under Nextcloud 29.0.7 (Docker Nextcloud:29.0.7) the response works fine. But with Nextcloud 30, I don't receive any answer.

"I followed your test environment.

  1. I installed the two Nextcloud Docker images:
    docker pull nextcloud:latestandnextcloud:29.0.7` (the official images)
  2. I created an admin account on the welcome screen, using SQLite as the database.
  3. I then installed the Assistent and LocalAI apps under Nextcloud 29.0.7 and 30 in the "Apps" section.
  4. Under Settings > Artificial Intelligence > Admin area, I entered the IP address of the local AI (LocalAI and then Ollama).
  5. The LLMs were displayed. I tested with llama3.2 and gpt4.
  6. I opened the Assistent and started a chat with the KI.
  7. Under 29.0.7, I received an immediate answer. Under 30, no answer was returned.
  8. However, the KI responds to both 29.0.7 and 30 when using the Nextcloud iPhone app.

Note: I didn't make any changes or configurations during these tests. The first start only created the admin user, and both tests were run with minimal system setups."

I hope you can help me find a solution to this problem."

Greetings Thomas

Steps to reproduce

Expected behavior

.

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@cheesynator cheesynator added the bug Something isn't working label Oct 4, 2024
@ascheurer-rts
Copy link

Had the same problem but but in a LAMP stack installation.
Try following:
Exec the occ command inside the container occ background-job:worker
while this commend is running, start a AI conversation.
If you get an answer, the problem is the not running background job, or the job is scheduled and not running permanent

@cheesynator
Copy link
Author

cheesynator commented Oct 4, 2024

Thanks for the tip. When I issue the command “occ background-job:worker” in the console and start the chat, I get a response.

However, the command causes a continuous loop of the running jobs in the console. If I then close the command with ctrl+c in the console, I no longer receive a response when chatting with the AI.

By the way, I have also tried a LAMP installation in a VM under Ubuntu Server. Same error pattern regarding no AI response as with Docker!

@ascheurer-rts
Copy link

ascheurer-rts commented Oct 4, 2024

For the LAMP installation i created a dedicated service:
sudo nano /etc/systemd/system/background-job-worker.service

[Unit]
Description=Nextcloud Background Job Worker
After=network.target

[Service]
User=www-data
ExecStart=/usr/bin/php /var/www/nextcloud/occ background-job:worker 'OC\TaskProcessing\SynchronousBack>
Restart=always

[Install]
WantedBy=multi-user.target

and enabled it with

sudo systemctl daemon-reload
sudo systemctl enable background-job-worker.service
sudo systemctl start background-job-worker.service

This works perfect.
I am not sure, if it is possible to create a service for nextcloud in docker...

@joshtrichards joshtrichards transferred this issue from nextcloud/server Oct 4, 2024
@ascheurer-rts
Copy link

@joshtrichards not sure, if "Assistant" is the rights section, because tho code change needs to be done in server, not in Assistant.
And the issue effects not only the Assistant, but potential all app that are using "worker-src"

@kinimodmeyer
Copy link

I think this is related to #129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants