-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Which version of integration_openai are you using?
3.7.1
Which version of Nextcloud are you using?
31.0.9.1 (Nextcloud AIO)
Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.
Brave & Firefox
Describe the Bug
The integration_openai app appears to perform a synchronous network request to fetch OpenAI models during the loading of the Nextcloud dashboard. If the configured LocalAI server is crashed or otherwise unreachable, this request times out after an excessively long period (observed as 160+ seconds), causing the entire web interface to hang post-authentication. This makes the dashboard and subsequent pages unresponsive until the timeout resolves or the app is disabled.
This behavior is problematic because it blocks the core Nextcloud UI functionality, even for users not actively using AI features.
Disabling the integration_openai app resolves the issue immediately, confirming it's the source of the hang.
Additional Context:
The issue appeared after the LocalAI server crashed; prior to that, everything functioned normally.
Desktop sync, API endpoints, and WebDAV continue to work fine during the hang, indicating the problem is isolated to the web UI/dashboard load.
This was first observed on September 26, 2025, with up-to-date Nextcloud AIO components and has taken me several days to isolate.
Expected Behavior
The model fetch should ideally be asynchronous, fail gracefully with error handling, or be deferred until relevant action is initiated, rather than running on every dashboard load.
To Reproduce
- Install and enable the integration_openai app in Nextcloud.
- Configure it to use a LocalAI server (e.g., via the app's settings with a custom base URL for LocalAI).
- Ensure the LocalAI server is running initially and verify that models can be fetched successfully.
- Crash or shut down the LocalAI server to make it unreachable.
- Log into the Nextcloud web interface.
- After successful authentication, attempt to load the dashboard (/apps/dashboard).
7.Observe the hang/delay of 160+ seconds before the page loads or times out.