-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config.php loses key-value-pairs #7544
Comments
Do you remember what key-value pairs you used that disappeared ? The thing is that the config.php file is sometimes updated by ownCloud. |
Hi there, sorry, I do not know how the file looked like, before the error occurred. Do you know, if I can "somehow" restore it? The config.php was an unchanged OC 6.0.16 generated one. After this happened, the file looked as followed: 'i dont know if it is secret', 'passwordsalt' => 'salty', 'datadirectory' => '/share/web/owncloud/data', 'dbtype' => 'mysql', 'version' => '6.0.0.16', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', ); which means, that he lost at least the following KVPs: 'dbuser' => 'myAdmin', 'dbpassword' => 'myPassword', 'installed' => true As I do not know the ordering of the entries: if my missing entries were normaly are after the dbtableprefix, than I would guess, due to the coma, that everything after the dbtableprefix was infected. I also guess, that the default entry (of a freshly generated config.php) after dbtableprefix might have caused the issue (as the config.php stops there out of nowhere - otherwise the coma should not have been there). Hope that helps a little! |
Hmm, I have no idea how this could happen, especially for important values like |
Is there any information I could provide you, which might help you out? |
If you are not able to reproduce it consistently it will be hard to almost impossible to debug 😦 |
I’m closing this issue because it has been inactive for a few months. This probably means that the issue is not reproducible or it has been fixed in a newer version. Please reopen if you still encounter this issue with the latest stable version and then please use the issue template. You can also contribute directly by providing a patch – see the developer manual. :) Thank you! |
Steps to reproduce
I was not able to reproduce the issue so far, but it happened while doing the following:
Expected behaviour
Displaying the user screen to add / remove users
Actual behaviour
I was logged out of OC. The login screen of OC provided the installation screen instead of the login-screen.
My config.php was messed up (notice the last coma in the array):
'**i dont know if it is secret**', 'passwordsalt' => '**salty**', 'datadirectory' => '/share/web/owncloud/data', 'dbtype' => 'mysql', 'version' => '6.0.0.16', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', ); ### Server configuration **Operating system**: Rasbian wheezy **Web server:** apache **Database:** mysql **PHP version:** 5.3.x **ownCloud version:** (see ownCloud admin page) 6.0.1 **Updated from an older ownCloud or fresh install:** fresh install **List of activated apps:** default (nothing added) **The content of config/config.php:** '**i dont know if it is secret**', 'passwordsalt' => '**salty**', 'datadirectory' => '/share/web/owncloud/data', 'dbtype' => 'mysql', 'version' => '6.0.0.16', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbuser' => '**myAdmin**', 'dbpassword' => '**myPassword**', 'dbtableprefix' => 'oc_', 'installed' => true ); **Are you using external storage, if yes which one:** local/smb/sftp/... USB Drive **Are you using encryption:** yes/no no ### Client configuration **Browser:** IE8, FireFox 24.2.0, Chrome **Operating system:** Windows 7 ### Logs #### Web server error log [Tue Mar 04 21:21:53 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:21:53 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:23:13 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:23:13 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:23:25 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:23:25 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:23:29 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:23:29 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:24:51 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:24:51 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:24:53 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:24:53 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:25:14 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:25:14 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:25:16 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:25:16 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:25:23 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:25:23 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:25:25 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:25:25 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:25:50 2014] [notice] caught SIGTERM, shutting down [Tue Mar 04 21:26:12 2014] [warn] RSA server certificate CommonName (CN) `<>.no-ip.biz' does NOT match server name!? [Tue Mar 04 21:26:14 2014] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'. [Tue Mar 04 21:26:14 2014] [error] python_init: Python executable found '/usr/bin/python'. [Tue Mar 04 21:26:14 2014] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [Tue Mar 04 21:26:14 2014] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads. [Tue Mar 04 21:26:14 2014] [notice] mod_python: using mutex_directory /tmp [Tue Mar 04 21:26:16 2014] [warn] RSA server certificate CommonName (CN)`<>.no-ip.biz' does NOT match server name!? [Tue Mar 04 21:26:16 2014] [notice] Apache/2.2.22 (Debian) DAV/2 PHP/5.4.4-14+deb7u7 mod_python/3.3.1 Python/2.7.3 mod_ssl/2.2.22 OpenSSL/1.0.1e mod_perl/2.0.7 Perl/v5.14.2 configured -- resuming normal operations [Tue Mar 04 21:30:00 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:30:00 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:30:03 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:30:03 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:45:04 2014] [error] [client 93.221.188.155] File does not exist: /share/web/favicon.ico [Tue Mar 04 21:45:05 2014] [error] [client 93.221.188.155] File does not exist: /share/web/favicon.ico [Tue Mar 04 21:45:05 2014] [error] [client 93.221.188.155] File does not exist: /share/web/favicon.ico [Tue Mar 04 21:49:23 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:49:23 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 21:49:29 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 21:49:29 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 22:06:54 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 22:06:54 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 22:06:57 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 22:06:57 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 22:19:32 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 22:19:32 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 22:19:37 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 22:19:37 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 22:29:07 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 22:29:07 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 22:29:08 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 22:29:08 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 23:01:58 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 23:01:58 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 23:02:00 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 23:02:00 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 23:02:45 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 23:02:45 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 23:02:46 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 23:02:46 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 23:24:33 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 23:24:33 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 23:24:40 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 23:24:40 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 23:24:40 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 23:24:40 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 23:24:41 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 23:24:41 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 23:30:06 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 23:30:06 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 23:30:07 2014] [error] [client 95.116.194.235] client denied by server configuration: /share/web/owncloud/data/htaccesstest.txt [Tue Mar 04 23:30:07 2014] [error] [client 95.116.194.235] File does not exist: /share/web/core [Tue Mar 04 23:40:52 2014] [notice] caught SIGTERM, shutting down [Tue Mar 04 23:41:10 2014] [warn] RSA server certificate CommonName (CN) `<>.no-ip.biz' does NOT match server name!? [Tue Mar 04 23:41:12 2014] [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'. [Tue Mar 04 23:41:12 2014] [error] python_init: Python executable found '/usr/bin/python'. [Tue Mar 04 23:41:12 2014] [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [Tue Mar 04 23:41:12 2014] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads. [Tue Mar 04 23:41:12 2014] [notice] mod_python: using mutex_directory /tmp [Tue Mar 04 23:41:16 2014] [warn] RSA server certificate CommonName (CN)`<>.no-ip.biz' does NOT match server name!? [Tue Mar 04 23:41:16 2014] [notice] Apache/2.2.22 (Debian) DAV/2 PHP/5.4.4-14+deb7u7 mod_python/3.3.1 Python/2.7.3 mod_ssl/2.2.22 OpenSSL/1.0.1e mod_perl/2.0.7 Perl/v5.14.2 configured -- resuming normal operations #### ownCloud log (data/owncloud.log) {"app":"core","message":"Authentication cookie rejected for user RaspBMC","level":2,"time":"2014-02-28T19:51:25+00:00"} {"app":"core","message":"XCache opcode cache will not be cleared because \"xcache.admin.enable_auth\" is enabled.","level":2,"time":"2014-03-04T20:23:12+00:00"} {"app":"core","message":"XCache opcode cache will not be cleared because \"xcache.admin.enable_auth\" is enabled.","level":2,"time":"2014-03-04T21:06:55+00:00"} {"app":"core","message":"XCache opcode cache will not be cleared because \"xcache.admin.enable_auth\" is enabled.","level":2,"time":"2014-03-04T21:06:55+00:00"} {"app":"core","message":"XCache opcode cache will not be cleared because \"xcache.admin.enable_auth\" is enabled.","level":2,"time":"2014-03-04T21:06:55+00:00"} {"app":"core","message":"XCache opcode cache will not be cleared because \"xcache.admin.enable_auth\" is enabled.","level":2,"time":"2014-03-04T21:06:55+00:00"} {"app":"core","message":"XCache opcode cache will not be cleared because \"xcache.admin.enable_auth\" is enabled.","level":2,"time":"2014-03-04T21:06:55+00:00"} {"app":"core","message":"XCache opcode cache will not be cleared because \"xcache.admin.enable_auth\" is enabled.","level":2,"time":"2014-03-04T21:06:55+00:00"} {"app":"core","message":"XCache opcode cache will not be cleared because \"xcache.admin.enable_auth\" is enabled.","level":2,"time":"2014-03-04T21:06:55+00:00"} {"app":"index","message":"Exception: SQLSTATE[28000] [1045] Access denied for user '<>'@'localhost' (using password: NO) [1045]","level":4,"time":"2014-03-04T22:33:39+00:00"} {"app":"index","message":"Exception: SQLSTATE[28000] [1045] Access denied for user '<>'@'localhost' (using password: NO) [1045]","level":4,"time":"2014-03-04T22:33:41+00:00"} {"app":"remote","message":"SQLSTATE[28000] [1045] Access denied for user '<>'@'localhost' (using password: NO)","level":4,"time":"2014-03-04T22:34:48+00:00"} {"app":"remote","message":"SQLSTATE[28000] [1045] Access denied for user '<>'@'localhost' (using password: NO)","level":4,"time":"2014-03-04T22:36:03+00:00"} {"app":"remote","message":"SQLSTATE[28000] [1045] Access denied for user '<>'@'localhost' (using password: NO)","level":4,"time":"2014-03-04T22:37:16+00:00"} {"app":"remote","message":"SQLSTATE[28000] [1045] Access denied for user '<>'@'localhost' (using password: NO)","level":4,"time":"2014-03-04T22:38:30+00:00"} {"app":"core","message":"Login failed: user '<>' , wrong password, IP:set log_authfailip=true in conf","level":2,"time":"2014-03-04T22:43:47+00:00"} {"app":"core","message":"Login failed: user '<>' , wrong password, IP:set log_authfailip=true in conf","level":2,"time":"2014-03-04T22:43:54+00:00"} {"app":"PHP","message":"imagecreatetruecolor(): Invalid image dimensions at \/share\/web\/owncloud\/lib\/private\/image.php#738","level":2,"time":"2014-03-04T23:10:07+00:00"} {"app":"core","message":"OC_Image::preciseResize(): Error creating true color image","level":3,"time":"2014-03-04T23:10:07+00:00"} #### Browser log no errors hereThe text was updated successfully, but these errors were encountered: