Turris OS 6.0.2 is now released

Hey @Pepe
when will these packages be recompiled for Turris 1.x?

opkg list gerbera
Package netdata version 1.26.0-1 has no valid architecture, ignoring.
Package miniupnpd version 2.2.0-5 has no valid architecture, ignoring.
Package samba36-server version 3.6.25-12.27 has no valid architecture, ignoring.
Package php7 version 7.2.34-3 has no valid architecture, ignoring.
Package php7-fpm version 7.2.34-3 has no valid architecture, ignoring.
Package netdata version 1.26.0-1 has no valid architecture, ignoring.
Package miniupnpd version 2.2.0-5 has no valid architecture, ignoring.
Package samba36-server version 3.6.25-12.27 has no valid architecture, ignoring.
Package php7 version 7.2.34-3 has no valid architecture, ignoring.
Package php7-fpm version 7.2.34-3 has no valid architecture, ignoring.
gerbera - 1.7.0-1 - Gerbera - UPnP Media Server based on Mediatomb.

You should check localrepo or either try to remove them and install them again to see which version is going to be installed because I am able to see that in Turris OS 6.0.2, the versioning of the packages differs from your output a lot.

Turris OS 6.0.2 packages:

  • Netdata, there is version 1.30.1
  • PHP7, there is version 7.4.32
  • Samba3 is superseded by samba4.
    and I can continue…

Could you send diagnostics to our support?

Sadly it is still the same on turris 1.1. After reboot all leds stay shining blue,
calling rainbow command returns:

reader_loop: bad jump: 8388608
Aborting...

Hmm, I fixed that on my Turris 1.X router and version 0.1.2 in 6.0.2 should contain that patch, could you send the trace of a rainbow command that gives you this issue? bash -x /usr/bin/rainbow <rest of the command>?

like every command arguments have the same message at the end:

$ rainbow -h
Turris leds manipulation.

Usage: /usr/bin/rainbow [OPTION].. <OPERATION>...

Options:
  -p INT  Set priority to given led setting (in default 50 is used)
  -n STR  Slot name ('default' used if not specified)
  -l      List all available LEDs by name
  -x      Run in debug mode
  -h      Print this help text and exit

Operations:
  reset       Reset rainbow state (wipe any runtime changes)
  brightness  Set upper limit on brightness of all leds
  all         Configure all available leds at once
  ledX        Where X is number (up to 12 on Omnia and 8 on 1.x)
  Configure specific led by name:
    wan lan-1 lan-2 lan-3 lan-4 lan-5 wlan power

Every operation has some additional arguments. You can list them by
passing -h option after specifying the operation.
reader_loop: bad jump: 8388608
Aborting...

$ rainbow led1 green auto
reader_loop: bad jump: 8388608
Aborting...

$ /etc/init.d/rainbow restart
reader_loop: bad jump: 8388608
Aborting...

If you need some stack trace or something, let me know how to get it, I am not a pythonist.

That looks like the same issue that was supposed to be fixed now and I can’t reproduce it. Could you run bash -x /usr/bin/rainbow led1 green auto and opkg list-installed | grep rainbow and post the outputs?

$ bash -x /usr/bin/rainbow led1 green auto
+ set -eu
+ rainbowdir=/var/run/rainbow
+ mkdir -p /var/run/rainbow
+ '[' : = y ']'
+ RAINBOW_DIRECTORY_LOCKED=y
+ exec flock -x /var/run/rainbow /usr/bin/rainbow led1 green auto
reader_loop: bad jump: 8388608
Aborting...

$ opkg list-installed | grep rainbow
rainbow - 0.1.2-1
rainbow-animator - 0.1.2-1
rainbow-button-sync - 0.1.2-1
turris1x-rainbow-backend - 0.1.1-4

I see that didn’t work, could you try again with another method? Sorry for the confusion, I should have realized this wouldn’t work.

sed -i 's/set -eu/set -eux/' /usr/libexec/rainbow/rainbow.sh
rainbow led1 green auto

then if you want to stop seeing the traces, run

sed -i 's/set -eux/set -eu/' /usr/libexec/rainbow/rainbow.sh

No problem, here you go. BTW fyi, my omnia also spills errors, but atleast it also sucessfully handles the LED changes…

$ rainbow led1 green auto
+ rainbowdir=/var/run/rainbow
+ mkdir -p /var/run/rainbow
+ '[' : = y ']'
+ RAINBOW_DIRECTORY_LOCKED=y
+ exec flock -x /var/run/rainbow /usr/bin/rainbow led1 green auto
+ rainbowdir=/var/run/rainbow
+ mkdir -p /var/run/rainbow
+ '[' y = y ']'
+++ readlink -f /usr/bin/rainbow
++ dirname /usr/libexec/rainbow/rainbow.sh
+ . /usr/libexec/rainbow/utils.sh
++ set -eu
++++ readlink -f /usr/bin/rainbow
+++ dirname /usr/libexec/rainbow/rainbow.sh
++ srcdir=/usr/libexec/rainbow
+ loadsrc state
+ local name=state
+ echo ''
+ grep -qF +state+
+ . /usr/libexec/rainbow/state.sh
+ _src_loaded=+state+
+ loadsrc ledid
+ local name=ledid
+ echo + grep -qF +ledid+
+state+
+ . /usr/libexec/rainbow/ledid.sh
+ _src_loaded=+state++ledid+
+ loadsrc backend
+ local name=backend
+ echo + grep -qF +backend+
+state++ledid+
+ . /usr/libexec/rainbow/backend.sh
++ LEDS='wan lan-1 lan-2 lan-3 lan-4 lan-5 wlan power'
++ SYSFS=/sys/class/leds/rgb:wan/device
++ loadsrc led_activity
++ local name=led_activity
++ ++ grep -qF +led_activity+
echo +state++ledid+
++ . /usr/libexec/rainbow/led_activity.sh
++ _src_loaded=+state++ledid++led_activity+
++ loadsrc compat
++ local name=compat
++ ++ grep -qF +compat+
echo +state++ledid++led_activity+
++ . /usr/libexec/rainbow/compat.sh
++ _src_loaded=+state++ledid++led_activity++compat+
+ _src_loaded=+state++ledid++led_activity++compat++backend+
+ priority=50
+ slot=default
+ list_leds=n
+ getopts p:n:lxh opt
+ shift 0
+ '[' n = y ']'
+ '[' 3 -gt 0 ']'
+ apply_needed=n
+ '[' 3 -gt 0 ']'
+ operation=led1
+ shift
+ case "$operation" in
+ is_valid_led led1
+ local check_led=led1
+ '[' led1 = all ']'
+ local i=0
+ for led in $LEDS
+ '[' led1 = wan ']'
+ i=1
+ for led in $LEDS
+ '[' led1 = lan-1 ']'
+ i=2
+ for led in $LEDS
+ '[' led1 = lan-2 ']'
+ i=3
+ for led in $LEDS
+ '[' led1 = lan-3 ']'
+ i=4
+ for led in $LEDS
+ '[' led1 = lan-4 ']'
+ i=5
+ for led in $LEDS
+ '[' led1 = lan-5 ']'
+ i=6
+ for led in $LEDS
+ '[' led1 = wlan ']'
+ i=7
+ for led in $LEDS
+ '[' led1 = power ']'
+ i=8
+ '[' 1 '!=' led1 ']'
+ '[' 1 -gt 0 ']'
+ '[' 1 -le 8 ']'
+ return 0
+ loadsrc led
+ local name=led
+ echo + grep -qF +led+
+state++ledid++led_activity++compat++backend+
+ . /usr/libexec/rainbow/led.sh
++ loadsrc color
++ local name=color
++ echo ++ grep -qF +color+
+state++ledid++led_activity++compat++backend+
++ . /usr/libexec/rainbow/color.sh
++ _src_loaded=+state++ledid++led_activity++compat++backend++color+
++ loadsrc ledid
++ local name=ledid
++ echo ++ grep -qF +ledid+
+state++ledid++led_activity++compat++backend++color+
+ _src_loaded=+state++ledid++led_activity++compat++backend++color++led+
+ op_led led1 green auto
+ local id=led1
+ shift
+ local localconf=n
+ getopts lh opt
+ shift 0
+ local mode= mode_args=
+ local color_r= color_g= color_b=
+ '[' 2 -gt 0 ']'
+ '[' -z '' ']'
+ '[' -z '' ']'
+ '[' -z '' ']'
+ parse_color green inherit
+ local r= g= b=
+ _parse_color green inherit
+ local value=green
+ local mode=inherit
+ '[' -z green ']'
+ case "$value" in
+ r=0
+ g=255
+ b=0
+ return
+ '[' -z 0 ']'
+ color_r=0
+ '[' -z 255 ']'
+ color_g=255
+ '[' -z 0 ']'
+ color_b=0
+ shift
+ continue
+ '[' 1 -gt 0 ']'
+ '[' -z 0 ']'
+ '[' -z '' ']'
+ case "$1" in
+ mode=auto
+ shift
+ continue
+ '[' 0 -gt 0 ']'
+ SHIFTARGS=0
++ canonled led1
++ local value=led1
++ local index=1
++ local led
++ for led in $LEDS
++ '[' led1 = wan ']'
++ '[' 1 '!=' led1 ']'
++ '[' 1 -eq 1 ']'
++ echo wan
++ return
+ id=wan
+ '[' -z auto ']'
+ call_for_leds_config_level 50 default modify 0 255 0 auto ''
+ local priority=50
+ local slot=default
+ local fnc=modify
+ shift 3
++ printf %03d 50
+ local file=/var/run/rainbow/050-default
+ '[' + parse_leds_file modify 0 255 0 auto ''
-f /var/run/rainbow/050-default ']'+ local func=modify
+ shift
+ local led
+ for led in $LEDS
+ local color_r=- color_g=- color_b=- mode=- mode_args
+ read -r color_r color_g color_b mode mode_args

+ cat /var/run/rainbow/050-default
+ modify 0 255 0 auto ''
+ '[' wan = all ']'
+ '[' wan = wan ']'
+ '[' -z 0 ']'
+ color_r=0
+ '[' -z 255 ']'
+ color_g=255
+ '[' -z 0 ']'
+ color_b=0
+ '[' -z auto ']'
+ mode=auto
+ mode_args=
+ printf '%s\t%s\t%s\t%s' 0 255 0 auto
+ '[' -n '' ']'
+ printf '\n'
+ for led in $LEDS
+ local color_r=- color_g=- color_b=- mode=- mode_args
+ read -r color_r color_g color_b mode mode_args
+ modify 0 255 0 auto ''
+ '[' wan = all ']'
+ '[' lan-1 = wan ']'
+ printf '%s\t%s\t%s\t%s' 0 0 255 auto
+ '[' -n '' ']'
+ printf '\n'
+ for led in $LEDS
+ local color_r=- color_g=- color_b=- mode=- mode_args
+ read -r color_r color_g color_b mode mode_args
+ modify 0 255 0 auto ''
+ '[' wan = all ']'
+ '[' lan-2 = wan ']'
+ printf '%s\t%s\t%s\t%s' 0 0 255 auto
+ '[' -n '' ']'
+ printf '\n'
+ for led in $LEDS
+ local color_r=- color_g=- color_b=- mode=- mode_args
+ read -r color_r color_g color_b mode mode_args
+ modify 0 255 0 auto ''
+ '[' wan = all ']'
+ '[' lan-3 = wan ']'
+ printf '%s\t%s\t%s\t%s' 0 0 255 auto
+ '[' -n '' ']'
+ printf '\n'
+ for led in $LEDS
+ local color_r=- color_g=- color_b=- mode=- mode_args
+ read -r color_r color_g color_b mode mode_args
+ modify 0 255 0 auto ''
+ '[' wan = all ']'
+ '[' lan-4 = wan ']'
+ printf '%s\t%s\t%s\t%s' 0 0 255 auto
+ '[' -n '' ']'
+ printf '\n'
+ for led in $LEDS
+ local color_r=- color_g=- color_b=- mode=- mode_args
+ read -r color_r color_g color_b mode mode_args
+ modify 0 255 0 auto ''
+ '[' wan = all ']'
+ '[' lan-5 = wan ']'
+ printf '%s\t%s\t%s\t%s' 0 0 255 auto
+ '[' -n '' ']'
+ printf '\n'
+ for led in $LEDS
+ local color_r=- color_g=- color_b=- mode=- mode_args
+ read -r color_r color_g color_b mode mode_args
+ modify 0 255 0 auto ''
+ '[' wan = all ']'
+ '[' wlan = wan ']'
+ printf '%s\t%s\t%s\t%s' 255 0 0 auto
+ '[' -n '' ']'
+ printf '\n'
+ for led in $LEDS
+ local color_r=- color_g=- color_b=- mode=- mode_args
+ read -r color_r color_g color_b mode mode_args
+ modify 0 255 0 auto ''
+ '[' wan = all ']'
+ '[' power = wan ']'
+ printf '%s\t%s\t%s\t%s' 255 255 255 enable
+ '[' -n '' ']'
+ printf '\n'
+ grep -qv '^-\t-\t-\t-' /var/run/rainbow/050-default.new
+ mv /var/run/rainbow/050-default.new /var/run/rainbow/050-default
+ apply_needed=y
+ shift 2
+ '[' 0 -gt 0 ']'
+ loadsrc uci
+ local name=uci
+ echo +state++ledid++led_activity++compat++backend++color++led+
+ grep -qF +uci+
+ . /usr/libexec/rainbow/uci.sh
+ _src_loaded=+state++ledid++led_activity++compat++backend++color++led++uci+
+ '[' y = y ']'
+ base_config
+ '[' '' '!=' y ']'
+ loadsrc animation
+ local name=animation
+ echo + grep -qF +animation+
+state++ledid++led_activity++compat++backend++color++led++uci+
+ . /usr/libexec/rainbow/animation.sh
++ loadsrc color
++ local name=color
++ echo ++ grep -qF +color+
+state++ledid++led_activity++compat++backend++color++led++uci+
+ _src_loaded=+state++ledid++led_activity++compat++backend++color++led++uci++animation+
+ set +u
+ . /lib/functions.sh
++ N='
'
++ _C=0
++ NO_EXPORT=1
++ LOAD_STATE=1
++ LIST_SEP=' '
++ reset_cb
++ '[' -z '' ']'
++ '[' -f /lib/config/uci.sh ']'
++ . /lib/config/uci.sh
+++ CONFIG_APPEND=
+ config_load rainbow
+ '[' -n '' ']'
+ uci_load rainbow
+ local PACKAGE=rainbow
+ local DATA
+ local RET
+ local VAR
+ _C=0
+ '[' -z '' ']'
+ export -n CONFIG_LIST_STATE=
+ CONFIG_LIST_STATE=
+ export -n CONFIG_SECTIONS=
+ CONFIG_SECTIONS=
+ export -n CONFIG_NUM_SECTIONS=0
+ CONFIG_NUM_SECTIONS=0
+ export -n CONFIG_SECTION=
+ CONFIG_SECTION=
++ /sbin/uci -P /var/state -S -n export rainbow
+ DATA='package rainbow

config led '\''all'\''
	option color '\''036'\''
	option brightness '\''064'\'''
+ RET=0
+ '[' 0 '!=' 0 -o -z 'package rainbow

config led '\''all'\''
	option color '\''036'\''
	option brightness '\''064'\''' ']'
+ eval 'package rainbow

config led '\''all'\''
	option color '\''036'\''
	option brightness '\''064'\'''
++ package rainbow
++ return 0
++ config led all
++ local cfgtype=led
++ local name=all
++ export -n CONFIG_NUM_SECTIONS=1
++ CONFIG_NUM_SECTIONS=1
++ name=all
++ append CONFIG_SECTIONS all
++ local var=CONFIG_SECTIONS
++ local value=all
++ local 'sep= '
++ eval 'export -n -- "CONFIG_SECTIONS=${CONFIG_SECTIONS:+${CONFIG_SECTIONS}${value:+$sep}}$value"'
+++ export -n -- CONFIG_SECTIONS=all
+++ CONFIG_SECTIONS=all
++ export -n CONFIG_SECTION=all
++ CONFIG_SECTION=all
++ config_set all TYPE led
++ local section=all
++ local option=TYPE
++ local value=led
++ export -n CONFIG_all_TYPE=led
++ CONFIG_all_TYPE=led
++ '[' -n '' ']'
++ config_cb led all
++ return 0
++ option color 036
++ local varname=color
++ shift
++ local value=036
++ config_set all color 036
++ local section=all
++ local option=color
++ local value=036
++ export -n CONFIG_all_color=036
++ CONFIG_all_color=036
++ '[' -n '' ']'
++ option_cb color 036
++ return 0
++ option brightness 064
++ local varname=brightness
++ shift
++ local value=064
++ config_set all brightness 064
++ local section=all
++ local option=brightness
++ local value=064
++ export -n CONFIG_all_brightness=064
++ CONFIG_all_brightness=064
++ '[' -n '' ']'
++ option_cb brightness 064
++ return 0
+ unset DATA
+ config_cb
+ return 0
+ return 0
+ default_r=255
+ default_g=255
+ default_b=255
+ default_mode=auto
+ default_mode_args=
+ _uci_rainbow_section all
+ local led=all
+ color_r=255
+ color_g=255
+ color_b=255
+ mode=auto
+ mode_args=
+ type led_defaults
+ led_defaults all
+ local led=all
+ case "$led" in
+ config_get rawcolor all color ''
+ case "$2${3:-$1}" in
+ case "$3" in
+ eval export -n -- 'rawcolor=${CONFIG_all_color:-${4}}'
++ export -n -- rawcolor=036
++ rawcolor=036
+ parse_color 036
+ local r= g= b=
+ _parse_color 036
+ local value=036
+ local mode=
+ '[' -z 036 ']'
+ case "$value" in
+ echo 036+ grep -qE '^[0-9-]*,[0-9-]*,[0-9-]*$'

+ echo 036
+ grep -qE '^[RGB]([0-9]+|x[0-9a-fA-F]+)(,[RGB]([0-9]+|x[0-9a-fA-F]+))*$'
+ echo 036
+ grep -qE '^[0-9a-fA-F]{6}$'
+ return 1
+ return
reader_loop: bad jump: 8388608
Aborting...
1 Like

Thanks for getting back, I sent a report. Have a nice weekend everyone!

Update ok with just a very short Internet connection outage and no wifi outage. No reboot needed. Turris Omnia 2017, 1 GB RAM, dead eMMC, system running from mSATA SSD, original wifi cards. Storage plugin enabled, USB HDD shared over samba4 and minidlna, OpenVPN, PPtP VPN.

Hi,
when I send command rainbow intensity 0 or another number, I get Command failed: Not found
Command failed: Not found.

I just updated my Mox (only Mox A and Mox E, no Wifi).
I didn’t see any problems so far.
Even the reboot via ssh is finaly working :slight_smile:

Many thanks for your hard work Turris Team!

Led control from the app in Luci also broken for me on my crowdfunded Omnia after the 6.0.1 upgrade and on 6.0.2. Works from the cli with the rainbow command though.

I’m sorry, but i have to correct myself.
Yesterday I saw some weird (I think routing/firewall) problems. In some zones devices wouldn’t get an IP address via dhcp in others it was working.
I wanted to debug the issue this morning, but I saw that the Mox rebooted tonight out of the blue.

Since I need the Mox fully functional on Monday I rolled back to 5.4.4.

I can’t update from 5.x to 6.0.2 because of an python package error. Not sure if and which python package I should remove to fix this.

pkgupdate give me this:

INFO:Target Turris OS: 6.0.2
line not found
line not found
line not found
line not found
line not found
ERROR:
inconsistent: Requested package python that is not available.

and pkgupdate -e DBG give this:

DEBUG:planner.lua:566 (Globals):Resolving Install and Uninstall requests
DEBUG:planner.lua:578 (Globals):Denying packages without any candidate
DEBUG:planner.lua:585 (Globals):Forcing penalty on expressions with free alternatives
DEBUG:planner.lua:597 (Globals):Deducing minimal set of required packages
line not found
line not found
line not found
line not found
line not found
ERROR:src/pkgupdate/main.c:154 (main):
inconsistent: Requested package python that is not available.
DEBUG:src/lib/locks.c:82 (lua_lock_release):Released lock at /var/lock/opkg.lock
DEBUG:src/lib/events.c:572 (run_util_clean):Removing temporally busybox from: /tmp/updater-busybox-JeogOP/busybox

EDIT
I deleted python and pthon-sqlite and the update went through.

The python package was Python 2 that was removed in OpenWrt 21.02 (Turris OS 6), I think you must have installed it manually because otherwise it wouldn’t be installed and the update would pass.

1 Like

Hi,
this is a known harmless issue. Everything should be working fine even if the warnings are printed.
I couldn’t find it in the bug tracker, so thank you for the reminder, I created an issue for this: Every rainbow command prints Command failed: Not found (#16) · Issues · Turris / rainbow-ng · GitLab

Sorry for the late reply, I missed this message. Could you give us more details? The router uses a different method of managing LEDs when it’s booting up, so it’s possible that method works and then when the rainbow script takes over, it breaks. You mentioned it worked before, was that with 6.0.1, 6.0.0 or Turris OS 5? Could you post your /etc/config/rainbow and which router you are using?