Error while alter mysql table

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 19.0.8
Operating system and version (eg, Ubuntu 20.04): Debian buster
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.38
PHP version (eg, 7.4): php7.3

The issue you are facing:
I’ve changed my tables following this guide : ttps://docs.nextcloud.com/server/16/admin_manual/configuration_database/mysql_4byte_support.html

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. I’m Running now: sudo -u www-data php occ maintenance:repair

  2. I’ve got an error: An exception occured while executing ‘ALTER TABLE ‘oc_news_items’ ROW_FORMAT = DYNAMIC’:

  3. I’m stucked in maintenance mode

The output of your Nextcloud log in Admin > Logging:

{"reqId":"sGUq5AnqgtgiZUVNAUXU","level":1,"time":"2021-02-04T10:15:55+00:00","remoteAddr":"92.188.106.195","user":"--","app":"no app in context","method":"PROPFIND","url":"/remote.php/webdav/Photos/Les%20enfants/Les%20deux","message":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"tasks.page.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/home/web/public/cloud/lib/private/Route/Router.php","line":372,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->","args":["tasks.page.index",[],1]},{"file":"/home/web/public/cloud/lib/private/URLGenerator.php","line":83,"function":"generate","class":"OC\\Route\\Router","type":"->","args":["tasks.page.index",[]]},{"file":"/home/web/public/cloud/lib/private/NavigationManager.php","line":282,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->","args":["tasks.page.index"]},{"file":"/home/web/public/cloud/lib/private/NavigationManager.php","line":108,"function":"init","class":"OC\\NavigationManager","type":"->","args":[]},{"file":"/home/web/public/cloud/apps/theming/lib/ThemingDefaults.php","line":183,"function":"getAll","class":"OC\\NavigationManager","type":"->","args":["guest"]},{"file":"/home/web/public/cloud/lib/private/legacy/OC_Defaults.php","line":263,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->","args":[]},{"file":"/home/web/public/cloud/lib/public/Defaults.php","line":169,"function":"getLongFooter","class":"OC_Defaults","type":"->","args":[]},{"file":"/home/web/public/cloud/core/templates/layout.guest.php","line":55,"function":"getLongFooter","class":"OCP\\Defaults","type":"->","args":[]},{"file":"/home/web/public/cloud/lib/private/Template/Base.php","line":178,"args":["/home/web/public/cloud/core/templates/layout.guest.php"],"function":"include"},{"file":"/home/web/public/cloud/lib/private/Template/Base.php","line":150,"function":"load","class":"OC\\Template\\Base","type":"->","args":["/home/web/public/cloud/core/templates/layout.guest.php",null]},{"file":"/home/web/public/cloud/lib/private/legacy/OC_Template.php","line":180,"function":"fetchPage","class":"OC\\Template\\Base","type":"->","args":[null]},{"file":"/home/web/public/cloud/lib/private/legacy/OC_Template.php","line":211,"function":"fetchPage","class":"OC_Template","type":"->","args":[null]},{"file":"/home/web/public/cloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/home/web/public/cloud/lib/private/legacy/OC_Template.php","line":299,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/home/web/public/cloud/remote.php","line":84,"function":"printErrorPage","class":"OC_Template","type":"::","args":["Service unavailable","",503]},{"file":"/home/web/public/cloud/remote.php","line":169,"function":"handleException","args":[{"__class__":"RemoteException"}]}],"File":"/home/web/public/cloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"},"userAgent":"--","version":"19.0.8.1"}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'oc6izvw1hjcz',
  'passwordsalt' => 'CCCCCCCCCCCCCCCCCCcc',
  'secret' => 'CCCCCCCCCCCCCCCCCCCCCC',
  'trusted_domains' =>
  array (
    0 => 'cloud.CCCCCCCCc.fr',
    1 => 'web.CCCCCCCCCCC.fr',
  ),
  'datadirectory' => '/home/cloud/',
  'overwrite.cli.url' => 'http://cloud.CCCCCCCCCCCCCCC.fr',
  'dbtype' => 'mysql',
  'version' => '19.0.8.1',
  'dbname' => 'cloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'cloud',
  'dbpassword' => 'CCCCCCCCCCCCCCCCCCc',
  'installed' => true,
  'forcessl' => true,
  'forceSSLforSubdomains' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_from_address' => 'owncloud',
  'mail_domain' => 'CCCCCCCC.fr',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'mail.gandi.net',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'CCCCCCCCCCCCC',
  'mail_smtppassword' => 'CCCCCCCCCCCCC',
  'theme' => '',
  'maintenance' => true,
  'loglevel' => 1,
  'trashbin_retention_obligation' => 'auto',
  'htaccess.RewriteBase' => '/',
  'updater.release.channel' => 'stable',
  'mysql.utf8mb4' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

Nothing relevant

I’ve opend a github topic, but they send me back here:

A little help would be apreciated.

Thanks