Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue "reinstall-local.sh: No such file or directory" #69

Open
Kletternaut opened this issue Jun 1, 2024 · 6 comments
Open

Comments

@Kletternaut
Copy link

Hi there,
during the installation on a Raspberry Pi 4B (4GB) with freshly installed VenusOS v3.40~20 large (http://updates.victronenergy.com/feeds/venus/candidate/images/raspberrypi4/venus-image-large-raspberrypi4-20240529173916-v3.40~20.rootfs.wic.gz) an error occurred due to a missing reinstall-local.sh file.

root@raspberrypi4:~# wget -O /tmp/install.sh https://raw.githubusercontent.com/Dr-Gigavolt/dbus-aggregate-batteries/main/install.sh
--2024-06-01 11:12:31--  https://raw.githubusercontent.com/Dr-Gigavolt/dbus-aggregate-batteries/main/install.sh
Resolving raw.githubusercontent.com... 185.199.108.133, 185.199.110.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1792 (1.8K) [text/plain]
Saving to: ‘/tmp/install.sh’

/tmp/install.sh     100%[===================>]   1.75K  --.-KB/s    in 0.001s

2024-06-01 11:12:32 (3.21 MB/s) - ‘/tmp/install.sh’ saved [1792/1792]

root@raspberrypi4:~#
root@raspberrypi4:~# bash /tmp/install.sh
Downloading latest release: 3.1.1-beta
--2024-06-01 11:12:32--  https://github.com/Dr-Gigavolt/dbus-aggregate-batteries/archive/refs/tags/3.1.1-beta.zip
Resolving github.com... 140.82.121.4
Connecting to github.com|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/Dr-Gigavolt/dbus-aggregate-batteries/zip/refs/tags/3.1.1-beta [following]
--2024-06-01 11:12:32--  https://codeload.github.com/Dr-Gigavolt/dbus-aggregate-batteries/zip/refs/tags/3.1.1-beta
Resolving codeload.github.com... 140.82.121.9
Connecting to codeload.github.com|140.82.121.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘dbus-aggregate-batteries_latest.zip’

dbus-aggregate-batt     [ <=>                ]  18.93K  --.-KB/s    in 0.004s

2024-06-01 11:12:33 (5.03 MB/s) - ‘dbus-aggregate-batteries_latest.zip’ saved [19386]

bash: /data/dbus-aggregate-batteries/reinstall-local.sh: No such file or directory
root@raspberrypi4:~#
@Dr-Gigavolt
Copy link
Owner

Hello, please try again. The 3.2 was not released, now I've done it.

@Kletternaut
Copy link
Author

Dankeschön!
Habe es gerade nochmals getestet und die Installation ist nun durchgelaufen.

root@raspberrypi4:~# wget -O /tmp/install.sh https://raw.githubusercontent.com/Dr-Gigavolt/dbus-aggregate-batteries/main/install.sh
--2024-06-02 17:18:27--  https://raw.githubusercontent.com/Dr-Gigavolt/dbus-aggregate-batteries/main/install.sh
Resolving raw.githubusercontent.com... 185.199.108.133, 185.199.111.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1792 (1.8K) [text/plain]
Saving to: ‘/tmp/install.sh’

/tmp/install.sh               100%[===============================================>]   1.75K  --.-KB/s    in 0.001s

2024-06-02 17:18:28 (3.20 MB/s) - ‘/tmp/install.sh’ saved [1792/1792]

root@raspberrypi4:~# bash /tmp/install.sh
Downloading latest release: 3.2-beta
--2024-06-02 17:18:39--  https://github.com/Dr-Gigavolt/dbus-aggregate-batteries/archive/refs/tags/3.2-beta.zip
Resolving github.com... 140.82.121.4
Connecting to github.com|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/Dr-Gigavolt/dbus-aggregate-batteries/zip/refs/tags/3.2-beta [following]
--2024-06-02 17:18:39--  https://codeload.github.com/Dr-Gigavolt/dbus-aggregate-batteries/zip/refs/tags/3.2-beta
Resolving codeload.github.com... 140.82.121.10
Connecting to codeload.github.com|140.82.121.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘dbus-aggregate-batteries_latest.zip’

dbus-aggregate-batteries_late     [ <=>                                            ]  22.46K  --.-KB/s    in 0.01s

2024-06-02 17:18:40 (1.70 MB/s) - ‘dbus-aggregate-batteries_latest.zip’ saved [23003]

Restore settings.py
chown: /data/etc/dbus-serialbattery: No such file or directory
sed: /data/rc.local: No such file or directory
grep: /data/rc.local: No such file or directory

Installation successful! Please modify the settings.py file in /data/dbus-aggregate-batteries to your needs and then reboot the device.

root@raspberrypi4:~#

@Kletternaut
Copy link
Author

Nach dem Anpassen der settings.py in /data/dbus-aggregate-batteries und einem anschliessendem Reboot, wurde wieder die Originalversion hergestellt. Nach der Installation erschien in der RemoteConsole ein entsprechendes Menü, welches nach dem Reboot verschwunden ist.

Screenshot 2024-06-02 at 20-13-15 Remote Console on LAN
Diese Meldung deutete bereits bei der Installation auf ein Problem hin.

Restore settings.py
chown: /data/etc/dbus-serialbattery: No such file or directory
sed: /data/rc.local: No such file or directory
grep: /data/rc.local: No such file or directory

Installation successful! Please modify the settings.py file in /data/dbus-aggregate-batteries to your needs and then reboot the device.

@Dr-Gigavolt
Copy link
Owner

Dr-Gigavolt commented Jun 2, 2024

Existiert die Datei /data/rc.local tatsächlich nicht? Dann probiere sie zu erstellen. Kopiere #!/bin/bash in die erste Zeile und setze die Berechtigungen auf 555 (r-xr-xr-x).

@Kletternaut
Copy link
Author

Auf einem frisch installierten System (release: 3.22) ist keine /data/rc.local vorhanden.

Bevor ich jetzt weiter prüfen kann, muss ich erst die Ursache dafür finden, weshalb sich die per can0 angeschlossene Batterien heute Morgen im Notaus-Modus befanden.

@Dr-Gigavolt
Copy link
Owner

Dr-Gigavolt commented Aug 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants