that didn’t work, tried it already but did it again
weirdest when I use
sudo systemctl start wfpiconsole.service
I start several line above as it seems an error cascades others in error. Hopefully this can help to trace down the problem
I think I have 2 version of python running also, 2.7 for weewx and 3.5 for your console, can’t believe this is a good solution but …
engine: Initializing weewx version 3.8.2
Jan 31 20:57:06 WF_console weewx[429]: engine: Using Python 2.7.13 (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
it comes up after about 10 seconds.
Tried to look in different logs but can’t trace a thing.
Could weewx disturb the launch of the service after a reboot???
in syslog I found some lines regarding the console going in error
Jan 31 20:57:13 WF_console systemd[655]: Started Virtual filesystem service - Media Transfer Protocol monitor.
Jan 31 20:57:14 WF_console python3[420]: [INFO ] [Factory ] 195 symbols loaded
Jan 31 20:57:15 WF_console python3[420]: [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
Jan 31 20:57:16 WF_console python3[420]: [INFO ] [Window ] Provider: egl_rpi
Jan 31 20:57:16 WF_console python3[420]: [INFO ] [GL ] Using the "OpenGL ES 2" graphics system
Jan 31 20:57:16 WF_console python3[420]: [INFO ] [GL ] Backend used <gl>
Jan 31 20:57:16 WF_console python3[420]: [INFO ] [GL ] OpenGL version <b'OpenGL ES 2.0'>
Jan 31 20:57:16 WF_console python3[420]: [INFO ] [GL ] OpenGL vendor <b'Broadcom'>
Jan 31 20:57:16 WF_console python3[420]: [INFO ] [GL ] OpenGL renderer <b'VideoCore IV HW'>
Jan 31 20:57:16 WF_console python3[420]: [INFO ] [GL ] OpenGL parsed version: 2, 0
Jan 31 20:57:16 WF_console python3[420]: [INFO ] [GL ] Shading version <b'OpenGL ES GLSL ES 1.00'>
Jan 31 20:57:16 WF_console python3[420]: [INFO ] [GL ] Texture max size <2048>
Jan 31 20:57:16 WF_console python3[420]: [INFO ] [GL ] Texture max units <8>
Jan 31 20:57:16 WF_console python3[420]: [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
Jan 31 20:57:17 WF_console python3[420]: [INFO ] [Text ] Provider: sdl2
Jan 31 20:57:17 WF_console python3[420]: 2019-01-31 20:57:17+0100 [-] Log opened.
Jan 31 20:57:17 WF_console python3[420]: [INFO ] [GL ] NPOT texture support is available
Jan 31 20:57:18 WF_console python3[420]: 2019-01-31 20:57:18+0100 [-] Starting factory <__main__.WeatherFlowClientFactory object at 0x707590f0>
Jan 31 20:57:19 WF_console python3[420]: Unable to connect to X server
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [ProbeSysfs ] device match: /dev/input/event0
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [MTD ] Read event from </dev/input/event0>
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [ProbeSysfs ] device match: /dev/input/event0
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [HIDInput ] Read event from </dev/input/event0>
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [Base ] Start application main loop
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [MTD ] </dev/input/event0> range position X is 0 - 800
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [Support ] Starting twisted reactor
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [HIDMotionEvent] using <b'FT5406 memory based driver\x00 '>
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [MTD ] </dev/input/event0> range position Y is 0 - 480
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [HIDMotionEvent] <b'FT5406 memory based driver\x00 '> range ABS X position is 0 - 800
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [MTD ] </dev/input/event0> range touch major is 0 - 0
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [HIDMotionEvent] <b'FT5406 memory based driver\x00 '> range ABS Y position is 0 - 480
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [MTD ] </dev/input/event0> range touch minor is 0 - 0
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [HIDMotionEvent] <b'FT5406 memory based driver\x00 '> range position X is 0 - 800
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [MTD ] </dev/input/event0> range pressure is 0 - 255
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [MTD ] </dev/input/event0> axes invertion: X is 0, Y is 0
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [MTD ] </dev/input/event0> rotation set to 0
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [HIDMotionEvent] <b'FT5406 memory based driver\x00 '> range position Y is 0 - 480
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [Base ] Leaving application in progress...
Jan 31 20:57:19 WF_console dhcpcd[331]: eth0: no IPv6 Routers available
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [Support ] Stopping twisted threads
Jan 31 20:57:19 WF_console python3[420]: [INFO ] [Support ] Shutting down twisted reactor
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] Traceback (most recent call last):
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 417, in wrap_socket
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] cnx.do_handshake()
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1426, in do_handshake
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] self._raise_ssl_error(self._ssl, result)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1174, in _raise_ssl_error
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] _raise_current_error()
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] raise exception_type(errors)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] OpenSSL.SSL.Error: [('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')]
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-]
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] During handling of the above exception, another exception occurred:
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-]
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] Traceback (most recent call last):
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 594, in urlopen
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] chunked=chunked)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 350, in _make_request
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] self._validate_conn(conn)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 837, in _validate_conn
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] conn.connect()
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 323, in connect
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] ssl_context=context)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 324, in ssl_wrap_socket
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] return context.wrap_socket(sock, server_hostname=server_hostname)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 424, in wrap_socket
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] raise ssl.SSLError('bad handshake: %r' % e)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] ssl.SSLError: ("bad handshake: Error([('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')],)",)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-]
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] During handling of the above exception, another exception occurred:
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-]
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] Traceback (most recent call last):
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/requests/adapters.py", line 423, in send
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] timeout=timeout
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 624, in urlopen
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] raise SSLError(e)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] requests.packages.urllib3.exceptions.SSLError: ("bad handshake: Error([('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')],)",)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-]
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] During handling of the above exception, another exception occurred:
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-]
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] Traceback (most recent call last):
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "main.py", line 2375, in <module>
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] wfpiconsole().run()
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/local/lib/python3.5/dist-packages/kivy/app.py", line 826, in run
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] runTouchApp()
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/local/lib/python3.5/dist-packages/kivy/base.py", line 502, in runTouchApp
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] EventLoop.window.mainloop()
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/local/lib/python3.5/dist-packages/kivy/core/window/window_egl_rpi.py", line 92, in mainloop
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] self._mainloop()
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/local/lib/python3.5/dist-packages/kivy/core/window/window_egl_rpi.py", line 87, in _mainloop
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] EventLoop.idle()
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/local/lib/python3.5/dist-packages/kivy/base.py", line 337, in idle
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] Clock.tick()
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/local/lib/python3.5/dist-packages/kivy/clock.py", line 581, in tick
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] self._process_events()
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "kivy/_clock.pyx", line 384, in kivy._clock.CyClockBase._process_events
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "kivy/_clock.pyx", line 414, in kivy._clock.CyClockBase._process_events
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "kivy/_clock.pyx", line 412, in kivy._clock.CyClockBase._process_events
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "kivy/_clock.pyx", line 167, in kivy._clock.ClockEvent.tick
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "main.py", line 1901, in SagerForecast
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] Data = requests.get(URL)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/requests/api.py", line 70, in get
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] return request('get', url, params=params, **kwargs)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/requests/api.py", line 56, in request
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] return session.request(method=method, url=url, **kwargs)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/requests/sessions.py", line 488, in request
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] resp = self.send(prep, **send_kwargs)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/requests/sessions.py", line 609, in send
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] r = adapter.send(request, **kwargs)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] File "/usr/lib/python3/dist-packages/requests/adapters.py", line 497, in send
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] raise SSLError(e, request=request)
Jan 31 20:57:19 WF_console python3[420]: 2019-01-31 20:57:19+0100 [-] requests.exceptions.SSLError: ("bad handshake: Error([('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')],)",)
Jan 31 20:57:20 WF_console systemd[1]: wfpiconsole.service: Main process exited, code=exited, status=1/FAILURE
Jan 31 20:57:20 WF_console systemd[1]: wfpiconsole.service: Unit entered failed state.
Jan 31 20:57:20 WF_console systemd[1]: wfpiconsole.service: Failed with result 'exit-code'.
Jan 31 20:57:40 WF_console systemd[1]: Time has been changed
Jan 31 20:57:40 WF_console systemd[655]: Time has been changed
Jan 31 20:57:40 WF_console systemd-timesyncd[274]: Synchronized to time server 195.154.174.209:123 (2.debian.pool.ntp.org).
Jan 31 20:57:40 WF_console systemd[1]: apt-daily-upgrade.timer: Adding 20min 7.368714s random time.
Jan 31 20:57:40 WF_console systemd[1]: apt-daily.timer: Adding 11h 27min 33.942742s random time.
Jan 31 20:58:00 WF_console systemd[1]: Started Session c2 of user pi.