-
Notifications
You must be signed in to change notification settings - Fork 241
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
Contents of subscribed calendars almost completely disappear after invoking cron.php #2413
Comments
Can you manually open the subscribed ics file and confirm there are more events in there than in Nextcloud? Is that really the entire Nextcloud.log? If that's the case, please increase the log-level to more verbose output and run cron.php again. |
There are more events in the ICS files than in NextCloud. I have 2 subscribed calendars WebUntis and Facebook. Both show almost the same behaviour. The Facebook calendar is completely empty after a run of cron.php, in the WebUntis calendar only the first entry remains. When I delete the calendars on NextCloud and resubscribe them, all events are there again.
That was the only log entry that seemed relevant to me. The other entries were from "News" and said that the subscribed feed wasn't well-formed and therefore could not be parse or the domain to fetch the feed from was unavailable. There is a strange thing: After my NextCloud instance showing the described behaviour for month, the behaviour vanished while writing this comment. It seems all events in the subscribed calendars survive a run of cron.php now. I have neither updated NextCloud nor the Calendar app since filing the bug. |
Looks like I have a similar issue, but with slightly different symptoms. When I subscribe to an external read only calendar (in my case icloud based), no events ever show on the web GUI. However, clients that connect to my nextcloud server do show those external subscribed calendars and all events show. It looks like it's only the web GUI that does not update, but nextcloud calendar clients do. Any clue how to solve this ? |
@ndx1905-github This is because subscriptions are cached on the server for the Nextcloud Calendar app, not for other clients. The caching process might encounter parsing errors that may be tolerated in other clients. Increase loglevel and check your nextcloud.log file for related errors when you add the subscription. |
Thanks for the quick reply {"reqId":"dOHug8YUc0QlSCghvABN","level":0,"time":"2022-03-21T19:18:32+00:00","remoteAddr":"192.168.1.1","user":"nicolas","app":"maps","method":"MKCOL","url":"/remote.php/dav/calendars/nicolas/p58-caldavicloudcom","message":"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15","version":"23.0.2.1"} |
Yup, that's the culprit indeed. Can you try to validate your source at https://icalendar.org/validator.html ? The next release might have more logging details with nextcloud/server#31622, but in the meantime if you're feeling adventurous you can try to patch file -$this->logger->debug("Subscription $subscriptionId could not be parsed");
+$this->logger->warning("Subscription $subscriptionId could not be parsed", ['exception' => $ex]); |
Mmm so indeed icalendar tells me there are two errors It's annoying that icloud can't be parsed because of that. I'm going to try the adventurous route ! |
So .. I did change the RefreshWebcalService.php as indicated. However nothing changed 😕 |
Remove the subscription and recreate it. |
Mmm I had done that and it didnt work So I went back to the RefreshWebcalService.php file to check it and noticed I had changed only one line with your correction, when there were 3 lines I've changed them all, I've removed the subscription and I've recreated it. Same symptoms: nothing on the Web UI, but updating on all other clients |
The change is only there to have more details in the logs. |
ah ok.. silly me I've done the modification but the log doesn't seem to be more detailed |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Steps to reproduce
Expected behaviour
Calendar stay in database (mysql) and stay visible in the NextCloud web GUI. After subscrabing the same calendar file, all the calendar entires are stored in the DB again and shown in the web GUI.
Actual behaviour
Almost all calendar entries of the subscribed calendars are deleted in the DB and therefore not shown on the NextCloud web GUI. In one subscribed calendar only one entry stays in the database, in the other subscribed calendar all entries are deleted.
Server configuration detail
Operating system: Linux 5.4.51-v7l+ #1326 SMP Fri Jul 17 10:51:18 BST 2020 armv7l
Webserver: Apache (fpm-fcgi)
Database: mysql 10.3.22
PHP version:
7.3.19-1~deb10u1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, sodium, standard, cgi-fcgi, mysqlnd, PDO, xml, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, json, ldap, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, smbclient, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, libsmbclient, Zend OPcache
Nextcloud version: 18.0.7 - 18.0.7.1
Updated from an older Nextcloud/ownCloud or fresh install: Updated from an oleder version. 17 I think - or even 16.
Where did you install Nextcloud from: https://ownyourbits.com/nextcloudpi/
Signing status
Array
(
)
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: smb
Are you using encryption: false
Are you using an external user-backend, if yes which one:
Client configuration
Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/83.0.4103.61 Chrome/83.0.4103.61 Safari/537.36
Operating system: Ubuntu 18.04, 20.04
Logs
Web server error log
Nextcloud log
Browser log
The text was updated successfully, but these errors were encountered: