Nextcloud version (eg, 30.0.1): 30.0.1
Operating system and version (eg, Ubuntu 24.04): Debian 12
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.62 (Debian)
PHP version (eg, 8.3): PHP 8.2.24
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): YES
Steps to replicate it:
- Install passwords-app
- look at log files
- the error is displayed
The output of your Nextcloud log in Admin > Logging:
Erreur core
TypeError
OCA\Passwords\Db\AbstractMapper::findAllByField(): Argument #3 ($type) must be of type int, string given, called in /var/www/nextcloud/apps/passwords/lib/Db/PasswordMapper.php on line 30
Error while running background job OCA\Passwords\Cron\SynchronizeShares (id: 120993, arguments: null)
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"cloud.seeboxs.com",
"www.cloud.seeboxs.com"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "30.0.1.2",
"overwrite.cli.url": "https:\/\/cloud.seeboxs.com",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"default_phone_region": "FR",
"htaccess.RewriteBase": "\/",
"trashbin_retention_obligation": "auto, 30",
"filelocking.enabled": "true",
"knowledgebaseenabled": false,
"activity_expire_days": 7,
"skeletondirectory": "\/var\/www\/extra_nextcloud\/skeleton\/",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": "0",
"timeout": "0.0"
},
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"mail_smtpmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpauth": 1,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"default_language": "fr",
"default_locale": "fr_FR",
"updater.release.channel": "stable",
"maintenance_window_start": 1,
"maintenance": false,
"integrity.check.disabled": false,
"enable_previews": true,
"enabledPreviewProviders": {
"1": "OC\\Preview\\BMP",
"2": "OC\\Preview\\GIF",
"3": "OC\\Preview\\JPEG",
"4": "OC\\Preview\\Krita",
"5": "OC\\Preview\\MarkDown",
"6": "OC\\Preview\\MP3",
"7": "OC\\Preview\\OpenDocument",
"8": "OC\\Preview\\PNG",
"9": "OC\\Preview\\TXT",
"10": "OC\\Preview\\XBitmap",
"11": "OC\\Preview\\Image",
"12": "OC\\Preview\\HEIC",
"13": "OC\\Preview\\TIFF",
"14": "OC\\Preview\\Movie",
"15": "OC\\Preview\\MP4",
"16": "OC\\Preview\\PDF"
},
"preview_max_x": 1024,
"preview_max_y": 1024,
"preview_concurrency_all": 16,
"preview_concurrency_new": 8,
"preview_max_filesize_image": 200,
"preview_max_memory": -1,
"preview_ffmpeg_path": "\/usr\/bin\/ffmpeg",
"theme": "",
"defaultapp": "",
"loglevel": 2,
"updatechecker": true,
"has_internet_connection": true,
"app_install_overwrite": [
"twofactor_email",
"otpmanager",
"socialsharing_facebook",
"maps",
]
}
}
The output of your Apache/system log in /var/log/____
:
[Wed Oct 23 00:00:01.176605 2024] [remoteip:notice] [pid 801:tid 801] AH03492: RemoteIPProxyProtocol: enabled on 0.0.0.0:443
[Wed Oct 23 00:00:01.176757 2024] [mpm_prefork:notice] [pid 801:tid 801] AH00163: Apache/2.4.62 (Debian) OpenSSL/3.0.14 configured -- resuming normal operations
[Wed Oct 23 00:00:01.176763 2024] [core:notice] [pid 801:tid 801] AH00094: Command line: '/usr/sbin/apache2'
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
{"reqId":"r3AVZQucgPe9pDSRyCWw","level":3,"time":"2024-10-23T07:00:02+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job OCA\\Passwords\\Cron\\SynchronizeShares (id: 120993, arguments: null)","userAgent":"--","version":"30.0.1.2","exception":{"Exception":"TypeError","Message":"OCA\\Passwords\\Db\\AbstractMapper::findAllByField(): Argument #3 ($type) must be of type int, string given, called in /var/www/nextcloud/apps/passwords/lib/Db/PasswordMapper.php on line 30","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/passwords/lib/Db/PasswordMapper.php","line":30,"function":"findAllByField","class":"OCA\\Passwords\\Db\\AbstractMapper","type":"->"},{"file":"/var/www/nextcloud/apps/passwords/lib/Services/Object/PasswordService.php","line":72,"function":"findAllShared","class":"OCA\\Passwords\\Db\\PasswordMapper","type":"->"},{"file":"/var/www/nextcloud/apps/passwords/lib/Cron/SynchronizeShares.php","line":267,"function":"findShared","class":"OCA\\Passwords\\Services\\Object\\PasswordService","type":"->"},{"file":"/var/www/nextcloud/apps/passwords/lib/Cron/SynchronizeShares.php","line":84,"function":"removeSharedAttribute","class":"OCA\\Passwords\\Cron\\SynchronizeShares","type":"->"},{"file":"/var/www/nextcloud/apps/passwords/lib/Cron/AbstractTimedJob.php","line":59,"function":"runJob","class":"OCA\\Passwords\\Cron\\SynchronizeShares","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":61,"function":"run","class":"OCA\\Passwords\\Cron\\AbstractTimedJob","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":83,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":73,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":162,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/apps/passwords/lib/Db/AbstractMapper.php","Line":179,"message":"Error while running background job OCA\\Passwords\\Cron\\SynchronizeShares (id: 120993, arguments: null)","exception":{},"CustomMessage":"Error while running background job OCA\\Passwords\\Cron\\SynchronizeShares (id: 120993, arguments: null)"}}
{"reqId":"umh4LyIXmbvUvydSwEwE","level":3,"time":"2024-10-23T09:05:02+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job OCA\\Passwords\\Cron\\SynchronizeShares (id: 120993, arguments: null)","userAgent":"--","version":"30.0.1.2","exception":{"Exception":"TypeError","Message":"OCA\\Passwords\\Db\\AbstractMapper::findAllByField(): Argument #3 ($type) must be of type int, string given, called in /var/www/nextcloud/apps/passwords/lib/Db/PasswordMapper.php on line 30","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/passwords/lib/Db/PasswordMapper.php","line":30,"function":"findAllByField","class":"OCA\\Passwords\\Db\\AbstractMapper","type":"->"},{"file":"/var/www/nextcloud/apps/passwords/lib/Services/Object/PasswordService.php","line":72,"function":"findAllShared","class":"OCA\\Passwords\\Db\\PasswordMapper","type":"->"},{"file":"/var/www/nextcloud/apps/passwords/lib/Cron/SynchronizeShares.php","line":267,"function":"findShared","class":"OCA\\Passwords\\Services\\Object\\PasswordService","type":"->"},{"file":"/var/www/nextcloud/apps/passwords/lib/Cron/SynchronizeShares.php","line":84,"function":"removeSharedAttribute","class":"OCA\\Passwords\\Cron\\SynchronizeShares","type":"->"},{"file":"/var/www/nextcloud/apps/passwords/lib/Cron/AbstractTimedJob.php","line":59,"function":"runJob","class":"OCA\\Passwords\\Cron\\SynchronizeShares","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":61,"function":"run","class":"OCA\\Passwords\\Cron\\AbstractTimedJob","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":83,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":73,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":162,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/nextcloud/apps/passwords/lib/Db/AbstractMapper.php","Line":179,"message":"Error while running background job OCA\\Passwords\\Cron\\SynchronizeShares (id: 120993, arguments: null)","exception":{},"CustomMessage":"Error while running background job OCA\\Passwords\\Cron\\SynchronizeShares (id: 120993, arguments: null)"}}
since the upgrade to Nextcloud Hub9 version 30.0.1 this error appears from time to time, Thank you for your help