Unity - A计划(永久有效期) 扫二维码继续学习 二维码时效为半小时

(197评价)
价格: 4431.00元
泰斗破坏神做到了服务器部分,但是photon server一启动就自己stop了?
cyl3181515发起了问答2016-12-30
38
回复
11227
浏览

 

 

步骤都是按照教程来了,重启重装软件重做还是不好使

 

下面是日志 Photon-MMoDemo-20161230.log

 

8028: 17:40:10.002 - ---
8028: 17:40:10.002 - Service: "Photon Socket Server" starting
8028: 17:40:10.002 - Config File: F:\atWorking\TaidouPhotonServer\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\bin_Win64\PhotonServer.config
8028: 17:40:10.004 - Will produce at most: 10 crash dumps
8028: 17:40:10.004 - Action: run as exe
8028: 17:40:10.004 - Server Starting...
8028: 17:40:10.004 -    Tick count: 740817 (wraps in: 49.7017 days)
8028: 17:40:10.004 - Tick count 64: 740817
8028: 17:40:10.004 - Photon Version: 4.0.28.2962
8028: 17:40:10.004 - PID: 9112
8028: 17:40:10.004 - Config File: F:\atWorking\TaidouPhotonServer\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\bin_Win64\PhotonServer.config
8028: 17:40:10.005 - Will NOT log unimportant exceptions
8028: 17:40:10.006 - Not using performance counters as they are not currently installed. Run the service with /InstallCounters to install them.
8028: 17:40:10.006 - Shutdown timeout enabled: 30000ms
8028: 17:40:10.006 - Starting I/O thread pool with 2 threads
8028: 17:40:10.007 - Using Standard allocator
8028: 17:40:10.007 - Max message size: 512000
8028: 17:40:10.007 - Starting business logic thread pool with the following settings
8028: 17:40:10.007 - InitialThreads: 4 threads
8028: 17:40:10.007 - MinThreads: 4 threads
8028: 17:40:10.007 - Thread pool is fixed size
8028: 17:40:10.007 - Starting ENet thread pool with the following settings
8028: 17:40:10.007 - InitialThreads: 2 threads
8028: 17:40:10.007 - MinThreads: 2 threads
8028: 17:40:10.007 - Thread pool is fixed size
8028: 17:40:10.007 - OnlyDispatchTimers: False
8028: 17:40:10.007 - S2S: flow control: Max pending writes: 50
8028: 17:40:10.007 - S2S: flow control: Max queued buffers: 200
8028: 17:40:10.007 - S2S: flow control: Max pending writes MUX: 500
8028: 17:40:10.007 - S2S: flow control: Max queued buffers MUX: 2000
8028: 17:40:10.007 - S2S: MaxInboundMessageSize: 512000
8028: 17:40:10.007 - S2S: MaxOutboundMessageSize: 512000
8028: 17:40:10.007 - S2S: No inactivity timeout
8028: 17:40:10.013 - Cannot enable FILE_SKIP_COMPLETION_PORT_ON_SUCCESS as "Netease UU" does not support XP1_IFS_HANDLES. ServiceFlags1 = 0x66
8028: 17:40:10.014 - Cannot enable FILE_SKIP_COMPLETION_PORT_ON_SUCCESS as "Netease UU" does not support XP1_IFS_HANDLES. ServiceFlags1 = 0x66
8028: 17:40:10.014 - WebSocket S2S: MaxInboundMessageSize: 512000
8028: 17:40:10.014 - WebSocket S2S: MaxOutboundMessageSize: 512000
8028: 17:40:10.014 - WebSocket S2S: No inactivity timeout
8028: 17:40:10.014 - Cannot enable FILE_SKIP_COMPLETION_PORT_ON_SUCCESS as "Netease UU" does not support XP1_IFS_HANDLES. ServiceFlags1 = 0x66
8028: 17:40:10.014 - Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes
8028: 17:40:10.014 - Per peer bandwidth limit
8028: 17:40:10.014 - Transmit Rate Limit: 256 KB/Sec
8028: 17:40:10.014 - Limit period: 200ms
8028: 17:40:10.014 - Limit per period: 52428 bytes
8028: 17:40:10.014 - Max queued data for transmission per peer: 512000 bytes
8028: 17:40:10.014 - Minimum retransmit timeout: 200
8028: 17:40:10.014 - No Maximum retransmit timeout
8028: 17:40:10.014 - Minimum ENet timeout: 5000ms
8028: 17:40:10.014 - Maximum ENet timeout: 30000ms
8028: 17:40:10.014 - Max Inbound Reliable Data Queued (awaiting resends of earlier sequence numbers) per peer : 163840 bytes
8028: 17:40:10.014 - No RTT ACK adjustment timeout
8028: 17:40:10.014 - Outbound ENet: MaxInboundMessageSize: 512000
8028: 17:40:10.014 - Outbound ENet: MaxOutboundMessageSize: 512000
8028: 17:40:10.014 - Cannot enable FILE_SKIP_COMPLETION_PORT_ON_SUCCESS as "Netease UU" does not support XP1_IFS_HANDLES. ServiceFlags1 = 0x66
8028: 17:40:10.015 - GetRuntime - About to load CLR - versions available:
8028: 17:40:10.015 - v2.0.50727
8028: 17:40:10.015 - v4.0.30319
8028: 17:40:10.015 - Configuration requests: "v2.0.50727"
8028: 17:40:10.015 - About to load version: "v2.0.50727"
8028: 17:40:10.022 - About to load runtime: PhotonHostRuntime.PhotonDomainManager from PhotonHostRuntime, Culture=neutral, PublicKeyToken=02C301B61B060C4D
8028: 17:40:10.022 - CLRBaseDirectory set to "F:\atWorking\TaidouPhotonServer\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy"
8028: 17:40:10.023 - Optimising event broadcast for 20 or more peers
8028: 17:40:10.023 - Start: About to load CLR - versions available:
8028: 17:40:10.023 - v2.0.50727
8028: 17:40:10.023 - v4.0.30319
8028: 17:40:10.023 - No preference in configuration file, will load latest.
8028: 17:40:10.023 - About to load version: "v4.0.30319"
8028: 17:40:10.024 - Loaded version: "v4.0.30319"
8028: 17:40:10.182 - Photon host runtime loaded
8028: 17:40:12.555 - License is valid.
8028: 17:40:12.555 - Licensed for 100 concurrent connections.
8028: 17:40:12.555 - ENet: Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes
8028: 17:40:12.555 - ENet: Per peer bandwidth limit
8028: 17:40:12.555 - ENet: Transmit Rate Limit: 256 KB/Sec
8028: 17:40:12.555 - ENet: Limit period: 200ms
8028: 17:40:12.555 - ENet: Limit per period: 52428 bytes
8028: 17:40:12.555 - ENet: Max queued data for transmission per peer: 512000 bytes
8028: 17:40:12.555 - ENet: Minimum retransmit timeout: 200
8028: 17:40:12.555 - No Maximum retransmit timeout
8028: 17:40:12.555 - ENet: Minimum timeout: 5000ms
8028: 17:40:12.555 - ENet: Maximum timeout: 30000ms
8028: 17:40:12.555 - ENet: Max Inbound Reliable Data Queued (awaiting resends of earlier sequence numbers) per peer : 163840 bytes
8028: 17:40:12.555 - No RTT ACK adjustment timeout
8028: 17:40:12.555 - CService::OnException() - Exception: CXMLConfigurationElement::GetStringValue() - Value: "Name" does not exist
8028: 17:40:12.555 - Server shutting down...
8028: 17:40:12.555 - Shutdown monitoring enabled, 30000ms before process abort
8028: 17:40:12.555 - Notifying CLR applications of shutdown...
8028: 17:40:12.555 - RequestStop: defalt app domain
8028: 17:40:12.556 - Shutting down WebSocket Outbound Connection Manager...
8028: 17:40:12.556 - Shutting down TCP Outbound Connection Manager...
8028: 17:40:12.556 - Shutting down ENet Outbound Connection Manager...
8028: 17:40:12.556 - Disconnecting all outbound peers...
8028: 17:40:12.556 - Shutting down ENet host...
8028: 17:40:12.556 - Disconnecting all peers...
8028: 17:40:12.556 - Shutting down socket servers...
8028: 17:40:12.556 - Shutting down ENet thread pool...
8028: 17:40:12.556 - Shutting down TCP inactivity timers...
8028: 17:40:12.557 - Shutting down CLR applications...
8028: 17:40:12.557 - Shutting down business logic thread pool...
8028: 17:40:12.557 - Shutting down I/O thread pool...
8028: 17:40:12.557 - Destroying servers
8028: 17:40:12.557 - Destroying WebSocket Outbound Connection Manager
8028: 17:40:12.557 - Destroying TCP Outbound Connection Manager
8028: 17:40:12.558 - Destroying TCP inactivity timer
8028: 17:40:12.558 - Destroying ENet timer wheel
8028: 17:40:12.558 - Destroying ENet host
8028: 17:40:12.558 - Destroying ENet outbound host
8028: 17:40:12.558 - Destroying HTTP inactivity timer
8028: 17:40:12.558 - Destroying HTTP host
8028: 17:40:12.558 - Destroying HTTP Chunk host
8028: 17:40:12.558 - Flushing ENET buffer allocator...
8028: 17:40:12.558 - Flushing TCP buffer handle allocator...
8028: 17:40:12.558 - Flushing stream socket allocator...
8028: 17:40:12.558 - Flushing inbound datagram socket allocator...
8028: 17:40:12.558 - Flushing outbound datagram socket allocator...
8028: 17:40:12.558 - Destroying CLR dispatcher
8028: 17:40:12.558 - Destroying CLR applications
8028: 17:40:12.558 - ~CCLRApplicationCollection() - Waiting up to 10 seconds for the CLR to release all of our objects
8028: 17:40:12.558 - ~CCLRApplicationCollection() - Done. All objects released
8028: 17:40:12.558 - ~CManagedHost() - Release default app domain
8028: 17:40:12.558 - CManagedHost::OnDomainUnload() - 1
8028: 17:40:12.558 - ~CManagedHost() - Waiting up to 10 seconds for CLR shutdown...
8028: 17:40:12.558 - ~CManagedHost
8028: 17:40:12.558 - Destroying ENet thread pool
8028: 17:40:12.558 - Destroying Business logic thread pool
8028: 17:40:12.558 - Destroying I/O thread pool
8028: 17:40:12.558 - Destroying ENet buffer allocator
8028: 17:40:12.558 - Destroying TCP buffer allocator
8028: 17:40:12.558 - Destroying TCP socket allocator
8028: 17:40:12.558 - Destroying ENet inbound socket allocator
8028: 17:40:12.558 - Destroying ENet outbound socket allocator
8028: 17:40:12.558 - Destroying shared datagram flow control data
8028: 17:40:12.558 - Shutdown complete...
8028: 17:40:12.558 - Service shutting down: with Exception (1). Errorcode: 6        <---
8028: 17:40:12.559 - Service shut down complete

 

所有回复
  • siki 2016-12-30

    8028: 17:40:12.555 - CService::OnException() - Exception: CXMLConfigurationElement::GetStringValue() - Value: "Name" does not exist

    <Application 检查一下后面是不是没有“> ”

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • siki 2016-12-30

    应该是配置文件的问题,自己跟实例比对比对吧

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • siki 2016-12-30

    示例

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • jifengjian 2017-12-19

    楼主是怎么解决问题的呢?heart

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • siki 2017-12-20

    问题解决了吗?

    报错主要是这个位置

    CService::OnException() - Exception: CXMLConfigurationElement::GetStringValue() - Value: "Name" does not exist

    应该是配置文件出错了,把配置文件全部打印出来看看

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • 小莽 2018-06-19

    这个怎么解决啊

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • 小莽 2018-06-19

    这个怎么解决啊

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • siki 2018-06-21

    application后面的属性是放在了application标签里面的,不是被application标签包含的哈

    • DialConne 2018-07-20

      photon那里taidouserver启动选项是灰色的怎么办 我用的源码里给的TaidouPhotonServer.zip

      (0) 回复
    还有-4条回复,点击查看
    你还没有登录,请先登录注册
  • DialConne 2018-07-20

    附件图

    • siki 2018-07-20

      这个要把源码build到给定的photon server目录里面,并且要配置好photonserver配置文件,才会有对应的启动选项哈

      (0) 回复
    • siki 2018-07-20

      你的这个图片打不开,可以直接添加图片,不用添加附件哈

      (0) 回复
    • DialConne 2018-07-21

      回复 @ siki: 老师OnServerpanelClose为什么没有调用是什么时候改的大概在哪一节我用的项目给的工程

      (0) 回复
    • DialConne 2018-07-24

      回复 @ siki: 老师 2018-07-24 17:59:47,728 [1] DEBUG TaidouServer.TaidouApplication [(null)] - Application setup complete.
      2018-07-24 17:59:47,767 [1] INFO Photon.SocketServer.ApplicationBase [(null)] - Application start: AppId=TaidouServer; AppPath=F:\unity3d\TAIDOU\Taidou\TaidouPhotonServer\deploy\TaidouServer, Type=TaidouServer.TaidouApplication
      2018-07-24 18:09:20,657 [8] ERROR Photon.SocketServer.PeerBase [(null)] - FluentNHibernate.Cfg.FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.

      ---> MySql.Data.MySqlClient.MySqlException: The host localhost does not support SSL connections.
      在 MySql.Data.MySqlClient.NativeDriver.Open()
      在 MySql.Data.MySqlClient.Driver.Open()
      在 MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
      在 MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
      在 MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
      在 MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
      在 MySql.Data.MySqlClient.MySqlPool.GetConnection()
      在 MySql.Data.MySqlClient.MySqlConnection.Open()
      在 NHibernate.Connection.DriverConnectionProvider.GetConnection()
      在 NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare()
      在 NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect dialect, IConnectionHelper connectionHelper)
      在 NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory sessionFactory)
      在 NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners)
      在 NHibernate.Cfg.Configuration.BuildSessionFactory()
      在 FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() 位置 c:\work\coding\fluentNhibernate\src\FluentNHibernate\Cfg\FluentConfiguration.cs:行号 230
      --- 内部异常堆栈跟踪的结尾 ---
      在 FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() 位置 c:\work\coding\fluentNhibernate\src\FluentNHibernate\Cfg\FluentConfiguration.cs:行号 233
      在 TaidouServer.DB.NHibernateHelper.InitializeSessionFactory() 位置 e:\Photon Workspace\TaidouServer\TaidouServer\DB\NHibernateHelper.cs:行号 15
      在 TaidouServer.DB.NHibernateHelper.get_SessionFactory() 位置 e:\Photon Workspace\TaidouServer\TaidouServer\DB\NHibernateHelper.cs:行号 23
      在 TaidouServer.DB.NHibernateHelper.OpenSession() 位置 e:\Photon Workspace\TaidouServer\TaidouServer\DB\NHibernateHelper.cs:行号 29
      在 TaidouServer.DB.Manager.ServerPropertyManager.GetServerList() 位置 e:\Photon Workspace\TaidouServer\TaidouServer\DB\Manager\ServerPropertyManager.cs:行号 13
      在 TaidouServer.Handlers.ServerHandler.OnHandlerMessage(OperationRequest request, OperationResponse response, ClientPeer peer, SendParameters sendParameters) 位置 e:\Photon Workspace\TaidouServer\TaidouServer\Handlers\ServerHandler.cs:行号 24
      在 TaidouServer.ClientPeer.OnOperationRequest(OperationRequest operationRequest, SendParameters sendParameters) 位置 e:\Photon Workspace\TaidouServer\TaidouServer\ClientPeer.cs:行号 41
      在 Photon.SocketServer.PeerBase.OnReceive(Byte[] data, SendParameters sendParameters) 位置 h:\svncontent\photon-socketserver-sdk_3.4\src\Photon.SocketServer\PeerBase.cs:行号 962
      在 Photon.SocketServer.PeerBase.OnReceiveInternal(Byte[] data, SendParameters sendParameters, Int32 rtt, Int32 rttVariance, Int32 numFailures) 位置 h:\svncontent\photon-socketserver-sdk_3.4\src\Photon.SocketServer\PeerBase.cs:行号 749

      (0) 回复
    • DialConne 2018-07-24

      我用的教程最终项目但是加载不了服务器列表 日志里有问题

      (0) 回复
    还有0条回复,点击查看
    你还没有登录,请先登录注册
  • DialConne 2018-07-20

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
发表回复
你还没有登录,请先 登录或 注册!