Endless update loop?

edited April 2017 in Problems Now Fixed
Hi.
Just got our first KiwiSDR, tried to get it to work.
After first power the LEDs continue to blink, the webpage says "Sorry, software update in progress. Please check back in a few minutes.
Or check sdr.hu for more KiwiSDR receivers available world-wide. Build: compiling file #30"

The number of the file varies.
After waiting more than 30 minutes I logged in via ssh and checked the log. It repeats the below cycle every three minutes. To me that looks like the device is stuck in an update loop.

Please advise if I am just impatient or what :) This has been running now for more than one hour...
Please let me know if you need additional information...

73,
Ekki, DF4OR


# journalctl -f
Nov 21 22:11:31 kiwisdr kiwid[5274]: DEBIAN 8
Nov 21 22:11:31 kiwisdr kiwid[5274]: USE_SPIDEV
Nov 21 22:11:31 kiwisdr kiwid[5274]: LOAD_SPI = no
Nov 21 22:11:31 kiwisdr kiwid[5274]: Stopping kiwid:
Nov 21 22:12:01 kiwisdr kiwid[5280]: DEBIAN 8
Nov 21 22:12:01 kiwisdr kiwid[5280]: USE_SPIDEV
Nov 21 22:12:01 kiwisdr kiwid[5280]: LOAD_SPI = no
Nov 21 22:12:01 kiwisdr kiwid[5280]: Starting kiwid
Nov 21 22:12:01 kiwisdr kiwid[5280]: Start kiwid: OK
Nov 21 22:12:01 kiwisdr kiwid[5280]: Mon Nov 21 22:12:01 UTC 2016
Nov 21 22:12:01 kiwisdr kiwid[5286]: 0:00:00 ....      KiwiSDR v1.2 --------------------------------------------------------------------
Nov 21 22:12:01 kiwisdr kiwid[5286]: 0:00:00 ....      compiled: Aug 10 2016 21:09:53
Nov 21 22:12:01 kiwisdr kiwid[5286]: 0:00:00 ....      reading configuration from file /root/kiwi.config/kiwi.json
Nov 21 22:12:02 kiwisdr kiwid[5286]: 0:00:01 ....      serial number from EEPROM: 1078
Nov 21 22:12:02 kiwisdr kiwid[5286]: 0:00:01 ....      reading configuration from file /root/kiwi.config/dx.json
Nov 21 22:12:02 kiwisdr kiwid[5286]: 0:00:01 ....      883 dx entries
Nov 21 22:12:02 kiwisdr kiwid[5286]: 0:00:01 ....      listening on port 8073 for "openwebrx"
Nov 21 22:12:02 kiwisdr kiwid[5286]: 0:00:01 ....      webserver for "openwebrx" on port 8073
Nov 21 22:12:02 kiwisdr kiwid[5286]: 0:00:01 ....      ### using SPI_DEV
Nov 21 22:12:03 kiwisdr kiwid[5286]: 0:00:02 ....      FPGA version 1
Nov 21 22:12:03 kiwisdr kiwid[5286]: 0:00:02 ....      CFG read /root/kiwi.config/kiwi.json: sdr_hu_register = false
Nov 21 22:12:06 kiwisdr kiwid[5286]: 0:00:05 ....      (0 users)
Nov 21 22:12:06 kiwisdr kiwid[5286]: 0:00:05 ....      UPDATE: scheduled
Nov 21 22:12:06 kiwisdr kiwid[5286]: 0:00:05 ....      UPDATE: checking for updates
Nov 21 22:12:06 kiwisdr kiwid[5286]: 0:00:05 ....      UPDATE: version changed, current 1.2, new 1.24
Nov 21 22:12:06 kiwisdr kiwid[5286]: 0:00:05 ....      UPDATE: building new version..
Nov 21 22:12:08 kiwisdr kiwid[5286]: 0:00:07 ....      DDNS: private ip 192.168.5.219/24
Nov 21 22:12:08 kiwisdr kiwid[5286]: 0:00:07 ....      DDNS: public ip [censored]
Nov 21 22:15:13 kiwisdr kiwid[5286]: 0:03:12 ....      UPDATE: switching to new version 1.24
Nov 21 22:15:15 kiwisdr kiwid[6215]: DEBIAN 8
Nov 21 22:15:15 kiwisdr kiwid[6215]: USE_SPIDEV
Nov 21 22:15:15 kiwisdr kiwid[6215]: LOAD_SPI = no
Nov 21 22:15:15 kiwisdr kiwid[6215]: Stopping kiwid:
Nov 21 22:15:45 kiwisdr kiwid[6221]: DEBIAN 8
Nov 21 22:15:45 kiwisdr kiwid[6221]: USE_SPIDEV
Nov 21 22:15:45 kiwisdr kiwid[6221]: LOAD_SPI = no
Nov 21 22:15:45 kiwisdr kiwid[6221]: Starting kiwid
Nov 21 22:15:45 kiwisdr kiwid[6221]: Start kiwid: OK
Nov 21 22:15:45 kiwisdr kiwid[6221]: Mon Nov 21 22:15:45 UTC 2016
Nov 21 22:15:45 kiwisdr kiwid[6227]: 0:00:00 ....      KiwiSDR v1.2 --------------------------------------------------------------------
Nov 21 22:15:45 kiwisdr kiwid[6227]: 0:00:00 ....      compiled: Aug 10 2016 21:09:53
Nov 21 22:15:45 kiwisdr kiwid[6227]: 0:00:00 ....      reading configuration from file /root/kiwi.config/kiwi.json
Nov 21 22:15:45 kiwisdr kiwid[6227]: 0:00:00 ....      serial number from EEPROM: 1078
Nov 21 22:15:46 kiwisdr kiwid[6227]: 0:00:01 ....      reading configuration from file /root/kiwi.config/dx.json
Nov 21 22:15:46 kiwisdr kiwid[6227]: 0:00:01 ....      883 dx entries
Nov 21 22:15:46 kiwisdr kiwid[6227]: 0:00:01 ....      listening on port 8073 for "openwebrx"
Nov 21 22:15:46 kiwisdr kiwid[6227]: 0:00:01 ....      webserver for "openwebrx" on port 8073
Nov 21 22:15:46 kiwisdr kiwid[6227]: 0:00:01 ....      ### using SPI_DEV
Nov 21 22:15:47 kiwisdr kiwid[6227]: 0:00:02 ....      FPGA version 1
Nov 21 22:15:47 kiwisdr kiwid[6227]: 0:00:02 ....      CFG read /root/kiwi.config/kiwi.json: sdr_hu_register = false
Nov 21 22:15:49 kiwisdr kiwid[6227]: 0:00:04 ....      (0 users)
Nov 21 22:15:49 kiwisdr kiwid[6227]: 0:00:04 ....      UPDATE: scheduled
Nov 21 22:15:50 kiwisdr kiwid[6227]: 0:00:05 ....      UPDATE: checking for updates
Nov 21 22:15:50 kiwisdr kiwid[6227]: 0:00:05 ....      UPDATE: version changed, current 1.2, new 1.24
Nov 21 22:15:50 kiwisdr kiwid[6227]: 0:00:05 ....      UPDATE: building new version..
Nov 21 22:15:52 kiwisdr kiwid[6227]: 0:00:07 ....      DDNS: private ip 192.168.5.219/24
Nov 21 22:15:52 kiwisdr kiwid[6227]: 0:00:07 ....      DDNS: public ip [censored]



Comments

  • jksjks
    edited November 2016
    That's really strange. It looks like a normal download and build. Three minutes is about right. But then when the server restarts 30 seconds later it's running the original factory version again (v1.2). It's like the install didn't work.

    Nov 21 22:12:01 kiwisdr kiwid[5286]: 0:00:00 ....      KiwiSDR v1.2 -----------------------------------------------------
    Nov 21 22:12:01 kiwisdr kiwid[5286]: 0:00:00 ....      compiled: Aug 10 2016 21:09:53
    Nov 21 22:12:06 kiwisdr kiwid[5286]: 0:00:05 ....      UPDATE: version changed, current 1.2, new 1.24
    Nov 21 22:12:06 kiwisdr kiwid[5286]: 0:00:05 ....      UPDATE: building new version..
    Nov 21 22:15:13 kiwisdr kiwid[5286]: 0:03:12 ....      UPDATE: switching to new version 1.24

    Nov 21 22:15:45 kiwisdr kiwid[6227]: 0:00:00 ....      KiwiSDR v1.2 -----------------------------------------------------
    Nov 21 22:15:45 kiwisdr kiwid[6227]: 0:00:00 ....      compiled: Aug 10 2016 21:09:53

    Can you try running manually and see if the build gives you any errors? Login to the Beagle as root and type:
    cdp changes to project directory
    mst stops server daemon
    ng runs server without gps
    Should show more messages than log and the 'ng' script will exit after the build completes.
    Run 'ng' again and see if it's version 1.24

    If not, do the entire build process manually and see if what is failing:
    m git downloads the latest sources
    more Makefile Does it say version 24 at the top of the file?
    mc cleans up
    m makes the program
    mi installs the program
    ng
    Running v1.24 now?

  • Hello jks,
    thanks for the fast reply. I wanted to test your procedure this morning and now it upgrades smoothly to new version 1.25.

    So I will not go through the manual procedure you suggested, I assume that you fixed something over night :) Many thanks!

    I will check some more of the batch of KiwiSDR which arrived yesterday and see if they upgrade all ok.

    73,
    Ekki, DF4OR

  • Please let me know what happens with your other units. Any change I made to v1.25 would not have made a difference as the update happens entirely with the v1.2 (one point two) code shipped by the factory that is delivered on the Beagle (or SD card). Until it is installed of course, then the update code on v1.25 will load the next version when it is released and so on..

Sign In or Register to comment.