-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ReminderService::parseCalendarData() must be of the type string #17951
Comments
@enoch85 As the big note on top of the issue template states: CalDAV issues belong in the server :) |
@enoch85 can you please check the database. I suspect that there is some row in oc_calendarobjects where calendardata is not a string. |
Have this exact issue, using PostgreSQL as DB. Not sure how to check the datatype of a column though. Can you suggest a command? |
Here's the output of "\d oc_calendarobjects"
|
@georgehrke I'm not exactly sure what you mean by that, but here are my output from the command above:
|
My question was not about the database structure itself, but whether there is a row inside the table that where calendar data is empty. |
How would you get that information, do you have any command in your backpocket? :) |
This is what I came up with:
|
I’m experiencing the same issue and I am also using Postgresql as DB. This didn’t happen in Nextcloud 16. I am not sending calendar invites. It started happening after I added a new calendar entry. The entry was successfully saved (and new ones are too), but I keep getting this error in the logs every few hours from cron. I am calling cron.php via crontab. |
@cvandesande Can you check for any rows where calendar data is an empty string? |
0 rows :(
|
Can you please check if this PR fixes the problem for you? Thx! |
I've applied the changes, but the error seems to occur only every 12 hours, (1:30 and 13:30GMT daily) so I will try to follow up tomorrow |
Any news? I’m currently travelling so I cannot try the PR myself |
No more errors since applying the patch. Think we're good now!
…On November 28, 2019 10:57:10 AM UTC, ichi_i ***@***.***> wrote:
Any news? I’m currently travelling so I cannot try the PR myself>
>
-- >
You are receiving this because you were mentioned.>
Reply to this email directly or view it on GitHub:>
#17951 (comment)
|
I have also tested the patch, and for me it also removed the errors that occur every 12h. |
Just for completeness, it's been a full week since the error occurred, no reoccurrence of the error since applying the patch. |
Updating to 17.0.2 has undone the patch. Any idea when this fix will get merged? |
Seems like it only will happen in Nextcloud 18. But I might be wrong: #18115 |
No, I'm running Nextcloud 17.0.2 and I'm also affected by this problem
|
The bugfix was not back ported to Nextcloud 17 yet. Let me take care of that. |
I have the exact same issue on NC 19.0.2 with PHP 7.4 installed on Ubuntu 20.04. I imported a couple of Google Calendars when I started with NC and have the issue that no notifications are sent via mail at all. Any ideas on how to further troubleshoot that would be appreciated. |
I have now even validated all my calendars and removed all subscribed calendars that showed errors. |
I had the same issue on NC 20.0.2, and I solved it by manually deleting the rows in calendar_reminders that pointed to non-existent rows in calendars. This is the query that NC executes and that you should check for calendardata NULLs:
edit: added the WHERE clause and indentation |
@tommasig I then tried to delete those by running:
However, this showed me that 7 lines were affected. Any idea, why the delete query showed 7 affected lines? |
Sorry for the delay in the answer. I think a more accurate delete query would have been something like:
I haven't tried it though. Since I had to delete only 2 rows and I was managing the db using phpMyAdmin I just used the web interface to do it for me. |
Steps to reproduce
No idea. I think it's when sending calendar invitations from the Web calendar.
Expected behaviour
No errors
Actual behaviour
See nextcloud.log
Calendar app
Calendar app version: (see apps admin page, e.g. 2.0.1)
1.7.1
CalDAV-clients used: (Thunderbird Lightning, DAVx5, Evolution, macOS Calendar, etc)
DAVx5
Client configuration
Browser: (e.g. Firefox 48)
Firefox
Operating system: (e.g. Arch Linux)
Ubuntu 18.04
Server configuration
Operating system: (e.g. Debian 8)
Ubuntu 18.04
Web server: (e.g. Apache, Nginx,...)
Apache 2.4
Database: (e.g. MariaDB, SQLite or PostgreSQL)
PosgreSQL 10
PHP version: (e.g. 7.0.3)
7.2
Nextcloud Version: (see admin page, e.g. 17.0.2)
17.0.1
Updated from an older installed version or fresh install:
Updated
List of activated apps:
Nextcloud configuration:
Logs
Web server error log (e.g. /var/log/apache)
Log file (data/nextcloud.log)
Browser log
The text was updated successfully, but these errors were encountered: