-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: this app cannot be enabled because it makes the server unstable #14
Comments
which database are you using. The varchar(255) should only use 765 Byte for UTF8. If you're using the default charset utf8mb4 then the size would exceed the limit. I guess your default settings in the database engine are off. |
That solved that first error in the log, tks. Exception: {"Exception":"Doctrine\DBAL\Exception\DriverException","Message":"An exception occurred while executing 'CREATE table oc_locks_w2g(name varchar(255) PRIMARY KEY,created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,locked_by varchar(255))':\n\nSQLSTATE[HY000]: General error: 1709 Index column size too large. The maximum column size is 767 bytes.","Code":0,"Trace":"#0 /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(116): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))\n#1 /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(174): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'CREATE table oc...', Array)\n#2 /var/www/owncloud/lib/private/legacy/db/statementwrapper.php(75): Doctrine\DBAL\Statement->execute()\n#3 /var/www/owncloud/apps/workin2gether/appinfo/app.php(34): OC_DB_StatementWrapper->execute()\n#4 /var/www/owncloud/lib/private/legacy/app.php(187): require_once('/var/www/ownclo...')\n#5 /var/www/owncloud/lib/private/legacy/app.php(150): OC_App::requireAppFile('workin2gether')\n#6 /var/www/owncloud/lib/private/legacy/app.php(120): OC_App::loadApp('workin2gether')\n#7 /var/www/owncloud/lib/base.php(875): OC_App::loadApps()\n#8 /var/www/owncloud/index.php(54): OC::handleRequest()\n#9 {main}","File":"/var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php","Line":115} |
Then fix your database setup, That's not caused by the app, but a restricted database. I've found this: Add these to your db config. [mysqld] [mysql] I don't know what has to be set specifically, but all other users had no complaints with their setup. I don't support setups, I support the app |
same here.. Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'CREATE table oc_locks_w2g(name varchar(255) PRIMARY KEY,created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,locked_by varchar(255))': SQLSTATE[HY000]: General error: 1709 Index column size too large. The maximum column size is 767 bytes. Can't enable the app in Nextcloud 12 |
I won't repeat. This is not related to the app and also not to Nextcloud. Configure your DB server properly. |
Dear Patrick, Currently, I need to enable workin2gether app to support file locking on Owncloud v9.1.1.3. I have double checked DB configuration setting and updated the correct configuration as you requested. I am getting a problem when enabling workin2gether app with the following message I am appreciated to your time and effort Regards, |
Try in the sql console: set global innodb_large_prefix=on; Alternative, if the create doesn't work: I guess the utf8 should do the trick, because it's wide is 3Bytes * 255 -> 765Bytes Also paste your version: Please remember to restart the DB server, after changing config files (if you did). |
Thanks Patrick Actions:
Regards, |
great :-) glad, I could help |
Error while trying to enable Workin2Gether in Ubuntu Server 16.04 LTS, owncloud 9.1.5
Below log entry:
Exception: {"Exception":"Doctrine\DBAL\Exception\DriverException","Message":"An exception occurred while executing 'CREATE table oc_locks_w2g(name varchar(255) PRIMARY KEY,created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,locked_by varchar(255))':\n\nSQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes","Code":0,"Trace":"#0 /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(116): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))\n#1 /var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Statement.php(174): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException), 'CREATE table oc...', Array)\n#2 /var/www/owncloud/lib/private/legacy/db/statementwrapper.php(75): Doctrine\DBAL\Statement->execute()\n#3 /var/www/owncloud/apps/workin2gether/appinfo/app.php(34): OC_DB_StatementWrapper->execute()\n#4 /var/www/owncloud/lib/private/legacy/app.php(187): require_once('/var/www/ownclo...')\n#5 /var/www/owncloud/lib/private/legacy/app.php(150): OC_App::requireAppFile('workin2gether')\n#6 /var/www/owncloud/lib/private/legacy/app.php(120): OC_App::loadApp('workin2gether')\n#7 /var/www/owncloud/lib/base.php(875): OC_App::loadApps()\n#8 /var/www/owncloud/index.php(54): OC::handleRequest()\n#9 {main}","File":"/var/www/owncloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php","Line":115}
The text was updated successfully, but these errors were encountered: