Avatar for IuraB

IuraB

Member since Jul 2017 • Last active Aug 2017
  • 1 conversations
  • 2 comments

Most recent activity

    • 3 comments
    • 133 views
  • in Puck.js
    Avatar for IuraB

    With the change done, it works.

    Thanks.

  • in Puck.js
    Avatar for IuraB

    Hi,

    I'm trying to configure EspruinoHub to run as system start-up, modified user and path, using the guide from GitHub.
    But when running

     sudo systemctl start EspruinoHub.service && sudo journalctl -f -u EspruinoHub
    

    I get this error.

    Warning: Unit file of EspruinoHub.service changed on disk, 'systemctl daemon-reload' recommended.
    -- Logs begin at Sun 2017-07-30 11:51:19 EEST. --
    Jul 30 19:16:32 raspberrypi systemd[1]: Unit EspruinoHub.service entered failed state.
    Jul 30 19:16:32 raspberrypi systemd[1]: EspruinoHub.service holdoff time over, scheduling restart.
    Jul 30 19:16:32 raspberrypi systemd[1]: Stopping EspruinoHub BLE -> MQTT bridge...
    Jul 30 19:16:32 raspberrypi systemd[1]: Starting EspruinoHub BLE -> MQTT bridge...
    Jul 30 19:16:32 raspberrypi systemd[1]: EspruinoHub.service start request repeated too quickly, refusing to start.
    Jul 30 19:16:32 raspberrypi systemd[1]: Failed to start EspruinoHub BLE -> MQTT bridge.
    Jul 30 19:16:32 raspberrypi systemd[1]: Unit EspruinoHub.service entered failed state.
    Jul 30 19:41:20 raspberrypi systemd[1]: Starting EspruinoHub BLE -> MQTT bridge...
    Jul 30 19:41:20 raspberrypi systemd[1]: Started EspruinoHub BLE -> MQTT bridge.
    Jul 30 19:41:20 raspberrypi EspruinoHub[30318]: setterm: $TERM is not defined.
    Jul 30 19:41:20 raspberrypi EspruinoHub[30318]: sudo: no tty present and no askpass program specified
    Jul 30 19:41:20 raspberrypi sudo[30332]: pam_unix(sudo:auth): conversation failed
    Jul 30 19:41:20 raspberrypi sudo[30332]: pam_unix(sudo:auth): auth could not identify password for [iura]
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: /home/iura/puck.js/EspruinoHub/lib/statu­s.js:57
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: status += getStatusText( process.stdout.getWindowSize()[1] );
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: ^
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: TypeError: process.stdout.getWindowSize is not a function
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: at dumpStatus (/home/iura/puck.js/EspruinoHub/lib/stat­us.js:57:44)
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: at Console.console.log (/home/iura/puck.js/EspruinoHub/lib/stat­us.js:73:5)
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: at Object.exports.init (/home/iura/puck.js/EspruinoHub/lib/conf­ig.js:54:13)
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: at Object.<anonymous> (/home/iura/puck.js/EspruinoHub/index.js­:17:28)
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: at Module._compile (module.js:570:32)
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: at Object.Module._extensions..js (module.js:579:10)
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: at Module.load (module.js:487:32)
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: at tryModuleLoad (module.js:446:12)
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: at Function.Module._load (module.js:438:3)
    Jul 30 19:41:21 raspberrypi EspruinoHub[30318]: at Module.runMain (module.js:604:10)
    Jul 30 19:41:21 raspberrypi systemd[1]: EspruinoHub.service: main process exited, code=exited, status=1/FAILURE
    Jul 30 19:41:21 raspberrypi systemd[1]: Unit EspruinoHub.service entered failed state.
    Jul 30 19:41:21 raspberrypi systemd[1]: EspruinoHub.service holdoff time over, scheduling restart.
    Jul 30 19:41:21 raspberrypi systemd[1]: Stopping EspruinoHub BLE -> MQTT bridge...
    

    What should I correct?

    Thanks.

Actions