-
Notifications
You must be signed in to change notification settings - Fork 11
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
Specified key too long #118
Comments
Hi! Thank you for reporting this issue. This looks to be the same problem as reported in #107. That issue was resolved with the release of version Could you provide more details (PHP version, NC version, what you were doing when this error occurred, etc.) so we can try to figure out what is going on? |
Hi Ben,
Sorry for my late response. Nextcloud is version 25.0.4.
Solid 0.7.2
I wasn’t running PHP yet, just started a clean VM with Nextcloud only. Just installed PHP 8.1.17
Linux Ubuntu 22.04
Rebooted.
Installed Solid App through the App option inside Nextcloud.
When I hit “Inschakelen” it comes up with:
Er is een fout opgetreden tijdens het verzoek. Kan niet doorgaan.
An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was > too long; max key length is 3072 bytes
Robert Jan
|
I started work to try and reproduce this issue. I was using docker, but as it turns out, one can't simply run So instead of creating a reproducible case using docker, I will try again with an actual VM. I've used VirtualBox in the past, but I'll have to touch up on my knowledge, as that was almost 10 years ago. I'll report back when I have any results. |
Hey, just to chime in; same problem. Ask me anything that could help the issue. on Ubuntu 20.04.5 LTS, nc 25.0.4, trying to install solid 0.7.2 Do you fancy a logfile? Full log
|
@eddriesen thank you very much! |
Looking back at the research done for #107, I realized there are a few factors we are currently missing information about...
I'll try and set up a test case for with various versions. I think the OS, Plugin version, and PHP version are less relevant. What we already know is:
So... @eddriesen, @JurgenG, and @RoberL72: Is it possible for you to report which DB and which Engine you use? I think the Charset, an Allocation could be inferred either from the default settings for the DB or NC itself, if they are harder to locate/report. Another thing I noticed is that, even though But this was never confirmed/disputed, so I'll need to double-check that as well. |
Hi Ben,
Mysql 8.0.32
I’m no expert on VM’s, if you need me to check the others like engine and character set, please give me a (simple) guidance of howto find this.
Cheers,
Robert Jan
|
PS. Noticed my PHP is 8.1.16
|
@eddriesen https://github.com/eddriesen
Fun fact, I've been upgrading this instance since early owncloud days.... |
I've managed to create a docker setup in which I can reproduce the error. Currently debugging to find out the source of the problem. |
The reproducable case was created using a see fileversion: '3'
services:
db:
environment:
MYSQL_DATABASE: nextcloud
MYSQL_PASSWORD: nextcloud
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: nextcloud
image: mysql:8.0.32
ports:
- "3306:3306"
# To start with a populated database, mount an SQL file
# volumes:
# - ./init.sql:/docker-entrypoint-initdb.d/init.sql
nextcloud:
depends_on:
- db
environment:
- MARIADB_ROOT_PASSWORD=nextcloud
- MYSQL_HOST=db
expose:
- 443
image: ghcr.io/pdsinterop/solid-nextcloud:main-25
ports:
- "443:443"
volumes:
- ./solid/:/var/www/html/apps/solid/
pubsub:
depends_on:
- nextcloud
expose:
- 8080
image: ghcr.io/pdsinterop/php-solid-pubsub-server
ports:
- "8080:8080" Reading along with the stack trace provided by eddriesen, things start being interesting from calls to Adding CREATE TABLE oc_solid_jti (
id INT AUTO_INCREMENT NOT NULL,
jti VARCHAR(255) NOT NULL,
uri VARCHAR(255) NOT NULL,
request_time DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
INDEX IDX_C693C86FC53CF2EA841CB121 (jti, uri),
PRIMARY KEY(id)
) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_bin` ENGINE = InnoDB So the current assumption is that the defaults for MySQL are InnoDB, Will dig deeper later (most likely Friday). |
Just want to chime in here, as I've been having the same issue. Installed Nextcloud through snap, installed the app through the app store.
Oddly, I ran the install on NextCloud version 27 as well and did not encounter this issue. |
The text was updated successfully, but these errors were encountered: