Unable to add second station RPi. **solved**

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

Moderator: Mattk

Post Reply
hymrog
Expert Boarder
Expert Boarder
Posts: 83
Joined: Sat Feb 01, 2014 1:25 am
Contact:

Unable to add second station RPi. **solved**

Post by hymrog »

Hi

I am getting this error message when attempting to add a secondary station:

Error: Storing settings failed (/root/meteobridge.conf): backup of /root/meteobridge.conf failed: Invalid argument

Running the following:

Platform: Raspberry Pi 3 Model B+
RAM: 941 MB total, 789 MB free (16% used)
Storage: WD SLC, 29.3 GB total, 26.8 GB free (9% used, 1446.7 yrs)
SW Version: Meteobridge 5.7 (Oct 31 2023, build 2838), FW 1.3
Uptime: 7 days, 17 hours, 9 minutes Buffer: 1 items (0%)

FYI adding a secondary station on my TL-MR 3020 works as expected running the following:

Platform: TL-MR3020 (no USB hub)
RAM: 29364 kB total, 1808 kB free (93% used)
SW Version: Meteobridge 5.7 (Oct 31 2023, build 15100), FW 1.5
Uptime: 0 hours, 6 minutes Buffer: 2 items (0%)


Thanks
g
User avatar
Gyvate
Platinum Boarder
Platinum Boarder
Posts: 453
Joined: Thu May 14, 2020 4:36 pm
Location: Saarbrücken, Germany

Re: Unable to add second station RPi

Post by Gyvate »

unless you have a recently saved (recently will say: no changes made to your configuration since the last backup of your configuration - if ever done), I would save all my settings (--> screencopies of ll pages where you enter configuration data of some type - including your events), then connect to my MB via SSH (e.g. w/ PuTTY) and rename the config file:

Code: Select all

mv /root/meteobridge.conf /root/meteobridge_old.conf 
and then go through all the configuration points and save them again - including adding a 2nd station.
Chances are that it will work then ...
If you have a recent configuration backup, I would reload the configuration from the backup file after the renaming
WH4000SE 1.6.6/1 x DP1500/4 x GW1000 1.7.7/GW1100 2.3.0/HP1000SE Pro 1.9.3//2 x WH2650 1.7.7/GW2000 3.1.0
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Unable to add second station RPi

Post by admin »

Could you please share the output of

Code: Select all

http://ip-of-meteobridge/cgi-bin/system.cgi?du%20-h%20/overlay/
and

Code: Select all

http://ip-of-meteobridge/cgi-bin/system.cgi?df%20-h
hymrog
Expert Boarder
Expert Boarder
Posts: 83
Joined: Sat Feb 01, 2014 1:25 am
Contact:

Re: Unable to add second station RPi

Post by hymrog »

Hi

ip-of-meteobridge/cgi-bin/system.cgi?du -h/overlay/

Code: Select all

command: du -h /overlay/
-------------
4.0K	/overlay/
-------------
ip-of-meteobridge/cgi-bin/system.cgi?df%20-h

Code: Select all

command: df -h
-------------
Filesystem                Size      Used Available Use% Mounted on
/dev/root               102.4M     74.2M     26.0M  74% /
tmpfs                   459.6M     31.4M    428.2M   7% /tmp
/dev/mmcblk0p1           63.9M     16.9M     47.0M  26% /boot
tmpfs                   512.0K      4.0K    508.0K   1% /dev
/dev/mmcblk0p3           29.0G      2.5G     26.2G   9% /tmp/mnt
-------------

thanks
g
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Unable to add second station RPi

Post by admin »

That looks ok. I think I will need remote access to inspect what raises the error.
hymrog
Expert Boarder
Expert Boarder
Posts: 83
Joined: Sat Feb 01, 2014 1:25 am
Contact:

Re: Unable to add second station RPi

Post by hymrog »

Hi

I have sent the info needed for remote access.

Thanks
g
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Unable to add second station RPi

Post by admin »

The root file system on SD card is corrupted and switched to "read only".

Code: Select all

[  315.573043] EXT4-fs (mmcblk0p2): error count since last fsck: 2
[  315.580141] EXT4-fs (mmcblk0p2): initial error at time 1698793202: ext4_find_dest_de:1933: inode 2144: block 3166
[  315.592648] EXT4-fs (mmcblk0p2): last error at time 1698793202: ext4_evict_inode:267: inode 2144: block 3166
[  325.351839] EXT4-fs error (device mmcblk0p2): ext4_find_dest_de:1933: inode #2144: block 3166: comm ncftpput: bad entry in directory: rec_len % 4 != 0 - offset=0, inode=1701257251, rec_len=25966, name_len=114, size=4096
[  325.376829] EXT4-fs (mmcblk0p2): Remounting filesystem read-only
[  325.384076] EXT4-fs error (device mmcblk0p2) in ext4_evict_inode:267: Readonly filesystem
I did a reboot and file system starts up ok. No clue if it has repaired itself fine or it will just run into new problems a few CPU cycles later on... we ll see.

P.S.: Error is back, looks like file system (sd card) is permanently damaged.

P.P.S: I tried a forced repair of device "/dev/mmcblk0p2" via e2fsck, we ll se how it behaves after the just initiated reboot.
hymrog
Expert Boarder
Expert Boarder
Posts: 83
Joined: Sat Feb 01, 2014 1:25 am
Contact:

Re: Unable to add second station RPi. **solved**

Post by hymrog »

Hi -

Thanks for taking a look this. I tested this morning and was able to add the second station and all worked as expected.

Thanks for your time and quick response.

g
Post Reply