Error While Publishing

Error While Publishing

  
Hi guys,

I just updated the license of our local machine for some integration testing.
Everything went smoothly until I needed to publish something, and it does not even publish a "blank" app.
It comes with 2 errors.
The last thing he does is: 
Deploying - Updating SQL Server database model and deploying the web application to IIS.

then comes the first error:

Publishing Error
 
Error broadcasting message to Front-end Server saplab1 (127.0.0.1)):System.ArgumentNullException: Object Graph cannot be null.
Parameter name: graph
 
Server stack trace: 
   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
   at OutSystems.HubEdition.RuntimePlatform.RuntimePlatformUtils.WritePersistentData(String path, String filename, Object data)
   at #ERb.#HRb.#YRb()
   at #ERb.#GRb.#YRb()
   at OutSystems.HubEdition.DeployService.Deploy.#tSb(Exception except, String espaceName, #IRb currentDeploy, Boolean fromCompilerService)
   at OutSystems.HubEdition.DeployService.Deploy.DeployEspace(String espaceName, Int32 espaceVersionId, String userName, Boolean partial, Boolean forceRedeploy, Boolean alreadyLocked, Boolean fromCompilerService, String uniqueId)
   at OutSystems.HubEdition.DeployService.Deploy.MessageTransmission(BroadcastMessage msg)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
 
Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at OutSystems.HubEdition.IBroadcastListener.MessageTransmission(BroadcastMessage msg)
   at #6Mb.#tNb.#dQb(BroadcastMessage msg, Boolean toScheduler).
 
Exception Details:
[1] Publishing Error: Error broadcasting message to Front-end Server saplab1 (127.0.0.1)):System.ArgumentNullException: Object Graph cannot be null.
Parameter name: graph
 
Server stack trace: 
   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
   at OutSystems.HubEdition.RuntimePlatform.RuntimePlatformUtils.WritePersistentData(String path, String filename, Object data)
   at #ERb.#HRb.#YRb()
   at #ERb.#GRb.#YRb()
   at OutSystems.HubEdition.DeployService.Deploy.#tSb(Exception except, String espaceName, #IRb currentDeploy, Boolean fromCompilerService)
   at OutSystems.HubEdition.DeployService.Deploy.DeployEspace(String espaceName, Int32 espaceVersionId, String userName, Boolean partial, Boolean forceRedeploy, Boolean alreadyLocked, Boolean fromCompilerService, String uniqueId)
   at OutSystems.HubEdition.DeployService.Deploy.MessageTransmission(BroadcastMessage msg)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
 
Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at OutSystems.HubEdition.IBroadcastListener.MessageTransmission(BroadcastMessage msg)
   at #6Mb.#tNb.#dQb(BroadcastMessage msg, Boolean toScheduler).
at #6Mb.#tNb.#dQb(BroadcastMessage msg, Boolean toScheduler)
   at #6Mb.#tNb.BroadcastDeployPartial(Object msgobject)
   at #6Mb.#tNb.DeployEspaceFirstPart(String eSpaceName, String userName, Boolean force, Boolean partial, Int32 eSpaceVersionId, String uniqueId, Boolean& failedAllServers)
   at #6Mb.#tNb.DeployEspaceFirstPart(ICompilerContext context, String eSpaceName, String userName, Boolean force, Boolean partial, Int32 eSpaceVersionId, String uniqueId, Boolean& failedAllServers)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage reqMsg)
   at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)
   at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[] args)
   at System.Runtime.Remoting.Channels.ChannelServices.DispatchMessage(IServerChannelSinkStack sinkStack, IMessage msg, IMessage& replyMsg)
   at System.Runtime.Remoting.Channels.DispatchChannelSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
   at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
   at #6Mb.#tNb.#e.#vNb.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
   at System.Runtime.Remoting.Channels.Tcp.TcpServerTransportSink.ServiceRequest(Object state)
   at System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()
   at System.Runtime.Remoting.Channels.RequestQueue.ProcessNextRequest(SocketHandler sh)
   at System.Runtime.Remoting.Channels.SocketHandler.BeginReadMessageCallback(IAsyncResult ar)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CompleteCallback(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.ContextAwareResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
[2] System.ArgumentNullException: Object Graph cannot be null.
Parameter name: graph
 
Server stack trace: 
   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
   at OutSystems.HubEdition.RuntimePlatform.RuntimePlatformUtils.WritePersistentData(String path, String filename, Object data)
   at #ERb.#HRb.#YRb()
   at #ERb.#GRb.#YRb()
   at OutSystems.HubEdition.DeployService.Deploy.#tSb(Exception except, String espaceName, #IRb currentDeploy, Boolean fromCompilerService)
   at OutSystems.HubEdition.DeployService.Deploy.DeployEspace(String espaceName, Int32 espaceVersionId, String userName, Boolean partial, Boolean forceRedeploy, Boolean alreadyLocked, Boolean fromCompilerService, String uniqueId)
   at OutSystems.HubEdition.DeployService.Deploy.MessageTransmission(BroadcastMessage msg)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
 
Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at OutSystems.HubEdition.IBroadcastListener.MessageTransmission(BroadcastMessage msg)
   at #6Mb.#tNb.#dQb(BroadcastMessage msg, Boolean toScheduler)






Second Error:

Publishing Error
 
Error broadcasting message to Front-end Server saplab1 (127.0.0.1)):System.ArgumentNullException: Object Graph cannot be null.
Parameter name: graph
 
Server stack trace: 
   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
   at OutSystems.HubEdition.RuntimePlatform.RuntimePlatformUtils.WritePersistentData(String path, String filename, Object data)
   at #ERb.#HRb.#YRb()
   at #ERb.#GRb.#YRb()
   at OutSystems.HubEdition.DeployService.Deploy.#tSb(Exception except, String espaceName, #IRb currentDeploy, Boolean fromCompilerService)
   at OutSystems.HubEdition.DeployService.Deploy.DeployEspace(String espaceName, Int32 espaceVersionId, String userName, Boolean partial, Boolean forceRedeploy, Boolean alreadyLocked, Boolean fromCompilerService, String uniqueId)
   at OutSystems.HubEdition.DeployService.Deploy.MessageTransmission(BroadcastMessage msg)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
 
Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at OutSystems.HubEdition.IBroadcastListener.MessageTransmission(BroadcastMessage msg)
   at #6Mb.#tNb.#dQb(BroadcastMessage msg, Boolean toScheduler).
 
Exception Details:
[1] Publishing Error: Error broadcasting message to Front-end Server saplab1 (127.0.0.1)):System.ArgumentNullException: Object Graph cannot be null.
Parameter name: graph
 
Server stack trace: 
   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
   at OutSystems.HubEdition.RuntimePlatform.RuntimePlatformUtils.WritePersistentData(String path, String filename, Object data)
   at #ERb.#HRb.#YRb()
   at #ERb.#GRb.#YRb()
   at OutSystems.HubEdition.DeployService.Deploy.#tSb(Exception except, String espaceName, #IRb currentDeploy, Boolean fromCompilerService)
   at OutSystems.HubEdition.DeployService.Deploy.DeployEspace(String espaceName, Int32 espaceVersionId, String userName, Boolean partial, Boolean forceRedeploy, Boolean alreadyLocked, Boolean fromCompilerService, String uniqueId)
   at OutSystems.HubEdition.DeployService.Deploy.MessageTransmission(BroadcastMessage msg)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
 
Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at OutSystems.HubEdition.IBroadcastListener.MessageTransmission(BroadcastMessage msg)
   at #6Mb.#tNb.#dQb(BroadcastMessage msg, Boolean toScheduler).
at #6Mb.#tNb.#dQb(BroadcastMessage msg, Boolean toScheduler)
   at #6Mb.#tNb.BroadcastDeployPartial(Object msgobject)
   at #6Mb.#tNb.DeployEspaceFirstPart(String eSpaceName, String userName, Boolean force, Boolean partial, Int32 eSpaceVersionId, String uniqueId, Boolean& failedAllServers)
   at #6Mb.#tNb.DeployEspaceFirstPart(ICompilerContext context, String eSpaceName, String userName, Boolean force, Boolean partial, Int32 eSpaceVersionId, String uniqueId, Boolean& failedAllServers)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage reqMsg)
   at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)
   at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[] args)
   at System.Runtime.Remoting.Channels.ChannelServices.DispatchMessage(IServerChannelSinkStack sinkStack, IMessage msg, IMessage& replyMsg)
   at System.Runtime.Remoting.Channels.DispatchChannelSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
   at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
   at #6Mb.#tNb.#e.#vNb.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
   at System.Runtime.Remoting.Channels.Tcp.TcpServerTransportSink.ServiceRequest(Object state)
   at System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()
   at System.Runtime.Remoting.Channels.RequestQueue.ProcessNextRequest(SocketHandler sh)
   at System.Runtime.Remoting.Channels.SocketHandler.BeginReadMessageCallback(IAsyncResult ar)
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CompleteCallback(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.ContextAwareResult.Complete(IntPtr userToken)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
[2] System.ArgumentNullException: Object Graph cannot be null.
Parameter name: graph
 
Server stack trace: 
   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
   at OutSystems.HubEdition.RuntimePlatform.RuntimePlatformUtils.WritePersistentData(String path, String filename, Object data)
   at #ERb.#HRb.#YRb()
   at #ERb.#GRb.#YRb()
   at OutSystems.HubEdition.DeployService.Deploy.#tSb(Exception except, String espaceName, #IRb currentDeploy, Boolean fromCompilerService)
   at OutSystems.HubEdition.DeployService.Deploy.DeployEspace(String espaceName, Int32 espaceVersionId, String userName, Boolean partial, Boolean forceRedeploy, Boolean alreadyLocked, Boolean fromCompilerService, String uniqueId)
   at OutSystems.HubEdition.DeployService.Deploy.MessageTransmission(BroadcastMessage msg)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
 
Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at OutSystems.HubEdition.IBroadcastListener.MessageTransmission(BroadcastMessage msg)
   at #6Mb.#tNb.#dQb(BroadcastMessage msg, Boolean toScheduler)





It looks like a connection error, but I'm on the same network as the server ..

Thanks in advance !
Hi Francisco,

Is that with a recent version of the Platform?
That error happened (on old versions) when the files "\Platform Server\running\filenames.cache" or "\Platform Server\running\tempFilenames.cache" got corrupted.

You can solve it by removing the 2 files and restarting the OutSystems Deploy Service.

Regards,
João Rosado
Hi João,

Thanks for your answer.
I've stopped the server, and deleted the temfilenames.cache and started again but I have the same error again. I couldn't find the filenames.cache.

The version installed is 6.0.0.1

Regards,
Francisco
Just got through the same "process" again, and now I did found the filename.cache and didn't find the tempfilename.cache and it Worked !

Thanks a lot !

Regards,
Francisco Coutinho