Meteobridge on RPI Fails to Load. **solved**
Moderator: Mattk
Meteobridge on RPI Fails to Load. **solved**
We had a power cut, which finished just over an hour ago.
My installation of Meteobridge is on a RPi, which downloads the software, but then doesn't actually load it.
These are the last few lines which is what I would expect to see, then Meteobridge should load shortly afterwards.
3950K .......... .......... .......... .......... .......... 93% 4.77M 0s
4000K .......... .......... .......... .......... .......... 94% 4.63M 0s
4050K .......... .......... .......... .......... .......... 95% 4.78M 0s
4100K .......... .......... .......... .......... .......... 96% 4.51M 0s
4150K .......... .......... .......... .......... .......... 97% 4.74M 0s
4200K .......... .......... .......... .......... .......... 98% 4.59M 0s
4250K .......... .......... .......... .......... ......... 100% 4.73M=1.0s
2023-07-12 16:00:58 (4.28 MB/s) - '/tmp/image.tgz' saved [4402536/4402536]
I noticed that there was a new release today - perhaps it has a bug?
My installation of Meteobridge is on a RPi, which downloads the software, but then doesn't actually load it.
These are the last few lines which is what I would expect to see, then Meteobridge should load shortly afterwards.
3950K .......... .......... .......... .......... .......... 93% 4.77M 0s
4000K .......... .......... .......... .......... .......... 94% 4.63M 0s
4050K .......... .......... .......... .......... .......... 95% 4.78M 0s
4100K .......... .......... .......... .......... .......... 96% 4.51M 0s
4150K .......... .......... .......... .......... .......... 97% 4.74M 0s
4200K .......... .......... .......... .......... .......... 98% 4.59M 0s
4250K .......... .......... .......... .......... ......... 100% 4.73M=1.0s
2023-07-12 16:00:58 (4.28 MB/s) - '/tmp/image.tgz' saved [4402536/4402536]
I noticed that there was a new release today - perhaps it has a bug?
Re: Meteobridge on RPI Fails to Load
What does "/var/log/start.log" tell? There the Meteobridge start-up process is logging progress.
Re: Meteobridge on RPI Fails to Load
Very little.
### start.sh
HW: RPI4
FW: 1.4
MAC: DC:A6:32:7C:B9:FA
rescue download to be started
rescue download ended
LED path: /sys/class/leds/led1
accepted microSD card: WD16G
SD card accepted
data partition mounted.
start downloading application stack from internet... done
### setup.sh
Hardware: RPI4
LED path: /sys/class/leds/led1
/home/setup.sh: line 738: syntax error: unexpected "then"
### start.sh
HW: RPI4
FW: 1.4
MAC: DC:A6:32:7C:B9:FA
rescue download to be started
rescue download ended
LED path: /sys/class/leds/led1
accepted microSD card: WD16G
SD card accepted
data partition mounted.
start downloading application stack from internet... done
### setup.sh
Hardware: RPI4
LED path: /sys/class/leds/led1
/home/setup.sh: line 738: syntax error: unexpected "then"
Re: Meteobridge on RPI Fails to Load
similar issue here with my RPI
I updated license key then rebooted
log in and end at meteobridge landing page
image looks to have loaded fine from what I can see on the landing page
I cannot log on to read the /tmp/image.tgz' saved [4403014/4403014]
I updated license key then rebooted
log in and end at meteobridge landing page
image looks to have loaded fine from what I can see on the landing page
I cannot log on to read the /tmp/image.tgz' saved [4403014/4403014]
Re: Meteobridge on RPI Fails to Load
Just rebooted to update - can't get past the Meteobridge Landing Page (FW 1.3) - unplugged and restarted 3 times.
Guy
Guy
Re: Meteobridge on RPI Fails to Load
There is a bash syntax error in setup.sh in the recent release on line 737.
The double pipe symbol here suggest an OR condition but one was not provided. Therefor the then clause on line 738 is unexpected and the script fails.
While it is not an ideal solution in order to work around this and start the application until this is fixed you can ssh to your raspi. Login using the username/pw you setup or root and the default password if that has not been changed. Then change directories to /home. Remove the double pipe on line 737, save the file. Then directly run setup.sh in the CLI. Then the application stack should be running and accessible.
If your install is set to look for new releases on reboot you cannot simply reboot the system nor can your run the start.sh script in root's home folder. Both of these result in a new download from the web that will put the broken setup script back in place.
Since we don't know what the OR conditional was supposed to be line 737 needs to look like this until it is fixed.
Code: Select all
if [ ! -L /root/.ssh ] ||
then
While it is not an ideal solution in order to work around this and start the application until this is fixed you can ssh to your raspi. Login using the username/pw you setup or root and the default password if that has not been changed. Then change directories to /home. Remove the double pipe on line 737, save the file. Then directly run setup.sh in the CLI. Then the application stack should be running and accessible.
If your install is set to look for new releases on reboot you cannot simply reboot the system nor can your run the start.sh script in root's home folder. Both of these result in a new download from the web that will put the broken setup script back in place.
Since we don't know what the OR conditional was supposed to be line 737 needs to look like this until it is fixed.
Code: Select all
if [ ! -L /root/.ssh ]
then
Re: Meteobridge on RPI Fails to Load
Same here R-Pi 4 i just rebooted and it did the update now i only get to the landing page 

Re: Meteobridge on RPI Fails to Load
Thank you for this. I can confirm it has worked.aeroclown wrote: ↑Sat Oct 28, 2023 6:19 pm There is a bash syntax error in setup.sh in the recent release on line 737.
The double pipe symbol here suggest an OR condition but one was not provided. Therefor the then clause on line 738 is unexpected and the script fails.Code: Select all
if [ ! -L /root/.ssh ] || then
While it is not an ideal solution in order to work around this and start the application until this is fixed you can ssh to your raspi. Login using the username/pw you setup or root and the default password if that has not been changed. Then change directories to /home. Remove the double pipe on line 737, save the file. Then directly run setup.sh in the CLI. Then the application stack should be running and accessible.
If your install is set to look for new releases on reboot you cannot simply reboot the system nor can your run the start.sh script in root's home folder. Both of these result in a new download from the web that will put the broken setup script back in place.
Since we don't know what the OR conditional was supposed to be line 737 needs to look like this until it is fixed.
Code: Select all
if [ ! -L /root/.ssh ] then
For anyone not completely familiar with Linux, SSH in to the device,
CD /home
then
vi setup.sh
Page Down to line 737
Then follow the steps here to edit the file:
https://www.dummies.com/article/technol ... vi-204443/
Once back to the usual prompt, type ./setup.sh to start the app.
Once back in to the console, go in to Administration and change the setting for version control from get latest to stick to version 5.6 and then reboot. It will restart and you will have a working version again without any further changes. However back in to Administration again and change the version control to "Use Installed Version" as it will be back to get the latest, which will make it stay on 5.6 until this issue is resolved.
Re: Meteobridge on RPI Fails to Load
Many thanks, that worked!
Guy
Guy
Re: Meteobridge on RPI Fails to Load
Again..Thanks!!
I am far from a Linux guru, thanks for the how to
was up and running in no time
I am far from a Linux guru, thanks for the how to
was up and running in no time
Re: Meteobridge on RPI Fails to Load
Just had this happen to me. Thought I fried my SD card or something and was about to order some new gear. Thanks!
Re: Meteobridge on RPI Fails to Load
It worked on mine too thank you
Re: Meteobridge on RPI Fails to Load
Thanks for spotting and fixing this. Just released update is fine again for RPI platform.
Re: Meteobridge on RPI Fails to Load. **solved**
How do I log into Raspberry to make the change?
Re: Meteobridge on RPI Fails to Load. **solved**
not needed anymore, just reboot. When RPI loads newest application stack the updated code will be loaded ans executed.