Failed to start myDevices service


#1

Hello

Pi 3 model
Dashboard Web or iOS

  • setup done using the web interface
  • device not added
  • myDevices status giving : Failed to start
    (stop/start, reboot is not solving the issue)

could you please help to make it works ?

**pi@raspberrypi** : **~ $** sudo service myDevices status
**●** myDevices.service - myDevices service
Loaded: loaded (/etc/systemd/system/myDevices.service; enabled; vendor preset: enabled)
Active: **failed** (Result: exit-code) since Fri 2018-08-24 01:14:09 CEST; 12s ago
Process: 4328 ExecStart=/usr/bin/python3 -m myDevices -P /var/run/myDevices/cayenne.pid **(code=exited, status=1/FAILURE)**
Process: 4325 ExecStartPre=/bin/chown cayenne:cayenne /etc/myDevices/devices.json **(code=exited, status=1/FAILURE)**
Process: 4321 ExecStartPre=/bin/chown cayenne:cayenne /etc/myDevices/agent.db* **(code=exited, status=1/FAILURE)**
Process: 4319 ExecStartPre=/bin/chown cayenne:cayenne /etc/myDevices/AppSettings.ini (code=exited, status=0/SUCCESS)
Process: 4315 ExecStartPre=/bin/chown cayenne:cayenne /etc/myDevices (code=exited, status=0/SUCCESS)
Process: 4313 ExecStartPre=/bin/chown -R cayenne:cayenne /var/log/myDevices/ (code=exited, status=0/SUCCESS)
Process: 4310 ExecStartPre=/bin/mkdir -p /var/log/myDevices (code=exited, status=0/SUCCESS)
Process: 4307 ExecStartPre=/bin/chown cayenne:cayenne /var/run/myDevices/ (code=exited, status=0/SUCCESS)
Process: 4304 ExecStartPre=/bin/mkdir -p /var/run/myDevices (code=exited, status=0/SUCCESS)
 Main PID: 4328 (code=exited, status=1/FAILURE)
août 24 01:14:09 raspberrypi systemd[1]: **myDevices.service: Unit entered failed state.**
août 24 01:14:09 raspberrypi systemd[1]: **myDevices.service: Failed with result 'exit-code'.**
août 24 01:14:09 raspberrypi systemd[1]: myDevices.service: Service hold-off time over, scheduling restart.
août 24 01:14:09 raspberrypi systemd[1]: Stopped myDevices service.
août 24 01:14:09 raspberrypi systemd[1]: **myDevices.service: Start request repeated too quickly.**
août 24 01:14:09 raspberrypi systemd[1]: **Failed to start myDevices service.**
août 24 01:14:09 raspberrypi systemd[1]: **myDevices.service: Unit entered failed state.**
août 24 01:14:09 raspberrypi systemd[1]: **myDevices.service: Failed with result 'exit-code'.**
**pi@raspberrypi** : **~ $**

#2

Can you post the contents of /var/log/myDevices/?