Hi,
I just migrated an ownCloud install from one server to another for a client. On the new server, I wanted to put the owncloud install in a different filesystem location compared to where it had been on the old server. I did that and then upgraded to the latest 8.2 release and started testing the system.
I then found there were problems access shared files. After a lot of digging around, I found this issue, which matched what I was seeing:https://github.com/owncloud/core/issues/9273
I tried to manually edit the IDs in the oc_storages table that contained the absolute path to the storage, but I found that didn't completely fix the problem. Eventually I saw in the above thread that some absolute paths may be stored as MD5 hashes, which makes them quite difficult to fix manually.
So, I have started from scratch and placed the ownCloud install in the same filesystem location where it was on the previous server, even though this is less than ideal. I've not tried upgrading ownCloud again, so it's still on v8.2.3.
OwnCloud is now working once again, but I'd like to eventually rid the database of those pesky absolute paths. According to this pull request, the 'occ maintenance:repair' script should fix those storage IDs:
https://github.com/owncloud/core/pull/7539
However, when I run 'occ mailtenance:repair', I just get the following output:
- Repair mime types
- Repair legacy storages
- Repair config
- Clear asset cache after upgrade
- Asset pipeline disabled -> nothing to do
- Generate ETags for file where no ETag is present.
- ETags have been fixed for 0 files/folders.
- Clean tags and favorites
- 0 tags for delete files have been removed.
- 0 tag entries for deleted tags have been removed.
- 0 tags with no entries have been removed.
- Drop old database tables
- Drop old background jobs
- Remove getetag entries in properties table
- Removed 0 unneeded "{DAV:}getetag" entries from properties table.
- Repair outdated OCS IDs
- Repair invalid shares
It looks like the repair function isn't actually finding any of the full path records in order to fix them. Or something. There are quite a lot of values in the 'id' column of the 'oc_storages' table similar to this:local::/var/www.virtualdomains/mydoman.org/public_html/data/john/
..for the various user accounts on the system. But the maintenance:repair script doesn't appear to modify any of them.
Is that 'maintenance:repair' function known to work? Or do I need to upgrade to a newer version of ownCloud for it to work?
Any help or advice would be greatly appreciated.
Many thanks,
-Ian