nextcloud / context_chat

Chat with your documents
GNU Affero General Public License v3.0
6 stars 0 forks source link

[Bug]: `occ files:scan` no longer works with `context_chat` app enabled #17

Closed architectonio closed 3 months ago

architectonio commented 4 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

After upgrading to 28.0.3.2, "occ files:scan" no longer works whether with any user or passing --all as parameter.

Steps to reproduce

sudo -u www-data php occ files:scan ncuser

Starting scan for user 1 out of 16 (ncuser) An unhandled exception has been thrown: Error: Call to undefined method OCA\AppAPI\Service\AppAPIService::getExApp() in /var/nextcloud/apps/context_chat/lib/Service/LangRopeService.php:54

Expected behavior

"occ files;scan user" should work as expected

Installation method

Community Manual installation with Archive

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 22.1 to 22.2)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "mycloud.mydomain.net",
            "nextcloud.mydomain.net"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/mycloud.mydomain.net",
        "htaccess.RewriteBase": "\/",
        "dbtype": "mysql",
        "version": "28.0.3.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "maintenance": false,
        "loglevel": 0,
        "default_phone_region": "DE",
        "app.mail.verify-tls-peer": false,
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpstreamoptions": {
            "ssl": {
                "allow_self_signed": true,
                "verify_peer": false,
                "verify_peer_name": false
            }
        },
        "filelocking.enabled": "true",
        "chunkSize": "5120MB",
        "theme": "",
        "versions_retention_obligation": "auto, 186",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***",
            "dbindex": 0
        },
        "updater.release.channel": "beta",
        "mail_sendmailmode": "smtp",
        "app_install_overwrite": [
            "fulltextsearch",
            "files_reader",
            "keeweb",
            "richdocuments",
            "whiteboard",
            "epubreader",
            "radio",
            "fulltextsearch_elasticsearch",
            "twofactor_admin",
            "impersonate",
            "drawio"
        ],
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "trashbin_retention_obligation": "90, 180",
        "mysql.utf8mb4": true,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "has_rebuilt_cache": true,
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

List of activated Apps

Enabled:
  - activity: 2.20.0
  - admin_audit: 1.18.0
  - analytics: 4.12.0
  - app_api: 2.2.0
  - assistant: 1.0.3
  - audioplayer: 3.4.1
  - bookmarks: 13.1.3
  - bruteforcesettings: 2.8.0
  - calendar: 4.6.5
  - checksum: 1.2.3
  - circles: 28.0.0-dev
  - cloud_federation_api: 1.11.0
  - comments: 1.18.0
  - contacts: 5.5.2
  - contactsinteraction: 1.9.0
  - context_chat: 1.0.0
  - dashboard: 7.8.0
  - dav: 1.29.1
  - deck: 1.12.2
  - drawio: 3.0.2
  - epubviewer: 1.5.3
  - federatedfilesharing: 1.18.0
  - federation: 1.18.0
  - files: 2.0.0
  - files_3dmodelviewer: 0.0.12
  - files_accesscontrol: 1.18.0
  - files_automatedtagging: 1.18.0
  - files_external: 1.20.0
  - files_fulltextsearch: 28.0.0
  - files_lock: 28.0.2
  - files_mindmap: 0.0.30
  - files_pdfviewer: 2.9.0
  - files_reminders: 1.1.0
  - files_sharing: 1.20.0
  - files_trashbin: 1.18.0
  - files_versions: 1.21.0
  - files_zip: 1.5.0
  - firstrunwizard: 2.17.0
  - forms: 4.1.1
  - fulltextsearch: 28.0.0
  - fulltextsearch_elasticsearch: 28.0.0
  - groupfolders: 16.0.4
  - impersonate: 1.15.0
  - integration_libretranslate: 1.1.1
  - integration_openai: 1.2.0
  - integration_openstreetmap: 1.0.11
  - integration_youtube: 0.1.5
  - keeweb: 0.6.17
  - llm: 1.2.1
  - logreader: 2.13.0
  - lookup_server_connector: 1.16.0
  - mail: 3.5.7
  - maps: 1.3.1
  - nextcloud_announcements: 1.17.0
  - notes: 4.9.2
  - notifications: 2.16.0
  - notify_push: 0.6.9
  - oauth2: 1.16.3
  - password_policy: 1.18.0
  - phonetrack: 0.7.7
  - photos: 2.4.0
  - privacy: 1.12.0
  - provisioning_api: 1.18.0
  - qownnotesapi: 23.12.0
  - quota_warning: 1.18.0
  - recommendations: 2.0.0
  - related_resources: 1.3.0
  - richdocuments: 8.3.1
  - serverinfo: 1.18.0
  - settings: 1.10.1
  - sharebymail: 1.18.0
  - sketch_picker: 1.0.1
  - spreed: 18.0.4
  - stt_whisper: 1.0.8
  - support: 1.11.0
  - survey_client: 1.16.0
  - suspicious_login: 6.0.0
  - systemtags: 1.18.0
  - tables: 0.7.0-beta.1
  - tasks: 0.15.0
  - text: 3.9.1
  - text2image_stablediffusion: 1.0.2
  - theming: 2.3.0
  - theming_customcss: 1.15.0
  - thesearchpage: 1.3.0-pre
  - transfer: 0.6.3
  - twofactor_admin: 4.4.0
  - twofactor_backupcodes: 1.17.0
  - twofactor_email: 2.7.4
  - twofactor_nextcloud_notification: 3.8.0
  - twofactor_totp: 10.0.0-beta.2
  - updatenotification: 1.18.0
  - user_ldap: 1.19.0
  - user_status: 1.8.1
  - viewer: 2.2.0
  - weather_status: 1.8.0
  - workflowengine: 2.10.0
Disabled:
  - carnet: 0.25.4 (installed 0.25.4)
  - cfg_share_links: 4.2.0 (installed 4.2.0)
  - encryption: 2.16.0
  - extract: 1.3.6 (installed 1.3.6)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - metadata: 0.19.0 (installed 0.19.0)
  - polls: 6.1.6 (installed 6.1.6)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"ZeOCdypEwd9VFXkMcQw20QAAAlc","level":0,"time":"2024-03-02T19:48:07+00:00","remoteAddr":"93.224.197.82","user":"b8f04001-1e9311ea-9eb8dbfb-cb6a0524","app":"workflowengine","method":"PROPFIND","url":"/remote.php/dav/files/b8f04001-1e9311ea-9eb8dbfb-cb6a0524/","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Linux) mirall/3.11.0git (Nextcloud, org.kde.Platform-6.5.0-0.deb12.4-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.3.2","data":{"app":"workflowengine","level":"0"}}
{"reqId":"ZeOCdypEwd9VFXkMcQw20QAAAlc","level":0,"time":"2024-03-02T19:48:07+00:00","remoteAddr":"93.224.197.82","user":"b8f04001-1e9311ea-9eb8dbfb-cb6a0524","app":"workflowengine","method":"PROPFIND","url":"/remote.php/dav/files/b8f04001-1e9311ea-9eb8dbfb-cb6a0524/","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Linux) mirall/3.11.0git (Nextcloud, org.kde.Platform-6.5.0-0.deb12.4-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.3.2","data":{"app":"workflowengine","level":"0"}}
{"reqId":"ZeOCdypEwd9VFXkMcQw20QAAAlc","level":0,"time":"2024-03-02T19:48:07+00:00","remoteAddr":"93.224.197.82","user":"b8f04001-1e9311ea-9eb8dbfb-cb6a0524","app":"workflowengine","method":"PROPFIND","url":"/remote.php/dav/files/b8f04001-1e9311ea-9eb8dbfb-cb6a0524/","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Linux) mirall/3.11.0git (Nextcloud, org.kde.Platform-6.5.0-0.deb12.4-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.3.2","data":{"app":"workflowengine","level":"0"}}
{"reqId":"ZeOCdypEwd9VFXkMcQw20QAAAlc","level":0,"time":"2024-03-02T19:48:07+00:00","remoteAddr":"93.224.197.82","user":"b8f04001-1e9311ea-9eb8dbfb-cb6a0524","app":"workflowengine","method":"PROPFIND","url":"/remote.php/dav/files/b8f04001-1e9311ea-9eb8dbfb-cb6a0524/","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Linux) mirall/3.11.0git (Nextcloud, org.kde.Platform-6.5.0-0.deb12.4-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.3.2","data":{"app":"workflowengine","level":"0"}}
{"reqId":"ZeOCdypEwd9VFXkMcQw20QAAAlc","level":0,"time":"2024-03-02T19:48:07+00:00","remoteAddr":"93.224.197.82","user":"b8f04001-1e9311ea-9eb8dbfb-cb6a0524","app":"workflowengine","method":"PROPFIND","url":"/remote.php/dav/files/b8f04001-1e9311ea-9eb8dbfb-cb6a0524/","message":"Flow activation: rules were requested for operation Block access to a file","userAgent":"Mozilla/5.0 (Linux) mirall/3.11.0git (Nextcloud, org.kde.Platform-6.5.0-0.deb12.4-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.3.2","data":{"app":"workflowengine","level":"0"}}
{"reqId":"ZeOCdypEwd9VFXkMcQw20QAAAlc","level":0,"time":"2024-03-02T19:48:07+00:00","remoteAddr":"93.224.197.82","user":"b8f04001-1e9311ea-9eb8dbfb-cb6a0524","app":"workflowengine","method":"PROPFIND","url":"/remote.php/dav/files/b8f04001-1e9311ea-9eb8dbfb-cb6a0524/","message":"No flow configurations is going to run Block access to a file","userAgent":"Mozilla/5.0 (Linux) mirall/3.11.0git (Nextcloud, org.kde.Platform-6.5.0-0.deb12.4-amd64 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.3.2","data":{"app":"workflowengine","level":"0"}}

Additional info

none

kesselb commented 4 months ago

cc @bigcat88 @marcelklehr (sorry, not sure if that's a problem with context_chat or app api)

bigcat88 commented 4 months ago

context_chat should be disabled until 1.1.0 version is out with fix for that.

architectonio commented 4 months ago

Thanks @bigcat88. By disabling context_chat, file:scan works again. However I had to disable the app from CLI (using occ) since the Nextcloud web interface returned an error when attempting to disable from there.

socialize-IT commented 4 months ago

context_chat should be disabled until 1.1.0 version is out with fix for that.

Is there any release date for 1.1.0?

kyteinsky commented 4 months ago

This issue and a few others will be fixed with the v2.0.1 release (#23)