You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[6.0.0a-6.0.1] Moving data folder broke shares #7203
Hello,
On tuesday i have moved data/* folder to another folder and properly reconfigured config.php to set this new folder.
All the files are properly found by owncloud web and sync client but there is another problem.
It seems all shares have disappeared.
I looked at the database, and this seems to be correct:
It seems home::titi.tata is correct path.
Now, how can i fix the numeric_id for users who have modificated the shares between the path problem and today ? (i can fix it in DB manually)
I think you can just change the path for the users inside of oc_storages, replacing the local:: one with home::userid as you probably already did. This way the numeric id shouldn't change.
@PVince81 it works. But now i must understand how to fix (transparently for user) some users which have created new shared between the migration and now. Where is used the numeric_id ?
The numeric_id is used in the oc_filecache table in the storage column.
I checked the oc_share table and it doesn't seem to use it, it only relies on the unique file id which maps to the fileid column in oc_filecache.
So I don't think you need to fix anything for these users.
same problem here while upgrading from 5.0.14 (manual install) in /srv/owncloud to 6.0.1 /var/www/owncloud (from deb): All shares are lost... i "fixed" it by moving back the data directory to the previous location and re-changed the path back in config.php. now, all shares are back.... #REGRESSION and #BADdataMODEL if you ask me!
Activity
nerzhul commentedon Feb 14, 2014
Other thing, some users view shares but doesn't have access to it.
PVince81 commentedon Feb 14, 2014
Please have a look in the oc_storages table, I suspect there might be entries with the old path.
nerzhul commentedon Feb 17, 2014
You are right:
| local::/usr/local/www/owncloud/data/toto.tutu/ | 10 |
nerzhul commentedon Feb 17, 2014
how must be the path ? I have local::/usr/local/www/owncloud/data/toto.tutu/ but also home::titi.tata
nerzhul commentedon Feb 17, 2014
It seems home::titi.tata is correct path.
Now, how can i fix the numeric_id for users who have modificated the shares between the path problem and today ? (i can fix it in DB manually)
PVince81 commentedon Feb 17, 2014
I think you can just change the path for the users inside of oc_storages, replacing the
local::one withhome::useridas you probably already did. This way the numeric id shouldn't change.nerzhul commentedon Feb 17, 2014
@PVince81 it works. But now i must understand how to fix (transparently for user) some users which have created new shared between the migration and now. Where is used the numeric_id ?
PVince81 commentedon Feb 17, 2014
The
numeric_idis used in theoc_filecachetable in thestoragecolumn.I checked the
oc_sharetable and it doesn't seem to use it, it only relies on the unique file id which maps to thefileidcolumn inoc_filecache.So I don't think you need to fix anything for these users.
Hope that helps.
nerzhul commentedon Feb 17, 2014
Thanks :)
childnode commentedon Feb 19, 2014
same problem here while upgrading from 5.0.14 (manual install) in /srv/owncloud to 6.0.1 /var/www/owncloud (from deb): All shares are lost... i "fixed" it by moving back the data directory to the previous location and re-changed the path back in config.php. now, all shares are back.... #REGRESSION and #BADdataMODEL if you ask me!
childnode commentedon Mar 4, 2014
note: migrate script is under discussion / development / tracked in #6493