-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Numeric value out of range: 167 Out of range value for column 'fileid' #2775
Comments
@karlitschek possible change of the filecache table 🙈 |
Max value is 2.147 billion roughly |
uff. let's be careful here because of the well known migration issues. 👎 for now. |
It appears that even attempting to remove large swaths of data from the system does not alleviate the problem. I speculate that since there is an entry right at:
That even if previous entries are removed, no new entries may be made since the maximum value has already been reached. When I manually convered fileid to BIGINT, the index appeared to restart at 0 and any new data was attempting to overwrite the fileid entry at 0. Any suggestions for how to navigate out of this situation, even if that breaks my upgrade path, short of start over? |
@karlitschek @MorrisJobke SWITCH seems to face the same problem soon over at owncloud/core#26901 – so this requires some action. |
Hmm. O.K. Then let's merge it. 👍 Any ideas how the smoothen the problem that an alter table on a full file cache table takes forever is welcome. |
Depending on the database engine, an export and import/load could be faster. One would have to run a few benchmarks though. |
Fixed with #6563 |
@Claonilton Mind to open a new issue? https://docs.nextcloud.com/server/16/admin_manual/configuration_database/bigint_identifiers.html |
Hi... In my case, is a migration / upgrade of owncloud to nextcloud. In doc, the compatible version is nextcloud 12.0 but this command is availabilite in version 13. |
Steps to reproduce
Expected behaviour
file should be saved
Actual behaviour
Error noting file cannot be saved. Issue is filecache has the maximum number of entries for the INT value in fileid column. Is it possible to change fileid from INT to BIGINT? My initial attempt failed.
Server configuration
Operating system: FreeBSD
Web server: Apache24
Database: MariaDB 10
PHP version: 5.6
Nextcloud version: 11
Updated from an older Nextcloud/ownCloud or fresh install: updated (error manifested as soon as fileid maxed out INT value)
Where did you install Nextcloud from: manual
Signing status:
Signing status
List of activated apps:
App list
The content of config/config.php:
Config report
Are you using external storage, if yes which one: yes, local (reason for so many file entries)
Are you using encryption: no
Are you using an external user-backend, if yes which one: ActiveDirectory
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
Operating system:
Logs
Web server error log
Web server error log
``` Insert your webserver log here ```Nextcloud log (data/nextcloud.log)
Nextcloud log
``` Insert your Nextcloud log here ```Browser log
Browser log
``` Insert your browser log here, this could for example include:a) The javascript console log
b) The network log
c) ...
The text was updated successfully, but these errors were encountered: