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]: OpenAI Backend goes down, so does nextcloud. #49356

Open
5 of 8 tasks
SimplyCorbett opened this issue Nov 18, 2024 · 1 comment
Open
5 of 8 tasks

[Bug]: OpenAI Backend goes down, so does nextcloud. #49356

SimplyCorbett opened this issue Nov 18, 2024 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 30-feedback bug

Comments

@SimplyCorbett
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

I've searched (briefly) but am not sure if I searched hard enough. Also, if this is the wrong place for the bug report, please transfer it.

When using an OpenAI compatible backend (locally hosted on a separate LAN server), if it goes down the nextcloud instance stops working.

Steps to reproduce

  1. Install a OpenAI local LLM

  2. Watch nextcloud stop working when that OpenAI backend goes down

Expected behavior

Nextcloud continues to run with reduced functions (I.E. AI functions dont work).

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Nginx

Database engine version

PostgreSQL

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

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

@SimplyCorbett SimplyCorbett added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Nov 18, 2024
@SimplyCorbett SimplyCorbett changed the title [Bug]: [Bug]: OpenAI Backend goes down, so does nextcloud. Nov 18, 2024
@DiegoRosales
Copy link

My AIO instance just upgraded NC to 30.0.2.
I have a separate AI server running Ollama which is off most of the time. I have NC pointing to that server. If that AI server is off, NC simply doesn't load. As soon as I turn it on, NC comes back to life.
In the nextcloud logs I see this

{"reqId":"RUqleOFtb6GcJdg0fWU2","level":2,"time":"2024-11-27T08:50:51+00:00","remoteAddr":"100.73.18.75","user":"diego","app":"integration_openai","method":"GET","url":"/apps/dashboard/","message":"Error getting model enum values","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0","version":"30.0.2.2","exception":{"Exception":"Exception","Message":"Unknown models error","Code":500,"Trace":[{"file":"/var/www/html/custom_apps/integration_openai/lib/Service/OpenAiAPIService.php","line":131,"function":"getModels","class":"OCA\\OpenAi\\Service\\OpenAiAPIService","type":"->","args":["diego"]},{"file":"/var/www/html/custom_apps/integration_openai/lib/TaskProcessing/ContextWriteProvider.php","line":71,"function":"getModelEnumValues","class":"OCA\\OpenAi\\Service\\OpenAiAPIService","type":"->","args":["diego"]},{"file":"/var/www/html/lib/private/TaskProcessing/Manager.php","line":740,"function":"getOptionalInputShapeEnumValues","class":"OCA\\OpenAi\\TaskProcessing\\ContextWriteProvider","type":"->","args":[]},{"file":"/var/www/html/custom_apps/assistant/lib/Listener/Text2Image/Text2ImageReferenceListener.php","line":38,"function":"getAvailableTaskTypes","class":"OC\\TaskProcessing\\Manager","type":"->","args":[]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":68,"function":"handle","class":"OCA\\Assistant\\Listener\\Text2Image\\Text2ImageReferenceListener","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":220,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":56,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},"And 5 more entries, set log level to debug to see all entries"],"*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":67,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":79,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/text/lib/Listeners/LoadEditorListener.php","line":34,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":68,"function":"handle","class":"OCA\\Text\\Listeners\\LoadEditorListener","type":"->","args":[{"__class__":"OCA\\Text\\Event\\LoadEditor"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":220,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[{"__class__":"OCA\\Text\\Event\\LoadEditor"},"OCA\\Text\\Event\\LoadEditor","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":56,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"}],"OCA\\Text\\Event\\LoadEditor",{"__class__":"OCA\\Text\\Event\\LoadEditor"}]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":67,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\Text\\Event\\LoadEditor"},"OCA\\Text\\Event\\LoadEditor"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":79,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCA\\Text\\Event\\LoadEditor",{"__class__":"OCA\\Text\\Event\\LoadEditor"}]},{"file":"/var/www/html/custom_apps/deck/lib/AppInfo/Application.php","line":87,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCA\\Text\\Event\\LoadEditor"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":220,"function":"OCA\\Deck\\AppInfo\\{closure}","class":"OCA\\Deck\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":56,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},"And 5 more entries, set log level to debug to see all entries"],"*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":67,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":79,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/assistant/lib/Listener/BeforeTemplateRenderedListener.php","line":48,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":68,"function":"handle","class":"OCA\\Assistant\\Listener\\BeforeTemplateRenderedListener","type":"->","args":[{"__class__":"OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"}]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":220,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[{"__class__":"OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"},"OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":56,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},"And 11 more entries, set log level to debug to see all entries"],"OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent",{"__class__":"OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"}]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":67,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"},"OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":79,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent",{"__class__":"OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"}]},{"file":"/var/www/html/lib/private/AppFramework/Middleware/AdditionalScriptsMiddleware.php","line":34,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[{"__class__":"OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"}]},{"file":"/var/www/html/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":119,"function":"afterController","class":"OC\\AppFramework\\Middleware\\AdditionalScriptsMiddleware","type":"->","args":[{"__class__":"OCA\\Dashboard\\Controller\\DashboardController"},"index",{"__class__":"OCP\\AppFramework\\Http\\TemplateResponse"}]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":151,"function":"afterController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->","args":[{"__class__":"OCA\\Dashboard\\Controller\\DashboardController"},"index",{"__class__":"OCP\\AppFramework\\Http\\TemplateResponse"}]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Dashboard\\Controller\\DashboardController"},"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Dashboard\\Controller\\DashboardController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"dashboard.dashboard.index"}]},{"file":"/var/www/html/lib/base.php","line":1001,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/dashboard/"]},{"file":"/var/www/html/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/integration_openai/lib/Service/OpenAiAPIService.php","Line":100,"message":"Error getting model enum values","exception":{},"CustomMessage":"Error getting model enum values"}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 30-feedback bug
Projects
None yet
Development

No branches or pull requests

3 participants