Skip to content

[6.0.0a-6.0.1] Moving data folder broke shares #7203

Closed

Description

@nerzhul

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:

select uid_owner,share_with,item_type,file_target from oc_share where uid_owner = 'toto.tutu';
| tuto.tutu | antoine.titi | folder | /Optique1A
| tuto.tutu | agnes.tata | folder | /Optique1A

How can i repair those broken shares ? Have i missed something ?

Activity

  1. nerzhul commented on Feb 14, 2014

    @nerzhul
    Author

    Other thing, some users view shares but doesn't have access to it.

  2. PVince81 commented on Feb 14, 2014

    @PVince81
    Contributor

    Please have a look in the oc_storages table, I suspect there might be entries with the old path.

  3. nerzhul commented on Feb 17, 2014

    @nerzhul
    Author

    You are right:
    | local::/usr/local/www/owncloud/data/toto.tutu/ | 10 |

  4. nerzhul commented on Feb 17, 2014

    @nerzhul
    Author

    how must be the path ? I have local::/usr/local/www/owncloud/data/toto.tutu/ but also home::titi.tata

  5. nerzhul commented on Feb 17, 2014

    @nerzhul
    Author

    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)

  6. PVince81 commented on Feb 17, 2014

    @PVince81
    Contributor

    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.

  7. nerzhul commented on Feb 17, 2014

    @nerzhul
    Author

    @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 ?

  8. PVince81 commented on Feb 17, 2014

    @PVince81
    Contributor

    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.

    Hope that helps.

  9. nerzhul commented on Feb 17, 2014

    @nerzhul
    Author

    Thanks :)

  10. childnode commented on Feb 19, 2014

    @childnode

    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!

  11. childnode commented on Mar 4, 2014

    @childnode

    note: migrate script is under discussion / development / tracked in #6493

  12. locked as resolved and limited conversation to collaborators on Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions