Migrating data directory 10.9.1

I’m trying to change my /data/ directory on a 10.9.1 installation, so I changed all paths in config.php. I just recently installed this version while using 10.5 for quite some time. I cannot find any handle in the config.php where the database is set so I assume that the new version doesn’t use that anymore (or differntly) and I do not have to chance the hardcoded database handles anymore. However when downloading from the ‘new’ data directory, owncloud creates data to the old data directory on ftp and stops downloading with ‘sabre/DAV/exception/NotFound’ Error. How can I change the data directory on the new version of owncloud?
That raises another question: Where does OwnCloud store its dbname, password, etc that used to be in config.php before?

That is definitely incorrect.

If you have no db connection parameters in your config.php right now, you might be using sqlite.
It should look like this:

  'dbtype' => 'mysql',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'owncloud',
  'dbpassword' => '<password>',

We would know for sure if you would have filled out the post template, as it asks for a configreport:
https://doc.owncloud.com/server/10.9/admin_manual/troubleshooting/providing_logs_and_config_files.html#generate-via-webui-2

There could be an additional *.config.php file in the config folder where the DB is configured.

Also false, you absolutely must change those handles.

  1. You need to find out where your database is.
  2. Make sure that you convert to mysql if you are using sqlite.
    Potentially you are currently in a split brain configuration, where some old data is in the mysql database and for some reason during the upgrade the connection string in the config php was lost and new information from that point on is in the sqlite db.
  3. Then you can adjust the paths according to the following article: https://doc.owncloud.com/server/10.9/admin_manual/maintenance/manually-moving-data-folders.html
2 Likes

Thanks for clarifying.

you might be using sqlite.

My installation’s data base type is indeed ‘sqllite3’.

We would know for sure if you would have filled out the post template, as it asks for a configreport

config_report_20220210-2.log (322.8 KB)

There could be an additional *.config.php file in the config folder where the DB is configured.

There is no additional config file.

Potentially you are currently in a split brain configuration

I don’t think that my installation is split brained, as I installed 10.9.1 completely new while 10.5 still exists on my server aside. I did this because the upgrade via the upgrade wizard failed. I had to use the wizard as I am working on a shared server where I do not have sudo rights to configure upgrades via command line. I also temporarily changed the name of the database, the database logins and the installation folder of the 10.5 installation to rule a split brained configuration out for sure. However thanks again for pointing that out!

My installation will never have more than 5 active users, 3 user roles and max 50k files ~ 100 GB (if this even plays a role in this context). Is it even neccesary or advisable to change to more sophisticated database installation at tihs point?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.