Context Chat error

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.4
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 12.8
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.62
  • PHP version (e.g, 8.3):
    • 8.2.26
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • After upgrade with the attempt for the AI chat
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare Metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Yes. mod_security

Summary of the issue you are facing:

I’m getting the following error over & over again:

RuntimeException Error during request to Context Chat Backend (ExApp): ExApp context_chat_backend not found
Error while running background job OCA\ContextChat\BackgroundJobs\ActionJob (id: 14579, arguments: null)

After reading the external app instructions, I do not want to use the Chat app or external apps at all at this time. How can I clear out these errors and stop them from recurring?

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

It’s been happening since I installed the Nextcloud Assistant

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.

{"reqId":"wxLmFJIhKu2Kk0dAB3Vw","level":3,"time":"2025-01-07T19:28:58+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job OCA\\ContextChat\\BackgroundJobs\\ActionJob (id: 14582, arguments: null)","userAgent":"--","version":"30.0.4.1","exception":{"Exception":"RuntimeException","Message":"Error during request to Context Chat Backend (ExApp): ExApp `context_chat_backend` not found","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/apps/context_chat/lib/Service/LangRopeService.php","line":179,"function":"requestToExApp","class":"OCA\\ContextChat\\Service\\LangRopeService","type":"->"},{"file":"/var/www/html/nextcloud/apps/context_chat/lib/BackgroundJobs/ActionJob.php","line":54,"function":"deleteSources","class":"OCA\\ContextChat\\Service\\LangRopeService","type":"->"},{"file":"/var/www/html/nextcloud/lib/public/BackgroundJob/Job.php","line":61,"function":"run","class":"OCA\\ContextChat\\BackgroundJobs\\ActionJob","type":"->"},{"file":"/var/www/html/nextcloud/lib/public/BackgroundJob/QueuedJob.php","line":43,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/html/nextcloud/lib/public/BackgroundJob/QueuedJob.php","line":29,"function":"start","class":"OCP\\BackgroundJob\\QueuedJob","type":"->"},{"file":"/var/www/html/nextcloud/cron.php","line":162,"function":"execute","class":"OCP\\BackgroundJob\\QueuedJob","type":"->"}],"File":"/var/www/html/nextcloud/apps/context_chat/lib/Service/LangRopeService.php","Line":73,"message":"Error while running background job OCA\\ContextChat\\BackgroundJobs\\ActionJob (id: 14582, arguments: null)","exception":[],"CustomMessage":"Error while running background job OCA\\ContextChat\\BackgroundJobs\\ActionJob (id: 14582, arguments: null)"},"id":"677d81cdbe341"}

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": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "www.oddtime.net",
            "oddtime.net"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.4.1",
        "overwrite.cli.url": "https:\/\/www.oddtime.net\/nextcloud",
        "overwriteprotocol": "https",
        "overwitehost": "www.oddtime.net",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "sendmail",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "maintenance": false,
        "maintenance_window_start": 5,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "default_phone_region": "US",
        "theme": "",
        "loglevel": 2,
        "default_locale": "en_US",
        "updater.release.channel": "stable"
    }
}

Apps

Enabled:

  • activity: 3.0.0
  • admin_audit: 1.20.0
  • app_api: 4.0.3
  • bruteforcesettings: 3.0.0
  • calendar: 5.0.8
  • cloud_federation_api: 1.13.0
  • comments: 1.20.1
  • contacts: 6.1.2
  • contactsinteraction: 1.11.0
  • context_chat: 4.0.1
  • cookbook: 0.11.2
  • dashboard: 7.10.0
  • dav: 1.31.1
  • deck: 1.14.2
  • encryption: 2.18.0
  • externalportal: 1.3.1
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_downloadlimit: 3.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
  • firstrunwizard: 3.0.0
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • mail: 4.1.1
  • maps: 1.5.0
  • metadata: 0.21.0
  • news: 25.1.2
  • nextcloud_announcements: 2.0.0
  • notes: 4.11.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • 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
  • richdocuments: 8.5.3
  • richdocumentscode: 24.4.1002
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • socialsharing_email: 3.2.0
  • support: 2.0.0
  • survey_client: 2.0.0
  • suspicious_login: 8.0.0
  • systemtags: 1.20.0
  • tasks: 0.16.1
  • text: 4.1.0
  • theming: 2.5.0
  • twofactor_backupcodes: 1.19.0
  • twofactor_totp: 12.0.0-dev
  • updatenotification: 1.20.0
  • user_status: 1.10.0
  • viewer: 3.0.0
  • weather_status: 1.10.0
  • webhook_listeners: 1.1.0-dev
  • workflowengine: 2.12.0
    Disabled:
  • circles: 30.0.0 (installed 27.0.1)
  • files_external: 1.22.0
  • twofactor_nextcloud_notification: 4.0.0
  • user_ldap: 1.21.0

I’m under impression ExApp context chat is required to run Nextcloud Assistant

I saw yours and ended up in a similar spot. The external app requiring some docker setup and other things does not fit my deployment so I decided that I don’t need the chat. Now I just want to get rid of the error safely.