macOS Server 5。5日历pg_ctl无法启动

时间:2017-04-22 02:24:38

标签: macos postgresql server calendar synchronization

将macOS Server更新为5.3(在macOS 10.12.4上运行)后,我的日历&联系人已停止同步。

它似乎无法启动Postgres for cluster /Library/Server/Calendar and Contacts/Data/Database.xpg/cluster.pg,也可能会遇到代理问题。

GUI似乎认为日历&联系人服务已经启动并且可用,但是当我从命令行运行$ sudo serveradmin fullstatus calendar时,我得到:

calendar:setStateVersion = 1
calendar:readWriteSettingsVersion = 1
calendar:state = "STARTING"
calendar:contactsState = "STARTING"
calendar:calendarState = "STARTING"

系统日志被发送垃圾邮件:

Apr 22 11:58:42 com.apple.xpc.launchd[1] (org.calendarserver.agent[44649]): Service exited with abnormal code: 1
Apr 22 11:58:42 com.apple.xpc.launchd[1] (org.calendarserver.agent): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Apr 22 11:58:52 com.apple.xpc.launchd[1] (org.calendarserver.agent[44659]): Service exited with abnormal code: 1
Apr 22 11:58:52 com.apple.xpc.launchd[1] (org.calendarserver.agent): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Apr 22 11:59:02 com.apple.xpc.launchd[1] (org.calendarserver.agent[44668]): Service exited with abnormal code: 1
Apr 22 11:59:02 com.apple.xpc.launchd[1] (org.calendarserver.agent): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Apr 22 11:59:07 com.apple.xpc.launchd[1] (org.calendarserver.calendarserver[44676]): Service exited with abnormal code: 1
Apr 22 11:59:07 com.apple.xpc.launchd[1] (org.calendarserver.calendarserver): Service only ran for 0 seconds. Pushing respawn out by 60 seconds.

这是$ sudo /Applications/Server.app/Contents/ServerRoot/usr/sbin/calendarserver_diagnose

的输出

有什么想法吗?

OS Build: 16E195
Server Build: 16S4123    

/Library/Server/Preferences/Calendar.plist exists and can be parsed
Prefs plist says ServerRoot directory is: /Library/Server/Calendar and Contacts
ServerRoot volume ok
/Library/Server/Calendar and Contacts/Config/caldavd-system.plist exists and can be parsed
/Library/Server/Calendar and Contacts/Config/caldavd-user.plist does not exist    

Configuration:    

Calendar and Contacts service processes:
USER              PID  %CPU %MEM    RSS  ELAPSED STARTED                      COMMAND
root            42554   0.0  0.1  11072    07:49 Sat 22 Apr 11:32:16 2017     servermgr_calendar        

Serverd status:
org.calendarserver.agent is enabled
org.calendarserver.calendarserver is enabled
org.calendarserver.relocate is enabled    

Disk space on boot volume:
Filesystem   Size   Used  Avail Capacity iused      ifree %iused  Mounted on
/dev/disk1   999G   777G   222G    78% 8520180 4286447099    0%   /    

Disk space on service data volume:
Filesystem   Size   Used  Avail Capacity iused      ifree %iused  Mounted on
/dev/disk1   999G   777G   222G    78% 8520180 4286447099    0%   /    

Disk space used by Calendar and Contacts service:
20K  /Library/Server/Calendar and Contacts/Config
1014M /Library/Server/Calendar and Contacts/Data
200M  /Library/Server/Calendar and Contacts/Logs    


Postgres status for cluster /Library/Server/Calendar and Contacts/Data/Database.xpg/cluster.pg:
pg_ctl: no server running    


Agent:
Attempting to send a request to the agent...
Can't connect to agent: timed out    

Server connection:
Traceback (most recent call last):
  File "/Applications/Server.app/Contents/ServerRoot/usr/sbin/calendarserver_diagnose", line 14, in <module>
    load_entry_point('CalendarServer==9.1a1.dev0+56b4197875debefef19d9c19840f903a8e480c88.head', 'console_scripts', 'calendarserver_diagnose')()
  File "/Applications/Server.app/Contents/ServerRoot/Library/CalendarServer/lib/python2.7/site-packages/calendarserver/tools/diagnose.py", line 145, in main
    connectToCaldavd(keys)
  File "/Applications/Server.app/Contents/ServerRoot/Library/CalendarServer/lib/python2.7/site-packages/calendarserver/tools/diagnose.py", line 584, in connectToCaldavd
    url = "https://{host}/principals/".format(host=keys["ServerHostName"])
KeyError: 'ServerHostName'

0 个答案:

没有答案