-
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
IIS: config.php gets cleared/reset after sometime when upgrading #12263
Comments
Most likely #11843 (comment) |
Btw. write protecting the config.php is not a workaround as then OC is yelling for r/w permissions. |
@ev0lister As a workaround (read: far away from being a patch) I would recommend you to apply the changes from #12139 (click on "Files" then you see the changes) After applying that patch you should be able again to make the config read-only. But obviously this is still a valid bug being caused by the implementation of PHP on Windows so please keep this issue open. |
@LukasReschke Thanks! Have implemented that workaround and looks fine so far. Will report in case I face any issues. As a side note: I'm aware that Linux is the preferred system for OC, however so far it was always possible to use it on Windows, so would definitively be nice to be able to keep that running :-) |
@ev0lister Can you remember if you was logged-in with an admin account when this happened? - Or was this an account without admin privileges? |
I'm using an admin account - must be this one as there is only one other user on this instance. |
I can reproduce the same behaviour ony my Windows 2012 server machine. The file gets overwritten. It happens always after a request. Which seems to make sense as cron jobs are configured to be handled during the ajax request. |
@jnfrmarks Any chance to test 7.0.2 -> 7.0.3 on IIS and then clicking around a little bit? - Would be interesting if we can reproduce this internally. |
What steps were taken for the upgrade? If I remember correctly, there is a manual step that needs to happen around the DB when upgrading windows. |
The manual steps are only required for MSSQL, IIS is as usual. - Replace old files and click "update". |
Would this happen on apache (windows) too? Or is it related to IIS? I think it depends on the PHP windows implementation. Is this true? |
I'm not quite sure. Single-threaded PHP running Apache might work. - Though once you use Apache there is really no reason not to run it on a *nix system directly. |
It seems to be difficult anyway to have a good apache setup on windows. As xampp should not be used in production environment. And The apache haus windows binaries are also just a bunch of binaries that need to be configured in every detail. I think I will use IIS to proceed. |
Hey guys, what about the current release of OC (7.0.4). In changelog I can see that config.php can be read-only. Would that fix / workaround this issue? I can test that later but maybe you already have the answer.. |
Yes. You can try setting |
Have upgraded to 7.0.4 without setting the config_is_read_only parameter and have no issues now on IIS. |
@ev0lister That's the fun with this bug. It happens not in every case - much fun to debug ;-) |
Is this bug still open in 7.0.4? (https://owncloud.org/changelog/) |
7.0.4 might still be affected. We did some changes to ownCloud 8 in regard to config handlig so you might try the beta and report back. |
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. |
Config file gets cleared after some time.
Steps to reproduce
Expected behaviour
config.php should not be initialized after some time
Actual behaviour
After upgrade from 7.0.2 to 7.0.3 everything works as usual, but then some time later (not yet known when and why) the config.php gets overwritten by OC.
config.php initialized with the following content:
You can replace this one with an backup of the config file and everything works again, however after sometime same issue occurs.
Server configuration
Operating system: Windows 2012 R2
Web server: IIS 8
Database: MySQL
PHP version: PHP 5.5
ownCloud version: 7.0.3 (stable)
Updated from an older ownCloud or fresh install: Updated
List of activated apps: Only default
The content of config/config.php:
Are you using external storage, if yes which one: No
Are you using encryption: No
Client configuration
Browser: Firefox, current version
Operating system: Windows 8
Logs
Web server error log
ownCloud log (data/owncloud.log)
Browser log
Please note: config.php gets at least touched every minute or so.. seems not to be OK.
The text was updated successfully, but these errors were encountered: