-
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
Upgrade from stable45 to master broken #1520
Comments
No idea if it's related or not, could you give us the DB server and the web server ?(type and version) (and maybe DB logs? ) |
I'm using sqlite and the Apache web server |
Also a problem here, I can't make the Alpha 5.0.0 release from today update. I get a blank screen . No error logs for me though, I am looking at nothing happening in the browser. Steps to repeat: NEXT: So now I am stuck. No entries in ownCloud.log Ubuntu 12.04 |
I tested this with 4.5.5 and then updating to master (2184473) works for me with sqlite. @MTRichards that page does the webdav check. can you create a new issue for that? This is about something else. edit: this is with a plain core install |
Does this still happen? Possibly related to #999 ? |
I just tried it again. It seems like the problem I experience is related to webdav mounts. If I upgrade from OC4.5.6 to master without an external webdav mount everything works fine. But if a webdav mount is configured I get at page which only says "Updating ownCloud to version 5.0 beta 2, this may take a while." If I edit my config.php and remove "'maintenance' => true" and reload the web page the update routine will finish successfully. |
I was also testing DropBox mounts with external storage, so this is very likely the cause for me too. |
@MTRichards Remove the |
I did, and it works - as suggested above. Problem is simply that this shouldn't be necessary. |
@LukasReschke @MTRichards Irrelevant to fixing the issue. Maintenance mode is turned on during the update process, something is causing it not to run completely the first time. @MTRichards The change I made in #2035 is not in master. We need to get you setup with git ;) Skype me when you have the time. |
It would be great if you guys would find a way how to reproduce and fix this. We can't ship ownCloud 5 with a broken upgrade path. |
Is this fixed? |
What ive done:
Refreshed browser and i got: Updating ownCloud to version 5.0 RC 2, this may take a while. Nothing happens. After refresh im in maintainenance mode. Remove the maintenance mode from the config.php, refresh page again: im now again in maintenance mode, it upgrades and redirects me. Everything works correctly. Except the wheels keep spinning in the contacts app. |
Can you check the javascript console? #2120 should have cleared the cache. |
@MTGap you're right, clearing the cache fixed it. Tried it with both firefox and chromium |
No. I didn't ask you to clear the cache. The code is supposed to clear the cache before the update starts. |
I think this clears the server side cache only, not the client side cache (your update). I've cleared the clientside cache. |
It resolved it for me when I saw that Chromium was using an old javascript file. @bartv2 Can you look into it? Is OCP\Response::disableCaching(); also required? |
We ask the browser to check the etag of the core.js and core.css files with every request. Maybe we aren't doing that correctly. |
@bartv2 So, you're saying clearing the cache of both core.js and core.css should force the browser to clear its own cache? It was the solution for me on Chromium so are other browsers not working correctly with the update? |
@MTGap we can't force the browser to clear the cache from the server, we could look for a js solution. But I don't know if it is possible with js. |
The simplest solution is to add OC version or some version-dependent flavor to the core.* files, e.g. core.4.5.7.js, but it's too late for OC 5. |
Can anyone confirm that changing the name of core.js resolves the problem. I'm having no issues with Chromium. lib/templatelayout.php line 47 Change: |
I thought about @MTGap s solution as well. It's very simple, can't break anything that I can think of, and would reduce non-issue bug reports significantly (many issues are sorted by telling users to Shift-reload). It should be appliead to all other styles and scripts too. |
@tanghus I think it just needs to be applied there because everything gets minimized into core.js. @karlitschek your opinion? @Raydiation did it work? |
@MTGap Hmm, on my installation only core stuff seems to go into core js. DEBUG not defined:
Am I missing anything? |
Oh, I didn't realize that. The important file during the update is eventsource.js which is in core. I was also thinking about just copying eventsource.js directly into the update template. |
@karlitschek What are we going to do...? |
I've already had several bug reports where a Shift-reload was the solution, so adding the version as parameter to js and css would really be helpful - both for users and issue triagers ;) |
@MTGap what about appending a GET parameter to the url that does nothing and does not break compability for instance core.js?version=5.0 |
Sounds like a good idea. Should work, no? |
yes. That's common practice to trick caches. If we have files that are more dynamic (i.e. also change within versions because they can contains custom content), the get parameter is usually a hash over the contents. |
We should just use the full version number for the parameter. If people update from git they should know to empty the cache, but it is crucial that all js gets refreshed, and as mentioned above not all js is delivered by core.js |
PR at #2440 |
Add hashed version parameter to js and css. Ref #1520 and many more ;)
i had installed 4.5.8 with sqlite and added some files (ca. 2000) ... then making a manually update to 5.0 ... getting maintenance mode every time! php 5.3.10
this problem is fixed by deleting the browser cache:
i think you released 5.0 to early without enough testing of the update routine! |
I think there were a way to less community testers as we announced every beta and RC release on our mailingslists (announcements + packaging + owncloud) but didn't get much feedback ;-) |
it would be helpful to have the RCs in the official RSS-Feed. i have tested the rc1 of 5.0 but dont update any older version... could you automate the update process with jenkins or unittests to catch such errors? |
Testing would be easier if one could more easily make a copy of the installed environment+DB and configure a second virtual host in apache. I used to do this by copying the owncloud dir and modifying config.php to point to the copied data path. However, since owncloud 5, the paths are hardcoded in the 'oc_storage' table, which makes rolling out an acceptance environment harder. People who do, might inadvertenly modify the production files. |
Closed, because this issue is fixed with the version tag on core.js |
My Owncloud went to maintenance mode after the automatic upgrade from 5.0.6 to 5.0.7... |
@tobby88 it's not that bad. Maintenance mode means that update process was initiated. |
I started with a fresh installation based on the stable45 branch. Than I upgraded to master. The browser shows "Updating ownCloud to version 5.0 pre alpha, this may take a while." forever.
no apache error_log messages, owncloud.log:
The text was updated successfully, but these errors were encountered: