You are reading a single comment by @d0773d and its replies. Click here to read the full conversation.
  • I'm getting Failed to start EspruinoHub BLE -> MQTT and I am not sure how to fix the issue.

    I followed the Auto Start guide for a Headless Startup

    Output:

    -- Logs begin at Thu 2016-11-03 17:16:43 UTC. -- Sep 30 19:08:05 raspberrypi systemd[1]: Started EspruinoHub BLE -> MQTT bridge. Sep 30
    19:08:05 raspberrypi EspruinoHub[10792]: setterm: $TERM is not
    defined. Sep 30 19:08:05 raspberrypi sudo[10805]: pi :
    TTY=unknown ; PWD=/home/pi/E
    spruinoHub ; USER=root ; COMMAND=/sbin/setcap cap_net_raw+eip
    /usr/bin/node Sep 30 19:08:05 raspberrypi sudo[10805]:
    pam_unix(sudo:session): session opened
    for user root by (uid=0) Sep 30 19:08:05 raspberrypi sudo[10805]:
    pam_unix(sudo:session): session closed
    for user root Sep 30 19:08:05 raspberrypi EspruinoHub[10792]:
    Config loaded Sep 30 19:08:06 raspberrypi EspruinoHub[10792]:
    Connecting... Sep 30 19:08:06 raspberrypi EspruinoHub[10792]:
    Server is listening on ht
    tp://localhost:1888 Sep 30 19:08:06 raspberrypi EspruinoHub[10792]:
    www directory found at /h
    ome/pi/EspruinoHub/www. Web server at http://localhost:1888 Sep 30
    19:08:06 raspberrypi EspruinoHub[10792]: log directory found
    at
    /home/pi/EspruinoHub/log. Enabling logging. Sep 30 19:08:06
    raspberrypi EspruinoHub[10792]: events.js:183 Sep 30 19:08:06
    raspberrypi EspruinoHub[10792]: throw er; // Unhandled 'er
    ror' event Sep 30 19:08:06 raspberrypi EspruinoHub[10792]: ^ Sep
    30 19:08:06 raspberrypi EspruinoHub[10792]: Error: listen EADDRINUSE
    :::1888 Sep 30 19:08:06 raspberrypi EspruinoHub[10792]: at
    Server.setupListenHandle
    as _listen2 Sep 30 19:08:06 raspberrypi
    EspruinoHub[10792]: at listenInCluster (net.js:1
    401:12) Sep 30 19:08:06 raspberrypi EspruinoHub[10792]: at
    Server.listen (net.js:148
    5:7) Sep 30 19:08:06 raspberrypi EspruinoHub[10792]: at
    Object.exports.init (/hom
    e/pi/EspruinoHub/lib/http.js:125:10) Sep 30 19:08:06 raspberrypi
    systemd[1]: EspruinoHub.service: Main process exited
    , code=exited, status=1/FAILURE Sep 30 19:08:06 raspberrypi
    systemd[1]: EspruinoHub.service: Unit entered failed
    state. Sep 30 19:08:06 raspberrypi systemd[1]: EspruinoHub.service:
    Failed with result
    'exit-code'. Sep 30 19:08:07 raspberrypi systemd[1]:
    EspruinoHub.service: Service hold-off ti
    me over, scheduling restart. Sep 30 19:08:07 raspberrypi systemd[1]:
    Stopped EspruinoHub BLE -> MQTT bridge. Sep 30 19:08:07 raspberrypi
    systemd[1]: Started EspruinoHub BLE -> MQTT bridge. Sep 30 19:08:07
    raspberrypi EspruinoHub[10839]: setterm: $TERM is not defined. Sep 30
    19:08:07 raspberrypi sudo[10846]: pi : TTY=unknown ;
    PWD=/home/pi/E
    spruinoH

About

Avatar for d0773d @d0773d started