@tomas_knot
Hello, thanks for the reply.
Still no luck but few logbook entries what I have tried so far.
This is now my /etc/systemd/system/evok.service:
[Unit]
Description=Evok Modbus/Websocket/Rpc Server
#Requires=pigpio.service
Requires=neurontcp.service
[Service]
ExecStartPre=/bin/sleep 15
Type=simple
ExecStart=/usr/bin/python /opt/evok/evok.py
TimeoutStopSec=3
SyslogLevel=debug
SyslogIdentifier=evok
StandardOutput=null
WorkingDirectory=/opt/evok
#User=evok
#Group=evok
Restart=always
[Install]
WantedBy=multi-user.target
#Alias=evok.service
but still no luck, it still doesn't want to start the evok web-configuration and/or evok software at the boot of the pi.
I then added even more time, 30 seconds, and logged into Pi right after boot via ssh. From logs I can definitely verify that evok is trying to start after 30 seconds and this is what we get as a first rows in evok.log:
2017-11-27 15:42:19,697 - evok - ERROR - 'model'
Traceback (most recent call last):
File "/opt/evok/neuron.py", line 180, in readboards
yield board.parse_definition(self.hw_dict, i)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1055, in run
value = future.result()
File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 238, in result
raise_exc_info(self._exc_info)
File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 307, in wrapper
yielded = next(result)
File "/opt/evok/neuron.py", line 560, in parse_definition
if defin and defin['type'] in config.globals['model']:
KeyError: 'model'
I tried to restart evok service but it didn't this time help either.
So I went on to check other services you mentioned and saw that every time I try to restart evok service, I get following lines to nginx error.log:
2017/11/27 15:51:35 [error] 587#587: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 10.73.73.205, server: _, request: "GET /ws HTTP/1.1", upstream: "http://[::1]:8080/ws", host: "10.73.73.237"
2017/11/27 15:51:35 [error] 587#587: *22 connect() failed (111: Connection refused) while connecting to upstream, client: 10.73.73.205, server: _, request: "GET /ws HTTP/1.1", upstream: "http://127.0.0.1:8080/ws", host: "10.73.73.237"
2017/11/27 15:51:36 [error] 587#587: *25 no live upstreams while connecting to upstream, client: 10.73.73.205, server: _, request: "GET /ws HTTP/1.1", upstream: "http://localhost/ws", host: "10.73.73.237"
2017/11/27 15:51:37 [error] 587#587: *26 connect() failed (111: Connection refused) while connecting to upstream, client: 10.73.73.205, server: _, request: "GET /ws HTTP/1.1", upstream: "http://127.0.0.1:8080/ws", host: "10.73.73.237"
2017/11/27 15:51:37 [error] 587#587: *26 connect() failed (111: Connection refused) while connecting to upstream, client: 10.73.73.205, server: _, request: "GET /ws HTTP/1.1", upstream: "http://[::1]:8080/ws", host: "10.73.73.237"
2017/11/27 15:51:38 [error] 587#587: *29 no live upstreams while connecting to upstream, client: 10.73.73.205, server: _, request: "GET /ws HTTP/1.1", upstream: "http://localhost/ws", host: "10.73.73.237"
Don't know if this matters or not.
Finally, I managed to get it running again by restarting nginx and restarting evok. I can certainly test any other remedies you come up if needed.