Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-193] Failed to start the Appc Daemon

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2017-11-29T21:30:41.000+0000
Affected Version/sn/a
Fix Version/sAppc Daemon 1.0.0
Componentsappcd
Labelsn/a
ReporterKondal Kolipaka
AssigneeChris Barber
Created2017-11-28T04:45:04.000+0000
Updated2017-11-29T21:30:41.000+0000

Description

"Failed to start the Appc Daemon" message shown when I start a daemon.
ITEM-AX40113:titanium_studio kkolipaka$ appc appcd start
Appcelerator Command-Line Interface, version 7.0.0-master.48
Copyright (c) 2014-2017, Appcelerator, Inc.  All Rights Reserved.


Failed to start the Appc Daemon
Looks like it's showing a wrong message when the daemon is already running.
ITEM-AX40113:titanium_studio kkolipaka$ appc appcd start --debug
Appcelerator Command-Line Interface, version 7.0.0-master.48
Copyright (c) 2014-2017, Appcelerator, Inc.  All Rights Reserved.


Starting inspector on 127.0.0.1:9229 failed: address already in use
Failed to start the Appc Daemon

Comments

  1. Chris Barber 2017-11-28

    You have another instance running in the background. If the pid file is removed, the running server will not know and continue to run. The new instance can either A) have the running instance regenerate the pid file or B) stop the running instance. Option A is probably better.
  2. Chris Barber 2017-11-28

    Implemented DAEMON-196 which ensure the pid file always exists while the daemon is running.
  3. Chris Barber 2017-11-29

    In addition to the pid file always being made available, error handling during the start of the daemon has been improved and tested thoroughly on macOS and Windows. I believe this issue has been fixed.

JSON Source