Skip to content

Nextcloud 16 Index name "comments"."comments_topmost_parent_id_idx" is too long. #14823

Closed

Description

@marius-wieschollek

Steps to reproduce

  1. Pull nextcloud:16-beta-fpm Docker image
  2. Set up mariadb/mysql/postgres as database via environment variables
  3. Start the whole thing

Expected behaviour

Nextcloud setup finishes successfully.

Actual behaviour

Setup fails with Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long. found in the container logs and on setup page.
Note: This only happens with a new installation. Upgrading from Nextcloud 15 works find

Server configuration

Operating system: Ubuntu 18.04

Web server: Nginx

Database: MariaDB 10.3 or MySQL 5.7

PHP version: 7.2

Nextcloud version: 16.0.0.3

Updated from an older Nextcloud/ownCloud or fresh install: fresh install

Where did you install Nextcloud from: Docker Image

Signing status:

Signing status
not possible, defaults used

List of activated apps:

App list
not possible, defaults used

Nextcloud configuration:

Config report
<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'passwordsalt' => 'passwordsalt',
  'secret' => 'verysecret',
  'trusted_domains' => 
  array (
    0 => 'localhost',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '16.0.0.3',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'mysql:3306',
  'dbport' => '',
  'dbtableprefix' => '',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'password',
);

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Firefox 65

Operating system: Ubuntu 18.04

Logs

Web server error log

Web server error log
Attaching to server-app
server-app | Initializing nextcloud 16.0.0.3 ...
server-app | Initializing finished
server-app | New nextcloud instance
server-app | Installing with MySQL database
server-app | starting nextcloud installation
server-app | Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long.
server-app |  -> 
server-app | retrying install...
server-app | Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long.
server-app |  -> 
server-app | retrying install...
server-app | Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long.
server-app |  -> 
server-app | retrying install...
server-app | Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long.
server-app |  -> 
server-app | retrying install...
server-app | Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long.
server-app |  -> 
server-app | retrying install...
server-app | Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long.
server-app |  -> 
server-app | retrying install...
server-app | Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long.
server-app |  -> 
server-app | retrying install...
server-app | Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long.
server-app |  -> 
server-app | retrying install...
server-app | Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long.
server-app |  -> 
server-app | retrying install...
server-app | Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long.
server-app |  -> 
server-app | retrying install...
server-app | Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long.
server-app |  -> 
server-app | retrying install...
server-app | Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long.
server-app |  -> 
server-app | installing of nextcloud failed!
server-app | [24-Mar-2019 16:03:17] NOTICE: fpm is running, pid 168
server-app | [24-Mar-2019 16:03:17] NOTICE: ready to handle connections

Nextcloud log (data/nextcloud.log)

Nextcloud log
no log entries

Browser log

Browser log
Error while trying to create admin user: Index name "comments"."comments_topmost_parent_id_idx" is too long. 

Activity

  1. marius-wieschollek commented on Mar 24, 2019

    @marius-wieschollek
    ContributorAuthor

    #14756 Seems to be a duplicate of this but was closed because it did not use the template.

  2. changed the title [-]Nextcloud 16 ndex name "comments"."comments_topmost_parent_id_idx" is too long.[/-] [+]Nextcloud 16 Index name "comments"."comments_topmost_parent_id_idx" is too long.[/+] on Mar 24, 2019
  3. MorrisJobke commented on Mar 25, 2019

    @MorrisJobke
    Member
  4. added this to the Nextcloud 16 milestone on Mar 25, 2019
  5. nickvergessen commented on Mar 27, 2019

    @nickvergessen
    Member

    Do you have the following in your config.php?

    'dbtableprefix' => '',
  6. marius-wieschollek commented on Mar 27, 2019

    @marius-wieschollek
    ContributorAuthor

    yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbughigh

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions