Closed amironoff closed 8 years ago
You can see detail of the error in your browser, just switch it to debug mode F12 and see the details for this request error there. And could you send to me your csv file for local reproduce this error?
@tatarincev I think i nailed it.
I hypothesize that this is Lucene indexing taking too long + Hangfire timeout being too low. I spinned up an external Elasticsearch instance. Import seems to be going forward now (although pretty slow)
I'd strongly suggest you'd consider improving transparency of the system. There should be a searchable job log, where for each async job its state and (if the job crashed) full error stack trace is available. Right now, there's no way to easily know if e.g. import or index rebuilding succeeded.
@tatarincev here's the (anonymized) csv file I'm uploading.
Because we are use Hangfire as primary library for all background jobs you may use it UI for diagnostic purposes. Just open this url http://localhost/admin/hangfire
@tatarincev thanks, I discovered it. However, Hangfire UI says that everything is cool, no issues whatsoever, all jobs are successful :) Also, it doesn't even display 24h job log. There are just a few hours worth of data.
Just imported all 15k products locally but have problem with search Indexation job. Hangfire run multiple instance same job and my processor began to smoke :)
Need to work on csv import performance because Entity Framework does not friendly with bulk update and insertions :)
@artem-dudarev Need to disable concurrent execution same Hangfire jobs such as CatalogIndexJob and check it performance.
The logs also contain lots (I estimate thousands) of this exception type cases:
Parameter name: s
at System.IO.StringReader..ctor(String s)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at VirtoCommerce.Platform.Data.Serialization.XmlExpressionSerializer.DeserializeExpression[T](String serializedExpression) in D:\Projects\Training\cms\vc-community\VirtoCommerce.Platform.Data.Serialization\XmlExpressionSerializer.cs:line 20
at VirtoCommerce.PricingModule.Data.Services.PricingServiceImpl.
Exceptions are rather costly in terms of execution time. Could that be slowing things down too?
Update: Premature import failure happens when using SQL Azure databases. I tried scaling them up to 50 DTUs with same result. When I deployed a SQL Server instance to a dedicated DS2_V2 VM, importing 15k items succeeded in around 24 hours.
Now I'm working on import performance. And today will be fix allows to import your 15k products near 1-2 minutes.
There was a small additional refactoring. And release this fix postponed to tomorrow.
@tatarincev VirtoCommerce might be a (relatively) new kid on the block, but your speed of reacting to bug reports is amazing. Great job!
I think you'll be surprised at most of the new csv import speed :) But still some problems with search indexation big portion of data ;(
Hello,
I'm trying to import just 15k products initially using the CSV import facility. The import has been very unstable so far. Sometimes it's 300 products, sometimes - 900. The largest I could pull is 3k. This runs on decent Azure infrastructure. The worst is that VC doesn't provide any feedback on failure. It either silently stops or shows a red 'Error 500' notification on the import blade. And that's it.
How do I troubleshoot? What's the VC offering in terms of monitoring?