jekhokie / raspberry-noaa-v2

V2 of the fantastic Raspberry Pi NOAA setup
GNU General Public License v3.0
546 stars 100 forks source link

Install no longer works on buster #479

Closed KE8AFF closed 2 years ago

KE8AFF commented 2 years ago

Describe the bugTASK [webserver : install php] ** fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'php7.4-fpm' is available"} to retry, use: --limit @/home/pi/raspberry-noaa-v2/ansible/site.retry

PLAY RECAP ** localhost : ok=47 changed=0 unreachable=0 failed=1

Error: Something failed with the install - please inspect the logs above

A clear and concise description of what the bug is.

Screenshots and/or logs If applicable, add screenshots to help explain your problem. Logs are always welcome as well.

KE8AFF commented 2 years ago

pi@raspberrypi:~/raspberry-noaa-v2 $ ./install_and_upgrade.sh

PLAY [install raspberry-noaa-v2 core] **

TASK [get os release] ** ok: [localhost]

TASK [common : noaa environment variables] ***** changed: [localhost]

TASK [common : predict directory] ** changed: [localhost]

TASK [common : predict config file] **** changed: [localhost]

TASK [common : wxtoimg config file] **** changed: [localhost]

TASK [common : wxtoimg license terms acceptance file] ** changed: [localhost]

TASK [common : log directory for raspberry-noaa-v2 logs] *** changed: [localhost]

TASK [common : logrotate settings for raspberry-noaa-v2 logs] ** changed: [localhost]

TASK [common : gnuradio home directory] **** changed: [localhost]

TASK [common : gnuradio prefs directory] *** changed: [localhost]

TASK [common : gnuradio prefs file] **** changed: [localhost]

TASK [common : disable wifi power mgmt script] ***** changed: [localhost]

TASK [common : disable wifi power mgmt service definition] ***** changed: [localhost]

TASK [common : enable systemd wifi power management disable service] *** changed: [localhost]

TASK [common : annotation directory] *** changed: [localhost]

TASK [common : annotation file (sample for modification)] ** changed: [localhost]

TASK [common : annotation file image (sample for modification)] **** changed: [localhost]

TASK [common : install dependencies] *** changed: [localhost]

TASK [common : install dependencies (stretch only)] **** skipping: [localhost]

TASK [common : install dependencies (non-stretch)] ***** ok: [localhost]

TASK [common : install wkhtmltox (wkhtmltoimg)] **** changed: [localhost]

TASK [common : install ntp] **** changed: [localhost]

TASK [common : disable systemd-timesyncd] ** changed: [localhost]

TASK [common : ntp config file] **** changed: [localhost]

TASK [common : blacklist dvb modules] ** changed: [localhost]

TASK [common : check if rtl-sdr software is installed] ***** ok: [localhost]

TASK [common : git clone rtl-sdr software] ***** changed: [localhost]

TASK [common : create rtl-sdr build directory] ***** changed: [localhost]

TASK [common : generate build system for rtl-sdr software] ***** changed: [localhost]

TASK [common : make rtl-sdr software] ** changed: [localhost]

TASK [common : install rtl-sdr software] *** changed: [localhost]

TASK [common : link files] ***** changed: [localhost]

TASK [common : copy udev rules] **** ok: [localhost]

TASK [common : install wxtoimg] **** changed: [localhost]

TASK [common : check if meteor_demod software is installed] **** ok: [localhost]

TASK [common : git clone meteor_demod software] **** changed: [localhost]

TASK [common : make meteor_demod software] ***** changed: [localhost]

TASK [common : install meteor_demod software] ** changed: [localhost]

TASK [common : install medet_arm] ** changed: [localhost]

TASK [common : remove old scheduling cron job] ***** changed: [localhost]

TASK [common : create scheduling cron job] ***** changed: [localhost]

TASK [common : create scheduling cron job @ reboot] **** changed: [localhost]

TASK [common : create database] **** changed: [localhost]

TASK [common : create map directory] *** changed: [localhost]

TASK [common : create meteor directory] **** changed: [localhost]

TASK [common : create annotation directory] **** changed: [localhost]

TASK [common : create scanner directory] *** changed: [localhost]

TASK [common : create images directory] **** changed: [localhost]

TASK [common : create thumbnails directory] **** changed: [localhost]

TASK [common : create audio root directory] **** changed: [localhost]

TASK [common : create noaa audio directory] **** changed: [localhost]

TASK [common : create meteor audio directory] ** changed: [localhost]

TASK [common : create videos directory] **** changed: [localhost]

TASK [common : ramfs directory] **** changed: [localhost]

TASK [common : get system memory] ** ok: [localhost]

TASK [common : fstab entry for ramfs] ** changed: [localhost]

TASK [common : install mpack and msmtp if emailing is enabled] ***** skipping: [localhost]

TASK [common : drop template email msmtp config file] ** skipping: [localhost]

TASK [common : create an msmtp log directory] ** skipping: [localhost]

TASK [common : create an msmtp starter log with permissions] *** skipping: [localhost]

TASK [common : logrotate settings for msmtp] *** changed: [localhost]

TASK [common : install tweepy if twitter push is enabled] ** skipping: [localhost]

TASK [common : drop template twitter tweepy config file] *** skipping: [localhost]

RUNNING HANDLER [common : restart ntp] ***** changed: [localhost]

PLAY [install raspberry-noaa-v2 webpanel] **

TASK [webserver : php repository gpg key (stretch only)] *** skipping: [localhost]

TASK [webserver : php repository (stretch only)] *** skipping: [localhost]

TASK [webserver : install nginx] *** changed: [localhost]

TASK [webserver : install php] ***** fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'p hp7.4-fpm' is available"} to retry, use: --limit @/home/pi/raspberry-noaa-v2/ansible/site.retry

PLAY RECAP ***** localhost : ok=58 changed=52 unreachable=0 failed=1

Error: Something failed with the install - please inspect the logs above pi@raspberrypi:~/raspberry-noaa-v2 $ ./install_and_upgrade.sh -f

PLAY [install raspberry-noaa-v2 core] **

TASK [get os release] ** ok: [localhost]

TASK [common : noaa environment variables] ***** ok: [localhost]

TASK [common : predict directory] ** ok: [localhost]

TASK [common : predict config file] **** ok: [localhost]

TASK [common : wxtoimg config file] **** ok: [localhost]

TASK [common : wxtoimg license terms acceptance file] ** ok: [localhost]

TASK [common : log directory for raspberry-noaa-v2 logs] *** ok: [localhost]

TASK [common : logrotate settings for raspberry-noaa-v2 logs] ** ok: [localhost]

TASK [common : gnuradio home directory] **** ok: [localhost]

TASK [common : gnuradio prefs directory] *** ok: [localhost]

TASK [common : gnuradio prefs file] **** ok: [localhost]

TASK [common : disable wifi power mgmt script] ***** ok: [localhost]

TASK [common : disable wifi power mgmt service definition] ***** ok: [localhost]

TASK [common : enable systemd wifi power management disable service] *** skipping: [localhost]

TASK [common : annotation directory] *** ok: [localhost]

TASK [common : annotation file (sample for modification)] ** ok: [localhost]

TASK [common : annotation file image (sample for modification)] **** ok: [localhost]

TASK [common : install dependencies] *** ok: [localhost]

TASK [common : install dependencies (stretch only)] **** skipping: [localhost]

TASK [common : install dependencies (non-stretch)] ***** ok: [localhost]

TASK [common : install wkhtmltox (wkhtmltoimg)] **** ok: [localhost]

TASK [common : install ntp] **** ok: [localhost]

TASK [common : disable systemd-timesyncd] ** ok: [localhost]

TASK [common : ntp config file] **** ok: [localhost]

TASK [common : blacklist dvb modules] ** ok: [localhost]

TASK [common : check if rtl-sdr software is installed] ***** ok: [localhost]

TASK [common : git clone rtl-sdr software] ***** skipping: [localhost]

TASK [common : create rtl-sdr build directory] ***** skipping: [localhost]

TASK [common : generate build system for rtl-sdr software] ***** skipping: [localhost]

TASK [common : make rtl-sdr software] ** skipping: [localhost]

TASK [common : install rtl-sdr software] *** skipping: [localhost]

TASK [common : link files] ***** skipping: [localhost]

TASK [common : copy udev rules] **** skipping: [localhost]

TASK [common : install wxtoimg] **** ok: [localhost]

TASK [common : check if meteor_demod software is installed] **** ok: [localhost]

TASK [common : git clone meteor_demod software] **** ok: [localhost]

TASK [common : make meteor_demod software] ***** skipping: [localhost]

TASK [common : install meteor_demod software] ** skipping: [localhost]

TASK [common : install medet_arm] ** ok: [localhost]

TASK [common : remove old scheduling cron job] ***** ok: [localhost]

TASK [common : create scheduling cron job] ***** ok: [localhost]

TASK [common : create scheduling cron job @ reboot] **** ok: [localhost]

TASK [common : create database] **** ok: [localhost]

TASK [common : create map directory] *** ok: [localhost]

TASK [common : create meteor directory] **** ok: [localhost]

TASK [common : create annotation directory] **** ok: [localhost]

TASK [common : create scanner directory] *** ok: [localhost]

TASK [common : create images directory] **** ok: [localhost]

TASK [common : create thumbnails directory] **** ok: [localhost]

TASK [common : create audio root directory] **** ok: [localhost]

TASK [common : create noaa audio directory] **** ok: [localhost]

TASK [common : create meteor audio directory] ** ok: [localhost]

TASK [common : create videos directory] **** ok: [localhost]

TASK [common : ramfs directory] **** ok: [localhost]

TASK [common : get system memory] ** ok: [localhost]

TASK [common : fstab entry for ramfs] ** ok: [localhost]

TASK [common : install mpack and msmtp if emailing is enabled] ***** skipping: [localhost]

TASK [common : drop template email msmtp config file] ** skipping: [localhost]

TASK [common : create an msmtp log directory] ** skipping: [localhost]

TASK [common : create an msmtp starter log with permissions] *** skipping: [localhost]

TASK [common : logrotate settings for msmtp] *** ok: [localhost]

TASK [common : install tweepy if twitter push is enabled] ** skipping: [localhost]

TASK [common : drop template twitter tweepy config file] *** skipping: [localhost]

PLAY [install raspberry-noaa-v2 webpanel] **

TASK [webserver : php repository gpg key (stretch only)] *** skipping: [localhost]

TASK [webserver : php repository (stretch only)] *** skipping: [localhost]

TASK [webserver : install nginx] *** ok: [localhost]

TASK [webserver : install php] ***** fatal: [localhost]: FAILED! => {"changed": false, "msg": "No package matching 'p hp7.4-fpm' is available"} to retry, use: --limit @/home/pi/raspberry-noaa-v2/ansible/site.retry

PLAY RECAP ***** localhost : ok=47 changed=0 unreachable=0 failed=1

Error: Something failed with the install - please inspect the logs above

dom-robinson commented 2 years ago

HI @KE8AFF - there was an update to the installer that has switched php7.2 to php7.4.

I am commenting here to ask @Mahallon (who made the tweak) about that switch to better understand it.https://github.com/jekhokie/raspberry-noaa-v2/commit/62cab79675e85599837e5c51f5a0b162b99145ad#diff-c0b4bd55d750aaa267f6b0f55402de6451ba69513694dc1f57abc72a640294ac

In the meanwhile if you edit /ansible/roles/webserver/tasks/main.yml lines 30-32 to be php7.2... i think you might get the install to run.

Crosswalkersam commented 2 years ago

No, doesn't seem to work. If I do that, the install completes without error, but the webpanel is unreachable. Just "Error 502 - Bad gateway"

1062298577 commented 2 years ago

同样的问题 请问怎么解决

dom-robinson commented 2 years ago

For ref this issue has arisen through introduction of bullseye support. Seems backward compatibility to buster install is lost. Try tagged release 1.8 (last known good on buster)

raufaser commented 2 years ago

I worked around this issue by providing my system with a source of php7.4-fpm for armhf architecture.

I used the repo of Ondrej Sury.

sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ buster main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt update

Have a nice one.