After update from 11 to 12 (and now stll from 13.0.5 to 13.0.6) : Calendar loading infinitly (and php-fpm 100% CPU usage)

Hi,
I have a similar problem with my calendar.

FF does not get an answer:
REPORT XHR https:///remote.php/dav/calendars//default%20calendar/

and the cpu is busyā€¦

The table ā€œoc_dav_sharesā€ is correct.
Iā€™ve been using calendar-app since owncloud.
Nextcloud version 11.0.3 works fineā€¦

Hi @werki - Iā€™m right now on a trip to check @steffen s hint, and since his posting I had to reconfigure my nextcloud DB, killed my nextcloud VM, because I updated my cluster (another challenge), had some other infrastructure problems and was only able to restore the VM 5 mins agoā€¦ man, man :wink:

So iā€™ll now be able to try to add the ā€˜publicuriā€™ field to ā€˜oc_dav_sharesā€™ and let you know.

edit: I will not try to add the column, as I just saw you do have that field and it still doesnā€™t work.

Itā€™s strangeā€¦
I have two calendars, one is working and the other does not work.
I can add new calendar without any problems.

Yeah, my second ā€œbirthdayā€ calendar works as wellā€¦ but not the first, main one.

really strange

I found this debug message:

{ā€œreqIdā€:ā€œICgV9TItYUixHmTXZx44ā€,ā€œlevelā€:0,ā€œtimeā€:ā€œ2017-05-24T21:47:36+00:00ā€,ā€œremoteAddrā€:ā€œ12.34.56.78ā€,ā€œuserā€:"ā€“",ā€œappā€:ā€œwebdavā€,ā€œmethodā€:ā€œREPORTā€,ā€œurlā€:"/remote.php/dav/calendars/user/default%20calendar/",ā€œmessageā€:ā€œException: {ā€œMessageā€:ā€œHTTP\/1.1 401 No public access to this resource., No ā€˜Authorization: Bearerā€™ header found. Either the client didnā€™t send one, or the server is mis-configured, No ā€˜Authorization: Basicā€™ header found. Either the client didnā€™t send one, or the server is misconfiguredā€,ā€œExceptionā€:ā€œSabre\\DAV\\Exception\\NotAuthenticatedā€,ā€œCodeā€:0,ā€œTraceā€:ā€#0 [internal function]: Sabre\\DAV\\Auth\\Plugin->beforeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#1 \/srv\/http\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#2 \/srv\/http\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(466): Sabre\\Event\\EventEmitter->emit(ā€˜beforeMethodā€™, Array)\n#3 \/srv\/http\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#4 \/srv\/http\/nextcloud\/apps\/dav\/lib\/Server.php(253): Sabre\\DAV\\Server->exec()\n#5 \/srv\/http\/nextcloud\/apps\/dav\/appinfo\/v2\/remote.php(33): OCA\\DAV\\Server->exec()\n#6 \/srv\/http\/nextcloud\/remote.php(162): require_once(ā€™\/srv\/http\/nextcā€¦ā€™)\n#7 {main}",ā€œFileā€:"\/srv\/http\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Auth\/Plugin.php",ā€œLineā€:168,ā€œUserā€:false}",ā€œuserAgentā€:ā€œMozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0ā€,ā€œversionā€:ā€œ12.0.0.29ā€}

So maybe these issues are indeed linked:

After a new attempt to upgrade 11.0.3 to 12.0.final, calendar loading still doesnā€™t complete and php-fpm CPU usage still goes to 100% (per calendar loading attempt).

FF Console additionally shows:
Error in parsing value for ā€˜topā€™. Declaration dropped. calendar
Error in parsing value for ā€˜leftā€™. Declaration dropped. calendar

And:
ā€œ
JQMIGRATE: Migrate is installed, version 1.4.0 core.js:7:542
"Deprecation warning: use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.ā€ core.js:1563:2834
/remote.php/dav/calendars/ncuser01/defaultalendar/
"

ā€œ/defaultalendar/ā€ ?? for ā€œDefault Calendarā€?? Is there something missing? Or is there something about a NC message, just after upgrade, for MySQL like ā€œconvert to UTF8ā€¦ā€?

Do you have an idea, @oparoz? thanks

The same here. After Upgrade, calendar is not working anymore. Some of the calendars working, others (shared or not) infinite spin and 100% CPU Load.
This is a serious issue for me, because nextcloud-installation is prodactiv.
Is ist possible do downgrade the installation without any loss?

Iā€™m not sure, if downgrading is possible without a lot of hassleā€¦

Iā€™m lucky to be able to create VM snapshots, before I upgrade. Additionally Iā€™ve got nightly DB and data backup scripts. Without those I think Iā€™d be lost.

OK, playing arround my nextcloud, this happend:

  1. Backedup all my data
  2. export the calendars as ics-files
  3. delete all broken calendars in nc
  4. create all calendars
  5. try to import ics-files
  6. Canā€™t because of non-campatible content warning in nc-importer
  7. try to import from calendar-app (macos)
  8. broken sync, 100% CPU
  9. f*ck

My new attempt to upgrade 11.0.3 to 12.0.x still gives the same calendar loading issues. No entries in Webui Logviewer.

Webconsole shows:

JQMIGRATE: Migrate is installed, version 1.4.0  core.js:7:542
"Deprecation warning: use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."  core.js:1563:2834
/remote.php/dav/calendars/ncuser01/defaultalendar/

Config.php is configured with respect to my reverse proxy.

Has really no one an idea what this could be?

Please - could anyone investigate on this still existing calendar problem?

New attempt (after Debian php updates) to upgrade 11.0.3 to 12.0.x still results in the same not loading calendar.

JS Console:
ā€œError: Updating calendar failed app.min.js:3:23575
/remote.php/dav/calendars/ncuser01/defaultalendar/ app.min.js:2:16313ā€

How is ā€œDefault calendarā€ from Webui becoming ā€œ/defaultalendar/ā€ in the URL??

Are there any news about this issue? Thanks

I opened a issue on github. Maybe this helps.

Thanks @Hollerauer. Iā€™m curious if the Debian constellation might be the little troublemaker.

Original issue was closed because I posted it in the wrong repository. Sry

New Issue:

Thank you @Hollerauer

Somethingā€™s in the bushesā€¦

After updating 11.0.3 to 12.0.1RC4 the problem still exists. On https://github.com/fruux/sabre-vobject/pull/383 apearently the issue has been resolved, but I guess itā€™ll take some time to get this update, wonā€™t it?

Here is the solution for this issue posted on github

1 Like