The KiwiSDR 2 online store is open for orders! Please visit kiwisdr.nz

Cannot update to version 1.249 (endless reboot) [fixed with reinstall of Beagle_SDR_GPS git clone]

edited December 2018 in Problems Now Fixed
Hello,

I just received my KiwiSDR and I'm trying it for the first time.
The kiwisdr server doesn't work (it accepts a connection, then dies right after). ssh works fine and after inspecting the logs I see there is a failed update from version 1.2 to version 1.249 that results in an endless loop (logs below).

Can anybody help?

Thanks

Alain
Dec 14 02:50:13 kiwisdr kiwid: 0:00:00 ....      KiwiSDR v1.2 --------------------------------------------------------------------
Dec 14 02:50:13 kiwisdr kiwid: 0:00:00 ....      compiled: Aug 10 2016 21:09:53
Dec 14 02:50:13 kiwisdr kiwid: 0:00:00 ....      reading configuration from file /root/kiwi.config/kiwi.json
Dec 14 02:50:14 kiwisdr kiwid: 0:00:01 ....      serial number from EEPROM: 3859
Dec 14 02:50:14 kiwisdr kiwid: 0:00:01 ....      reading configuration from file /root/kiwi.config/dx.json
Dec 14 02:50:14 kiwisdr kiwid: 0:00:01 ....      883 dx entries
Dec 14 02:50:14 kiwisdr kiwid: 0:00:01 ....      listening on port 8073 for "openwebrx"
Dec 14 02:50:14 kiwisdr kiwid: 0:00:01 ....      webserver for "openwebrx" on port 8073
Dec 14 02:50:14 kiwisdr kiwid: 0:00:01 ....      ### using SPI_DEV
Dec 14 02:50:15 kiwisdr kiwid: 0:00:02 ....      FPGA version 1
Dec 14 02:50:15 kiwisdr kiwid: 0:00:02 ....      CFG read /root/kiwi.config/kiwi.json: sdr_hu_register = false
Dec 14 02:50:18 kiwisdr kiwid: 0:00:05 ....      (0 users)
Dec 14 02:50:18 kiwisdr kiwid: 0:00:05 ....      UPDATE: scheduled
Dec 14 02:50:18 kiwisdr kiwid: 0:00:05 ....      UPDATE: checking for updates
Dec 14 02:50:19 kiwisdr kiwid: 0:00:06 ....      UPDATE: version changed, current 1.2, new 1.249
Dec 14 02:50:19 kiwisdr kiwid: 0:00:06 ....      UPDATE: building new version..
Dec 14 02:50:19 kiwisdr kiwid: 0:00:06 ....      DDNS: private ip 192.168.0.15/24
Dec 14 02:50:19 kiwisdr kiwid: 0:00:06 ....      DDNS: public ip ....
Dec 14 02:50:24 kiwisdr kiwid: 0:00:11 ....      UPDATE: switching to new version 1.249
Dec 14 02:50:55 kiwisdr kiwid: 0:00:00 ....      KiwiSDR v1.2 --------------------------------------------------------------------
Dec 14 02:50:55 kiwisdr kiwid: 0:00:00 ....      compiled: Aug 10 2016 21:09:53
Dec 14 02:50:55 kiwisdr kiwid: 0:00:00 ....      reading configuration from file /root/kiwi.config/kiwi.json
Dec 14 02:50:56 kiwisdr kiwid: 0:00:01 ....      serial number from EEPROM: 3859
Dec 14 02:50:56 kiwisdr kiwid: 0:00:01 ....      reading configuration from file /root/kiwi.config/dx.json
Dec 14 02:50:56 kiwisdr kiwid: 0:00:01 ....      883 dx entries
Dec 14 02:50:56 kiwisdr kiwid: 0:00:01 ....      listening on port 8073 for "openwebrx"
Dec 14 02:50:56 kiwisdr kiwid: 0:00:01 ....      webserver for "openwebrx" on port 8073
Dec 14 02:50:56 kiwisdr kiwid: 0:00:01 ....      ### using SPI_DEV
Dec 14 02:50:57 kiwisdr kiwid: 0:00:02 ....      FPGA version 1
Dec 14 02:50:57 kiwisdr kiwid: 0:00:02 ....      CFG read /root/kiwi.config/kiwi.json: sdr_hu_register = false
Dec 14 02:51:00 kiwisdr kiwid: 0:00:05 ....      (0 users)
Dec 14 02:51:00 kiwisdr kiwid: 0:00:05 ....      UPDATE: scheduled
Dec 14 02:51:00 kiwisdr kiwid: 0:00:05 ....      UPDATE: checking for updates
Dec 14 02:51:01 kiwisdr kiwid: 0:00:06 ....      UPDATE: version changed, current 1.2, new 1.249
Dec 14 02:51:01 kiwisdr kiwid: 0:00:06 ....      UPDATE: building new version..
Dec 14 02:51:02 kiwisdr kiwid: 0:00:07 ....      DDNS: private ip 192.168.0.15/24
Dec 14 02:51:02 kiwisdr kiwid: 0:00:07 ....      DDNS: public ip ....
Dec 14 02:51:06 kiwisdr kiwid: 0:00:11 ....      UPDATE: switching to new version 1.249
Dec 14 02:51:37 kiwisdr rsyslogd-2007: action 'action 17' suspended, next retry is Fri Dec 14 02:52:37 2018 [try http://www.rsyslog.com/e/2007 ]
Dec 14 02:51:37 kiwisdr kiwid: 0:00:00 ....      KiwiSDR v1.2 --------------------------------------------------------------------
Dec 14 02:51:37 kiwisdr kiwid: 0:00:00 ....      compiled: Aug 10 2016 21:09:53
Dec 14 02:51:37 kiwisdr kiwid: 0:00:00 ....      reading configuration from file /root/kiwi.config/kiwi.json
Dec 14 02:51:38 kiwisdr kiwid: 0:00:01 ....      serial number from EEPROM: 3859
Dec 14 02:51:38 kiwisdr kiwid: 0:00:01 ....      reading configuration from file /root/kiwi.config/dx.json
Dec 14 02:51:38 kiwisdr kiwid: 0:00:01 ....      883 dx entries
Dec 14 02:51:38 kiwisdr kiwid: 0:00:01 ....      listening on port 8073 for "openwebrx"
Dec 14 02:51:38 kiwisdr kiwid: 0:00:01 ....      webserver for "openwebrx" on port 8073
Dec 14 02:51:38 kiwisdr kiwid: 0:00:01 ....      ### using SPI_DEV
Dec 14 02:51:39 kiwisdr kiwid: 0:00:02 ....      FPGA version 1
Dec 14 02:51:39 kiwisdr kiwid: 0:00:02 ....      CFG read /root/kiwi.config/kiwi.json: sdr_hu_register = false
Dec 14 02:51:42 kiwisdr kiwid: 0:00:05 ....      (0 users)
Dec 14 02:51:42 kiwisdr kiwid: 0:00:05 ....      UPDATE: scheduled
Dec 14 02:51:42 kiwisdr kiwid: 0:00:05 ....      UPDATE: checking for updates
Dec 14 02:51:43 kiwisdr kiwid: 0:00:06 ....      UPDATE: version changed, current 1.2, new 1.249
Dec 14 02:51:43 kiwisdr kiwid: 0:00:06 ....      UPDATE: building new version..
Dec 14 02:51:44 kiwisdr kiwid: 0:00:07 ....      DDNS: private ip 192.168.0.15/24
Dec 14 02:51:44 kiwisdr kiwid: 0:00:07 ....      DDNS: public ip ....
Dec 14 02:51:48 kiwisdr kiwid: 0:00:11 ....      UPDATE: switching to new version 1.249
Dec 14 02:52:19 kiwisdr kiwid: 0:00:00 ....      KiwiSDR v1.2 --------------------------------------------------------------------
Dec 14 02:52:19 kiwisdr kiwid: 0:00:00 ....      compiled: Aug 10 2016 21:09:53
Dec 14 02:52:19 kiwisdr kiwid: 0:00:00 ....      reading configuration from file /root/kiwi.config/kiwi.json
Dec 14 02:52:20 kiwisdr kiwid: 0:00:01 ....      serial number from EEPROM: 3859
Dec 14 02:52:20 kiwisdr kiwid: 0:00:01 ....      reading configuration from file /root/kiwi.config/dx.json
Dec 14 02:52:20 kiwisdr kiwid: 0:00:01 ....      883 dx entries
Dec 14 02:52:20 kiwisdr kiwid: 0:00:01 ....      listening on port 8073 for "openwebrx"
Dec 14 02:52:20 kiwisdr kiwid: 0:00:01 ....      webserver for "openwebrx" on port 8073
Dec 14 02:52:20 kiwisdr kiwid: 0:00:01 ....      ### using SPI_DEV
Dec 14 02:52:21 kiwisdr kiwid: 0:00:02 ....      FPGA version 1
Dec 14 02:52:21 kiwisdr kiwid: 0:00:02 ....      CFG read /root/kiwi.config/kiwi.json: sdr_hu_register = false
Dec 14 02:52:24 kiwisdr kiwid: 0:00:05 ....      (0 users)
Dec 14 02:52:24 kiwisdr kiwid: 0:00:05 ....      UPDATE: scheduled
Dec 14 02:52:24 kiwisdr kiwid: 0:00:05 ....      UPDATE: checking for updates
Dec 14 02:52:25 kiwisdr kiwid: 0:00:06 ....      UPDATE: version changed, current 1.2, new 1.249
Dec 14 02:52:25 kiwisdr kiwid: 0:00:06 ....      UPDATE: building new version..
Dec 14 02:52:27 kiwisdr kiwid: 0:00:08 ....      DDNS: private ip 192.168.0.15/24
Dec 14 02:52:27 kiwisdr kiwid: 0:00:08 ....      DDNS: public ip ....
Dec 14 02:52:30 kiwisdr kiwid: 0:00:11 ....      UPDATE: switching to new version 1.249
Dec 14 02:53:01 kiwisdr rsyslogd-2007: action 'action 17' suspended, next retry is Fri Dec 14 02:54:01 2018 [try http://www.rsyslog.com/e/2007 ]

Comments

  • Since you can get the log I assume that means you know how to login to the Beagle as root etc. So login again and try running the server manually to get more error messages, particularly after it says "switching to new version":
    cdp
    mdi
    mst
    ./k
    
  • The upgrade process from v1.2 to v1.249 worked for me. I re-flashed one of my Kiwis to a factory copy of v1.2 and then powered it up while attached to a network with a path to the Internet. It took 20 minutes to update given all the packages that had to be downloaded, but eventually it worked.

    So I don't think there is a generic update-from-v1.2 problem currently.
  • The commands provided shows nothing in particular:
    root@kiwisdr:~# cdp
    root@kiwisdr:~/Beagle_SDR_GPS# mdi
    make: *** No rule to make target 'disable'.  Stop.
    root@kiwisdr:~/Beagle_SDR_GPS# mst
    make: *** No rule to make target 'stop'.  Stop.
    root@kiwisdr:~/Beagle_SDR_GPS# ./k
    root@kiwisdr:~/Beagle_SDR_GPS#
    I understand there is no generic issue. Are you implying my particular unit is defective and needs to be returned?
  • I see a lot of empty files... I believe that is not right:
    root@kiwisdr:~/Beagle_SDR_GPS# ls -la
    total 92K
    drwxr-xr-x 17  501 staff 4.0K Aug 10  2016 .
    drwx------  5 root root  4.0K Aug 10  2016 ..
    drwxr-xr-x  3  501 staff 4.0K Aug 10  2016 arch
    -rw-r--r--  1 root root     0 Aug 10  2016 cfg.c
    -rw-r--r--  1 root root     0 Aug 10  2016 cfg.h
    -rw-r--r--  1 root root     0 Aug 10  2016 config.h
    -rw-r--r--  1 root root     0 Aug 10  2016 _COPYRIGHT
    -rw-r--r--  1 root root     0 Aug 10  2016 dx.c
    -rw-r--r--  1 root root     0 Aug 10  2016 dx.h
    drwxr-xr-x  3  501 staff 4.0K Aug 10  2016 e_cpu
    drwxr-xr-x  7  501 staff 4.0K Aug 10  2016 extensions
    -rw-r--r--  1 root root     0 Aug 10  2016 fpga.c
    lrwxrwxrwx  1 root root     1 Aug 10  2016 g -> k
    drwxr-xr-x  8 root root  4.0K Dec 14 11:29 .git
    drwxr-xr-x  2  501 staff 4.0K Aug 10  2016 gps
    -rwxr-xr-x  1 root root     0 Aug 10  2016 k
    lrwxrwxrwx  1 root root     1 Aug 10  2016 kiwi -> k
    -rw-r--r--  1 root root     0 Aug 10  2016 kiwi.config
    -rw-r--r--  1 root root     0 Aug 10  2016 kiwi.h
    -rw-r--r--  1 root root     0 Aug 10  2016 KiwiSDR.bit
    -rw-r--r--  1 root root     0 Aug 10  2016 _LICENSE
    -rw-r--r--  1 root root     0 Aug 10  2016 main.cpp
    -rw-r--r--  1 root root     0 Aug 10  2016 Makefile
    -rw-r--r--  1 root root   24K Dec 14 11:31 Makefile.1
    lrwxrwxrwx  1 root root     1 Aug 10  2016 n -> k
    lrwxrwxrwx  1 root root     1 Aug 10  2016 ng -> k
    drwxr-xr-x  4  501 staff 4.0K Aug 10  2016 pkgs
    drwxr-xr-x  3  501 staff 4.0K Aug 10  2016 platform
    drwxr-xr-x  3  501 staff 4.0K Aug 10  2016 pru
    -rw-r--r--  1 root root     0 Aug 10  2016 README.md
    drwxr-xr-x  4  501 staff 4.0K Aug 10  2016 rx
    -rw-r--r--  1 root root     0 Aug 10  2016 stats.c
    drwxr-xr-x  2  501 staff 4.0K Aug 10  2016 support
    drwxr-xr-x  2  501 staff 4.0K Aug 10  2016 tools
    -rw-r--r--  1 root root     0 Aug 10  2016 types.h
    drwxr-xr-x  2  501 staff 4.0K Aug 10  2016 ui
    drwxr-xr-x  3  501 staff 4.0K Aug 10  2016 unix_env
    -rw-r--r--  1 root root     0 Aug 10  2016 update.cpp
    drwxr-xr-x  6  501 staff 4.0K Aug 10  2016 verilog
    drwxr-xr-x  6  501 staff 4.0K Aug 10  2016 web
  • jksjks
    edited December 2018
    Zeroed files is symptomatic of filesystem corruption, like if the power was pulled during a filesystem write. Try rebuilding an entirely new clone as recently described in this topic: http://forum.kiwisdr.com/discussion/1392/cant-upgrade-from-v1-242-fixed-with-reinstall-of-beagle-sdr-gps-git-clone

    It's also possible you'll have to re-flash v1.2 from the supplied micro sd card and let the update process run again. In fact, that might be the easiest thing to do (especially if there are other non-Kiwi system files that are damaged).
  • The new clone solved the issue. Case closed.
    Thanks!
    WA2ZKD
Sign In or Register to comment.