# Internal Server Error when first install

**URL:** <https://help.nextcloud.com/t/internal-server-error-when-first-install/25298>\
**Category:** ℹ️ Support\
**Tags:** centos\
**Created:** [January 2, 2018, 3:10am UTC](https://help.nextcloud.com/t/internal-server-error-when-first-install/25298 "2018-01-02T03:10:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ping\_wang](https://help.nextcloud.com/letter_avatar/ping_wang/32/6_22734026db12803ebb3e059622ac3534.png) [@ping\_wang](https://help.nextcloud.com/u/ping_wang)\
**Post date:** [January 2, 2018, 3:10am UTC](https://help.nextcloud.com/t/internal-server-error-when-first-install/25298/1 "2018-01-02T03:10:16Z")

</div>

I try to run the latest version(12.0.4) on my vps for the first time, the system is CentOS6.5,LNMP  
when I visit the host, and create admin ,click finish  
I got this internal server error:  
Internal Server Error

The server encountered an internal error and was unable to complete your request.  
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.  
More details can be found in the server log.

Technical details

Remote Address: 221.226.92.66  
Request ID: 2qrxNDGPBFpgZ0Y61k7w

The service log as follow:

{“reqId”:“SlwVpDWVR73hkVSKbYvk”,“level”:3,“time”:“2018-01-01T08:53:23+00:00”,“remoteAddr”:“58.217.142.75”,“user”:“–”,“app”:“index”,“method”:“POST”,“url”:“/index.php”,“message”:"Exception: {"Exception":"Doctrine\\DBAL\\Exception\\DriverException","Message":"An exception occurred while executing ‘CREATE TABLE `oc_addressbooks` (`id` BIGINT UNSIGNED AUTO\_INCREMENT NOT NULL, `principaluri` VARCHAR(255) DEFAULT NULL, `displayname` VARCHAR(255) DEFAULT NULL, `uri` VARCHAR(255) DEFAULT NULL, `description` VARCHAR(255) DEFAULT NULL, `synctoken` INT UNSIGNED DEFAULT 1 NOT NULL, UNIQUE INDEX addressbook\_index (`principaluri`, `uri`), PRIMARY KEY(`id`)) DEFAULT CHARACTER SET utf8 COLLATE utf8\_bin ENGINE = InnoDB’:\n\nSQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes","Code":0,"Trace":"#0 \/usr\/local\/nginx\/html\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php(128): Doctrine\\DBAL\\Driver\\AbstractMySQLDriver-\>convertException(‘An exception oc…’, Object(Doctrine\\DBAL\\Driver\\PDOException))\n#1 \/usr\/local\/nginx\/html\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php(964): Doctrine\\DBAL\\DBALException::driverExceptionDuringQuery(Object(Doctrine\\DBAL\\Driver\\PDOMySql\\Driver), Object(Doctrine\\DBAL\\Driver\\PDOException), ‘CREATE TABLE `o...')\\n#2 \\\/usr\\\/local\\\/nginx\\\/html\\\/nextcloud\\\/lib\\\/private\\\/DB\\\/MDB2SchemaManager.php(162): Doctrine\\\\DBAL\\\\Connection->query('CREATE TABLE `o…’)\n#3 \/usr\/local\/nginx\/html\/nextcloud\/lib\/private\/DB\/MDB2SchemaManager.php(72): OC\\DB\\MDB2SchemaManager-\>executeSchemaChange(Object(Doctrine\\DBAL\\Schema\\S

What can I do now?

---

<div class="post-metadata">

**Author:** ![mohanrao83](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mohanrao83/32/24066_2.png) [@mohanrao83](https://help.nextcloud.com/u/mohanrao83)\
**Post date:** [August 30, 2018, 7:23am UTC](https://help.nextcloud.com/t/internal-server-error-when-first-install/25298/2 "2018-08-30T07:23:34Z")

</div>

> [@ping\_wang](#):
>
> What can I do now?

r u resolve this issue if yes pls let me know how to resolve.

---

<div class="post-metadata">

**Author:** ![egillette](https://help.nextcloud.com/letter_avatar/egillette/32/6_22734026db12803ebb3e059622ac3534.png) [@egillette](https://help.nextcloud.com/u/egillette)\
**Post date:** [February 18, 2022, 7:59pm UTC](https://help.nextcloud.com/t/internal-server-error-when-first-install/25298/3 "2022-02-18T19:59:26Z")

</div>

I also have the same problem - if I install with SQLite, it works fine - if I try to use MySQL it fails with the same error as yours.

---

<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:** [September 23, 2024, 4:15pm UTC](https://help.nextcloud.com/t/internal-server-error-when-first-install/25298/4 "2024-09-23T16:15:08Z")

</div>

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