Repository navigation
Description
Steps to reproduce
- The ownCloud install was located in /var/www/cloud.example.se/owncloud (before update)
- I updated to ownCloud 8 and the install was extracted to /var/www/owncloud
- I did "mv /var/www/cloud.example.se/owncloud/data /var/www/owncloud/data/"
- I updated the data dir in config.php to /var/www/owncloud/data
- Logged in and the files where GONE from Web UI. The Shares also.
- Checked the FTP and the files remained on the servers HDD
EDIT: After a closer look it seems like the files that is visible in the Web UI is the ones that's "left" in the old data dir. /var/www/cloud.example.se/owncloud/data/[user]/files/
Expected behavior
Files and shares should still be visible in the Web UI
Actual behavior
- Seems like there is something wrong with the symlinks (?)
- The client also wiped the files locally. New files got uploaded though.
- Shares are gone ( But still seems to exist in MySQL)
Server configuration
Ubuntu Server 14.04
Database:
Server version: 5.5.41-0ubuntu0.14.04.1 - (Ubuntu)
PHP version:
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
ownCloud version: (see ownCloud admin page)
8.0
Updated from an older ownCloud or fresh install:
Update from 7.0.4
List of activated apps:
Activity
Calender
Contacts
Deleted files
Documents
First Run Wizard
Full Text Search
PDF Viewer
Pictures
Share Files
Text Editor
Updater
Versions
Video Viewer
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Client configuration
Browser:
Version 39.0.2171.71 m
Operating system:
Windows 8.1 and XP and Vista
Sync Client
1.7.1 stable
Logs
Web server error log
Insert your webserver log here
ownCloud log (data/owncloud.log)
Deleted the log to get e fresh one before I discovered the error. This is what's left.
Error PHP Method OC_L10N_String::__toString() must return a string value at /var/www/owncloud/lib/private/util.php#1026 2015-02-11T01:15:22+00:00
Error PHP vsprintf(): Too few arguments at /var/www/owncloud/lib/private/l10n/string.php#75 2015-02-11T01:15:22+00:00
Error PHP fopen(/var/www/owncloud/data/admin/files/ownCloudUserManual.pdf): failed to open stream: No such file or directory at /var/www/owncloud/lib/private/files/storage/local.php#216 2015-02-11T01:14:32+00:00
Fatal remote An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory 2015-02-11T01:09:26+00:00
Warning documents Starting a session failed. Reason: 191728 can not be resolved 2015-02-11T01:06:01+00:00
Error PHP Call to a member function getId() on a non-object at /var/www/owncloud/apps/gallery/ajax/batch.php#59 2015-02-11T01:05:54+00:00
And a bunch of theese in the old owncloud.log:
"app":"PHP","message":"filemtime(): stat failed for \/var\/www\/cloud.example.se\/owncloud\/data\/admin\/files\/MALM\u00d6\/Program\/Drivrutiner\/Skrivare Malm\u00f6 at \/var\/www\/owncloud\/lib\/private\/files\/storage\/local.php#138","level":3,"time":"2015-02-11T00:54:01+00:00"}
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...


Activity
enoch85 commentedon Feb 11, 2015
UPDATE:
I ran "./occ files:scan --all" and now the files seems to be back. Thanks to SchrodingersScat & Dominian on IRC.
But what about the shares? They are still gone. Anyone please?
[-]Files are gone in Web UI but remains on Server HDD after upgrade[/-][+]Share are gone in Web UI after upgrade but remains in MySQL[/+]enoch85 commentedon Feb 11, 2015
CC @schiesbn
[-]Share are gone in Web UI after upgrade but remains in MySQL[/-][+]Shares are gone in Web UI after upgrade but remains in MySQL[/+]enoch85 commentedon Feb 11, 2015
enoch85 commentedon Feb 11, 2015
I tested to create new shares and it worked.
enoch85 commentedon Feb 11, 2015
Not so urgent anymore. Did re-share every share again manually. One more night without sleep. :)
Keeping this open anyway.
martin-rueegg commentedon Feb 12, 2015
i actually had a simmilar issue: my /var/www/owncloud/data is a symlink to an other place. during update to v8 the symlink has been removed and replaced by a fresh data-dir.
resulting in:
after stopping the webserver, replacing the dir with the symlink again, restarting the webserver, doing the "./occ files:scan --all" the files where back again and downloaded to the clients.
(not sure if the "./occ files:scan --all" would really have been necessary though)
also had the issue with the shares. while the shares within OC (to other users) still worked, the URL shares did not.
enoch85 commentedon Mar 23, 2015
@MorrisJobke What do you think? Milestone 8.2?
MorrisJobke commentedon Mar 24, 2015
@DeepDiver1975 Another issue with broken shares. Maybe it's also related to broken fileids: #13310
PVince81 commentedon Apr 9, 2015
I don't see how @enoch85's steps would break the file ids. Unless the files were moved cross-storage within ownCloud ?
enoch85 commentedon Jun 11, 2015
@PVince81 What I did was to export the MySQL tables and imported them on a fresh install.
enoch85 commentedon Sep 22, 2015
@PVince81 Any milstone on this?
MorrisJobke commentedon Jan 6, 2016
@enoch85 This should not happen with 8.1+ anymore. Have you experienced this since 8.1 again?
enoch85 commentedon Jan 6, 2016
@MorrisJobke No, I think it was a very specefic case. Close if you want.
lock commentedon Aug 7, 2019
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.