2sic / 2sxc

DNN + 2sxc = #DNNCMS - This tool helps web designers and developers prepare great looking content in DNN (DotNetNuke). It's like mixing DNN with Umbraco and Drupal :)
http://2sxc.org
MIT License
145 stars 40 forks source link

Data is missing error #3440

Open vandersonpessoa opened 3 months ago

vandersonpessoa commented 3 months ago

I'm submitting a

[x] bug report

...about

[x] Content Types or data management [x] DNN parts

Current Behavior / Expected Behavior

The 2sxc modules once in a while throw the following error:

Error: System.Exception: Data is missing. This is common when a site is copied but the content / apps have not been imported yet - check http://2sxc.org/help?tag=export-import

Clearing the site cache, recycling the app pool and restarting the site do not typically resolve this issue, but usually it is resolved by the next day.

Instructions to Reproduce the Problem

Sem título

Your environment

iJungleboy commented 2 months ago

This is hard to guess. I suggest you upgrade to the latest LTS for now (17.09).

I'll close this now, if after the upgrade you still experience something similar, we'll reopen the issue.

vandersonpessoa commented 2 months ago

Upgrading to 17.09 didn't fix the issue

vandersonpessoa commented 2 months ago

@iJungleboy Could you please reopen the issue?

vandersonpessoa commented 1 month ago

We migrated our database to Azure, and it seems this issue is occurring more frequently since then. Could the migration be causing this? What other details can we provide you to help investigate this error?

iJungleboy commented 1 month ago

Something is obviously wrong when loading the data, but I can't actually debug it without seeing it.

Basically I suggest you check the insights next time this happens. There is a lot of information about loading the data being logged, so if it fails to load there is probably a message that a folder wasn't accessible or something.

vandersonpessoa commented 1 month ago

I've checked the module logs and found the error, but not exactly the cause.

sss

Is there any other log that could have relevant information about this? Please see attached the complete log file for reference (it's an html page) LogsError.txt

iJungleboy commented 1 month ago

@vandersonpessoa The problem is not in the page which loads, but earlier.

Something must break loading the initial data. There are other sections in the log showing global data being loaded etc. Please go through that to find out more.

You can see on a working system that there is one section in the logs which is huge. That's the one loading all the default schemas etc. and almost certainly the part which seems to fail randomly on your system.

iJungleboy commented 1 month ago

Check out these sections image

There should be a very big log here, which is probably much smaller because something couldn't be accessed:

image

vandersonpessoa commented 4 weeks ago

The boot-log section doesn't exist here:

all-logs

I've looked into the global-start-up, but the file isn't much smaller than the one you mentioned:

global-start-up

Also, at first sight I couldn't see much difference comparing it to a log from a site that is working properly. Please see attached and let me know your thoughts.

global-start-up.txt

6TELOIV commented 3 weeks ago

We've noticed this issue occur sometimes if you make a change to web.config. Once IIS "reloads", 2sxc data gets out of sync. Restarting the server has always fixed the issue for us.

Based on the nature of the issue, it seems to be a race condition, making it hard to reproduce.

vandersonpessoa commented 3 weeks ago

@6TELOIV Thank you for your input, but a web.config update doesn't seem to be the thing that is causing the issue in our environment. It occurs even without recent changes in web.config. Also, restarting the server or IIS doesn't fix the site here.

6TELOIV commented 3 weeks ago

At the bottom of your log, I see that it says "Found 0 Licenses"; did you have your installation verified on patrons.2sxc? I think this log indicates that somehow the connection isn't present. Other than that, I didn't find anything significantly different between your log and mine for an operational 2sxc installation.

Also not sure how a license presence would cause this error, especially at the random rate you describe. Just throwing out ideas!

vandersonpessoa commented 3 weeks ago

No, it is not registered on patrons

vandersonpessoa commented 3 weeks ago

We've noticed that this issue is only occurring with the Content App. Could the number of items be causing this?

image

iJungleboy commented 2 weeks ago

@vandersonpessoa this is special.

Can you confirm that when this happens, it only happens on this app, and the others work? This could give us a clue as to where to look, but I must be very sure that this is the case?

vandersonpessoa commented 2 weeks ago

Yes, the other apps keep working

iJungleboy commented 2 weeks ago

This is helpful, but still strange.

Internally large data amounts are loaded batchwise, to prevent SQL problems - usually batches of 5000 items. But what would be strange is that it sometimes works, and sometimes fails.

If your description is correct, then the logs showing loading of that specific app should give more info (in your case Zone 2 App 2). I believe it logs the clustering and loading, and so it should also show SQL problems or something.

iJungleboy commented 6 days ago

Note that we just released 18.01 last week, and it should show more debugging when loading the chunks.

Any chance you could test that?