Closed rjaeckel closed 9 years ago
Can you please provide the additional information from the issue template? Thanks!
https://github.com/owncloud/core/blob/master/CONTRIBUTING.md
@LukasReschke , updated the post
cc @schiesbn @th3fallen Encryption related.
Some notes about the Share
As most of the keys are already migrated, this would AFAIK and experienced corrupt the already working ones.
Please correct me, if that's wrong.
It should be save to try the command line tool. We just move the keys from the old location to the new one. Keys already moved successfully wont be touched again because for the same file there wont be any keys at the old location.
Still as always, it is recommended to make a backup of your current state first.
Just got the same problem when migrating to 8.0.3. Some files can't be decrypted. The folder is not shared. Manual key migration didn't fix things.
I checked the files_encryption folder and the keys are 0 byte. The date on the file suggests this was done while on oc 7.
EDIT: Checked the backup and those keys were indeed already wiped by oC 7.0.4
@oparoz This sounds like a different issue. I never saw that keys are 0byte but we are aware of some issues with name conflicts which could overwrite existing keys (this happens really seldom, you need the right combination of folders, user names, filenames and share the file with the right user) all of them should be fixed in oC >= 8.0 but it is possible that user have some broken keys from previous versions.
But I think it is unrelated to the original issue here.
I agree. Keys were wiped when trying to share files on oC7. I don't think I've encountered the issue on 8.
@schiesbn any thing to do here? thx
As oparoz already stated it was the same in our case, the keys for the files are already corrupted in the OC7 version... probalby an issue related to wrong password for the keyfiles
@schiesbn close, plz
Sorry for any trouble a made.
I've tested this, first without active directory there is no problem at all with upgrading from 7 to 8.0.X using encryption.
But in the same situation with an active directory enabled and a folder shared to a active directory group of users I got a mysql exception:
Turned on maintenance mode
An exception occurred while executing 'CREATE INDEX 9e69e7zfw5ie1 ON share_5zbksy7wuomzf (item_type
, share_type
)':
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '9e69e7zfw5ie1 ON share_5zbksy7wuomzf (item_type
, share_type
)' at line 1
Turned off maintenance mode
Update failed
@SergioBertolinSG Test https://github.com/owncloud/core/pull/16815
Steps to reproduce
php occ upgrade
Expected behaviour
shared files should be accessible
Actual behaviour
Browser returns 500 error; Details on bottom
Server configuration
Operating system: ubuntu 14.04 LTS
Web server: apache 2.4
Database: mysql 5.5
PHP version: 5.5.9 with Zend OPCache v7.0.3
ownCloud version: 7.0.4 => 8.0.3
Updated from an older ownCloud or fresh install: upgraded
List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: nope
Are you using encryption: yes, enabled for all
Are you using an external user-backend, if yes which one: ActiveDirectory
I'm getting several Errors like this one:
Before upgrade everything worked fine. The files are shared by another user. Bot not every file shared is affected. I guess resharing would be a solution to this. But I'd rather prefer to get a reason for this.
The Installation was updated manually using
php occ upgrade
. Is there anyway to get a log about the upgrade process?