Page 1 of 1
Unable to add second station RPi. **solved**
Posted: Wed Nov 08, 2023 6:18 pm
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
Re: Unable to add second station RPi
Posted: Wed Nov 08, 2023 11:10 pm
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
Re: Unable to add second station RPi
Posted: Thu Nov 09, 2023 5:03 pm
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
Re: Unable to add second station RPi
Posted: Thu Nov 09, 2023 8:46 pm
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
Re: Unable to add second station RPi
Posted: Thu Nov 09, 2023 10:22 pm
by admin
That looks ok. I think I will need remote access to inspect what raises the error.
Re: Unable to add second station RPi
Posted: Fri Nov 10, 2023 12:15 am
by hymrog
Hi
I have sent the info needed for remote access.
Thanks
g
Re: Unable to add second station RPi
Posted: Fri Nov 10, 2023 12:54 am
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.
Re: Unable to add second station RPi. **solved**
Posted: Fri Nov 10, 2023 3:51 pm
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