# An exception occured while running the setup check: PDOException: SQLSTATE\[HY000\]

**URL:** <https://help.nextcloud.com/t/an-exception-occured-while-running-the-setup-check-pdoexception-sqlstate-hy000/218103>\
**Category:** ℹ️ Support\
**Tags:** nc28, docker, nc30, mariadb, unraid, ios, webdav\
**Created:** [February 22, 2025, 8:06am UTC](https://help.nextcloud.com/t/an-exception-occured-while-running-the-setup-check-pdoexception-sqlstate-hy000/218103 "2025-02-22T08:06:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dant123](https://help.nextcloud.com/letter_avatar/dant123/32/6_22734026db12803ebb3e059622ac3534.png) [@dant123](https://help.nextcloud.com/u/dant123)\
**Post date:** [February 22, 2025, 8:06am UTC](https://help.nextcloud.com/t/an-exception-occured-while-running-the-setup-check-pdoexception-sqlstate-hy000/218103/1 "2025-02-22T08:06:05Z")

</div>

## The Basics

- Nextcloud Server version: 30.0.6
- Operating system and version: Unraid 7.0.0
- Reverse proxy and version: Nginx Proxy Manager
- Is this the first time you’ve seen this error: Yes
- When did this problem seem to first start: A month or so ago
- Installation method: Unraid, LinuxServer’s Docker image
- Are you using CloudfIare, mod\_security, or similar: Yes, DDNS and DNS proxy

### Summary of the issue you are facing:

Noticed calendar and contacts apps in web access not loading their contents. Went to Administration Settings and saw error starting with:

`An exception occured while running the setup check: PDOException: SQLSTATE[HY000]: General error: 1030 Got error 1 "Operation not permitted" from storage engine InnoDB in /app/www/public/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php:71`

(along with a couple warnings that occ commands handled fine)

Checked my MariaDB container and no errors noted outside a log rotation being needed, which I handled.

Nextcloud is working otherwise, including mobile app and web file access, the actual syncing of contacts/calendar events to my iPhone, etc.  
Files are all accessed via external mounts to local storage/directories so is also unaffected.

I restored the oldest backup I had and issue was still present.

App template (docker compose equivalent) has not been touched since it was last working, so all database connection settings are the same.

### Log entries

#### Nextcloud

DbalException  
An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1030 Got error 1 “Operation not permitted” from storage engine InnoDB  
Exception running check OCA\Settings\SetupChecks\SchedulingTableSize: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1030 Got error 1 “Operation not permitted” from storage engine InnoDB

Basically, just the “An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1030 Got error 1 “Operation not permitted” from storage engine InnoDB” part preceded by the thing it attempted to run, and the application it ran for (no app in context, core, webdav, index).

### Configuration

#### Nextcloud

{  
“system”: {  
“datadirectory”: “_ **REMOVED SENSITIVE VALUE** _”,  
“instanceid”: “_ **REMOVED SENSITIVE VALUE** _”,  
“passwordsalt”: “_ **REMOVED SENSITIVE VALUE** _”,  
“secret”: “_ **REMOVED SENSITIVE VALUE** _”,  
“trusted\_domains”: [  
“[nextcloud.domain.com](http://nextcloud.domain.com)”  
],  
“dbtype”: “mysql”,  
“version”: “30.0.6.2”,  
“overwrite.cli.url”: “[https://nextcloud.domain.com](https://nextcloud.domain.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,  
“mail\_from\_address”: “_ **REMOVED SENSITIVE VALUE** _”,  
“mail\_smtpmode”: “smtp”,  
“mail\_sendmailmode”: “smtp”,  
“mail\_domain”: “_ **REMOVED SENSITIVE VALUE** _”,  
“mail\_smtpauth”: 1,  
“mail\_smtphost”: “_ **REMOVED SENSITIVE VALUE** _”,  
“mail\_smtpport”: “587”,  
“mail\_smtpname”: “_ **REMOVED SENSITIVE VALUE** _”,  
“mail\_smtppassword”: “_ **REMOVED SENSITIVE VALUE** _”,  
“filelocking.enabled”: true,  
“memcache.locking”: “\OC\Memcache\Redis”,  
“redis”: {  
“host”: “_ **REMOVED SENSITIVE VALUE** _”,  
“port”: 6379,  
“timeout”: 0,  
“password”: “_ **REMOVED SENSITIVE VALUE** _”  
},  
“memcache.local”: “\OC\Memcache\APCu”,  
“upgrade.disable-web”: true,  
“default\_phone\_region”: “US”,  
“maintenance”: false,  
“loglevel”: 2,  
“maintenance\_window\_start”: 1  
}  
}

#### Apps

Enabled:

- activity: 3.0.0
- app\_api: 4.0.6
- bruteforcesettings: 3.0.0
- calendar: 5.1.0
- cloud\_federation\_api: 1.13.0
- contacts: 7.0.0
- dav: 1.31.1
- event\_update\_notification: 2.6.1
- federatedfilesharing: 1.20.0
- files: 2.2.0
- files\_downloadlimit: 3.0.0
- files\_external: 1.22.0
- files\_pdfviewer: 3.0.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
- nextcloud\_announcements: 2.0.0
- notes: 4.11.0
- notifications: 3.0.0
- oauth2: 1.18.1
- 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
- text: 4.1.0
- theming: 2.6.0
- twofactor\_backupcodes: 1.19.0
- twofactor\_nextcloud\_notification: 4.0.0
- updatenotification: 1.20.0
- viewer: 3.0.0
- webhook\_listeners: 1.1.0-dev
- workflowengine: 2.12.0  
Disabled:
- admin\_audit: 1.20.0
- backup: 1.4.0 (installed 1.4.0)
- camerarawpreviews: 0.8.6 (installed 0.8.6)
- circles: 30.0.0 (installed 28.0.0-dev)
- comments: 1.20.1 (installed 1.18.0)
- contactsinteraction: 1.11.0 (installed 1.9.0)
- dashboard: 7.10.0 (installed 7.8.0)
- encryption: 2.18.0
- federation: 1.20.0 (installed 1.18.0)
- files\_fulltextsearch: 30.0.0 (installed 30.0.0)
- files\_reminders: 1.3.0 (installed 1.1.0)
- files\_snapshots: 1.0.10 (installed 1.0.10)
- fulltextsearch: 30.0.0 (installed 30.0.0)
- password\_policy: 2.0.0 (installed 1.18.0)
- support: 2.0.0 (installed 1.11.0)
- survey\_client: 2.0.0 (installed 1.16.0)
- suspicious\_login: 8.0.0
- systemtags: 1.20.0 (installed 1.18.0)
- tasks: 0.16.1 (installed 0.16.1)
- thesearchpage: 1.2.8 (installed 1.2.8)
- transfer: 0.6.3 (installed 0.6.3)
- twofactor\_totp: 12.0.0-dev
- user\_ldap: 1.21.0
- user\_status: 1.10.0 (installed 1.8.1)
- weather\_status: 1.10.0 (installed 1.8.0)

---

<div class="post-metadata">

**Author:** ![jtr](https://help.nextcloud.com/letter_avatar/jtr/32/6_22734026db12803ebb3e059622ac3534.png) [@jtr](https://help.nextcloud.com/u/jtr)\
**Post date:** [February 24, 2025, 7:24pm UTC](https://help.nextcloud.com/t/an-exception-occured-while-running-the-setup-check-pdoexception-sqlstate-hy000/218103/2 "2025-02-24T19:24:21Z")

</div>

The check that is failing for you is a fairly simple query against the `schedulingobjects` table:

> <https://github.com/nextcloud/server/blob/03ba09241926801733113d8225d64909712e2e6f/apps/settings/lib/SetupChecks/SchedulingTableSize.php#L34>

Couple ideas:

- What version of MariaDB?
- Anything special about the history of the database? Has it been restored or moved before?

---

<div class="post-metadata">

**Author:** ![dant123](https://help.nextcloud.com/letter_avatar/dant123/32/6_22734026db12803ebb3e059622ac3534.png) [@dant123](https://help.nextcloud.com/u/dant123)\
**Post date:** [February 24, 2025, 8:03pm UTC](https://help.nextcloud.com/t/an-exception-occured-while-running-the-setup-check-pdoexception-sqlstate-hy000/218103/3 "2025-02-24T20:03:55Z")

</div>

The container logs for MariaDB show this:

[Linuxserver.io](http://Linuxserver.io) version: 11.4.4-r1-ls174  
Build-date: 2025-02-18T07:42:37+00:00

No changes made to the database as far as I’m aware, and logs don’t show any errors. All I see after it starts is:

[custom-init] No custom files found, skipping…  
UMASK corrected from 022 to 0640 …  
250224 00:28:37 mysqld\_safe Logging to ‘/config/log/mysql/mariadb-error.log’.  
250224 00:28:37 mysqld\_safe Starting mariadbd daemon with databases from /config/databases  
Logrotate is enabled  
[ls.io-init] done.

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [May 25, 2025, 8:04pm UTC](https://help.nextcloud.com/t/an-exception-occured-while-running-the-setup-check-pdoexception-sqlstate-hy000/218103/4 "2025-05-25T20:04:06Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
