Encryption Query
Hi, I enabled the encryption app on OwnCloud 6.0.2 around 30 minutes ago, and half way through logging back in it states a 500 error. I tried to login again and it now states:
Initial encryption running... Please try again later.
It's been doing this for 30 minutes now, is there a way to check the progress of encryption? The account has around 1GB of data in it. Thank you.
@schiesbn
Getting the same.
I was initially having issues with getting the encryption to start, it kept giving me:
"Please make sure that PHP 5.3.3 or newer is installed and that OpenSSL together with the PHP extension is enabled and configured properly. For now, the encryption app has been disabled."
I added a system environment variable of:
OPENSSL_CONF - C:\PHP\extras\openssl.cnf
Restarted the server and it seemed to make no difference, still did not run, however I left it a few hours, tried it again and then I got the above problem where it states running, then gave a 500 error, refreshed the page, now I am stuck at "Initial encryption running... Please try again later."
I've checked the OwnCloud data folder and can see file modifications around 45 minutes ago, and all files in the user folder appear to have been renamed with .key at the end in:
"C:\OwnCloudDataDirectory\myuser\files-encryption\keyfiles"
However I still can not get logged in without the prompt that it is in progress. Thanks.
OwnCloud log appears to be idle as well, when I try to login it shows some addressbook messages but nothing about encryption now.
Oh and environment is Windows Server 2008 R2, with PHP 5.4.25, SSL version in PHP info is "OpenSSL/0.9.8y".
I already had encryption active on 6.0.1. Debian Wheezy, using the official ownCloud repo (via openSUSE). Disabled my two 3rd party add-ons, did an "apt-get dist-upgrade", went to the web interface and it said it was upgrading for a few seconds before presenting me with the login prompt - whereby I continue to run into this problem of being unable to log in.
That was easily over 30 minutes ago. I don't have any background PHP processes working or anything running any more, according to top.
In case it helps, from my server logs:
somehash [05/Mar/2014:04:19:42 +1100] "GET /remote.php/mozilla_sync/1.1/somehash/info/collections HTTP/1.1" 302 949 "-" "Iceweasel/24.3.0 FxSync/1.26.0.20140209093403.desktop"
- [05/Mar/2014:04:19:42 +1100] "POST /index.php/apps/files_encryption/ajax/getMigrationStatus.php HTTP/1.1" 200 763 "https://my.domain.com/index.php?redirect_url=%2Findex.php%2Fapps%2Ffiles" "Mozilla/5.0 (X11; Linux armv7l; rv:24.0) Gecko/20140206 Firefox/24.0 Iceweasel/24.3.0"
- [05/Mar/2014:04:19:42 +1100] "GET /index.php HTTP/1.1" 200 2132 "-" "Mozilla/5.0 (X11; Linux armv7l; rv:24.0) Gecko/20140206 Firefox/24.0 Iceweasel/24.3.0"
- [05/Mar/2014:04:19:42 +1100] "POST /index.php/core/ajax/translations.php HTTP/1.1" 200 618 "https://my.domain.com/index.php?redirect_url=%2Findex.php%2Fapps%2Ffiles" "Mozilla/5.0 (X11; Linux armv7l; rv:24.0) Gecko/20140206 Firefox/24.0 Iceweasel/24.3.0"
- [05/Mar/2014:04:19:44 +1100] "POST /index.php?redirect_url=%2Findex.php%2Fapps%2Ffiles HTTP/1.1" 302 1732 "https://my.domain.com/index.php?redirect_url=%2Findex.php%2Fapps%2Ffiles" "Mozilla/5.0 (X11; Linux armv7l; rv:24.0) Gecko/20140206 Firefox/24.0 Iceweasel/24.3.0"
- [05/Mar/2014:04:19:49 +1100] "GET /index.php/apps/files HTTP/1.1" 302 756 "https://my.domain.com/index.php?redirect_url=%2Findex.php%2Fapps%2Ffiles" "Mozilla/5.0 (X11; Linux armv7l; rv:24.0) Gecko/20140206 Firefox/24.0 Iceweasel/24.3.0"
- [05/Mar/2014:04:19:49 +1100] "GET /index.php?redirect_url=%2Findex.php%2Fapps%2Ffiles HTTP/1.1" 200 2116 "https://my.domain.com/index.php?redirect_url=%2Findex.php%2Fapps%2Ffiles" "Mozilla/5.0 (X11; Linux armv7l; rv:24.0) Gecko/20140206 Firefox/24.0 Iceweasel/24.3.0"
- [05/Mar/2014:04:19:50 +1100] "GET /remote.php/core.css?v=da54dd5a0398011cdfa50d559c2c0ef8 HTTP/1.1" 304 277 "https://my.domain.com/index.php?redirect_url=%2Findex.php%2Fapps%2Ffiles" "Mozilla/5.0 (X11; Linux armv7l; rv:24.0) Gecko/20140206 Firefox/24.0 Iceweasel/24.3.0"
- [05/Mar/2014:04:19:50 +1100] "GET /index.php/core/js/config.js?v=da54dd5a0398011cdfa50d559c2c0ef8 HTTP/1.1" 200 1659 "https://my.domain.com/index.php?redirect_url=%2Findex.php%2Fapps%2Ffiles" "Mozilla/5.0 (X11; Linux armv7l; rv:24.0) Gecko/20140206 Firefox/24.0 Iceweasel/24.3.0"
- [05/Mar/2014:04:19:51 +1100] "GET /core/js/visitortimezone.js?v=da54dd5a0398011cdfa50d559c2c0ef8 HTTP/1.1" 304 406 "https://my.domain.com/index.php?redirect_url=%2Findex.php%2Fapps%2Ffiles" "Mozilla/5.0 (X11; Linux armv7l; rv:24.0) Gecko/20140206 Firefox/24.0 Iceweasel/24.3.0"
- [05/Mar/2014:04:19:50 +1100] "GET /remote.php/core.js?v=da54dd5a0398011cdfa50d559c2c0ef8 HTTP/1.1" 304 438 "https://my.domain.com/index.php?redirect_url=%2Findex.php%2Fapps%2Ffiles" "Mozilla/5.0 (X11; Linux armv7l; rv:24.0) Gecko/20140206 Firefox/24.0 Iceweasel/24.3.0"
- [05/Mar/2014:04:19:52 +1100] "GET /index.php/core/routes.json HTTP/1.1" 304 277 "https://my.domain.com/index.php?redirect_url=%2Findex.php%2Fapps%2Ffiles" "Mozilla/5.0 (X11; Linux armv7l; rv:24.0) Gecko/20140206 Firefox/24.0 Iceweasel/24.3.0"
There are no error logs, only the above access logs.
I enabled the encryption app on OwnCloud 6.0.2 around 30 minutes ago, and half way through logging back in it states a 500 error. I tried to login again and it now states
If the login process died unexpectedly it is possible that the encryption app couldn't recover in a state where it can continue during the next login.
Please check your owncloud.log. To see if the encryption is still running you could check your /data/user/files_encryption folder size for some time (let's say a 5 or 10 minute interval if you have large files). The folder size should grow as long as the encryption is running because we will generate the keys for each file.
If you have the feeling that nothing changes I would suggest to go to the oc_encryption table of your database and check the 'migration_status' for your user:
SELECT migration_status FROM oc_encryption WHERE uid="<your user>";
This will probably be "-1", reset it to "0" so that a new migration process will be started if you login again:
UPDATE oc_encryption SET migration_status="0" WHERE uid="<your user>";
Than try to log in again, the encryption process should be restarted and continue to encrypt files which are not yet encrypted.
Please also make sure that you closed all sync clients before you start.
@Boseley windows server seems to be not that easy to configure correctly. Some time ago @ringmaster find out what is needed, maybe he can give you some hints.
First thing you could try is to edit your ownCloud config.php and add (adjust the path to your openssl.conf):
'openssl' => array(
'config' => '/absolute/location/of/openssl.cnf',
),
As far as I know this should already help in most cases.
As @schiesbn mentioned, the openssl config setting is the easiest way on Windows to set the config properly. Using environment variables on Windows for this often doesn't produce the expected results like it does on Linux systems.
@schiesbn @ringmaster thank you for all your help! I reverted my server to back before the encryption was enabled and attempted to activate it again, however I got the below problem again:
"Please make sure that PHP 5.3.3 or newer is installed and that OpenSSL together with the PHP extension is enabled and configured properly. For now, the encryption app has been disabled."
However adding the below that you suggested to the config file resolved the issue immediately!
'openssl' => array( 'config' => '/absolute/location/of/openssl.cnf', ),
I then re-tried the encryption on a user account with only a couple of tiny files in it and the encryption has now activated and appears to be working. Thank you for your support as always :)
Great, that it works now! I will close this issue for now.
@boltronics please also try the steps I described above https://github.com/owncloud/core/issues/7533#issuecomment-36660925
Sorry for the delay in getting around to this. Thanks @schiesbn - yes, those steps worked for me too! Cheers.
Thanks @schiesbn - those steps worked for me too!
Please Resolve this Bug|
@schiesbn Hi, a complete noob question here, but i'm really struggling and unable toa ccess my system.
How do i edit the DB? I'm running on a hosted site (bluehost), linux , but i can't seem to be able to find the DB.
Any help, or even how to/what to google would be great.
Thanks, Der
How do i edit the DB? I'm running on a hosted site (bluehost), linux , but i can't seem to be able to find the DB.
This depends on your hoster and how you configured your ownCloud. By default ownCloud uses sqlite. In this case you will find the db in your data folder, it is called owncloud.db. If you don't have shell access to your hoster you need to copy the file to your local system and then open it with sqlite. If you used a database provided by your hoster, e.g. mysql, then it depends on your hoster. Most likely he offers some kind of web interface to access the database.