anchor.diff:  gateway_loop(#{port_fd := PortFD, id := {_, N} = ID, db_hostname := Hostname, db_port := Port,
       start_time := ST, parent := Parent} = State) ->
       try port_command(PortFD, <<"ping">>) of
  -        true -> ok
  +        true ->
  +            case db_run(couchbeam, db_info, [], 0) of
  +                {ok, _} -> ok;
  +                {error, Reason00} ->
  +                    self() ! {port_comm_error, Reason00}
  +            end
       catch
           _:Reason0 ->
               self() ! {port_comm_error, Reason0}
  
positive.code: %%--------------------------------------------------------------------
  -spec start_gateway(Parent :: pid(), N :: non_neg_integer(), Hostname :: binary(), Port :: non_neg_integer()) -> no_return().
  start_gateway(Parent, N, Hostname, Port) ->
      GWPort = ?GATEWAY_BASE_PORT + N,
      GWAdminPort = GWPort + 1000,
      ?info("Statring couchbase gateway #~p: localhost:~p => ~p:~p", [N, GWPort, Hostname, Port]),
  
  
negative.code:             Seq = seq(Change),
              RawDocOnceAgian = jiffy:decode(jsx:encode(RawDoc)),
              Document = process_raw_doc(RawDocOnceAgian),
                  catch Callback(Seq, Document, model(Document)),
              State#state{last_seq = Seq}
          catch
              _:Reason ->
  