The Basics
- Nextcloud Server version (e.g., 29.x.x):
Nextcloud Hub 9 (30.0.5)
- Operating system and version (e.g., Ubuntu 24.04):
Linux 6.8.12-7-pve x86_64
- Web server and version (e.g, Apache 2.4.25):
replace me
- Reverse proxy and version _(e.g. nginx 1.27.2)
Nginx Proxy Manager v2.12.2
- PHP version (e.g, 8.3):
8.3.15
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
while setting up OpenAI und LocalAI-Integration
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
AIO
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
I set up Ollama as an HTTP service and modified the Nextcloud config (config.php
) to accept connections from HTTP servers by adding:
'allow_local_remote_servers' => true,
I am not using NGINX for Ollama, just accessing it via its IP and port. I can successfully curl the Ollama API and get correct responses.
Issue:
Despite this, Nextcloud cannot fetch models from Ollama and returns the following error:
Fehler beim Laden von Modellen
Error getting model enum values
exception Authenticated ciphertext could not be decoded.
Ollama itself is working fine when tested via curl
, but Nextcloud still does not recognize the models.
Steps to replicate it (hint: details matter!):
-
Set up Ollama as an HTTP service on a self-hosted Docker instance without HTTPS.
- Ollama is running and accessible via:
http://<server-ip>:11434/v1
- Testing with
curl
confirms it is working:curl http://<server-ip>:11434/v1/models
- Returns a valid JSON response with the list of models.
- Ollama is running and accessible via:
-
Modify Nextcloud configuration to allow HTTP connections:
- Access the Nextcloud container:
docker exec -it nextcloud-aio-nextcloud bash
- Edit
config.php
:nano /var/www/html/config/config.php
- Add this line inside the
$CONFIG
array:'allow_local_remote_servers' => true,
- Save and exit, then restart Nextcloud:
docker restart nextcloud-aio-nextcloud
- Access the Nextcloud container:
-
Configure Nextcloud AI integration:
- Go to Nextcloud Settings → Administration → AI Backend.
- Set the API URL to:
http://<server-ip>:11434/v1
- Click Save.
-
Check for errors:
- Nextcloud fails to connect to the Ollama models and displays:
Error getting model enum values exception Authenticated ciphertext could not be decoded.
- Despite the error,
curl
requests to the Ollama API still work fine outside Nextcloud.
- Nextcloud fails to connect to the Ollama models and displays:
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log
located in your data directory). Feel free to use a pastebin/gist service if necessary.
Warnung integration_openai
Exception Authenticated ciphertext could not be decoded.
Error getting model enum values
Configuration
Nextcloud
The output of occ config:list system
or similar is best, but, if not possible, the contents of your config.php
file from /path/to/nextcloud
is fine (make sure to remove any identifiable information!):
<?php
$CONFIG = array (
'one-click-instance' => true,
'one-click-instance.user-limit' => 100,
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'check_data_directory_permissions' => false,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'nextcloud-aio-redis',
'password' => 'xxxxxxxxxxxxxxxxxxxxxx',
'port' => 6379,
),
'overwritehost' => 'xxxxxxxxxxxxxxxxxx',
'overwriteprotocol' => 'https',
'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxI',
'secret' => 'xxxxxxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'xxxxxxxxxxxxxxxxxxxx',
),
'datadirectory' => '/mnt/ncdata',
'dbtype' => 'pgsql',
'version' => '30.0.5.1',
'overwrite.cli.url' => 'xxxxxxxxxxxxx',
'dbname' => 'nextcloud_database',
'dbhost' => 'nextcloud-aio-database:5432',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'xxxxxxxxxxxxxxxx',
'dbpassword' => 'xxxxxxxxxxxxxxxxxxxx',
'installed' => true,
'instanceid' => 'xxxxxxxxxxxxx',
'maintenance' => false,
'loglevel' => 2,
'log_type' => 'file',
'logfile' => '/var/www/html/data/nextcloud.log',
'log_rotate_size' => 10485760,
'log.condition' =>
array (
'apps' =>
array (
0 => 'admin_audit',
),
),
'preview_max_x' => 2048,
'preview_max_y' => 2048,
'jpeg_quality' => 60,
'enabledPreviewProviders' =>
array (
1 => 'OC\\Preview\\Image',
2 => 'OC\\Preview\\MarkDown',
3 => 'OC\\Preview\\MP3',
4 => 'OC\\Preview\\TXT',
5 => 'OC\\Preview\\OpenDocument',
6 => 'OC\\Preview\\Movie',
7 => 'OC\\Preview\\Krita',
0 => 'OC\\Preview\\Imaginary',
23 => 'OC\\Preview\\ImaginaryPDF',
),
'enable_previews' => true,
'upgrade.disable-web' => true,
'mail_smtpmode' => 'smtp',
'trashbin_retention_obligation' => 'auto, 30',
'versions_retention_obligation' => 'auto, 30',
'activity_expire_days' => 30,
'simpleSignUpLink.shown' => false,
'share_folder' => '/Shared',
'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',
'upgrade.cli-upgrade-link' => 'https://github.com/nextcloud/all-in-one/discussions/2726',
'updatedirectory' => '/nc-updater',
'maintenance_window_start' => 100,
'davstorage.request_timeout' => 3600,
'documentation_url.server_logs' => 'https://github.com/nextcloud/all-in-one/discussions/5425',
'htaccess.RewriteBase' => '/',
'dbpersistent' => false,
'auth.bruteforce.protection.enabled' => true,
'ratelimit.protection.enabled' => true,
'files_external_allow_create_new_local' => false,
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => '::1',
10 => '172.22.0.0/16',
),
'preview_imaginary_url' => 'http://nextcloud-aio-imaginary:9000',
'preview_imaginary_key' => 'xxxxxxxxxxxxxxxxxxxxx',
'app_install_overwrite' =>
array (
0 => 'otpmanager',
),
'allow_local_remote_servers' => true,
'default_phone_region' => 'DE',
'openai_api_key' => '',
'mail_from_address' => 'xxxxxxxxxxxxxxxx',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'xxxxxxxxxxxxxxxx',
'mail_smtphost' => 'xxxxxxxxxxxxx',
'mail_smtpport' => '465',
'mail_smtpauth' => 1,
'mail_smtpname' => 'xxxxxxxxxxxxxxxxxxx',
'mail_smtppassword' => 'xxxxxxxxxxxxxxxxxxxxxxxx',
Apps
The output of occ app:list
(if possible).