-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
[Bug]: Deleted DAVx^5 account on Android and Contacts missing from Nextcloud personal account (also a 666 connection :)) #42240
Comments
What would happen if I used the Nextcloud interface to create a new default address book in the |
This isn't an area of the code I'm familiar with, so just a general "maybe this'll help narrow down the cause" idea: any chance you have a db dump from not too long before the deletion event? Maybe do a before/after comparison of the involved tables? |
Do you mean something like the oldest log from the rotating files of the Nextcloud system? |
No, like the output of a |
We're out of luck. I only have 7 days of logs for that MySQL server. Where can I see code specifically for the calendar interface? |
Okay, tonight I did it. I created a new Within phpMyAdmin I queried this;
After the success notifications, but not seeing any contacts load at
So now I have two contacts in my WHY ARE THINGS ALWAYS SO WEIRD! Is it Turing's revenge? |
More tinkering around today. I think that substantial update queries break the system. When I disconnected the DAV^5, it would have synched all contacts I'm guessing. Today I was incrementally doing bigger and bigger update queries to see if I could quickly get all contacts to appear in the new addressbook. I did 2 then 4, then 25, then 50, then 100, then 200 and it broke again. I pushed them all back again and started with a transfer of 175 and it worked. The queries looked a bit like this...
I would just keep changing the upper bound on the In the web interface ( I'm very suspicious that the Contacts app can't do well with over 500 contacts total and over 400 in a single addressbook. |
OH JOY!!!I finally found something useful for you!The size of the bulk transfers I was doing had nothing to do with the problem. I've been told more than once that if I hear the sound of hoves to not look for Unicorns. I tend to look for that fictional animal anyway. It was discovered today as I kept chipping away at my contacts list, and deleting old ones I no longer needed that I had one oddball. The details are below, and I can not get the BLOB record of it because phpMyAdmin won't let me access it in any way. Its
Below is the data that would have been displayed apart from any image scraped from social media.
I'm not sure if you could do a call to image size reduction or if somehow I just got bad data in that BLOB on my own accord, but everything is fine now that that record is gone. I must have been accidentally transferring it whenever things failed. |
Just a little follow-up. I deleted the images from the top 12-sized contacts, and now Thunderbird loads really fast. I used to get a really long lag and assumed it was from the calendar synch, but it might have been the contacts list. I'm pretty sure that I either added some of the offendingly sized images with the Android contacts manager or in my Nextcloud interface. I don't think I did all of them. It seems that some got pulled in via the "[*] Update avatars from social media (refresh once per week)" option. |
Bug description
First I reported this to DAVx^5 to see if they could figure it out
Hey, maybe I'm just Mr. Edge Case.
I've been relying on Nextcloud since I spun up my own NC12 server. Not sure how long I've been relying on DAVx^5 but it's probably almost as long.
Recently, I had trouble with my NC27 server. A bunch of zombie SQL calls were stuck and threw a too many connections error preventing all access to the server via web interfaces, but not from the Android apps. I killed the zombies in my phpMyAdmin interface and things seemed to be fixed.
Steps to reproduce
The next day I was getting weird error messages from the DAVx^5 app, so I thought I could solve the problem by:
Expected behavior
I expected the DAVx^5 to leave a copy of the contacts on the phone and/or just disconnect from Nextcloud. Instead, somehow the connection to contacts in the database is gone from all places; Thunderbird, Android, Nextcloud.
Installation method
Upgrade from previous installation
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Link: https://cloud.ruppssites.com/index.php/s/Rq7ia3J2RPFxnqP
Password:
}IW@}K]6s
I know this is a total red-herring, but it's fun to note that I recently added what turns out to be the 666th contact on my list. Obviously, Satan didn't wipe my contacts.
Looking at the Database;
oc_addressbooks
has a record for the contact list that used to be linked to my personal use account on Nextcloud. Itssynctoken
field is 26646 for some reason and that looks weird to me. (minor note: long ago I changed thedisplayname
field for it from the default ofContacts
)oc_cards
has 666 records matching theaddressbookid
field's value. Thecarddata
BLOB field has the correct data for contacts that I checked.oc_cards_properties
table has 5,949 records with the matchingaddressbookid
field. They all look unmolested by the problem at hand.So what is the missing link that has allowed DAVx^5 to unlink the personal contacts list of a user (with read/write access) from the host address book?
The text was updated successfully, but these errors were encountered: