Closed Barsonax closed 4 years ago
Quick question: Did you clear you data folder for solr so you get fresh empty cores at startup?
Yes that does fix it but I would like not having to do that everytime.
It should not be needed to do everytime, only once. So you are saying that after you do that, populate and reindex, then I continues to happen?
The seed condition differs for Aviva repo vs Sitecore:
vs
@Barsonax what is the prefix of your cores?
It should not be needed to do everytime, only once. So you are saying that after you do that, populate and reindex, then I continues to happen?
No I havent yet figured out how to reproduce this consistently but its does happen frequently.
@Barsonax what is the prefix of your cores?
sitecore_ so I think this condition is wrong
I think this is reproducible with the following steps:
So we can fix it by renaming sc_
to sitecore_
: https://github.com/Sitecore/docker-images/pull/183
I noticed that the Linux images use sc_
as prefix, but do not check for prefix in the boot script: https://github.com/Sitecore/docker-images/blob/561a6c6619e50b6d58d6e0317b991242ed5dee50/linux/9.2.0/sitecore-xm-solr/boot.sh#L7
Maybe we could remove the complete directory check, and only check for solr.xml
like is done for Linux images.
@pbering @Barsonax what do you think?
This would make the behavior more consistent over the different images so I agree with this change.
I agree!
Hmm the error still seems to occur on commit ec563b00354ec1d789487ad459607c8c2042d351
@joostmeijles
EDIT: nvm checked the container and the check is still there which probably means my build cache needs to be cleared.
EDIT: still getting the error...
Even with the new images I can still reproduce this issue after a docker-compose down
so this issue is not fixed @joostmeijles @pbering
Bug seems to be related to process isolation. Not yet sure why though but I cannot seem to reproduce this with hyper v isolation.
Iam unable to reproduce this anymore. My guess is that Microsoft found the bug already and patched it recently.
Still happening for us.
Windows 10 2004 and 2009; docker 20.x Not sure what Microsoft would have updated?
Also tried with updated java15 but no success.
Change the solr
service from process
to hyperv
.
yes that's suggested workaround above but not the proper solution but probably not on sitecore plate. my comment was with regards to that MS would have updated/fixed this somewhere.
It may not be Sitecore's problem to fix, but when 10.1 ships with a recommended setup that includes process isolation for the solr
service, at the very least the default recommendation should be reconsidered.
Since I switched to these images iam getting errors when iam trying to rebuild the index (to be more precise at the end of the rebuild). This didn't happen before when I used https://github.com/avivasolutionsnl/sitecore-docker.
Restarting and clearing the data folder seems to help.
Info:
Steps:
services:
sql: image: ${REGISTRY}sitecore-xm-sqldev:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} isolation: process volumes:
"44010:1433"
solr: image: ${REGISTRY}sitecore-xm-solr:${SITECORE_VERSION}-nanoserver-${NANOSERVER_VERSION} isolation: process volumes:
"44011:8983"
sitecore: image: ${REGISTRY}sitecore-xm-cm:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} isolation: process entrypoint: powershell.exe -NoLogo -NoProfile -File C:\tools\entrypoints\iis\Development.ps1 volumes:
networks: default: external: name: nat
Job started: Index_Update_IndexName=sitecore_master_index|#Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> SolrNet.Exceptions.SolrConnectionException: <?xml version="1.0" encoding="UTF-8"?>
---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error. at System.Net.HttpWebRequest.GetResponse() at HttpWebAdapters.Adapters.HttpWebRequestAdapter.GetResponse() at SolrNet.Impl.SolrConnection.GetResponse(IHttpWebRequest request) at SolrNet.Impl.SolrConnection.PostStream(String relativeUrl, String contentType, Stream content, IEnumerable
1 parameters) --- End of inner exception stack trace --- at SolrNet.Impl.SolrConnection.PostStream(String relativeUrl, String contentType, Stream content, IEnumerable
1 parameters) at SolrNet.Impl.SolrConnection.Post(String relativeUrl, String s) at SolrNet.Impl.LowLevelSolrServer.SendAndParseHeader(ISolrCommand cmd) at Sitecore.ContentSearch.SolrProvider.SolrSearchIndex.PerformRebuild(Boolean resetIndex, Boolean optimizeOnComplete, IndexingOptions indexingOptions, CancellationToken cancellationToken) at Sitecore.ContentSearch.SolrProvider.SolrSearchIndex.Rebuild(Boolean resetIndex, Boolean optimizeOnComplete) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Sitecore.Reflection.ReflectionUtil.InvokeMethod(MethodInfo method, Object[] parameters, Object obj) at Sitecore.Jobs.JobRunner.RunMethod(JobArgs args) at (Object , Object ) at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at Sitecore.Jobs.DefaultJob.DoExecute() at Sitecore.Abstractions.BaseJob.ThreadEntry(Object state)