Frnandu Martiński
Member
- Joined
- Mar 5, 2017
- Messages
- 101
Haven't been successfull in running mono batrium_reader.exe on background except for using screen, which doesn't resolve the after reboot situation.
When started in background it stops for some reason I don't understa.
When trying to run it in a systemctl service it blows up like this:
Sep 06 09:36:45 pi mono[2382]: UDPSend.init()
Sep 06 09:36:45 pi mono[2382]: Make sure grafana host is configured in hosts file
Sep 06 09:36:45 pi mono[2382]: Unhandled Exception:
Sep 06 09:36:45 pi mono[2382]: System.NullReferenceException: Object reference not set to an instance of an object
Sep 06 09:36:45 pi mono[2382]: at UDPReceive.Main () [0x00000] in <filename unknown>:0
Sep 06 09:36:45 pi mono[2382]: [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
Sep 06 09:36:45 pi mono[2382]: at UDPReceive.Main () [0x00000] in <filename unknown>:0
Sep 06 09:36:45 pi systemd[1]: batrium.service: main process exited, code=exited, status=1/FAILURE
Sep 06 09:36:45 pi systemd[1]: Unit batrium.service entered failed state.
Any idea why is this?
Having to manually start it after each reboot is a pain in the a**
Thanks for any help.
When started in background it stops for some reason I don't understa.
When trying to run it in a systemctl service it blows up like this:
Sep 06 09:36:45 pi mono[2382]: UDPSend.init()
Sep 06 09:36:45 pi mono[2382]: Make sure grafana host is configured in hosts file
Sep 06 09:36:45 pi mono[2382]: Unhandled Exception:
Sep 06 09:36:45 pi mono[2382]: System.NullReferenceException: Object reference not set to an instance of an object
Sep 06 09:36:45 pi mono[2382]: at UDPReceive.Main () [0x00000] in <filename unknown>:0
Sep 06 09:36:45 pi mono[2382]: [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
Sep 06 09:36:45 pi mono[2382]: at UDPReceive.Main () [0x00000] in <filename unknown>:0
Sep 06 09:36:45 pi systemd[1]: batrium.service: main process exited, code=exited, status=1/FAILURE
Sep 06 09:36:45 pi systemd[1]: Unit batrium.service entered failed state.
Any idea why is this?
Having to manually start it after each reboot is a pain in the a**
Thanks for any help.