     json: true
   if response.statusCode == 200
     senkaList = JSON.stringify(body)
-    fs.ensureDirSync(path.join(APPDATA_PATH, 'akashic-records', "#{memberId}", 'senkaList', "#{serverId}", '500'))
-    fs.appendFile(path.join(APPDATA_PATH, 'akashic-records', "#{memberId}", 'senkaList', "#{serverId}", '500', time), "#{senkaList}", 'utf8', (err)->
-      error "Write senkaList file error!" if err)
+    try
+      fs.ensureDirSync path.join(APPDATA_PATH, 'akashic-records', "#{memberId}", 'senkaList', "#{serverId}", '500')
+      fs.writeFileSync path.join(APPDATA_PATH, 'akashic-records', "#{memberId}", 'senkaList', "#{serverId}", '500', time), "#{senkaList}", 'utf8'
+    catch e
+      error "Write senkaList file error!#{e}"
     log "save server:#{serverId} senkaList(500) from senkame[#{time}]"
   else
     log response.statusCode

               "タウイタウイ泊地", "パラオ泊地", "ブルネイ泊地", "単冠湾泊地", "幌筵泊地",
               "宿毛湾泊地", "鹿屋基地", "岩川基地", "佐伯湾泊地", "柱岛泊地"]

sync = async (memberId, serverId, isDownloading) ->
  time = dateToString()
  senkaList = {}
  #serverList 1-100/500/990

    json: true
  if response.statusCode == 200
    senkaList = JSON.stringify(body)
    try
      fs.ensureDirSync path.join(APPDATA_PATH, 'akashic-records', "#{memberId}", 'senkaList', "#{serverId}", '990')
      fs.writeFileSync path.join(APPDATA_PATH, 'akashic-records', "#{memberId}", 'senkaList', "#{serverId}", '990', time), "#{senkaList}", 'utf8'
    catch e
      error "Write senkaList file error!#{e}"
    log "save server:#{serverId} senkaList(990) from senkame[#{time}]"
  else
    log response.statusCode
  isDownloading(serverSelectedVersion)
  return

AkashicSenkaServer = React.createClass
