最近几天我注意到OS X Server上的Wiki-Server似乎崩溃了。
当我打开维基的网站时,我收到以下消息:
Caught exception "Connection to DB failed" [CSDatabaseError] executing route /app-context/wiki: ( 0 CoreFoundation 0x00007fff8fb4003c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff8f74d76e objc_exception_throw + 43 2 CSService 0x00000001045eb5cf -[CSConnectionPool openConnection] + 3357 3 CSService 0x00000001045ebfbe -[CSConnectionPool currentConnection] + 98 4 CSService 0x000000010466d687 -[CSAuthService unauthenticatedSession] + 82 5 CSService 0x000000010466dc56 -[CSAuthService currentOrNewSession] + 151 6 CSService 0x000000010465efad +[CSHTTPRouteHelper setCurrentSessionForRequest:] + 267 7 CSService 0x00000001046736aa __27-[CSAppContextService init]_block_invoke234 + 107 8 CSService 0x000000010465aaf4 __53-[CSRoutingHTTPConnection httpResponseForMethod:URI:]_block_invoke + 92 9 CSService 0x000000010465e0ea -[CSHTTPBackgroundResponse bounce:] + 284 10 Foundation 0x00007fff94896dc2 __NSThread__main__ + 1345 11 libsystem_pthread.dylib 0x00007fff8dba9268 _pthread_body + 131 12 libsystem_pthread.dylib 0x00007fff8dba91e5 _pthread_body + 0 13 libsystem_pthread.dylib 0x00007fff8dba741d thread_start + 13 )
重新启动服务器后,一切恢复正常。
在我看来,SQL Server退出。 有没有办法让我使用命令行重新启动它? 因为我不想重新安装服务器应用程序,因为我有非常多的设置,坦白说,不值得的时间,因为我希望问题来解决即将到来的更新。
谢谢
Server.app中的Wiki服务使用PostgreSQL作为数据库。 这只是发生在我身上,我能够修复它,而无需重新启动服务器。
closuresServer.app中的Wiki服务。 validation提供wiki服务的postgresql实例没有实际运行:
% ps auwwx | grep postgr | grep teamserv <should show no processes returned>
检查/库/服务器/维基/ PostgresSocket旧文件并将其删除。
I had the following stale file: .xpg_ctl.pid -> 80019
PostgreSQL数据库集群位于
/Library/Server/Wiki/Database.xpg/Cluster.pg
在我的情况下,pg_hba.conf文件是200K行,显然是生成它的一些脚本出了问题。 我删除了线下的所有内容
local replication all trust
然后我打开了Wiki服务,访问了wiki并且数据库成功启动了。