Entire Project Wiped out

Feature(s) impacted

All settings / collection has gone!

Observed behavior

Expected behavior

I did a ‘sync database’ and then I started getting an error. I have logged in and logged out and it has not returned.

Failure Logs

I receive this error.

Uh oh, no collections found.
The agent didn’t detect any collections.
Please ensure to have models declared in your project.

Context

  • Project name: Content (POC)
  • Team name: Operations
  • Environment name: Production
  • Agent technology: Cloud (your platform)
  • Agent (forest package) name & version: Latest
  • Database type: MSSQL
  • Recent changes made on your end if any: Has worked fine for a while. I tried to ‘sync database’ and that has caused the issue.

Hello @David_Martin ,

Thanks for your feedback.

After investigations, we detected a critical (and very recent) regression with the “sync database” due to the introduction of the new multi-datasource support feature.

We are actively working on a patch to prevent this in the future.

In order to restore your collections, you will have to, in your environment settings:

  • do an “update credentials” and put your database credentials again
  • click on the datasource and then “update credentials” button.

Your previous layout configuration will be unfortunately lost.

kind regards,

Wow.

Glad this is only a POC.

I’m surprised that anyone would rely on it for a production system when something as simple as sync database wipes out your entire collection.

Would be good to backup the config before a sync so it can rollback if it fails.

Hello @David_Martin,

Sorry that it was not clear in our initial response (edited since), but this issue is really recent (introduced a few days ago) and limited to specific projects that did not “sync database” since the beginning of July.
As it is not a generic issue, we did not write automatic tests on this specific case, and we thus released this critical regression.
As we are finalizing the patch, we will obviously make sure to cover this case with automated tests (as specified in our internal processes for such scenario).

About the layout, we actually do have an automated layout backup system, but it is an Enterprise level feature that has not been activated on your project that is still in trial.

Such feature is here to help customers to recover their own unexpected layout manipulation in the recent past.
In your case, the layout is lost due to a Forest Admin bug. In such circumstances, we understand that we should do our best to help you restore your layout. And we can actually restore this layout, via a manual and more time consuming process for our team.

As you define your project as a POC, do you want us to spend the time to attempt this layout recovery?
Do you think it is worth the effort, according to your previous layout configuration complexity?

Thanks for your input
Regards,

2 Likes

Please note that the fix has just been released in production.

1 Like

Thanks Nicholas.

I would appreciate a restore as I had web hooks and other bits and pieces I was testing.

For me to put it back together would be 4-6 hours. So if your restore effort takes less it would be appreciated.

Very scary, all I did was press database sync, didnt even make any changes.

Thanks,
Dave

Thank you for your response, and sorry again for the scare… :pray:

Did you manage to recover access to your database already by updating the credentials ? I need to know before starting to perform the restore, otherwise it might be lost again.

Please note that any web hooks and code customizations that you have added to your cloud agent should be restored automatically along the database connection. You may have to check again that they are allowed by your role.

Regards,

1 Like

I didn’t know that was needed for you to restore. I will do that now.

I have now done it. Are you able to please restore it?

Thanks for the info.
I will attempt the restore and report here

1 Like

Thank you very much.

I have performed the layout recovery. Do you see it on the project ?

1 Like

checking it now. Thank you!

Hi Nicolas. Thank you very much. Almost all the config was restored.

The webhooks (actions) are missing but I can fiddle around and get them working again.

Regards,
David

1 Like

Hello @David_Martin,
I’m glad the layout is back as expected for you.
Sorry about the webhooks, I couldn’t restore them like I initially thought.

Have a nice day !

@Nicolas.M

3 Likes

Thats ok, you have saved me hours of work. Much appreciated.

1 Like