Error with Nextcloud Assistant After Update to Version 30.0.6

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Version 30.0.6
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04
  • Web server and version (e.g, Apache 2.4.25):
    • Nginx
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After latest update to Version 30.0.6
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Docker Cloudron
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I open the Nextcloud Assistant without doing any changes and it gives me error response when I try to Chat with AI

Steps to replicate it (hint: details matter!):

  1. Update to latest version
  2. SIgn In
  3. Open Nextcloud Assistant
  4. Error

Log entries

Error index
Exception
Call to a member function getShapeType() on array in file ‘/app/code/lib/private/TaskProcessing/Manager.php’ line 585

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.

Feb 14 16:40:30 104.28.213.130 - - [14/Feb/2025:09:40:30 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:40:37 => Run cron job
Feb 14 16:40:39 104.28.213.130 - - [14/Feb/2025:09:40:39 +0000] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 200 149 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:40:40 - - - [14/Feb/2025:09:40:40 +0000] "GET /index.php/login HTTP/1.1" 200 8836 "-" "Mozilla (CloudronHealth)"
Feb 14 16:40:41 104.28.213.130 - - [14/Feb/2025:09:40:41 +0000] "GET /apps/assistant/chat/generate?sessionId=[object+PointerEvent] HTTP/1.1" 404 29 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:40:50 - - - [14/Feb/2025:09:40:50 +0000] "GET /index.php/login HTTP/1.1" 200 8832 "-" "Mozilla (CloudronHealth)"
Feb 14 16:41:00 - - - [14/Feb/2025:09:41:00 +0000] "GET /index.php/login HTTP/1.1" 200 8833 "-" "Mozilla (CloudronHealth)"
Feb 14 16:41:03 104.28.213.130 - - [14/Feb/2025:09:41:03 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:41:08 104.28.213.130 - - [14/Feb/2025:09:41:08 +0000] "PUT /apps/integration_openai/admin-config HTTP/1.1" 200 22 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:41:10 - - - [14/Feb/2025:09:41:10 +0000] "GET /index.php/login HTTP/1.1" 200 8831 "-" "Mozilla (CloudronHealth)"
Feb 14 16:41:20 - - - [14/Feb/2025:09:41:20 +0000] "GET /index.php/login HTTP/1.1" 200 8832 "-" "Mozilla (CloudronHealth)"
Feb 14 16:41:27 104.28.213.130 - - [14/Feb/2025:09:41:26 +0000] "GET /apps/assistant/config?key=last_task_type HTTP/1.1" 200 43 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:41:27 104.28.213.130 - - [14/Feb/2025:09:41:27 +0000] "GET /ocs/v2.php/apps/assistant/api/v1/task-types HTTP/1.1" 200 2382 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:41:28 104.28.213.130 - - [14/Feb/2025:09:41:28 +0000] "GET /apps/assistant/chat/sessions HTTP/1.1" 200 736 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:41:30 - - - [14/Feb/2025:09:41:30 +0000] "GET /index.php/login HTTP/1.1" 200 8830 "-" "Mozilla (CloudronHealth)"
Feb 14 16:41:33 104.28.213.130 - - [14/Feb/2025:09:41:33 +0000] "PUT /apps/assistant/chat/new_session HTTP/1.1" 200 126 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:41:33 104.28.213.130 - - [14/Feb/2025:09:41:33 +0000] "PUT /apps/assistant/chat/new_message HTTP/1.1" 200 104 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:41:33 {"reqId":"c23MP4kDVYhFKwVYG11m","level":3,"time":"2025-02-14T09:41:33+00:00","remoteAddr":"104.28.213.130","user":"admin","app":"index","method":"GET","url":"/apps/assistant/chat/generate?sessionId=153","message":"Call to a member function getShapeType() on array in file '/app/code/lib/private/TaskProcessing/Manager.php' line 585","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36","version":"30.0.6.2","exception":{"Exception":"Exception","Message":"Call to a member function getShapeType() on array in file '/app/code/lib/private/TaskProcessing/Manager.php' line 585","Code":0,"Trace":[{"file":"/app/code/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/app/code/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/app/code/lib/base.php","line":1003,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/app/code/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/app/code/lib/private/AppFramework/Http/Dispatcher.php","Line":146,"Previous":{"Exception":"Error","Message":"Call to a member function getShapeType() on array","Code":0,"Trace":[{"file":"/app/code/lib/private/TaskProcessing/Manager.php","line":1209,"function":"validateInput","class":"OC\\TaskProcessing\\Manager","type":"::"},{"file":"/app/code/lib/private/TaskProcessing/Manager.php","line":792,"function":"prepareTask","class":"OC\\TaskProcessing\\Manager","type":"->"},{"file":"/app/data/apps/assistant/lib/Controller/ChattyLLMController.php","line":680,"function":"scheduleTask","class":"OC\\TaskProcessing\\Manager","type":"->"},{"file":"/app/data/apps/assistant/lib/Controller/ChattyLLMController.php","line":349,"function":"scheduleLLMChatTask","class":"OCA\\Assistant\\Controller\\ChattyLLMController","type":"->"},{"file":"/app/code/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"generateForSession","class":"OCA\\Assistant\\Controller\\ChattyLLMController","type":"->"},{"file":"/app/code/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/app/code/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/app/code/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/app/code/lib/base.php","line":1003,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/app/code/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/app/code/lib/private/TaskProcessing/Manager.php","Line":585},"message":"Call to a member function getShapeType() on array in file '/app/code/lib/private/TaskProcessing/Manager.php' line 585","exception":{},"CustomMessage":"Call to a member function getShapeType() on array in file '/app/code/lib/private/TaskProcessing/Manager.php' line 585"}}
Feb 14 16:41:33 104.28.213.130 - - [14/Feb/2025:09:41:33 +0000] "GET /apps/assistant/chat/generate?sessionId=153 HTTP/1.1" 500 3068 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:41:33 104.28.213.130 - - [14/Feb/2025:09:41:33 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:41:40 - - - [14/Feb/2025:09:41:40 +0000] "GET /index.php/login HTTP/1.1" 200 8832 "-" "Mozilla (CloudronHealth)"
Feb 14 16:41:50 - - - [14/Feb/2025:09:41:50 +0000] "GET /index.php/login HTTP/1.1" 200 8833 "-" "Mozilla (CloudronHealth)"
Feb 14 16:42:00 - - - [14/Feb/2025:09:42:00 +0000] "GET /index.php/login HTTP/1.1" 200 8831 "-" "Mozilla (CloudronHealth)"
Feb 14 16:42:04 104.28.213.130 - - [14/Feb/2025:09:42:04 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:42:10 - - - [14/Feb/2025:09:42:10 +0000] "GET /index.php/login HTTP/1.1" 200 8831 "-" "Mozilla (CloudronHealth)"
Feb 14 16:42:20 - - - [14/Feb/2025:09:42:20 +0000] "GET /index.php/login HTTP/1.1" 200 8833 "-" "Mozilla (CloudronHealth)"
Feb 14 16:42:30 - - - [14/Feb/2025:09:42:30 +0000] "GET /index.php/login HTTP/1.1" 200 8832 "-" "Mozilla (CloudronHealth)"
Feb 14 16:42:34 104.28.213.130 - - [14/Feb/2025:09:42:34 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"
Feb 14 16:42:40 - - - [14/Feb/2025:09:42:40 +0000] "GET /index.php/login HTTP/1.1" 200 8832 "-" "Mozilla (CloudronHealth)"
Feb 14 16:42:50 - - - [14/Feb/2025:09:42:50 +0000] "GET /index.php/login HTTP/1.1" 200 8833 "-" "Mozilla (CloudronHealth)"
Feb 14 16:43:00 - - - [14/Feb/2025:09:43:00 +0000] "GET /index.php/login HTTP/1.1" 200 8834 "-" "Mozilla (CloudronHealth)"
Feb 14 16:43:10 - - - [14/Feb/2025:09:43:10 +0000] "GET /index.php/login HTTP/1.1" 200 8832 "-" "Mozilla (CloudronHealth)"
Feb 14 16:43:20 - - - [14/Feb/2025:09:43:20 +0000] "GET /index.php/login HTTP/1.1" 200 8833 "-" "Mozilla (CloudronHealth)"

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

Not Available

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!):

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "work.matasigma.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "30.0.6.2",
        "overwrite.cli.url": "https:\/\/work.matasigma.com\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "US",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "forcessl": "1",
        "mail_smtpmode": "smtp",
        "mail_smtpauth": 1,
        "mail_sendmailmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "2525",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "overwritehost": "work.matasigma.com",
        "overwriteprotocol": "https",
        "updatechecker": false,
        "updater.release.channel": "cloudron",
        "logfile": "\/run\/nextcloud\/nextcloud.log",
        "loglevel": 3,
        "debug": false,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": "6379",
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "skeletondirectory": "",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "integrity.check.disabled": true,
        "htaccess.RewriteBase": "\/",
        "simpleSignUpLink.shown": false,
        "enforce_theme": "",
        "maintenance": false,
        "app_install_overwrite": [
            "breezedark",
            "bookmarks_fulltextsearch"
        ],
        "maintenance_window_start": 1,
        "log_type": "file",
        "localstorage.allowsymlinks": true,
        "trashbin_retention_obligation": "7,30",
        "dns_pinning": false
    }
}

Apps

Enabled:

  • activity: 3.0.0
  • admin_audit: 1.20.0
  • announcementcenter: 7.1.0
  • appointments: 2.3.5
  • approval: 2.1.0
  • assistant: 2.3.0
  • bruteforcesettings: 3.0.0
  • calendar: 5.0.10
  • circles: 30.0.0
  • cloud_federation_api: 1.13.0
  • collectives: 2.16.1
  • comments: 1.20.1
  • contacts: 6.1.3
  • contactsinteraction: 1.11.0
  • dashboard: 7.10.0
  • dav: 1.31.1
  • deck: 1.14.3
  • drawio: 3.0.3
  • external: 5.5.2
  • federatedfilesharing: 1.20.0
  • files: 2.2.0
  • files_accesscontrol: 1.20.1
  • files_automatedtagging: 1.20.0
  • files_downloadlimit: 3.0.0
  • files_external: 1.22.0
  • files_fulltextsearch: 30.0.0
  • files_pdfviewer: 3.0.0
  • files_reminders: 1.3.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • forms: 4.3.6
  • fulltextsearch: 30.0.0
  • groupfolders: 18.0.10
  • integration_notion: 1.2.0
  • integration_openai: 3.4.0
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • mail: 4.1.2
  • notes: 4.11.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • oidc: 1.3.0
  • onlyoffice: 9.6.0
  • password_policy: 2.0.0
  • photos: 3.0.2
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • recommendations: 3.0.0
  • related_resources: 1.5.0
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • side_menu: 4.0.1
  • spreed: 20.1.4
  • systemtags: 1.20.0
  • tasks: 0.16.1
  • text: 4.1.0
  • theming: 2.6.0
  • theming_customcss: 1.18.0
  • twofactor_backupcodes: 1.19.0
  • unroundedcorners: 1.1.4
  • updatenotification: 1.20.0
  • user_oidc: 6.2.1
  • user_status: 1.10.0
  • viewer: 3.0.0
  • workflowengine: 2.12.0
    Disabled:
  • app_api: 4.0.6 (installed 4.0.0)
  • encryption: 2.18.0
  • federation: 1.20.0 (installed 1.15.0)
  • firstrunwizard: 3.0.0 (installed 2.14.0)
  • nextcloud_announcements: 2.0.0 (installed 1.14.0)
  • oidc_login: 3.2.0 (installed 3.2.0)
  • support: 2.0.0 (installed 1.8.0)
  • survey_client: 2.0.0 (installed 1.13.0)
  • suspicious_login: 8.0.0
  • twofactor_nextcloud_notification: 4.0.0
  • twofactor_totp: 12.0.0-dev
  • user_ldap: 1.21.0 (installed 1.21.0)
  • weather_status: 1.10.0 (installed 1.5.0)
  • webhook_listeners: 1.1.0-dev (installed 1.1.0-dev)
  • welcome: 1.2.1 (installed 1.2.1)

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.
1 Like

Hopefully the latest update with patch can roll out soon since I can’t patch partially with my docker