szafranski / RH-ota

Software, plans, instructions and resources for RotorHazard OTA Manager and Updater.
https://www.instructables.com/id/RotorHazard-Updater/
8 stars 5 forks source link

Updater keeps reporting it needs an update #228

Closed propson closed 3 years ago

propson commented 3 years ago

I'm running Updater version 300.35.3i5. Each time I run OTA I tells me it needs an update. I then perform the update and it reports that it's updated correctly. Then after a reboot it will again report it needs an update.

szafranski commented 3 years ago

Thanks for reporting but i cannot replicate that. You mean the RH update or OTA itself update?

propson commented 3 years ago

So this is what I see: image

image

I then proceed to update using 'u' twice

The result will be:

` Software will be automatically closed.

Word 'Killed' may be shown.

Please wait...

Enter 'sudo' password if prompted. sudo: unable to resolve host timer: Temporary failure in name resolution

.Updating process has been started

.................................................

./ota.sh: line 144: 1324 Killed python3 start_ota.py pi@timer:~/RH-ota $

    Please wait - checking internet connection state....

    Looks like you don't have internet connection.

-- attempt to fix the nameserver --

Generated by resolvconf

nameserver 127.0.0.1 changing to: sudo: unable to resolve host timer: Temporary failure in name resolution sudo: unable to resolve host timer: Temporary failure in name resolution nameserver 1.1.1.1 old nameserver is saved as: /etc/resolv.conf.orig sudo: unable to resolve host timer: Name or service not known

-- nameserver fixed --

Trying again...

    Please wait - checking internet connection state....

            Internet connection - OK

     Please wait: updating process from version 300.35.3i5

..............................

Redirecting output to ‘wget-log’. Archive: tempota.zip fa2e90a547966dbc44c3b7a3bcad86dd3965b49e creating: RH-ota-stable/ creating: RH-ota-stable/.dev/ creating: RH-ota-stable/.dev/backup_tools/ inflating: RH-ota-stable/.dev/backup_tools/flash.sh inflating: RH-ota-stable/.dev/backup_tools/gpio_fix inflating: RH-ota-stable/.dev/downlog.py inflating: RH-ota-stable/.dev/i2c_emulator inflating: RH-ota-stable/.dev/i2c_test.py inflating: RH-ota-stable/.dev/isPi4.sh inflating: RH-ota-stable/.dev/pifind.py creating: RH-ota-stable/.dev/uart_diagnostics/ inflating: RH-ota-stable/.dev/uart_diagnostics/Arduino_serial_code.ino inflating: RH-ota-stable/.dev/uart_diagnostics/uart_test_write_to_arduino.py extracting: RH-ota-stable/.first_time_here inflating: RH-ota-stable/.gitignore inflating: RH-ota-stable/AUTO_HOTSPOT.md inflating: RH-ota-stable/README.md inflating: RH-ota-stable/conf_wizard_net.py inflating: RH-ota-stable/conf_wizard_ota.py inflating: RH-ota-stable/conf_wizard_rh.py inflating: RH-ota-stable/distr-updater-config.json creating: RH-ota-stable/docs/ inflating: RH-ota-stable/docs/FAQ.md inflating: RH-ota-stable/docs/LICENSE.txt inflating: RH-ota-stable/docs/dev-notes.txt inflating: RH-ota-stable/docs/features.md inflating: RH-ota-stable/docs/python36_help.txt inflating: RH-ota-stable/docs/update-notes.txt creating: RH-ota-stable/firmware/ inflating: RH-ota-stable/firmware/current_api_levels.txt creating: RH-ota-stable/firmware/custom_firmware/ inflating: RH-ota-stable/firmware/custom_firmware/custom_firmware_instructions.txt creating: RH-ota-stable/firmware/new_bootloader/ creating: RH-ota-stable/firmware/new_bootloader/beta/ inflating: RH-ota-stable/firmware/new_bootloader/beta/node_0.hex inflating: RH-ota-stable/firmware/new_bootloader/blink.hex creating: RH-ota-stable/firmware/new_bootloader/custom_firmware/ inflating: RH-ota-stable/firmware/new_bootloader/custom_firmware/custom_firmware_instructions.txt creating: RH-ota-stable/firmware/new_bootloader/main/ inflating: RH-ota-stable/firmware/new_bootloader/main/node_0.hex creating: RH-ota-stable/firmware/new_bootloader/stable/ inflating: RH-ota-stable/firmware/new_bootloader/stable/node_0.hex creating: RH-ota-stable/firmware/obsolete/ creating: RH-ota-stable/firmware/obsolete/beta/ inflating: RH-ota-stable/firmware/obsolete/beta/blink.hex creating: RH-ota-stable/firmware/obsolete/master/ inflating: RH-ota-stable/firmware/obsolete/master/blink.hex creating: RH-ota-stable/firmware/obsolete/stable/ inflating: RH-ota-stable/firmware/obsolete/stable/blink.hex inflating: RH-ota-stable/firmware/obsolete/stable/node_0.hex inflating: RH-ota-stable/firmware/obsolete/stable/node_1.hex inflating: RH-ota-stable/firmware/obsolete/stable/node_2.hex inflating: RH-ota-stable/firmware/obsolete/stable/node_3.hex inflating: RH-ota-stable/firmware/obsolete/stable/node_4.hex inflating: RH-ota-stable/firmware/obsolete/stable/node_5.hex inflating: RH-ota-stable/firmware/obsolete/stable/node_6.hex inflating: RH-ota-stable/firmware/obsolete/stable/node_7.hex inflating: RH-ota-stable/firmware/obsolete/stable/node_8.hex creating: RH-ota-stable/firmware/old_bootloader/ creating: RH-ota-stable/firmware/old_bootloader/beta/ inflating: RH-ota-stable/firmware/old_bootloader/beta/node_0.hex inflating: RH-ota-stable/firmware/old_bootloader/blink.hex creating: RH-ota-stable/firmware/old_bootloader/custom_firmware/ inflating: RH-ota-stable/firmware/old_bootloader/custom_firmware/custom_firmware_instructions.txt creating: RH-ota-stable/firmware/old_bootloader/main/ inflating: RH-ota-stable/firmware/old_bootloader/main/node_0.hex creating: RH-ota-stable/firmware/old_bootloader/stable/ inflating: RH-ota-stable/firmware/old_bootloader/stable/node_0.hex creating: RH-ota-stable/how_to/ inflating: RH-ota-stable/how_to/RotorHazard-Updater.pdf inflating: RH-ota-stable/how_to/hw_mod_instructions.txt inflating: RH-ota-stable/how_to/readme.txt inflating: RH-ota-stable/modules.py inflating: RH-ota-stable/net_and_ap_man_conf.py creating: RH-ota-stable/net_ap/ inflating: RH-ota-stable/net_ap/README.md inflating: RH-ota-stable/net_ap/access_point_manual.md inflating: RH-ota-stable/net_ap/dhcpcd.conf.ap inflating: RH-ota-stable/net_ap/dhcpcd.conf.net inflating: RH-ota-stable/net_ap/dnsmasq.conf.ap inflating: RH-ota-stable/net_ap/internet_connection_manual.txt inflating: RH-ota-stable/net_ap/net_steps.txt inflating: RH-ota-stable/net_ap/rpi_found_ip.PNG inflating: RH-ota-stable/nodes_flash.py inflating: RH-ota-stable/nodes_flash_common.py inflating: RH-ota-stable/nodes_update_old.py inflating: RH-ota-stable/ota.sh inflating: RH-ota-stable/prev_comp.py creating: RH-ota-stable/resources/ creating: RH-ota-stable/resources/PCB/ inflating: RH-ota-stable/resources/PCB/Link to supported PCB.md inflating: RH-ota-stable/resources/aliases.txt creating: RH-ota-stable/resources/autohotspot/ inflating: RH-ota-stable/resources/autohotspot/autohotspot inflating: RH-ota-stable/resources/autohotspot/autohotspot.service inflating: RH-ota-stable/resources/autohotspot/autohotspot_dnsmasq.conf inflating: RH-ota-stable/resources/autohotspot/hostapd.conf inflating: RH-ota-stable/resources/autohotspot/interfaces.conf inflating: RH-ota-stable/resources/autohotspot/setup_autohotspot.sh inflating: RH-ota-stable/resources/hotspot_config.txt inflating: RH-ota-stable/resources/image.txt inflating: RH-ota-stable/resources/ota_config.json inflating: RH-ota-stable/resources/ota_image.txt inflating: RH-ota-stable/resources/ota_logo.png inflating: RH-ota-stable/resources/ota_logo.xcf inflating: RH-ota-stable/resources/ota_logo_white.png inflating: RH-ota-stable/rpi_update.py creating: RH-ota-stable/scripts/ inflating: RH-ota-stable/scripts/hotspot_manual.sh inflating: RH-ota-stable/scripts/install_rh.sh inflating: RH-ota-stable/scripts/iptables_conf.sh inflating: RH-ota-stable/scripts/log_send.sh inflating: RH-ota-stable/scripts/log_write.sh inflating: RH-ota-stable/scripts/net_fixer.sh inflating: RH-ota-stable/scripts/rtc_sync.sh inflating: RH-ota-stable/scripts/self_updater.sh inflating: RH-ota-stable/scripts/server_start.sh inflating: RH-ota-stable/scripts/sys_conf.sh inflating: RH-ota-stable/scripts/update_rh.sh inflating: RH-ota-stable/scripts/updater_from_ota.sh inflating: RH-ota-stable/self_update.py inflating: RH-ota-stable/start_ota.py inflating: RH-ota-stable/update.py inflating: RH-ota-stable/version.txt

RotorHazard OTA Manager updated to version 300.35.3i5

        You may check update-notes.

Update process done, please re-enter ~/RH-ota directory by typing: cd ~/RH-ota

     -- Hit Enter to continue --

`

szafranski commented 3 years ago

Please type:

sudo nano /etc/resolv.conf

append at the end of the file:

nameserver: 8.8.8.8

if there is any other "nameserver" already - remove that line or comment it with #

Than ctrl+S to save

than: sudo chmod o+r /etc/resolv.conf

reboot the pi

than tell me what happened

propson commented 3 years ago

It was showing this:

Generated by resolvconf

nameserver 127.0.0.1

After changing it to 8.8.8.8 it worked one time. Then I rebooted and the file was back to it's original state. Something is overwriting it.

I'll try a fresh install on a new SD card.

Thanks for the help.

szafranski commented 3 years ago

Sure bud. I have no idea why U got those. Hit me if any further help needed.

szafranski commented 3 years ago

Closing for now, cannot replicate. Write if problem occurs again. Thanks