-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Can't convert to MySQL from SQLite (8.2.6) #25458
Comments
@Sreadon it looks like you tried to migrate the database while a DB upgrade wasn't complete. Best would be to restore your old instance, then perform the upgrade. And after a successful upgrade, do the conversion. Or, do the DB conversion before doing the upgrade. But don't do both at the same time as the database schema will not match. |
Thanks for the answer. The thing is I already did the revert, the SQLite DB that I'm trying to convert to a MySQL DB is a perfectly working version of OwnCloud (8.2.6), that's why I don't understand where is the problem.. I have another idea to start on very good basis, should it be difficult to create a new OwnCloud's instance (ie, new directory/vhost/DB) based on MySQL and manually import my users and files? (I've only 10-15 LDAP Users), and should I be able to use the same salt etc in the config file? Thanks! |
You'd still need to convert the database, because you need to keep the metadata else you'll lose shares and other information. |
Okay thanks. Still, I really don't know why the migration is bugging, may be one day during an update something went wrong an I've not been advised, don't know. Anyways, is there somewere where I can find the SQL database schema to find the differences between 8.2.6 and 9.0? So I can "manually" try to correct the problem with the columns and even if it take me some time, do this migration.. Thanks. |
You might consider installing fresh copies of both (8.2.6 and 9) using MariaDB as the back end and then use a tool like navicat to run the scheme diff and then compare that to your current DB to see if anything needs to be adjusted manually (I would revert to your 8.2.6 backup and compare that to the scheme of the fresh 8.2.6 for starters and see if anything odd is happening and adjust accordingly). |
Thanks for the help, I'lll try to do this and will keep you in touch. |
Hi, For your information, I ended up installing fresh copy of the 9.1 version using the manual method because during my holidays the auto-updater reverted some of the app's files from 8.2.6 to 8.1.2 (or something like that, can't remember sorry). I really don't know what happened but I think my ownCloud installation was half broken before my migration due to using SQLite for what's it's not designed: production environnement. Anyways, we are now using a proper version of ownCloud with a "real" SQL Environnement. Thanks for your help & time, |
Hey, this issue has been closed because the label (This is an automated comment from GitMate.io. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
Steps to reproduce
Expected behaviour
It should convert all the SQLite database into a working MySQL Database
Actual behaviour
I have an error telling me that:
So I checked into the MySQL database, and yes, the "checksum" field in oc_filecache is missing, should I create it myself?
Server configuration
Operating system: Ubuntu Server 12.04
Web server: Apache 2
Database: SQLite / MySQL
PHP version: 5.4
ownCloud version: 8.2.6
Updated from an older ownCloud or fresh install: Updated.
Where did you install ownCloud from: Official Page (Zip) - Manual Install
List of activated apps:
Enabled:
Disabled:
The content of config/config.php:
{
"system": {
"mail_smtpdebug": false,
"mail_smtpmode": "smtp",
"mail_smtphost": "mail.--.fr",
"mail_smtpport": 25,
"mail_smtptimeout": 10,
"instanceid": "51aa5b2110704",
"passwordsalt": "_REMOVED SENSITIVE VALUE",
"datadirectory": "/var/www/owncloud/data",
"dbtype": "sqlite3",
"version": "8.2.6.2",
"installed": true,
"ldapIgnoreNamingRules": false,
"theme": "",
"maintenance": false,
"force ssl": true,
"trusted_domains": [
"cloud.--.fr",
"--.--.fr"
],
"secret": "_REMOVED SENSITIVE VALUE",
"forcessl": false,
"loglevel": 0,
"trashbin_retention_obligation": "auto"
}
}
Are you using encryption: no
Logs
Don't have them but if really needed, I can reproduce the bug to have them.
*** IMPORTANT PRECISION! ***
I tried to move to SQLite after a fail during a migration to the 9.0.3 (Database locked) and because SQLIte is definitly not meant to be used on a production server. After the migration's fail, I moved back the whole /data directory to the old owncloud folder, so I think this fail should not have any incidence on this "bug".
Thanks and sorry if I'm the bug..
The text was updated successfully, but these errors were encountered: