Hello,
My apologies if this is found to be a duplicate issue - I did search around for quite some time and have not found any prior postings that could help me understand the issue (I’m not a PHP developer, so please forgive my ignorance).
For quite some time now, I have been getting the following api_app fatal errors in my log - here is a raw log:
{“reqId”:“J2zKUS03IKfDH9YS1DQr”,“level”:4,“time”:“2025-01-29T14:40:09+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“app_api”,“method”:“”,“url”:“–”,“message”:“Error during app service registration: array_map(): Argument #2 ($array) must be of type array, bool given”,“userAgent”:“–”,“version”:“30.0.5.1”,“exception”:{“Exception”:“TypeError”,“Message”:“array_map(): Argument #2 ($array) must be of type array, bool given”,“Code”:0,“Trace”:[{“file”:“/home/nextcloud/public_html/apps/app_api/lib/Service/ProvidersAI/TextProcessingService.php”,“line”:59,“function”:“array_map”},{“file”:“/home/nextcloud/public_html/apps/app_api/lib/Service/ProvidersAI/TextProcessingService.php”,“line”:143,“function”:“getRegisteredTextProcessingProviders”,“class”:“OCA\AppAPI\Service\ProvidersAI\TextProcessingService”,“type”:“->”},{“file”:“/home/nextcloud/public_html/apps/app_api/lib/AppInfo/Application.php”,“line”:83,“function”:“registerExAppTextProcessingProviders”,“class”:“OCA\AppAPI\Service\ProvidersAI\TextProcessingService”,“type”:“->”},{“file”:“/home/nextcloud/public_html/lib/private/AppFramework/Bootstrap/Coordinator.php”,“line”:99,“function”:“register”,“class”:“OCA\AppAPI\AppInfo\Application”,“type”:“->”},{“file”:“/home/nextcloud/public_html/lib/private/AppFramework/Bootstrap/Coordinator.php”,“line”:48,“function”:“registerApps”,“class”:“OC\AppFramework\Bootstrap\Coordinator”,“type”:“->”},{“file”:“/home/nextcloud/public_html/lib/base.php”,“line”:659,“function”:“runInitialRegistration”,“class”:“OC\AppFramework\Bootstrap\Coordinator”,“type”:“->”},{“file”:“/home/nextcloud/public_html/lib/base.php”,“line”:1134,“function”:“init”,“class”:“OC”,“type”:“::”},{“file”:“/home/nextcloud/public_html/console.php”,“line”:28,“args”:[“/home/nextcloud/public_html/lib/base.php”],“function”:“require_once”},{“file”:“/home/nextcloud/public_html/occ”,“line”:11,“args”:[“/home/nextcloud/public_html/console.php”],“function”:“require_once”}],“File”:“/home/nextcloud/public_html/apps/app_api/lib/Service/ProvidersAI/TextProcessingService.php”,“Line”:59,“message”:“Error during app service registration: array_map(): Argument #2 ($array) must be of type array, bool given”,“exception”:,“CustomMessage”:“Error during app service registration: array_map(): Argument #2 ($array) must be of type array, bool given”},“id”:“679a4153aceb1”}
Here a screen capture showing the error and frequency of the log being written:
From my limited understanding this could be from an app or service that is supplying a bool (true/false or similar) instead of an array. What is not clear to me is how to get more information, because if it is an app that is causing this error (more than likely), I don’t really know how to get more granular logs. So, even though this is a “Fatal” error I can still do everything on my Nextcloud instance without any noticeable problems or issues.
Any ideas or suggestions on how to proceed would be greatly appreciated!
Here follows some basic debug info about my Nextcloud server itself:
Server configuration detail
Operating system: Linux 6.8.12-1-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-1 (2024-08-05T16:17Z) x86_64
Webserver: Apache/2.4.62 (Debian) (apache2handler)
Database: mysql 10.11.6
PHP version: 8.2.26
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, exif, msgpack, mysqli, pdo_mysql, pdo_sqlite, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, memcached, Zend OPcache
Nextcloud version: 30.0.5 - 30.0.5.1
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: Tarball from official download site
Signing status
List of activated apps
Enabled:
- activity: 3.0.0
- admin_audit: 1.20.0
- app_api: 4.0.5
- audioplayer: 3.4.1
- bruteforcesettings: 3.0.0
- calendar: 5.0.9
- calendar_resource_management: 0.8.0
- circles: 30.0.0
- cloud_federation_api: 1.13.0
- collectives: 2.16.0
- comments: 1.20.1
- contacts: 6.1.3
- contactsinteraction: 1.11.0
- cookbook: 0.11.2
- dashboard: 7.10.0
- dav: 1.31.1
- deck: 1.14.3
- event_update_notification: 2.5.0
- external: 5.5.2
- federatedfilesharing: 1.20.0
- federation: 1.20.0
- files: 2.2.0
- files_3dmodelviewer: 0.0.15
- files_automatedtagging: 1.20.0
- files_confidential: 3.1.0
- files_downloadlimit: 3.0.0
- files_external: 1.22.0
- files_pdfviewer: 3.0.0
- files_reminders: 1.3.0
- files_retention: 1.19.0
- files_sharing: 1.22.0
- files_trashbin: 1.20.1
- files_versions: 1.23.0
- fileslibreofficeedit: 2.0.1
- firstrunwizard: 3.0.0
- gestion: 2.6.3
- groupfolders: 18.0.9
- impersonate: 1.17.1
- logreader: 3.0.0
- lookup_server_connector: 1.18.0
- maps: 1.5.0
- multiboards: 1.0.4
- news: 25.2.0
- 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
- serverinfo: 2.0.0
- settings: 1.13.0
- sharebymail: 1.20.0
- snappymail: 2.38.2
- spreed: 20.1.3
- support: 2.0.0
- survey_client: 2.0.0
- systemtags: 1.20.0
- text: 4.1.0
- theming: 2.5.0
- twofactor_backupcodes: 1.19.0
- 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:
- encryption
- suspicious_login
- twofactor_nextcloud_notification
- twofactor_totp
- user_ldap
Configuration (config/config.php)
{
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"nextcloud.mydomain.net",
"nextcloud-prod.local",
"nextcloud.local"
],
"default_phone_region": "GB",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "30.0.5.1",
"overwrite.cli.url": "http:\/\/nextcloud.mydomain.net",
"overwriteprotocol": "https",
"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": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "25",
"filelocking.enabled": true,
"memcache.locking": "\\OC\\Memcache\\Memcached",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379,
"timeout": 0,
"password": "***REMOVED SENSITIVE VALUE***"
},
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.distributed": "\\OC\\Memcache\\Memcached",
"memcached_servers": [
[
"127.0.0.1",
11211
]
],
"app_install_overwrite": [
"news",
"epubreader",
"maps",
"passman",
"epubviewer"
],
"maintenance": false,
"maintenance_window_start": 1,
"updater.release.channel": "stable",
"loglevel": 3,
"theme": ""
}
Cron Configuration: Array
(
[backgroundjobs_mode] => webcron
[lastcron] => 1738161301
)
External storages: yes
External storage configuration
+----------+-------------+----------+---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------+------------------+-------------------+-------+
| Mount ID | Mount Point | Storage | Authentication Type | Configuration | Options | Applicable Users | Applicable Groups | Type |
+----------+-------------+----------+---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------+------------------+-------------------+-------+
| 1 | /Jellyfin | SMB/CIFS | Login and password | host: "media.local", share: "media", root: "", domain: "", show_hidden: true, case_sensitive: true, check_acl: false, timeout: "", user: "jellyfin", password: "***" | | jan | | Admin |
+----------+-------------+----------+---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------+------------------+-------------------+-------+
Encryption: no
User-backends:
- OC\User\Database
Subscription:
- No valid subscription key set
Talk configuration:
STUN servers
TURN servers
- no custom server configured
Signaling servers (mode: default):
- SIP dialin is disabled
- SIP dialout is disabled
- no custom server configured
Recording servers:
- Recording is enabled
- Recording consent is set to “default”
- no recording server configured
Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36