[Bug]: Dashboard Recent Activity not updating - Has become stagnated...
⚠️ This issue respects the following points: ⚠️
- [x] This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
- [x] This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
- [x] I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
- [x] I agree to follow Nextcloud's Code of Conduct.
- [x] I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description
I was running "[Nextcloud Hub 26 Spring] (34.0.3)", and I have noticed that the Dashboard “Recent Activity” display is not updating, whilst the “All Activities” page is UpToDate.
I upgraded Nextcloud to "[Hub 26 Spring] (35.0.0)" hoping that it would solve the problem, but unfortunately it did not, so I installed Dashlink to have something different on the Dashboard.
Cron is run every 10 minutes from the host server, as my Nextcloud is running in a container.
If I enable “Recent activity” it just shows items that occurred when I upgraded, and no more, even though I have deleted items etc…
Dashboard is Version 8.0.0-dev.0.
The previous messages are still showing, and the new ones from when I did the upgrade.
It has not updated since.
Just to note that my development system is having the same issue.
Steps to reproduce
I would not know how to reproduce this issue, but "[tflidd Community leader] on the community support site is also having the same issue. 2. 3.
Expected behavior
I expect that the dashboard activity display would update as per the Activity Page.
Nextcloud Server version
35
Operating system
Other
PHP engine version
PHP 8.5
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 31 to 32)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- [x] Default user-backend (database)
- [x] LDAP/ Active Directory
- [ ] SSO - SAML
- [x] Other
Configuration report
{
"system": {
"htaccess.RewriteBase": "\/",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache_customprefix": "nxc-",
"redis.cluster": {
"seeds": "***REMOVED SENSITIVE VALUE***"
},
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"upgrade.disable-web": true,
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"serverid": 1,
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***",
],
"overwriteprotocol": "https",
"allowed_admin_ranges": [
"***REMOVED SENSITIVE VALUE***",
"***REMOVED SENSITIVE VALUE***"
],
"has_internet_connection": false,
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "35.0.0.10",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"instanceid": "***REMOVED SENSITIVE VALUE***",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"config_preset": 3,
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "25",
"mail_sendmailmode": "smtp",
"mail_smtpstreamoptions": {
"ssl": {
"allow_self_signed": true,
"verify_peer": false,
"verify_peer_name": false
}
},
"maintenance_window_start": 1,
"default_phone_region": "GB",
"forbidden_filename_basenames": [
"con",
"prn",
"aux",
"nul",
"com0",
"com1",
"com2",
"com3",
"com4",
"com5",
"com6",
"com7",
"com8",
"com9",
"com\u00b9",
"com\u00b2",
"com\u00b3",
"lpt0",
"lpt1",
"lpt2",
"lpt3",
"lpt4",
"lpt5",
"lpt6",
"lpt7",
"lpt8",
"lpt9",
"lpt\u00b9",
"lpt\u00b2",
"lpt\u00b3"
],
"forbidden_filename_characters": [
"<",
">",
":",
"\"",
"|",
"?",
"*",
"\\",
"\/"
],
"forbidden_filename_extensions": [
" ",
".",
".filepart",
".part"
],
"maintenance": false,
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"loglevel": 2,
"app_install_overwrite": []
}
}
List of activated Apps
Enabled:
- activity: 8.0.0
- admin_audit: 2.0.0-dev.0
- app_api: 35.0.0
- appstore: 2.0.0-dev.0
- bruteforcesettings: 8.0.0
- circles: 35.0.0
- cloud_federation_api: 2.0.0-dev.0
- comments: 2.0.0-dev.0
- contactsinteraction: 2.0.0-dev.0
- dashboard: 8.0.0-dev.0
- dashlink: 1.3.0
- dav: 2.0.0-dev.1
- federatedfilesharing: 2.0.0-dev.1
- federation: 2.0.0-dev.0
- files: 3.0.0-dev.0
- files_downloadlimit: 5.3.0
- files_external: 2.0.0-dev.0
- files_lock: 35.0.0
- files_pdfviewer: 8.0.0
- files_reminders: 2.0.0-dev.0
- files_sharing: 2.0.0-dev.1
- files_trashbin: 2.0.0-dev.0
- files_versions: 2.0.0-dev.0
- firstrunwizard: 8.0.0
- logreader: 8.0.0
- lookup_server_connector: 2.0.0-dev.0
- netbase: 0.7.0
- nextcloud_announcements: 7.0.0
- notifications: 8.0.0
- oauth2: 2.0.0-dev.0
- office: 1.1.0
- password_policy: 7.0.0
- photos: 8.0.0
- privacy: 7.0.0
- profile: 2.0.0-dev.0
- provisioning_api: 2.0.0-dev.0
- recommendations: 8.0.0
- related_resources: 6.0.0
- richdocuments: 12.0.0
- serverinfo: 7.0.0
- settings: 2.0.0-dev.0
- sharebymail: 2.0.0-dev.0
- sharing: 1.0.4
- support: 7.0.0
- survey_client: 7.0.0
- systemtags: 2.0.0-dev.0
- text: 9.0.0
- theming: 3.0.0-dev.0
- twofactor_backupcodes: 2.0.0-dev.0
- twofactor_totp: 17.1.0
- updatenotification: 2.0.0-dev.0
- user_ldap: 2.0.0-dev.0
- user_status: 2.0.0-dev.0
- viewer: 8.0.0
- weather_status: 2.0.0-dev.0
- webhook_listeners: 2.0.0-dev.0
- workflowengine: 3.0.0-dev.0
Disabled:
- encryption: 3.0.0-dev.0
- suspicious_login: 13.0.0
- twofactor_nextcloud_notification: 9.0.0
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
I am afraid logs are purged every other day.
Additional info
I have tried all different browsers from DuckDuckGo, to Mozilla, and Edge with the same results.
🔍 Root Cause Analysis:
The error reported in [Bug]: Dashboard Recent Activity not updating - Has become stagnated... corresponds to MySQL / MariaDB Error 1040 (ER_CON_COUNT_ERROR: Too many connections). Active incoming client connections have saturated the server's configured connection ceiling.
1. Root Cause Breakdown:
- Exhaustion of
max_connections: The total active client sessions reached themax_connectionsthreshold (default is typically 151 in MySQL). - Application Connection Pooling Leaks: Microservices or serverless functions (e.g. AWS Lambda / Cloud Run) creating unpooled direct database connections per request without reusing connections or closing idle sessions.
- Lingering Idle Connections (
wait_timeout): High default timeouts (wait_timeout = 28800, i.e., 8 hours) retain dead or abandoned TCP sockets inSleepstate, consuming connection slots indefinitely. - Slow Queries Blocking Threads: Long-running queries holding locks keep downstream workers queued up, causing client pools to rapidly spin up new connections to compensate.
2. Recommended Production Configuration:
Fix 1: Adjust MySQL / MariaDB Connection Limits & Timeouts
Update /etc/mysql/my.cnf (or /etc/my.cnf.d/server.cnf on MariaDB):
[mysqld]
# Scale connection ceiling based on allocated RAM (each connection reserves thread_stack + buffers)
max_connections = 500
max_user_connections = 450
# Aggressively reclaim abandoned or sleeping client connections (seconds)
wait_timeout = 60
interactive_timeout = 60
# Cache threads to avoid thread creation overhead under burst traffic
thread_cache_size = 64
# MariaDB-specific: Enable high-performance Thread Pool
# thread_handling = pool-of-threads
# thread_pool_size = 16
Apply immediately at runtime without restarting the server:
SET GLOBAL max_connections = 500;
SET GLOBAL wait_timeout = 60;
SET GLOBAL interactive_timeout = 60;
Fix 2: Dedicated Administrator Port (MySQL 8.0+)
Prevent administrator lockout when all connections are exhausted:
[mysqld]
admin_address = 127.0.0.1
admin_port = 33062
create_admin_listener_thread = 1
Fix 3: Implement Proper Connection Pooling
In application frameworks (e.g. Node.js / Python / Go), ensure connection pool maximums are capped and idle timeouts are configured:
// Example: Node.js mysql2 pool configuration
import mysql from 'mysql2/promise';
const pool = mysql.createPool({
host: process.env.DB_HOST,
user: process.env.DB_USER,
password: process.env.DB_PASSWORD,
database: process.env.DB_NAME,
waitForConnections: true,
connectionLimit: 25, // Restrict per-instance pool size
queueLimit: 0,
enableKeepAlive: true,
keepAliveInitialDelay: 10000,
});
Diagnostics:
Check current connection utilization and active queries:
SHOW GLOBAL STATUS LIKE 'Max_used_connections';
SHOW GLOBAL STATUS LIKE 'Threads_connected';
SELECT user, host, db, command, time, state, info FROM information_schema.processlist WHERE command != 'Sleep' ORDER BY time DESC;
Eng. MHD. Shadi AL-Hasan
Executive CTO & Enterprise Solutions Architect
GitHub Profile | Contact & Portfolio
I see the same thing with NC 33.0.9 and 35.0.1, last activity from today: 15 days ago.
The 35.0.0RC4 update was run on Sep 10th (more than 15 days). The next update was later on September 30th, no updates in between of the NC system. So it is not linked to that. The last activity noted was some added share, when I share again something, the list gets updated. So it seems for me that there is a strange filter of what kind of activities are shown (in my case).
Weirdly, I restarted my containers, and the dashboard activity has changed, but still old events.
That is interesting because I am running a 3 node Mariadb cluster via a HAProxy configured in "leastconn" method. This is on both my production, and development systems, and they are not very heavily used.
I will review and apply your database recommendations, and see how it goes from there...
I have added the following to my.cnf files. The max connections was already set to 1000. I did add the recommended "Nextcloud extras" as shown below when I first installed the system. My container architecture has been running flawlessly for over 4 years now, and just introduced Nextcloud / Collabora at the beginning of August. I had a two node Redis Primary and Secondary for my website, but I have now introduced a Redis Cluster which Nextcloud also uses.
The containers all have healthchecks configured in their run configurations, and the mariadb cluster nodes all have the following healthcheck.
--health-cmd 'mysql -u user -ppassword -e "select 1;"'
--health-interval 10s
--health-timeout 3s
--health-retries 3 \
An external cron job also executes every 10 minutes.
I restarted my database cluster, and the dashboard activity has not changed.
################### max_connections = 1000
NXC Activity Changes.
max_user_connections = 450 wait_timeout = 60 interactive_timeout = 60 thread_cache_size = 64
##Nextcloud extras slow_query_log = ON long_query_time = 2 innodb_log_file_size = 256M innodb_flush_log_at_trx_commit = 1 table_open_cache = 16000 ####################
I have now noticed the following trace:
{
"reqId": "9RN5w7d9tdwqNdFEXpaq",
"level": 2,
"time": "2026-10-01T17:20:57+00:00",
"remoteAddr": "",
"user": "--",
"app": "no app in context",
"method": "",
"url": "--",
"scriptName": "cron.php",
"message": "Exception during connectivity check, closing and reconnecting",
"userAgent": "--",
"version": "35.0.0.10",
"occ_command": [
"cron.php"
],
"exception": {
"Exception": "Doctrine\DBAL\Driver\PDO\Exception",
"Message": "SQLSTATE[HY000]: General error: 2006 MySQL server has gone away",
"Code": 2006,
"Trace": [
{
"file": "/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php",
"line": 76,
"function": "new",
"class": "Doctrine\DBAL\Driver\PDO\Exception",
"type": "::",
"args": [
{
"class": "PDOException",
"errorInfo": [
"HY000",
2006,
"MySQL server has gone away"
]
}
]
},
{
"file": "/var/www/html/3rdparty/doctrine/dbal/src/Driver/Middleware/AbstractConnectionMiddleware.php",
"line": 33,
"function": "query",
"class": "Doctrine\DBAL\Driver\PDO\Connection",
"type": "->",
"args": [
"SELECT 1"
]
},
{
"file": "/var/www/html/lib/private/DB/Middleware/ConnectionActivityConnection.php",
"line": 46,
"function": "query",
"class": "Doctrine\DBAL\Driver\Middleware\AbstractConnectionMiddleware",
"type": "->",
"args": [
"SELECT 1"
]
},
{
"file": "/var/www/html/lib/private/DB/Connection.php",
"line": 919,
"function": "query",
"class": "OC\DB\Middleware\ConnectionActivityConnection",
"type": "->",
"args": [
"SELECT 1"
]
},
{
"file": "/var/www/html/lib/private/DB/Connection.php",
"line": 219,
"function": "reconnectIfNeeded",
"class": "OC\DB\Connection",
"type": "->",
"args": []
},
{
"file": "/var/www/html/3rdparty/doctrine/dbal/src/Connection.php",
"line": 1692,
"function": "connect",
"class": "OC\DB\Connection",
"type": "->",
"args": []
},
{
"file": "/var/www/html/3rdparty/doctrine/dbal/src/Connection.php",
"line": 1195,
"function": "getWrappedConnection",
"class": "Doctrine\DBAL\Connection",
"type": "->",
"args": []
},
{
"file": "/var/www/html/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php",
"line": 292,
"function": "executeStatement",
"class": "Doctrine\DBAL\Connection",
"type": "->",
"args": [
"UPDATE oc_jobs SET execution_duration = :dcValue1, reserved_at = :dcValue2 WHERE id = :dcValue3",
{
"dcValue1": 55,
"dcValue2": 0,
"dcValue3": "127178319782223873"
},
{
"dcValue1": 1,
"dcValue2": 1,
"dcValue3": 2
}
]
},
{
"file": "/var/www/html/lib/private/DB/Connection.php",
"line": 477,
"function": "executeStatement",
"class": "Doctrine\DBAL\Connections\PrimaryReadReplicaConnection",
"type": "->",
"args": [
"UPDATE oc_jobs SET execution_duration = :dcValue1, reserved_at = :dcValue2 WHERE id = :dcValue3",
{
"dcValue1": 55,
"dcValue2": 0,
"dcValue3": "127178319782223873"
},
{
"dcValue1": 1,
"dcValue2": 1,
"dcValue3": 2
}
]
},
{
"file": "/var/www/html/lib/private/DB/ConnectionAdapter.php",
"line": 77,
"function": "executeStatement",
"class": "OC\DB\Connection",
"type": "->",
"args": [
"UPDATE oc_jobs SET execution_duration = :dcValue1, reserved_at = :dcValue2 WHERE id = :dcValue3",
{
"dcValue1": 55,
"dcValue2": 0,
"dcValue3": "127178319782223873"
},
{
"dcValue1": 1,
"dcValue2": 1,
"dcValue3": 2
}
]
},
{
"file": "/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php",
"line": 280,
"function": "executeStatement",
"class": "OC\DB\ConnectionAdapter",
"type": "->",
"args": [
"UPDATE *PREFIX*jobs SET execution_duration = :dcValue1, reserved_at = :dcValue2 WHERE id = :dcValue3",
{
"dcValue1": 55,
"dcValue2": 0,
"dcValue3": "127178319782223873"
},
{
"dcValue1": 1,
"dcValue2": 1,
"dcValue3": 2
}
]
},
{
"file": "/var/www/html/lib/private/BackgroundJob/JobList.php",
"line": 388,
"function": "executeStatement",
"class": "OC\DB\QueryBuilder\QueryBuilder",
"type": "->",
"args": []
},
{
"file": "/var/www/html/lib/public/BackgroundJob/Job.php",
"line": 55,
"function": "setExecutionTime",
"class": "OC\BackgroundJob\JobList",
"type": "->",
"args": [
{
"class": "OCA\NetBase\BackgroundJob\ListenJob"
},
55
]
},
{
"file": "/var/www/html/lib/public/BackgroundJob/TimedJob.php",
"line": 87,
"function": "start",
"class": "OCP\BackgroundJob\Job",
"type": "->",
"args": [
{
"class": "OC\BackgroundJob\JobList"
}
]
},
{
"file": "/var/www/html/core/Service/CronService.php",
"line": 204,
"function": "start",
"class": "OCP\BackgroundJob\TimedJob",
"type": "->",
"args": [
{
"class": "OC\BackgroundJob\JobList"
}
]
},
{
"file": "/var/www/html/core/Service/CronService.php",
"line": 107,
"function": "runCli",
"class": "OC\Core\Service\CronService",
"type": "->",
"args": [
"cron",
null
]
},
{
"file": "/var/www/html/cron.php",
"line": 52,
"function": "run",
"class": "OC\Core\Service\CronService",
"type": "->",
"args": [
null
]
}
],
"File": "/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php",
"Line": 24,
"Previous": {
"Exception": "PDOException",
"Message": "SQLSTATE[HY000]: General error: 2006 MySQL server has gone away",
"Code": "HY000",
"Trace": [
{
"file": "/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php",
"line": 71,
"function": "query",
"class": "PDO",
"type": "->",
"args": [
"SELECT 1"
]
},
{
"file": "/var/www/html/3rdparty/doctrine/dbal/src/Driver/Middleware/AbstractConnectionMiddleware.php",
"line": 33,
"function": "query",
"class": "Doctrine\DBAL\Driver\PDO\Connection",
"type": "->",
"args": [
"SELECT 1"
]
},
{
"file": "/var/www/html/lib/private/DB/Middleware/ConnectionActivityConnection.php",
"line": 46,
"function": "query",
"class": "Doctrine\DBAL\Driver\Middleware\AbstractConnectionMiddleware",
"type": "->",
"args": [
"SELECT 1"
]
},
{
"file": "/var/www/html/lib/private/DB/Connection.php",
"line": 919,
"function": "query",
"class": "OC\DB\Middleware\ConnectionActivityConnection",
"type": "->",
"args": [
"SELECT 1"
]
},
{
"file": "/var/www/html/lib/private/DB/Connection.php",
"line": 219,
"function": "reconnectIfNeeded",
"class": "OC\DB\Connection",
"type": "->",
"args": []
},
{
"file": "/var/www/html/3rdparty/doctrine/dbal/src/Connection.php",
"line": 1692,
"function": "connect",
"class": "OC\DB\Connection",
"type": "->",
"args": []
},
{
"file": "/var/www/html/3rdparty/doctrine/dbal/src/Connection.php",
"line": 1195,
"function": "getWrappedConnection",
"class": "Doctrine\DBAL\Connection",
"type": "->",
"args": []
},
{
"file": "/var/www/html/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php",
"line": 292,
"function": "executeStatement",
"class": "Doctrine\DBAL\Connection",
"type": "->",
"args": [
"UPDATE oc_jobs SET execution_duration = :dcValue1, reserved_at = :dcValue2 WHERE id = :dcValue3",
{
"dcValue1": 55,
"dcValue2": 0,
"dcValue3": "127178319782223873"
},
{
"dcValue1": 1,
"dcValue2": 1,
"dcValue3": 2
}
]
},
{
"file": "/var/www/html/lib/private/DB/Connection.php",
"line": 477,
"function": "executeStatement",
"class": "Doctrine\DBAL\Connections\PrimaryReadReplicaConnection",
"type": "->",
"args": [
"UPDATE oc_jobs SET execution_duration = :dcValue1, reserved_at = :dcValue2 WHERE id = :dcValue3",
{
"dcValue1": 55,
"dcValue2": 0,
"dcValue3": "127178319782223873"
},
{
"dcValue1": 1,
"dcValue2": 1,
"dcValue3": 2
}
]
},
{
"file": "/var/www/html/lib/private/DB/ConnectionAdapter.php",
"line": 77,
"function": "executeStatement",
"class": "OC\DB\Connection",
"type": "->",
"args": [
"UPDATE oc_jobs SET execution_duration = :dcValue1, reserved_at = :dcValue2 WHERE id = :dcValue3",
{
"dcValue1": 55,
"dcValue2": 0,
"dcValue3": "127178319782223873"
},
{
"dcValue1": 1,
"dcValue2": 1,
"dcValue3": 2
}
]
},
{
"file": "/var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php",
"line": 280,
"function": "executeStatement",
"class": "OC\DB\ConnectionAdapter",
"type": "->",
"args": [
"UPDATE *PREFIX*jobs SET execution_duration = :dcValue1, reserved_at = :dcValue2 WHERE id = :dcValue3",
{
"dcValue1": 55,
"dcValue2": 0,
"dcValue3": "127178319782223873"
},
{
"dcValue1": 1,
"dcValue2": 1,
"dcValue3": 2
}
]
},
{
"file": "/var/www/html/lib/private/BackgroundJob/JobList.php",
"line": 388,
"function": "executeStatement",
"class": "OC\DB\QueryBuilder\QueryBuilder",
"type": "->",
"args": []
},
{
"file": "/var/www/html/lib/public/BackgroundJob/Job.php",
"line": 55,
"function": "setExecutionTime",
"class": "OC\BackgroundJob\JobList",
"type": "->",
"args": [
{
"class": "OCA\NetBase\BackgroundJob\ListenJob"
},
55
]
},
{
"file": "/var/www/html/lib/public/BackgroundJob/TimedJob.php",
"line": 87,
"function": "start",
"class": "OCP\BackgroundJob\Job",
"type": "->",
"args": [
{
"class": "OC\BackgroundJob\JobList"
}
]
},
{
"file": "/var/www/html/core/Service/CronService.php",
"line": 204,
"function": "start",
"class": "OCP\BackgroundJob\TimedJob",
"type": "->",
"args": [
{
"class": "OC\BackgroundJob\JobList"
}
]
},
{
"file": "/var/www/html/core/Service/CronService.php",
"line": 107,
"function": "runCli",
"class": "OC\Core\Service\CronService",
"type": "->",
"args": [
"cron",
null
]
},
{
"file": "/var/www/html/cron.php",
"line": 52,
"function": "run",
"class": "OC\Core\Service\CronService",
"type": "->",
"args": [
null
]
}
],
"File": "/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php",
"Line": 71
},
"message": "Exception during connectivity check, closing and reconnecting",
"exception": "{"class":"Doctrine\DBAL\Driver\PDO\Exception","message":"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","code":2006,"file":"/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php:24","trace":"
#0 /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php(76): Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))\n
#1 /var/www/html/3rdparty/doctrine/dbal/src/Driver/Middleware/AbstractConnectionMiddleware.php(33): Doctrine\DBAL\Driver\PDO\Connection->query('SELECT 1')\n
#2 /var/www/html/lib/private/DB/Middleware/ConnectionActivityConnection.php(46): Doctrine\DBAL\Driver\Middleware\AbstractConnectionMiddleware->query('SELECT 1')\n
#3 /var/www/html/lib/private/DB/Connection.php(919): OC\DB\Middleware\ConnectionActivityConnection->query('SELECT 1')\n
#4 /var/www/html/lib/private/DB/Connection.php(219): OC\DB\Connection->reconnectIfNeeded()\n
#5 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1692): OC\DB\Connection->connect()\n
#6 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1195): Doctrine\DBAL\Connection->getWrappedConnection()\n
#7 /var/www/html/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php(292): Doctrine\DBAL\Connection->executeStatement('UPDATE `oc_jobs...', Array, Array)\n
#8 /var/www/html/lib/private/DB/Connection.php(477): Doctrine\DBAL\Connections\PrimaryReadReplicaConnection->executeStatement('UPDATE `oc_jobs...', Array, Array)\n
#9 /var/www/html/lib/private/DB/ConnectionAdapter.php(77): OC\DB\Connection->executeStatement('UPDATE `oc_jobs...', Array, Array)\n
#10 /var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php(280): OC\DB\ConnectionAdapter->executeStatement('UPDATE `*PREFIX...', Array, Array)\n
#11 /var/www/html/lib/private/BackgroundJob/JobList.php(388): OC\DB\QueryBuilder\QueryBuilder->executeStatement()\n
#12 /var/www/html/lib/public/BackgroundJob/Job.php(55): OC\BackgroundJob\JobList->setExecutionTime(Object(OCA\NetBase\BackgroundJob\ListenJob), 55)\n
#13 /var/www/html/lib/public/BackgroundJob/TimedJob.php(87): OCP\BackgroundJob\Job->start(Object(OC\BackgroundJob\JobList))\n
#14 /var/www/html/core/Service/CronService.php(204): OCP\BackgroundJob\TimedJob->start(Object(OC\BackgroundJob\JobList))\n
#15 /var/www/html/core/Service/CronService.php(107): OC\Core\Service\CronService->runCli('cron', NULL)\n
#16 /var/www/html/cron.php(52): OC\Core\Service\CronService->run(NULL)\n
#17 {main}","previous":{"class":"PDOException","message":"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","code":"HY000","file":"/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php:71","trace":"
#0 /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php(71): PDO->query('SELECT 1')\n
#1 /var/www/html/3rdparty/doctrine/dbal/src/Driver/Middleware/AbstractConnectionMiddleware.php(33): Doctrine\DBAL\Driver\PDO\Connection->query('SELECT 1')\n
#2 /var/www/html/lib/private/DB/Middleware/ConnectionActivityConnection.php(46): Doctrine\DBAL\Driver\Middleware\AbstractConnectionMiddleware->query('SELECT 1')\n
#3 /var/www/html/lib/private/DB/Connection.php(919): OC\DB\Middleware\ConnectionActivityConnection->query('SELECT 1')\n
#4 /var/www/html/lib/private/DB/Connection.php(219): OC\DB\Connection->reconnectIfNeeded()\n
#5 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1692): OC\DB\Connection->connect()\n
#6 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(1195): Doctrine\DBAL\Connection->getWrappedConnection()\n
#7 /var/www/html/3rdparty/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php(292): Doctrine\DBAL\Connection->executeStatement('UPDATE `oc_jobs...', Array, Array)\n
#8 /var/www/html/lib/private/DB/Connection.php(477): Doctrine\DBAL\Connections\PrimaryReadReplicaConnection->executeStatement('UPDATE `oc_jobs...', Array, Array)\n
#9 /var/www/html/lib/private/DB/ConnectionAdapter.php(77): OC\DB\Connection->executeStatement('UPDATE `oc_jobs...', Array, Array)\n
#10 /var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php(280): OC\DB\ConnectionAdapter->executeStatement('UPDATE `*PREFIX...', Array, Array)\n
#11 /var/www/html/lib/private/BackgroundJob/JobList.php(388): OC\DB\QueryBuilder\QueryBuilder->executeStatement()\n
#12 /var/www/html/lib/public/BackgroundJob/Job.php(55): OC\BackgroundJob\JobList->setExecutionTime(Object(OCA\NetBase\BackgroundJob\ListenJob), 55)\n
#13 /var/www/html/lib/public/BackgroundJob/TimedJob.php(87): OCP\BackgroundJob\Job->start(Object(OC\BackgroundJob\JobList))\n
#14 /var/www/html/core/Service/CronService.php(204): OCP\BackgroundJob\TimedJob->start(Object(OC\BackgroundJob\JobList))\n
#15 /var/www/html/core/Service/CronService.php(107): OC\Core\Service\CronService->runCli('cron', NULL)\n
#16 /var/www/html/cron.php(52): OC\Core\Service\CronService->run(NULL)\n
#17 {main}"}}", "CustomMessage": "Exception during connectivity check, closing and reconnecting" }, "id": "6abe97658bbd1" }
The timings in the logs looks very much like the cron job is having a problem. Same logging in the development system.
I stopped cron, and the Exception error stopped. Restarted cron job, and error returned.
Exactly the same on the development system, and no one is logged into either system apart from the admin user. No real activity occurring...
7. I see the same thing with NC 33.0.9 and 35.0.1, last activity from today: 15 days ago. The 35.0.0RC4 update was run on Sep 10th (more than 15 days). The next update was later on September 30th, no updates in between of the NC system. So it is not linked to that. The last activity noted was some added share, when I share again something, the list gets updated. So it seems for me that there is a strange filter of what kind of activities are shown (in my case).
I can confirm that I can update activities. It seem to be a filter that catches only activities triggered by other users.