WeatherFlow PiConsole - Archive

Ah - you’ve just made me notice a bug. If you are updating from v2.3 to v2.4, you need to first add the wfpiconsole.sh file to your path. You can do that with these commands:

chmod 744 ~/wfpiconsole/wfpiconsole.sh
sudo ln -s ~/wfpiconsole/wfpiconsole.sh /usr/local/bin/wfpiconsole

Once you have added it to your path, you should be able to run wfpiconsole update for any terminal prompt.

Does that help?

this has to be given with sudo in my case

another reboot and the console doesn’t auto start … let me see

ok it runs

pi@WF_console:~ $ wfpiconsole update

  [✓] Root user check passed

  ==============================
  Updating WeatherFlow PiConsole
  ==============================

  [✓] Raspberry Pi found. Hardware check passed
  [✓] Raspbian (Debian) found. OS check passed
  [✓] Checking for updated packages
  [i] No updated packages found

  [i] Latest version of the WeatherFlow PiConsole: v2.4
  [i] Installed version of the WeatherFlow PiConsole: v2.4
  [✓] Versions match: No update required
  
  ============================================= 
  WeatherFlow PiConsole update complete!        
  Restart the console with: 'wfpiconsole start' 
  ============================================= 

Thanks for all the bug spotting. It is called as sudo in the automated script. I’ll edit my post.

I came across the same auto-starting problem whilst I was putting this release together. I think the Raspberry Pi developers have changed the service used to monitor whether a network connection is present before the console autostarts. Can you run

sudo apt-get update
sudo apt-get dist-upgrade

and let me know if this fixes the auto-starting problem?

nope no luck

could it be related to this post from Gary

and weewx on the same pi seems to run fine

I doubt Peter used dnsmasq

Hmmm weird. It’s working on my test pi!

Can you stop any console you currently have running with wfpiconsole stop and then run wfpiconsole autostart-enable. Then go for a reboot.

Also does your pi boot straight to the Desktop, or do you need to enter a password?

@GaryFunk is right - no dnsmasq in sight!

pi@WF_console:~ $ wfpiconsole stop
pi@WF_console:~ $ wfpiconsole autostart-enable

  [✓] Root user check passed

  ======================================
  Enabling console autostart during boot 
  ======================================

  [✓] Copying service file to autostart directory
  [✓] Enabling the WeatherFlow PiConsole service file

  ==================================================== 
  WeatherFlow PiConsole autostart sucesfully enabled   
  Console will now start automatically at boot up      
  Starting console for current session. Please wait... 
  ==================================================== 

pi boots directly on desktop, no password or whatever

and still no joy :roll_eyes:

OK - let’s keep trying! What’s the output of: sudo journalctl -u wfpiconsole

Edit: when you use wfpiconsole autostart-enable does the console start for you current session (after a small delay)?

-- Logs begin at Thu 2016-11-03 18:16:42 CET, end at Sun 2019-03-17 18:29:51 CET. --
mars 17 18:25:42 WF_console systemd[1]: Started WeatherFlow PiConsole.
mars 17 18:25:51 WF_console python3[432]: [INFO   ] [Logger      ] Record log in /home/pi/.kivy/logs/kivy_19-03-17_10.txt
mars 17 18:25:51 WF_console python3[432]: [INFO   ] [Kivy        ] v1.11.0.dev0, git-038acbf, 20180915
mars 17 18:25:51 WF_console python3[432]: [INFO   ] [Python      ] v3.5.3 (default, Sep 27 2018, 17:25:39)
mars 17 18:25:51 WF_console python3[432]: [GCC 6.3.0 20170516]
mars 17 18:25:52 WF_console python3[432]: [INFO   ] [Factory     ] 195 symbols loaded
mars 17 18:25:54 WF_console python3[432]: [INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
mars 17 18:25:54 WF_console python3[432]: [INFO   ] [Window      ] Provider: egl_rpi
mars 17 18:25:54 WF_console python3[432]: [INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
mars 17 18:25:54 WF_console python3[432]: [INFO   ] [GL          ] Backend used <gl>
mars 17 18:25:54 WF_console python3[432]: [INFO   ] [GL          ] OpenGL version <b'OpenGL ES 2.0'>
mars 17 18:25:54 WF_console python3[432]: [INFO   ] [GL          ] OpenGL vendor <b'Broadcom'>
mars 17 18:25:54 WF_console python3[432]: [INFO   ] [GL          ] OpenGL renderer <b'VideoCore IV HW'>
mars 17 18:25:54 WF_console python3[432]: [INFO   ] [GL          ] OpenGL parsed version: 2, 0
mars 17 18:25:54 WF_console python3[432]: [INFO   ] [GL          ] Shading version <b'OpenGL ES GLSL ES 1.00'>
mars 17 18:25:54 WF_console python3[432]: [INFO   ] [GL          ] Texture max size <2048>
mars 17 18:25:54 WF_console python3[432]: [INFO   ] [GL          ] Texture max units <8>
mars 17 18:25:54 WF_console python3[432]: [INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
mars 17 18:25:55 WF_console python3[432]: [INFO   ] [Text        ] Provider: sdl2
mars 17 18:25:55 WF_console python3[432]: 2019-03-17 18:25:55+0100 [-] Log opened.
mars 17 18:25:56 WF_console python3[432]: [INFO   ] [GL          ] NPOT texture support is available
mars 17 18:25:57 WF_console python3[432]: 2019-03-17 18:25:57+0100 [-] Starting factory <__main__.WeatherFlowClientFactory object at 0x7079e1d0>
mars 17 18:25:57 WF_console python3[432]: Unable to connect to X server
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [ProbeSysfs  ] device match: /dev/input/event0
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [MTD         ] Read event from </dev/input/event0>
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [ProbeSysfs  ] device match: /dev/input/event0
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [HIDInput    ] Read event from </dev/input/event0>
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [Base        ] Start application main loop
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [MTD         ] </dev/input/event0> range position X is 0 - 800
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [HIDMotionEvent] using <b'FT5406 memory based driver\x00                                                                         
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [Support     ] Starting twisted reactor
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [MTD         ] </dev/input/event0> range position Y is 0 - 480
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [HIDMotionEvent] <b'FT5406 memory based driver\x00                                                                               
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [MTD         ] </dev/input/event0> range touch major is 0 - 0
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [HIDMotionEvent] <b'FT5406 memory based driver\x00                                                                               
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [MTD         ] </dev/input/event0> range touch minor is 0 - 0
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [HIDMotionEvent] <b'FT5406 memory based driver\x00                                                                               
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [MTD         ] </dev/input/event0> range pressure is 0 - 255
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [HIDMotionEvent] <b'FT5406 memory based driver\x00                                                                               
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [MTD         ] </dev/input/event0> axes invertion: X is 0, Y is 0
mars 17 18:25:57 WF_console python3[432]: [INFO   ] [MTD         ] </dev/input/event0> rotation set to 0
mars 17 18:25:58 WF_console python3[432]: [INFO   ] [Base        ] Leaving application in progress...
mars 17 18:25:58 WF_console python3[432]: [INFO   ] [Support     ] Stopping twisted threads
mars 17 18:25:58 WF_console python3[432]: [INFO   ] [Support     ] Shutting down twisted reactor
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-] Traceback (most recent call last):
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 417, in wrap_socket
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]     cnx.do_handshake()
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]   File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1426, in do_handshake
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]     self._raise_ssl_error(self._ssl, result)
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]   File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1174, in _raise_ssl_error
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]     _raise_current_error()
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]   File "/usr/lib/python3/dist-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]     raise exception_type(errors)
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-] OpenSSL.SSL.Error: [('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')]
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-] During handling of the above exception, another exception occurred:
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-] Traceback (most recent call last):
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 594, in urlopen
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]     chunked=chunked)
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 350, in _make_request
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]     self._validate_conn(conn)
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 837, in _validate_conn
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]     conn.connect()
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 323, in connect
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]     ssl_context=context)
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 324, in ssl_wrap_socket
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]     return context.wrap_socket(sock, server_hostname=server_hostname)
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 424, in wrap_socket
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]     raise ssl.SSLError('bad handshake: %r' % e)
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-] ssl.SSLError: ("bad handshake: Error([('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')],)",)
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-] During handling of the above exception, another exception occurred:
mars 17 18:25:58 WF_console python3[432]: 2019-03-17 18:25:58+0100 [-]

it did not start after enabling, guess the ssl handshake error

OK. Does the console start ok if you try: wfpiconsole start or python3 main.py within the wfpiconsole directory?

Can you post the contents of your wfpiconsole.service file for me to see here?

that starts the console but stops the moment you ctrl C

here is the fie

# WeatherFlow PiConsole: Raspberry Pi Python console for Weather Flow
# Smart Home Weather Station. Copyright (C) 2018-2019  Peter Davis

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

[Unit]
Description=WeatherFlow PiConsole
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=/usr/bin/python3 -u main.py
WorkingDirectory=/home/pi/wfpiconsole/
StandardOutput=inherit
StandardError=inherit
Restart=no
User=pi

[Install]
WantedBy=multi-user.target

OK. That’s the expected behavior. The console stays attached to the current terminal so ctrl-C will stop it from running.

Doesn’t solve the autostart problem though! The service file looks just fine. I know I have had this issue before but I can’t remember what fixed it!

Let’s try starting again from scratch. First disable the service:

sudo systemctl disable wfpiconsole.service

and then remove the service file

sudo rm /etc/systemd/system/wfpiconsole.service

Now lets reload the systemctl daemon and then reboot the system

sudo systemctl daemon-reload
sudo reboot now

Once back up copy the service file back to the systemd directory

sudo cp ~/wfpiconsole/wfpiconsole.service /etc/systemd/system/

and start the service (just once)

sudo systemctl start wfpiconsole.service

Does the console start? If not, post the output of sudo journalctl -u wfpiconsole

did all, console did not lauch

pi@WF_console:~ $ sudo journalctl -u wfpiconsole
-- Logs begin at Thu 2016-11-03 18:16:42 CET, end at Sun 2019-03-17 18:52:49 CET. --
mars 17 18:52:25 WF_console systemd[1]: Started WeatherFlow PiConsole.
mars 17 18:52:29 WF_console python3[976]: [INFO   ] [Logger      ] Record log in /home/pi/.kivy/logs/kivy_19-03-17_13.txt
mars 17 18:52:29 WF_console python3[976]: [INFO   ] [Kivy        ] v1.11.0.dev0, git-038acbf, 20180915
mars 17 18:52:29 WF_console python3[976]: [INFO   ] [Python      ] v3.5.3 (default, Sep 27 2018, 17:25:39)
mars 17 18:52:29 WF_console python3[976]: [GCC 6.3.0 20170516]
mars 17 18:52:30 WF_console python3[976]: [INFO   ] [Factory     ] 195 symbols loaded
mars 17 18:52:32 WF_console python3[976]: [INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
mars 17 18:52:32 WF_console python3[976]: [INFO   ] [Window      ] Provider: egl_rpi
mars 17 18:52:32 WF_console python3[976]: [INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
mars 17 18:52:32 WF_console python3[976]: [INFO   ] [GL          ] Backend used <gl>
mars 17 18:52:32 WF_console python3[976]: [INFO   ] [GL          ] OpenGL version <b'OpenGL ES 2.0'>
mars 17 18:52:32 WF_console python3[976]: [INFO   ] [GL          ] OpenGL vendor <b'Broadcom'>
mars 17 18:52:32 WF_console python3[976]: [INFO   ] [GL          ] OpenGL renderer <b'VideoCore IV HW'>
mars 17 18:52:32 WF_console python3[976]: [INFO   ] [GL          ] OpenGL parsed version: 2, 0
mars 17 18:52:32 WF_console python3[976]: [INFO   ] [GL          ] Shading version <b'OpenGL ES GLSL ES 1.00'>
mars 17 18:52:32 WF_console python3[976]: [INFO   ] [GL          ] Texture max size <2048>
mars 17 18:52:32 WF_console python3[976]: [INFO   ] [GL          ] Texture max units <8>
mars 17 18:52:32 WF_console python3[976]: [INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
mars 17 18:52:33 WF_console python3[976]: [INFO   ] [Text        ] Provider: sdl2
mars 17 18:52:33 WF_console python3[976]: 2019-03-17 18:52:33+0100 [-] Log opened.
mars 17 18:52:34 WF_console python3[976]: [INFO   ] [GL          ] NPOT texture support is available
mars 17 18:52:35 WF_console python3[976]: 2019-03-17 18:52:35+0100 [-] Starting factory <__main__.WeatherFlowClientFactory object at 0x7075f190>
mars 17 18:52:35 WF_console python3[976]: Unable to connect to X server
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [ProbeSysfs  ] device match: /dev/input/event0
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [MTD         ] Read event from </dev/input/event0>
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [ProbeSysfs  ] device match: /dev/input/event0
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [HIDInput    ] Read event from </dev/input/event0>
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [Base        ] Start application main loop
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [MTD         ] </dev/input/event0> range position X is 0 - 800
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [Support     ] Starting twisted reactor
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [HIDMotionEvent] using <b'FT5406 memory based driver\x00                                                                         
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [MTD         ] </dev/input/event0> range position Y is 0 - 480
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [HIDMotionEvent] <b'FT5406 memory based driver\x00                                                                               
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [MTD         ] </dev/input/event0> range touch major is 0 - 0
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [HIDMotionEvent] <b'FT5406 memory based driver\x00                                                                               
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [MTD         ] </dev/input/event0> range touch minor is 0 - 0
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [HIDMotionEvent] <b'FT5406 memory based driver\x00                                                                               
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [MTD         ] </dev/input/event0> range pressure is 0 - 255
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [HIDMotionEvent] <b'FT5406 memory based driver\x00                                                                               
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [MTD         ] </dev/input/event0> axes invertion: X is 0, Y is 0
mars 17 18:52:35 WF_console python3[976]: [INFO   ] [MTD         ] </dev/input/event0> rotation set to 0
mars 17 18:52:36 WF_console python3[976]: [INFO   ] [Base        ] Leaving application in progress...
mars 17 18:52:36 WF_console python3[976]: [INFO   ] [Support     ] Stopping twisted threads
mars 17 18:52:36 WF_console python3[976]: [INFO   ] [Support     ] Shutting down twisted reactor
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-] Traceback (most recent call last):
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 417, in wrap_socket
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]     cnx.do_handshake()
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]   File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1426, in do_handshake
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]     self._raise_ssl_error(self._ssl, result)
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]   File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1174, in _raise_ssl_error
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]     _raise_current_error()
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]   File "/usr/lib/python3/dist-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]     raise exception_type(errors)
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-] OpenSSL.SSL.Error: [('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')]
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-] During handling of the above exception, another exception occurred:
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-] Traceback (most recent call last):
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 594, in urlopen
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]     chunked=chunked)
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 350, in _make_request
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]     self._validate_conn(conn)
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 837, in _validate_conn
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]     conn.connect()
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 323, in connect
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]     ssl_context=context)
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 324, in ssl_wrap_socket
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]     return context.wrap_socket(sock, server_hostname=server_hostname)
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]   File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 424, in wrap_socket
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]     raise ssl.SSLError('bad handshake: %r' % e)
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-] ssl.SSLError: ("bad handshake: Error([('', 'osrandom_rand_bytes', 'getrandom() initialization failed.')],)",)
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-] During handling of the above exception, another exception occurred:
mars 17 18:52:36 WF_console python3[976]: 2019-03-17 18:52:36+0100 [-]
lines 1-75

Hmmmm - I’m beginning to run out of ideas.

Try sudo apt-get install rng-tools. Then power the Pi down completely with sudo shutdown now before starting up again. Run wfpiconsole autostart-enable and let me know what happens?

did so
the command gave the same output as should and it launched the console

Excellent! OK, now reboot the Pi and see if it starts automatically?

it did … seems the rng trick did it …

edit : rebooted once more to be sure : it is running

Excellent!! I will add rng-tools to the list of dependencies - it helps the Pi generate the random numbers needed during the SSL handshake. Glad you are back up and running :smiley:

1 Like

again a great support. Let’s hope I find no other bugs :sweat_smile: