Meteobridge on RPI Fails to Load. **solved**

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
scriven33
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Fri Oct 27, 2023 7:22 pm

Meteobridge on RPI Fails to Load. **solved**

Post by scriven33 »

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?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteobridge on RPI Fails to Load

Post by admin »

What does "/var/log/start.log" tell? There the Meteobridge start-up process is logging progress.
scriven33
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Fri Oct 27, 2023 7:22 pm

Re: Meteobridge on RPI Fails to Load

Post by scriven33 »

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"
greywolf
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Thu Oct 22, 2020 3:44 pm

Re: Meteobridge on RPI Fails to Load

Post by greywolf »

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]
grwkak
Gold Boarder
Gold Boarder
Posts: 183
Joined: Thu Jan 30, 2014 2:15 am

Re: Meteobridge on RPI Fails to Load

Post by grwkak »

Just rebooted to update - can't get past the Meteobridge Landing Page (FW 1.3) - unplugged and restarted 3 times.

Guy
aeroclown
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: Sat Oct 28, 2023 6:09 pm

Re: Meteobridge on RPI Fails to Load

Post by aeroclown »

There is a bash syntax error in setup.sh in the recent release on line 737.

Code: Select all

  if [ ! -L /root/.ssh ] ||
  then
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
badwolf
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Fri Jul 21, 2023 6:58 pm

Re: Meteobridge on RPI Fails to Load

Post by badwolf »

Same here R-Pi 4 i just rebooted and it did the update now i only get to the landing page :(
scriven33
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Fri Oct 27, 2023 7:22 pm

Re: Meteobridge on RPI Fails to Load

Post by scriven33 »

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.

Code: Select all

  if [ ! -L /root/.ssh ] ||
  then
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
Thank you for this. I can confirm it has worked.
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.
grwkak
Gold Boarder
Gold Boarder
Posts: 183
Joined: Thu Jan 30, 2014 2:15 am

Re: Meteobridge on RPI Fails to Load

Post by grwkak »

Many thanks, that worked!

Guy
greywolf
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Thu Oct 22, 2020 3:44 pm

Re: Meteobridge on RPI Fails to Load

Post by greywolf »

Again..Thanks!!

I am far from a Linux guru, thanks for the how to

was up and running in no time
K7RMK
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Thu Oct 03, 2019 9:22 pm

Re: Meteobridge on RPI Fails to Load

Post by K7RMK »

Just had this happen to me. Thought I fried my SD card or something and was about to order some new gear. Thanks!
badwolf
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Fri Jul 21, 2023 6:58 pm

Re: Meteobridge on RPI Fails to Load

Post by badwolf »

It worked on mine too thank you
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteobridge on RPI Fails to Load

Post by admin »

Thanks for spotting and fixing this. Just released update is fine again for RPI platform.
norvegese
Junior Boarder
Junior Boarder
Posts: 25
Joined: Wed Mar 04, 2020 9:08 am

Re: Meteobridge on RPI Fails to Load. **solved**

Post by norvegese »

How do I log into Raspberry to make the change?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteobridge on RPI Fails to Load. **solved**

Post by admin »

not needed anymore, just reboot. When RPI loads newest application stack the updated code will be loaded ans executed.
Post Reply