raspberry-noaa-v2
raspberry-noaa-v2 copied to clipboard
[Error] The conditional check 'disable_wifi_power_mgmt | bool' failed
Trying to install on a new Rasbian Lite 32bit image on a Raspberry Pi 2b (without wifi) the install fails with:
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'disable_wifi_power_mgmt | bool' failed. The error was: template error while templating string: cannot import name 'environmentfilter' from 'jinja2.filters' (/usr/local/lib/python3.9/dist-packages/jinja2/filters.py)\n line 0. String: {% if disable_wifi_power_mgmt | bool %} True {% else %} False {% endif %}\n\nThe error appears to be in '/home/pi/raspberry-noaa-v2/ansible/roles/common/tasks/configs.yml': line 84, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: disable wifi power mgmt script\n ^ here\n"}
$ ./support.sh ./support.sh: line 17: sqlite3: command not found
Details about environment
Current local date/time: Mon Sep 26 23:51:53 BST 2022 Current date/time (ms): 1664232713 Repo git hash: d4ffd28802a099bf4e68845f54648c122f85ad01 Raspberry Pi Model: Raspberry Pi 2 Model B Rev 1.1 Architecture: Linux sdrpi1 5.15.61-v7+ #1579 SMP Fri Aug 26 11:10:59 BST 2022 armv7l GNU/Linux Num CPUs: 4
'at' Scheduled Jobs (Captures): ./support.sh: line 36: atq: command not found (None)
Satellite SDR Settings: noaa_15_schedule: true noaa_15_sdr_device_id: 0 noaa_15_freq_offset: 0 noaa_15_enable_bias_tee: false noaa_15_gain: 30 noaa_15_sun_min_elevation: 6 noaa_15_sat_min_elevation: 30 noaa_18_schedule: true noaa_18_sdr_device_id: 0 noaa_18_freq_offset: 0 noaa_18_enable_bias_tee: false noaa_18_gain: 30 noaa_18_sun_min_elevation: 6 noaa_18_sat_min_elevation: 30 noaa_19_schedule: true noaa_19_sdr_device_id: 0 noaa_19_freq_offset: 0 noaa_19_enable_bias_tee: false noaa_19_gain: 30 noaa_19_sun_min_elevation: 6 noaa_19_sat_min_elevation: 30 meteor_m2_schedule: true meteor_m2_sdr_device_id: 0 meteor_m2_freq_offset: 0 meteor_m2_enable_bias_tee: false meteor_m2_gain: 30 meteor_m2_sun_min_elevation: 6 meteor_m2_sat_min_elevation: 30 meteor_m2_memory_threshold: 600
USB Device Map: Bus 001 Device 009: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T Bus 001 Device 008: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T Bus 001 Device 007: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 006: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Disk Info: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0 179:0 0 28.9G 0 disk |-mmcblk0p1 179:1 0 256M 0 part /boot `-mmcblk0p2 179:2 0 28.7G 0 part /
Disk Usage Info: Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 29552468 2122820 26195556 8% / devtmpfs 340556 0 340556 0% /dev tmpfs 472140 0 472140 0% /dev/shm tmpfs 188856 940 187916 1% /run tmpfs 5120 4 5116 1% /run/lock /dev/mmcblk0p1 261108 52464 208644 21% /boot tmpfs 94428 0 94428 0% /run/user/1000
Memory Info: MemTotal: 944280 kB MemFree: 165616 kB MemAvailable: 790100 kB
Git source files changed: (None)
SDR Information: Found 2 device(s): 0: Generic RTL2832U OEM 1: Generic RTL2832U OEM
Using device 0: Generic RTL2832U OEM Found Rafael Micro R820T tuner
Current configuration:
Vendor ID: 0x0bda Product ID: 0x2838 Manufacturer: Realtek Product: RTL2838UHIDIR Serial number: 00000002 Serial number enabled: yes IR endpoint enabled: yes Remote wakeup enabled: no
Database tables: (None)
I "fixed" this by commenting out all ansible wifi related tasks, only to be confronted with the same errors for both the email, twitter, enable_non_tls ansible. Commenting them out "solved" this.
Eg. fatal: [localhost]: FAILED! => {"msg": "The conditional check 'enable_twitter_push | bool' failed. The error was: template error while templating string: cannot import name 'environmentfilter' from 'jinja2.filters' (/usr/local/lib/python3.9/dist-packages/jinja2/filters.py)\n line 0. String: {% if enable_twitter_push | bool %} True {% else %} False {% endif %}\n\nThe error appears to be in '/home/pi/raspberry-noaa-v2/ansible/roles/common/tasks/twitter.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: install tweepy if twitter push is enabled\n ^ here\n"}
or...
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'enable_non_tls|bool' failed. The error was: template error while templating string: cannot import name 'environmentfilter' from 'jinja2.filters' (/usr/local/lib/python3.9/dist-packages/jinja2/filters.py)\n line 0. String: {% if enable_non_tls|bool %} True {% else %} False {% endif %}\n\nThe error appears to be in '/home/pi/raspberry-noaa-v2/ansible/roles/webserver/tasks/main.yml': line 85, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: nginx non-tls config symlink\n ^ here\n"}