Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kev 16 posts 67 karma points
    Aug 19, 2014 @ 12:04
    Kev
    0

    Media section throwing 500 server error - v6

    Hi all,

    The media section in one of our sites has suddenly stopped working recently. I'm not sure what would have 'caused this as the only changes being made would be content.

    When trying to access media in the admin area I get the following errors (500 internal server error) in the console:

    /umbraco/webservices/TreeDataService.ashx?rnd=633690dce4…277bf1c5508&id=-1&treeType=media&contextMenu=true&isDialog=false&rnd2=15.7

    /base/FolderBrowserService/GetChildren/-1?_=1408441822711

    --

    It seems to be relating to:

    DependencyHandler.axd?s=L3VtYnJhY29fY2xpZW50L0FwcGxpY2F0aW9uL05hbWVzcGFjZU1hbmFnZXIuanM7L3VtYnJhY29…:

    --

    I tried upgrading to 6.2.1 but the problem still persists.

    Does anyone have any ideas.

    version: 6.1.5

    Thanks in advance.

  • Chris Randle 85 posts 199 karma points c-trib
    Aug 20, 2014 @ 14:49
    Chris Randle
    0

    Hi Kev

    Let's see if we can't help you. Firstly, a 500 error is the most serious of errors. It usually means something of the server / backend is not working. The first place I start is looking at the log files. Can you do me a favour and go to ~/App_Data/Logs folder and delete all the UmbracoTraceLog.txt files that you have there.  If you don't have any then you may need to enable debugging and trace output via the web.config. Now repeat the action you did that generated the 500 error. You should now have the error details output to a new UmbracoTraceLog.txt file at that location.  

    If you can't make head or tail of it, please paste the contents here and we'll see if we can't help you. Has this site been running for long?  Did it start happening after creating a new macro or something? If you have a template containing a macro that is throwing an exception (e.g. a NullReferenceException because, say, we are trying to get a node that doesn't exist, for example) then this will manifest as a 500 server error. It's basically the cover-all error that IIS (and other web servers) use for anything non-web related.

    Paste your logs and we'll carry this on. Cheers! 

  • Kev 16 posts 67 karma points
    Sep 25, 2014 @ 11:26
    Kev
    0

    Hi Chris,

    Apologies for the delayed reply. The problem went away (or we thought was solved by permission changes) but it has returned. Would you be able to assist with this? I've followed your steps and here is the trace log:

    The site has been running for about 8-12 months & the only updates has been CSS/JS changes. The largest being a MailChimp form on one of the templates. Anything else has been in the clients hands where they only have editor permissions.

    2014-09-25 10:17:14,762 [36] INFO Umbraco.Core.Persistence.UmbracoDatabase - [Thread 12] at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.getMetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior) at StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>c__DisplayClass4.<ExecuteReaderWithRetry>b__3() at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func1 func) at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteReaderWithRetry(IDbCommand command, RetryPolicy cmdRetryPolicy, RetryPolicy conRetryPolicy) at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteReaderWithRetry(IDbCommand command, RetryPolicy retryPolicy) at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteReaderWithRetry(IDbCommand command) at Umbraco.Core.Persistence.Database._3() at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func1 func) at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteReaderWithRetry(IDbCommand command, RetryPolicy cmdRetryPolicy, RetryPolicy conRetryPolicy) at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteReaderWithRetry(IDbCommand command, RetryPolicy retryPolicy) at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteReaderWithRetry(IDbCommand command) at Umbraco.Core.Persistence.Database.<Query>d__1c1.MoveNext()

  • Praveen 1 post 21 karma points
    Oct 16, 2014 @ 15:14
    Praveen
    0

    Hi,

    I have the same error, has there been any update or fix?

  • Rune Grønkjær 1372 posts 3103 karma points
    Dec 08, 2014 @ 13:08
    Rune Grønkjær
    0

    +1 here

    Same problem in Umbraco v6.1.2

  • Rune Grønkjær 1372 posts 3103 karma points
    Dec 08, 2014 @ 13:25
    Rune Grønkjær
    0

    Anyone have a fix now?

  • Giovanni Sidoel 94 posts 233 karma points
    Feb 17, 2016 @ 14:45
    Giovanni Sidoel
    0

    Same here. Any fixes yet?

  • Mahesh 20 posts 90 karma points
    Dec 16, 2019 @ 08:55
    Mahesh
    0

    Media is not loading , I am getting 500(Internal server error) .

    https://ecctutorial.com/umbraco/webservices/TreeDataService.ashx?rnd=236c0aee6c51499fb77828ee709eff3e&id=-1&treeType=media&contextMenu=true&isDialog=false&rnd2=87&_=1576475911871.

    https://ecctutorial.com/base/FolderBrowserService/GetChildren/-1?_=1576475913250

    Above links are throwing 500 error. Is there any solution to fix it. I am using umbraco 6.2.5 version.

    Note: Media is loading in local site. I am getting this issue in live server.

    In log file i am getting errors like below.

    2019-12-16 05:57:51,197 [11] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - [Thread 24] An error occurred with the scheduled publishing. The base url used in the request was: https://localhost:80/umbraco/, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/#ScheduledTasks documentation for details on setting a baseUrl if this is in error System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) at System.Net.WebClient.UploadString(Uri address, String method, String data) at System.Net.WebClient.UploadString(String address, String data) at Umbraco.Web.Scheduling.ScheduledPublishing.Run() 2019-12-16 05:58:31,551 [11] WARN Umbraco.Web.UI.Umbraco.Umbraco - [Thread 26] A requested app: was not found 2019-12-16 05:58:32,223 [11] INFO umbraco.BusinessLogic.Log - [Thread 51] Log scrubbed. Removed all items older than 2019-10-17 05:58:31

  • Mahesh 20 posts 90 karma points
    Jan 08, 2020 @ 05:13
    Mahesh
    0

    Hi Chris Randle

    below error is present in log files can u please help on this.

    2020-01-08 05:06:17,363 [11] WARN Umbraco.Web.UI.Umbraco.Umbraco - [Thread 62] A requested app: was not found 2020-01-08 05:06:19,270 [11] INFO umbraco.BusinessLogic.Log - [Thread 20] Log scrubbed. Removed all items older than 2019-11-09 05:06:18 2020-01-08 05:06:57,672 [11] ERROR Umbraco.Web.Scheduling.ScheduledPublishing - [Thread 62] An error occurred with the scheduled publishing. The base url used in the request was: https://localhost:90/umbraco/, see http://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/#ScheduledTasks documentation for details on setting a baseUrl if this is in error System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 127.0.1.1:90 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) at System.Net.WebClient.UploadString(Uri address, String method, String data) at System.Net.WebClient.UploadString(String address, String data) at Umbraco.Web.Scheduling.ScheduledPublishing.Run() Umbraco.Core.Persistence.UmbracoDatabase - [Thread 58] 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.Delegate.DynamicInvokeImpl(Object[] args) at Umbraco.Core.Persistence.Database.MultiPocoFactory.CallDelegate(Int32 index, IDataReader reader) at Umbraco.Core.Persistence.Database.MultiPocoFactory.CallCallback[TRet](Delegate callback, IDataReader dr, Int32 count) at Umbraco.Core.Persistence.Database.<>cDisplayClass1a1.<CreateMultiPocoFactory>b__19(IDataReader reader, Delegate arg3) at Umbraco.Core.Persistence.Database.<Query>d__1c1.MoveNext() 2020-01-08 05:08:16,725 [11] INFO Umbraco.Core.Persistence.UmbracoDatabase - [Thread 46] 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.Delegate.DynamicInvokeImpl(Object[] args) at Umbraco.Core.Persistence.Database.MultiPocoFactory.CallDelegate(Int32 index, IDataReader reader) at Umbraco.Core.Persistence.Database.MultiPocoFactory.CallCallback[TRet](Delegate callback, IDataReader dr, Int32 count) at Umbraco.Core.Persistence.Database.<>cDisplayClass1a1.<CreateMultiPocoFactory>b__19(IDataReader reader, Delegate arg3) at Umbraco.Core.Persistence.Database.<Query>d__1c1.MoveNext()

  • Mahesh 20 posts 90 karma points
    Jan 13, 2020 @ 12:45
    Mahesh
    0

    Hi Giovanni Sidoel

    Have you got any solution for the above issue.

  • Brian 10 posts 60 karma points
    Oct 13, 2020 @ 17:33
    Brian
    0

    Ran into this same issue. Found that the /base/FolderBrowserService/GetChildren/ url is case sensitive. Someone had added a rewrite rule to the web.config rewriting all urls to lowercase. Once that rule was removed, media section started to work again.

    What lead me down that path was opening Fiddler and noticing a 301 redirect happening for that media request. Other Umbraco sites we had were not performing a 301 redirect.

    This was happening on Umbraco v6.2.6.

    I know this question is old but thought I would leave this here for anyone running into this problem down the road.

Please Sign in or register to post replies

Write your reply to:

Draft