Hello everyone,
I am really hoping someone can help me untangle this issue. Iâm facing a persistent problem with Nextcloud Assistant (latest) and LocalAI on Nextcloud 30.0.5 (Docker). I get a 417 âExpectation Failedâ error, but the complete absence of relevant logs is the biggest roadblock.
The Core Problem:
When using Nextcloud Assistant, the UI loader spins indefinitely, and I see a 417 âExpectation Failedâ error in the browser console. However, I cannot find any corresponding log entries in Nextcloud, Apache, or Docker logs - even with debug => true
and loglevel => 0
in config.php
!
The OpenAI Twist:
Interestingly, when I configure the plugin OpenAI/localAi, the connection works, the models are found. This strongly suggests that my network connectivity is functional.
My Setup/Configuration:
Nextcloud 30.0.5 (installed via Docker)
Web server: Apache
# Proxy Nextcloud
ProxyPass /nextcloud/ http://localhost:8081/
ProxyPassReverse /nextcloud/ http://localhost:8081/
RequestHeader set X-Forwarded-Proto âhttpsâ
RequestHeader set X-Forwarded-Host âxxx.access.lyâ
RequestHeader set X-Forwarded-Port â443â
RewriteEngine On
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/nextcloud/(.*) âws://localhost:8081/nextcloud/$1â [P,L]
LimitRequestFieldSize 16380
Database: MySQL
LocalAI: Running in a separate Docker container, accessible via http://172.24.0.100:8080
config.php settings:
âdebugâ => true,
âloglevelâ => 0,
âexpect_100_continueâ => false,
âallow_local_remote_serversâ => true,
âtrusted_domainsâ => array( ⌠â172.24.0.100â, ⌠),
Troubleshooting Steps Already Taken:
Iâve already attempted the following solutions, without success:
Disabled the âExpect: 100-continueâ header in config.php
Enabled allow_local_remote_servers in config.php
Added the LocalAI IP to trusted_domains in config.php
Restarted Apache and Docker containers
Verified the Apache reverse proxy configuration (including ProxyPass directives and X-Forwarded-* headers)
Confirmed that LocalAI is accessible via its internal URL from inside the Nextcloud container
Increased header limits (LimitRequestFieldSize) in apache
Extensive Log Review: Examined Nextcloud, Apache, and Docker logs, but found no relevant error messages pertaining to the Assistant or the 417 error, even with debug mode enabled.
The Critical Issue: Lack of Logging
The most perplexing part is that, even with debug => true and loglevel => 0 in config.php, I cannot find any log entries related to Nextcloud Assistant or the 417 error. This makes it extremely difficult to diagnose the root cause.