I don’t want to raise the alarm. There is always the possibility that I might be doing something wrong, so let’s not incriminate Backendless. But I do find it strange, because it has been working flawlessly for 18 months, and this has started happening over the last 2 months, without any major change on my app.
Database records cannot just disappear. If they are gone, they have been deleted. I am 100% certain the issue is in the app’s logic. If it were a problem in Backendless, it would not manifest itself in a single app.
We will check the access logs to find clues and share the findings with you.
Oh, wow. Surprise. I also have a user disappeared.
My app ID 887E7D6D-1D36-DB89-FFD1-A238F5B46600
I have fake users imported from csv and I added my own profile manually right to the database through the console.
Yesterday I was working with it till my request limit hit.
Today I tried to login to my service with my account and it’s incorrect and my profile doesn’t exist in the database.
I don’t know objectId but I registered it under nikandrodev@gmail.com
Investigation of your application logs showed that the user with the provided email was last mentioned during the execution of task on 2024-05-03 20:58:26,149.
According to the server data, all these users were deleted as guest users:
2024-03-19 20:28:41,921 - Guest user with id A05937FD-3C15-438A-B20F-68E9BC09BD68 deleted successfully
2024-03-07 08:11:02,400 - Guest user with id 8998CFF6-93D9-4AD7-B6E0-09D37EB28F45 deleted successfully.
2024-04-12 12:25:58,825 - Guest user with id 2964FE93-DF70-4256-8F24-F82BEC356B9B deleted successfully.
2024-04-13 20:13:58,676 - Guest user with id 0F3270B5-C808-4682-9E18-8D62FC95F6BB deleted successfully.
I just have a slight problem here : none of these actually were guest users… These are users who registered, have an email address, and have the Backendless status 1 in the database. That’s ENABLED, right ? That’s how they looked in the database before and that’s how they are in my backup files.
But don’t take my word for it. Let’s look at a specific example, the last one in the list, 0F3270B5-C808-4682-9E18-8D62FC95F6BB. In the backup file provided by @sergey.kukhere, this user also has a bckls__userStatusId of 1. And that was on March 28th. That user got deleted on April 13th, allegedly because he was in guest status. And there’s no way to go back from ENABLED to GUEST. The same goes for user 2964FE93-DF70-4256-8F24-F82BEC356B9B, also with a bckls__userStatusId of 1 in the backup file you provided on March 28th, yet deleted on April 12th.
Forgive me, but I feel like I’m missing a piece of information to fully understand how that could have happened.
I completely understand your point, and my response was just the information I could find to move a little further in understanding your issue; it certainly wasn’t a final solution.
I also remember last year’s story with your application, with user roles, and back then there was also confusion about who was a guest and who wasn’t. As far as I recall, the solution then was simply to manually change the user statuses in the database. Maybe now we’re seeing the consequences of those changes, or maybe not. I will continue to investigate your situation and discuss it with the team.
Indeed, when seeing your reply, I thought the same as you and I remembered that issue. I also wondered if there were some side effects. And that is quite painful right now because my earliest and most loyal users are being shot from my app !
It’s great if you continue to investigate. However, in the meantime, it would be great if you could :
run a script on my whole users table to fully synchronize statuses so that no ENABLED user will be deleted in the future,
and provide me with a list of users which got deleted, so that I can check if there are any important ones in there and restore them before they complain.
Finally, could you point me to the place where I can manage the maximum duration of a guest account ? I can’t seem to find it and I would like to lengthen the duration until the issue is solved.
the server initiates a task to delete the guest user after the specified amount of time. If the user registers as a permanent user, the server cancels this task. I’ll try to provide the rest of the information tomorrow.
We’re sorry for the inconvenience and thank you for your patience. Currently we don’t have a script to synchronize statuses. We’ll be working to identify a list of removed users. Also we are working on improving the process by adding a check for guest user status before removing the user. We’ll release the patch as soon as possible and notify you once it’s ready.