- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在将 Umbraco 7.3.7 与 Mysql 数据库一起使用,我在各种资源上收到随机 500 内部服务器错误(刷新可能会修复该资源,但随后出现随机其他资源错误)。由于这是我的个人开发机器,我已将根文件夹权限设置为允许所有人完全访问,所以看不出它是如何被拒绝访问的(一些资源工作的事实也表明它不是权限)。
我厌倦的事情:
软件配置Windows 10 专业版 64 位暗影 7.3.7IIS express 8.0
异常详细信息:MySql.Data.MySqlClient.MySqlException:您不能在 FROM 子句中为更新指定目标表 'umbracoCacheInstruction'
Stack Trace:
[MySqlException (0x80004005): You can't specify target table 'umbracoCacheInstruction' for update in FROM clause]
MySql.Data.MySqlClient.MySqlStream.ReadPacket() +272
MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId) +68
MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId) +17
MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) +110
MySql.Data.MySqlClient.MySqlDataReader.NextResult() +783
MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +1564
MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() +118
StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery() +60
Umbraco.Core.Persistence.<>c__DisplayClass1.<ExecuteNonQueryWithRetry>b__0() +55
Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction(Func`1 func) +170
Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy cmdRetryPolicy, RetryPolicy conRetryPolicy) +118
Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy retryPolicy) +52
Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command) +48
Umbraco.Core.Persistence.Database.Execute(String sql, Object[] args) +180
Umbraco.Core.Persistence.Database.Execute(Sql sql) +40
Umbraco.Core.Sync.DatabaseServerMessenger.PruneOldInstructions() +423
Umbraco.Core.Sync.DatabaseServerMessenger.Sync() +387
Umbraco.Web.BatchedDatabaseServerMessenger.UmbracoModule_RouteAttempt(Object sender, RoutableAttemptEventArgs e) +32
Umbraco.Web.UmbracoModule.OnRouteAttempt(RoutableAttemptEventArgs args) +22
Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext) +256
Umbraco.Web.UmbracoModule.<Init>b__8(Object sender, EventArgs e) +80
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
来自事件查看器的详细信息:
Log Name: Application
Source: ASP.NET 4.0.30319.0
Date: 2/10/2016 5:40:09 PM
Event ID: 1309
Task Category: Web Event
Level: Warning
Keywords: Classic
User: N/A
Computer: james
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2/10/2016 5:40:09 PM
Event time (UTC): 2/10/2016 12:10:09 PM
Event ID: 98b3588189ee485baba087681a23ce1c
Event sequence: 56
Event occurrence: 6
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2/ROOT-1-130995795051477306
Trust level: Full
Application Virtual Path: /
Application Path: C:\Users\Administrator\Documents\UmbracoCms.7.3.7\
Machine name: JAMES
Process information:
Process ID: 9380
Process name: iisexpress.exe
Account name: JAMES\Administrator
Exception information:
Exception type: MySqlException
Exception message: You can't specify target table 'umbracoCacheInstruction' for update in FROM clause
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery()
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>c__DisplayClass1.<ExecuteNonQueryWithRetry>b__0()
at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy cmdRetryPolicy, RetryPolicy conRetryPolicy)
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy retryPolicy)
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command)
at Umbraco.Core.Persistence.Database.Execute(String sql, Object[] args)
at Umbraco.Core.Persistence.Database.Execute(Sql sql)
at Umbraco.Core.Sync.DatabaseServerMessenger.PruneOldInstructions()
at Umbraco.Core.Sync.DatabaseServerMessenger.Sync()
at Umbraco.Web.BatchedDatabaseServerMessenger.UmbracoModule_RouteAttempt(Object sender, RoutableAttemptEventArgs e)
at Umbraco.Web.UmbracoModule.OnRouteAttempt(RoutableAttemptEventArgs args)
at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext)
at Umbraco.Web.UmbracoModule.<Init>b__8(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Request information:
Request URL: http://localhost:17871/umbraco/RestServices/ScheduledPublish/Index
Request path: /umbraco/RestServices/ScheduledPublish/Index
User host address: ::1
User:
Is authenticated: False
Authentication Type:
Thread account name: JAMES\Administrator
Thread information:
Thread ID: 11
Thread account name: JAMES\Administrator
Is impersonating: False
Stack trace: at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery()
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>c__DisplayClass1.<ExecuteNonQueryWithRetry>b__0()
at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy cmdRetryPolicy, RetryPolicy conRetryPolicy)
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy retryPolicy)
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command)
at Umbraco.Core.Persistence.Database.Execute(String sql, Object[] args)
at Umbraco.Core.Persistence.Database.Execute(Sql sql)
at Umbraco.Core.Sync.DatabaseServerMessenger.PruneOldInstructions()
at Umbraco.Core.Sync.DatabaseServerMessenger.Sync()
at Umbraco.Web.BatchedDatabaseServerMessenger.UmbracoModule_RouteAttempt(Object sender, RoutableAttemptEventArgs e)
at Umbraco.Web.UmbracoModule.OnRouteAttempt(RoutableAttemptEventArgs args)
at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext)
at Umbraco.Web.UmbracoModule.<Init>b__8(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ASP.NET 4.0.30319.0" />
<EventID Qualifiers="32768">1309</EventID>
<Level>3</Level>
<Task>3</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2016-02-10T12:10:09.000000000Z" />
<EventRecordID>37763</EventRecordID>
<Channel>Application</Channel>
<Computer>james</Computer>
<Security />
</System>
<EventData>
<Data>3005</Data>
<Data>An unhandled exception has occurred.</Data>
<Data>2/10/2016 5:40:09 PM</Data>
<Data>2/10/2016 12:10:09 PM</Data>
<Data>98b3588189ee485baba087681a23ce1c</Data>
<Data>56</Data>
<Data>6</Data>
<Data>0</Data>
<Data>/LM/W3SVC/2/ROOT-1-130995795051477306</Data>
<Data>Full</Data>
<Data>/</Data>
<Data>C:\Users\Administrator\Documents\UmbracoCms.7.3.7\</Data>
<Data>JAMES</Data>
<Data>
</Data>
<Data>9380</Data>
<Data>iisexpress.exe</Data>
<Data>JAMES\Administrator</Data>
<Data>MySqlException</Data>
<Data>You can't specify target table 'umbracoCacheInstruction' for update in FROM clause
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery()
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>c__DisplayClass1.<ExecuteNonQueryWithRetry>b__0()
at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy cmdRetryPolicy, RetryPolicy conRetryPolicy)
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy retryPolicy)
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command)
at Umbraco.Core.Persistence.Database.Execute(String sql, Object[] args)
at Umbraco.Core.Persistence.Database.Execute(Sql sql)
at Umbraco.Core.Sync.DatabaseServerMessenger.PruneOldInstructions()
at Umbraco.Core.Sync.DatabaseServerMessenger.Sync()
at Umbraco.Web.BatchedDatabaseServerMessenger.UmbracoModule_RouteAttempt(Object sender, RoutableAttemptEventArgs e)
at Umbraco.Web.UmbracoModule.OnRouteAttempt(RoutableAttemptEventArgs args)
at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext)
at Umbraco.Web.UmbracoModule.<Init>b__8(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
</Data>
<Data>http://localhost:17871/umbraco/RestServices/ScheduledPublish/Index</Data>
<Data>/umbraco/RestServices/ScheduledPublish/Index</Data>
<Data>::1</Data>
<Data>
</Data>
<Data>False</Data>
<Data>
</Data>
<Data>JAMES\Administrator</Data>
<Data>11</Data>
<Data>JAMES\Administrator</Data>
<Data>False</Data>
<Data> at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteNonQuery()
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>c__DisplayClass1.<ExecuteNonQueryWithRetry>b__0()
at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy cmdRetryPolicy, RetryPolicy conRetryPolicy)
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command, RetryPolicy retryPolicy)
at Umbraco.Core.Persistence.PetaPocoCommandExtensions.ExecuteNonQueryWithRetry(IDbCommand command)
at Umbraco.Core.Persistence.Database.Execute(String sql, Object[] args)
at Umbraco.Core.Persistence.Database.Execute(Sql sql)
at Umbraco.Core.Sync.DatabaseServerMessenger.PruneOldInstructions()
at Umbraco.Core.Sync.DatabaseServerMessenger.Sync()
at Umbraco.Web.BatchedDatabaseServerMessenger.UmbracoModule_RouteAttempt(Object sender, RoutableAttemptEventArgs e)
at Umbraco.Web.UmbracoModule.OnRouteAttempt(RoutableAttemptEventArgs args)
at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext)
at Umbraco.Web.UmbracoModule.<Init>b__8(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
</Data>
</EventData>
</Event>
还有其他人看到这个问题吗?知道任何修复方法吗?
最佳答案
这看起来像是一个类似的 MySQL 问题 ( MySQL #1093 - You can't specify target table 'giveaways' for update in FROM clause )
看起来 Umbraco/MySQL 设置在尝试删除基于同一表中列的选择的表中的旧记录时存在错误。
我们还在为客户端使用 MySQL/Umbraco 设置,并且在尝试升级到最新的 Umbraco 版本时遇到类似的问题:
ERROR Umbraco.Web.Install.Controllers.InstallApiController -Installation step DatabaseUpgrade failed.
System.Reflection.TargetInvocationException: Exception has been thrownby the target of an invocation. --->Umbraco.Web.Install.InstallException: The database failed to upgrade.
..
Error: You can't specify target table 'cmsTemplate'for update in FROM clause. In some cases, it may be required that thedatabase be restored to it's original state before running thisupgrade process again.
关于mysql - Umbraco 随机 500 内部服务器错误,您不能在 FROM 子句中指定要更新的目标表 'umbracoCacheInstruction',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35315661/
我是一名优秀的程序员,十分优秀!