Developer forum

Forum » Swift » Intermittent images loading to website

Intermittent images loading to website

Anjelica-Mae Bueno
Reply

We have a customer having trouble uploading images to their website and have attempted different formats to upload. Products and images are functioning on blog/article pages and in Files however, they’ve experienced scenarios when they error out stating Upload: Unhandled Error and the page refreshes immediately. Also, sometimes the same files DO upload and to mention that 3 of our DW members are unable to upload images and receive errors and 2 of our other DW members are able to successfully upload images. Per the error log below found in Monitoring tools, the processes seem to be intermittently colliding on the server and/or the image conversion service. Below is a screencast of repro steps as well as the log.

https://www.screencast.com/t/wiD9q7l6eo

2023-11-15 17:08:45.295: The process cannot access the file 'F:\Domains\Sites\hillsdalefurniture.com\Files\Cache.net\Images\h\header-holiday-beds-2.jpg-3845f0ad6713fa0df4a65fab45e4edda.tmp' because it is being used by another process.

System.IO.IOException: The process cannot access the file 'F:\Domains\Sites\hillsdalefurniture.com\Files\Cache.net\Images\h\header-holiday-beds-2.jpg-3845f0ad6713fa0df4a65fab45e4edda.tmp' because it is being used by another process.  Server stack trace:

 at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)

at Dynamicweb.Imaging.ImageHandling.ImageConverter.Convert(ConvertParameters convertParameters)

at Dynamicweb.Admin.ProcessImageHandler.AsyncProcessImageHandler.ConvertImage(ConvertParameters params)

at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)

at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)  Exception rethrown at [0]:

 at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)

at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)

at Dynamicweb.Admin.ProcessImageHandler.ConvertHandler.EndInvoke(IAsyncResult DelegateAsyncResult)

at Dynamicweb.Admin.ProcessImageHandler.AsyncProcessImageHandler.EndProcessRequest(IAsyncResult ar)

at Dynamicweb.Admin.ProcessImageHandler.ProcessImage()

at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

2023-11-15 17:08:45.295: Request headers: [   "Connection",   "Accept-Encoding",   "Host",   "User-Agent",   "cf-ipcountry",   "x-forwarded-for",   "cf-ray",   "cf-connecting-ip",   "cdn-loop",   "x-forwarded-proto",   "cf-visitor" ]

2023-11-15 17:08:45.295: Request item keys: [   "AspSessionIDManagerInitializeRequestCalled",   {},   {},   {},   "ExecutionTableMapper",   "Dynamicweb.Environment.Web",   "owin.Environment" ]

2023-11-15 17:08:45.295: Request form: []

 

 

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

I think it is something related to server setup.

Do you have Load balancing on this solution - from what I know from your setup in those cases, it could lock some of these files.

It can also be caused by security software on the server that scans incoming file uploads.

Have a look at the server eventviewer to get an idea of what is locking the files.

 

You must be logged in to post in the forum