core icon indicating copy to clipboard operation
core copied to clipboard

since upgrade to 7.0, clicking on "apps" takes (almost) forever

Open frankuit opened this issue 12 years ago • 12 comments

Expected behaviour

when clicking "apps" in the upper left corner on the menu, installed apps / addons should appear

Actual behaviour

i click it, the browser keeps loading with a spinning wheel, and it takes over 5 minutes.

Steps to reproduce

  1. click "apps"
  2. wait
  3. wait even longer

Server configuration

Operating system: Debian wheezy 64 bit Web server: Apache2.2 Database: mysql-server 5.5.38-0+wheezy1 PHP version: 5.4.4-14+deb7u12 ownCloud version: 7.0.1rc1 AND 7.0 stable Storage backend: direct/zfs

Client configuration

Client version: webbrowser, tried Firefox 31 and safari Operating system: Linux and Macos (tried both) OS language: English and Dutch

Installation path of client:

Logs

Please use Gist (https://gist.github.com/) or a similar code paster for longer logs.

Template for output < 10 lines

(NOT SURE IF THIS IS RELATED)

  1. Web server error log: no errors
  2. ownCloud log (data/owncloud.log): Jul 31 10:28:27 owncloud ownCloud[33810]: {core} Unable to parse OCS content Jul 31 10:28:47 owncloud ownCloud[33810]: {core} Unable to parse OCS content

ocappshangs

frankuit avatar Jul 31 '14 08:07 frankuit

I have the same behavour (see #9933), with only 20 sec of loading. adding the line " 'appstoreenabled' => false, " in config.php is a workaround, but it disable the online appstore (i think).

GetBoz avatar Jul 31 '14 10:07 GetBoz

I can confirm both, the problem and the work-around. Disabling appstore sped up the thing enormously (here on a fresh install of OC7 on Ubuntu 12.04).

IzzySoft avatar Aug 04 '14 13:08 IzzySoft

Some refs: https://github.com/owncloud/core/issues/10141, https://github.com/owncloud/core/issues/9012

ghost avatar Aug 07 '14 16:08 ghost

I have the same problem, but also in log I have Debug webdav Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found

szolotykh avatar Aug 10 '14 13:08 szolotykh

With the line " 'appstoreenabled' => false, in config.php the problem is "solved". A very hacky workaround. But it loads faster. Not a good soulution though.

cc @DeepDiver1975

enoch85 avatar Aug 12 '14 22:08 enoch85

With the hack loading went from a minute to a second. Thankyou @GetBoz

zubairw avatar Aug 13 '14 07:08 zubairw

Suggestion:

With 'appstoreenabled' => true, app-store data should be locally cached, with a (configurable) minimum refresh-interval. By default, one refresh per day should be sufficient. Optionally, there could be a setting to turn caching off for those who wish:

'appstoreenabled' => true`,          // enable the appstore
'appstorecacheenabled' => true`,     // enable caching its data
'appstorerefreshinterval' => 86400`, // minimum refresh in seconds

The Cron task then could take care for cache-refresh asynchronously, with the last_refresh stored in DB.

Something like that I'd consider a solution – while I can live with the current work-around (except for that "huge delay" on page load, I couldn't see a difference in functionality: No way to directly browse the repo and install apps, or the like. I obviously must have missed something here).

IzzySoft avatar Aug 13 '14 07:08 IzzySoft

Thanks a lot for your suggestion - we are aware of the bad user experience on the apps page. We will work on this for OC8 - most probably @jancborchardt and myself will start tomorrow.

I think there is no need for a cron job to fetch the data from the appstore. From my understanding a clear separation of local apps (which can be enabled/disabled or simply to check the version number) and an 'install from appstore page' which async operations should really give a far better user experience.

@karlitschek @jancborchardt any further comments?

DeepDiver1975 avatar Aug 13 '14 08:08 DeepDiver1975

@DeepDiver1975 Sounds perfect to me, as it additionally saves "unnecessary network traffic". You might still consider caching the asynchronously fetched information (optionally and configurable) for later use. To me it wouldn't make much sense if I already retrieved that, then temporarily switch to e.g. the calendar to check something, and finally had to re-fetch everything only 2 minutes later when switching back ;)

Btw, a little pointer: Yesterday I've published an article on OC, including the above mentioned "work-around" especially for "newcomers" so they don't get "frightened away by bad performance": Android without Google 2: ownCloud (article available in German and English; that's part 2 of a not-yet-completed series).

IzzySoft avatar Aug 13 '14 20:08 IzzySoft

@IzzySoft

The link requires login?

enoch85 avatar Aug 13 '14 21:08 enoch85

Nope, typo in the URL, sorry (that was the test-server – copy-pasta). Fixed. Please try again.

IzzySoft avatar Aug 13 '14 21:08 IzzySoft

Should be fixed on master.

LukasReschke avatar Nov 26 '14 13:11 LukasReschke