500 - Internal Server Error on /wireless/radio0.network1

How to replicate:

  • switch radio0 to 2.4Ghz

The card itself works, but I can’t open the configuration in luci.

My /etc/config/wireless, just in case:

config wifi-device 'radio0'
        option type 'mac80211'
        option country 'CZ'
        option path 'platform/soc/soc:pcie-controller/pci0000:00/0000:00:02.0/0000:02:00.0'
        option txpower '15'
        option hwmode '11g'
        option channel '13'
        option htmode 'HT40'
        option noscan '1'

config wifi-iface
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option encryption 'psk2+ccmp'
        option key 'censored'
        option ssid 'censored'

config wifi-device 'radio1'
        option type 'mac80211'
        option country 'CZ'
        option hwmode '11g'
        option path 'platform/soc/soc:pcie-controller/pci0000:00/0000:00:01.0/0000:01:00.0'
        option txpower '15'
        option channel '13'
        option htmode 'HT40'
        option noscan '1'

config wifi-iface
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option encryption 'psk2+ccmp'
        option key 'censored'
        option ssid 'censored'
        option disabled '1'

I reported this issue on Turris 1.1 as well, but no respond so far for it. :confused:

Proof: https://www.turris.cz/forum/topic_show.pl?tid=52;pg=3 post date: 2016-07-21 20:09 && https://gitlab.labs.nic.cz/turris/common/issues/18

Ouch… that does not speak in favor of cz.nic promising life long support…

I don’t have recent experience with linux config but as far as I know if you want to use 40 Mhz channels you must set lower channel and the other will be set “automaticaly” for most of devices I have in hands.

i.e. - channel 1 for 1&5(or 6 ); 5 for 5&9(11); etc

if you set 13 there is no upper channel left for 40 Mhz so you should set 9 or 10 or something like that, no?

and I’m really not sure if it’s “safe” to use two devices on the same hwmode

[quote=“amq, post:1, topic:970”]
config wifi-device ‘radio0’
option hwmode ‘11g’

config wifi-device ‘radio1’
option hwmode ‘11g’[/quote]

Luci still doesn’t work for radio0 with 2.4 GHz even if I set the channel to 6 and completely remove radio1.

and the radio0 is not 5GHz only?

No, it works perfectly on 2.4 GHz. It is faster than radio1 too.

I don’t have my omnia yet. Isn’t there any log for LuCi with detailed info about the error?

LuCI will give you blank page or error 500, nothing more.
He should look into syslog ( I mean: /tmp/log/messages )

Nothing in system log.

In /tmp/log/lighttpd/error.log

(mod_cgi.c.607) cgi died, pid: 9361

Output of strace:

lighttpd

stat64("/www/cgi-bin/luci/admin/network/wireless/radio0.network1", 0xbe9415e0) = -1 ENOTDIR (Not a directory)
stat64("/www/cgi-bin/luci/admin/network/wireless/radio0.network1", 0xbe9415e0) = -1 ENOTDIR (Not a directory)
stat64("/www/cgi-bin/luci/admin/network/wireless", 0xbe9415e0) = -1 ENOTDIR (Not a directory)
stat64("/www/cgi-bin/luci/admin/network", 0xbe9415e0) = -1 ENOTDIR (Not a directory)
stat64("/www/cgi-bin/luci/admin", 0xbe9415e0) = -1 ENOTDIR (Not a directory)
stat64("/www/cgi-bin/luci", {st_mode=S_IFREG|0775, st_size=135, ...}) = 0
open("/www/cgi-bin/luci", O_RDONLY|O_LARGEFILE) = 16
close(16)                               = 0
pipe([16, 17])                          = 0
pipe([18, 19])                          = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
fork()                                  = 9361
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
close(19)                               = 0
close(16)                               = 0
close(17)                               = 0
epoll_ctl(14, EPOLL_CTL_ADD, 18, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=18, u64=18}}) = 0
fcntl64(18, F_SETFD, FD_CLOEXEC)        = 0
fcntl64(18, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
wait4(9361, 0xbe94168c, WNOHANG, NULL)  = 0
epoll_ctl(14, EPOLL_CTL_DEL, 15, be941700) = 0
clock_gettime(CLOCK_REALTIME, {1475929489, 576836934}) = 0
epoll_pwait(14, {{EPOLLHUP, {u32=18, u64=18}}}, 1025, 1000, NULL, 8) = 1
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=9361, si_uid=0, si_status=SIGSEGV, si_utime=3, si_stime=3} ---
rt_sigreturn()                          = 1
epoll_ctl(14, EPOLL_CTL_DEL, 18, be941aa0) = 0
close(18)                               = 0
wait4(9361, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], WNOHANG, NULL) = 9361
munmap(0xb6fd5000, 27)                  = 0
open("/etc/TZ", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_CLOEXEC) = 16
fstat64(16, {st_mode=S_IFREG|0644, st_size=27, ...}) = 0
mmap2(NULL, 27, PROT_READ, MAP_SHARED, 16, 0) = 0xb6fd5000
close(16)                               = 0
write(3, "2016-10-08 14:24:49: (mod_cgi.c.607) cgi died, pid: 9361 \n", 58) = 58
setsockopt(15, SOL_TCP, TCP_CORK, [1], 4) = 0
writev(15, [{"HTTP/1.1 500 Internal Server Error\r\nContent-Type: text/html\r\nContent-Length: 369\r\nDate: Sat, 08 Oct 2016 12:24:49 GMT\r\nServer: lighttpd/1.4.39\r\n\r\n", 146}, {"<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n         \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n <head>\n  <title>500 - Internal Server Error</title>\n </head>\n <body>\n  <h1>500 - Internal Server Error</h1>\n </body>\n</html>\n", 369}], 2) = 515

lua

readv(12, [{"", 0}, {"\nconfig wifi-device 'radio0'\n\top"..., 1024}], 2) = 1008
readv(12, [{"", 0}, {"\nconfig wifi-device 'radio0'\n\top"..., 1024}], 2) = 0
stat64("/tmp/.uci/wireless", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("/tmp/.uci/wireless", O_RDONLY|O_LARGEFILE) = 13
flock(13, LOCK_SH)                      = 0
_llseek(13, 0, [0], SEEK_SET)           = 0
readv(13, [{"", 0}, {"\0\0\0\0\0\0\0\0(\342\353\266(\342\353\266\4\0\0\0\0\0\0\0@&\376\0\0\0\0\0"..., 1024}], 2) = 0
flock(13, LOCK_UN)                      = 0
close(13)                               = 0
stat64("/tmp/.uci/wireless", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("/tmp/.uci/wireless", O_RDONLY|O_LARGEFILE) = 13
flock(13, LOCK_SH)                      = 0
_llseek(13, 0, [0], SEEK_SET)           = 0
flock(13, LOCK_UN)                      = 0
close(13)                               = 0
flock(12, LOCK_UN)                      = 0
close(12)                               = 0
socket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, NETLINK_ROUTE) = 12
sendto(12, "\24\0\0\0\22\0\1\3\1\0\0\0\0\0\0\0\0\0\0\0", 20, 0, NULL, 0) = 20
recvfrom(12, "\234\4\0\0\20\0\2\0\1\0\0\0Jo\0\0\0\0\4\3\1\0\0\0I\0\1\0\0\0\0\0"..., 8192, MSG_DONTWAIT, NULL, NULL) = 3772
recvfrom(12, "\204\5\0\0\20\0\2\0\1\0\0\0Jo\0\0\0\0\1\0\4\0\0\0C\20\1\0\0\0\0\0"..., 8192, MSG_DONTWAIT, NULL, NULL) = 7868
recvfrom(12, "\10\6\0\0\20\0\2\0\1\0\0\0Jo\0\0\0\0\1\0\f\0\0\0C\20\1\0\0\0\0\0"..., 8192, MSG_DONTWAIT, NULL, NULL) = 4132
recvfrom(12, "\24\0\0\0\3\0\2\0\1\0\0\0Jo\0\0\0\0\0\0", 8192, MSG_DONTWAIT, NULL, NULL) = 20
sendto(12, "\24\0\0\0\26\0\1\3\2\0\0\0\0\0\0\0\0\0\0\0", 20, 0, NULL, 0) = 20
recvfrom(12, "L\0\0\0\24\0\2\0\2\0\0\0Jo\0\0\2\10\200\376\1\0\0\0\10\0\1\0\177\0\0\1"..., 8192, MSG_DONTWAIT, NULL, NULL) = 332
recvfrom(12, "H\0\0\0\24\0\2\0\2\0\0\0Jo\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0\0\0\0"..., 8192, MSG_DONTWAIT, NULL, NULL) = 360
recvfrom(12, "\24\0\0\0\3\0\2\0\2\0\0\0Jo\0\0\0\0\0\0", 8192, MSG_DONTWAIT, NULL, NULL) = 20
close(12)                               = 0
pipe2([12, 13], O_CLOEXEC)              = 0
pipe2([14, 15], O_CLOEXEC)              = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8)   = 0
clone(child_stack=0xbecc3c40, flags=CLONE_VM|CLONE_VFORK|SIGCHLD) = 9078
close(15)                               = 0
read(14, "", 4)                         = 0
close(14)                               = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
fcntl64(12, F_SETFD, 0)                 = 0
close(13)                               = 0
readv(12, [{"", 0}, {"bridge name\tbridge id\t\tSTP enabl"..., 1024}], 2) = 46
readv(12, [{"", 0}, {"br-lan\t\t7fff.d858d7004bff\tno\t\tet"..., 1024}], 2) = 60
readv(12, [{"", 0}, {"br-lan\t\t7fff.d858d7004bff\tno\t\tet"..., 1024}], 2) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=9078, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
close(12)                               = 0
wait4(9078, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 9078
sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"\0\4\r\0\0\0\0\0", 8}, {"\0\0\0\34\2\0\0\25network.wireless\0\0\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 36
epoll_ctl(10, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLRDHUP, {u32=16876284, u64=16876284}}) = 0
poll([{fd=3, events=POLLIN|POLLERR}], 1, 0) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\2\r\0\0\0\0\0\0\0\0|", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\2\0\0\25network.wireless\0\0\0\0\3\0\0\10\261\306\314{"..., 120}], msg_controllen=0, msg_flags=0}, 0) = 120
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\1\r\0\0\0\0\0\0\0\0\f", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\0\10\0\0\0\0", 8}], msg_controllen=0, msg_flags=0}, 0) = 8
epoll_ctl(10, EPOLL_CTL_DEL, 3, NULL)   = 0
sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"\0\5\16\0{\314\306\261", 8}, {"\0\0\0\34\3\0\0\10\261\306\314{\4\0\0\vstatus\0\0\7\0\0\4", 28}], msg_controllen=0, msg_flags=0}, 0) = 36
epoll_ctl(10, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLRDHUP, {u32=16876284, u64=16876284}}) = 0
clock_gettime(CLOCK_MONOTONIC, {318739, 458253287}) = 0
clock_gettime(CLOCK_MONOTONIC, {318739, 458398487}) = 0
poll([{fd=3, events=POLLIN|POLLERR}], 1, 30000) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\2\16\0{\314\306\261\0\0\3\214", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\3\0\0\10\261\306\314{\7\0\3\200\202\0\2,\0\6radio0\0\0\0\0\207\0\0\r"..., 904}], msg_controllen=0, msg_flags=0}, 0) = 904
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\1\16\0{\314\306\261\0\0\0\24", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\0\10\0\0\0\0\3\0\0\10\261\306\314{", 16}], msg_controllen=0, msg_flags=0}, 0) = 16
epoll_ctl(10, EPOLL_CTL_DEL, 3, NULL)   = 0
sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"\0\4\17\0\0\0\0\0", 8}, {"\0\0\0\34\2\0\0\25network.wireless\0\0\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 36
epoll_ctl(10, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLRDHUP, {u32=16876284, u64=16876284}}) = 0
poll([{fd=3, events=POLLIN|POLLERR}], 1, 0) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\2\17\0\0\0\0\0\0\0\0|", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\2\0\0\25network.wireless\0\0\0\0\3\0\0\10\261\306\314{"..., 120}], msg_controllen=0, msg_flags=0}, 0) = 120
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\1\17\0\0\0\0\0\0\0\0\f", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\0\10\0\0\0\0", 8}], msg_controllen=0, msg_flags=0}, 0) = 8
epoll_ctl(10, EPOLL_CTL_DEL, 3, NULL)   = 0
sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"\0\5\20\0{\314\306\261", 8}, {"\0\0\0\34\3\0\0\10\261\306\314{\4\0\0\vstatus\0\0\7\0\0\4", 28}], msg_controllen=0, msg_flags=0}, 0) = 36
epoll_ctl(10, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLRDHUP, {u32=16876284, u64=16876284}}) = 0
clock_gettime(CLOCK_MONOTONIC, {318739, 494187407}) = 0
clock_gettime(CLOCK_MONOTONIC, {318739, 494483607}) = 0
poll([{fd=3, events=POLLIN|POLLERR}], 1, 30000) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\2\20\0{\314\306\261\0\0\3\214", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\3\0\0\10\261\306\314{\7\0\3\200\202\0\2,\0\6radio0\0\0\0\0\207\0\0\r"..., 904}], msg_controllen=0, msg_flags=0}, 0) = 904
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\1\20\0{\314\306\261\0\0\0\24", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\0\10\0\0\0\0\3\0\0\10\261\306\314{", 16}], msg_controllen=0, msg_flags=0}, 0) = 16
epoll_ctl(10, EPOLL_CTL_DEL, 3, NULL)   = 0
socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 12
ioctl(12, SIOCGIFINDEX, {ifr_name="wlan0", ifr_index=25124}) = 0
close(12)                               = 0
sendmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0\25\0\5\0\321\344\370WJo\0\0\1\0\0\0\10\0\3\0$b\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 28
brk(0x106a000)                          = 0x106a000
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\340\f\0\0\25\0\0\0\321\344\370WJo\0\0\3\1\0\0\10\0\1\0\0\0\0\0\t\0\2\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 3296
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0\321\344\370WJo\0\0\0\0\0\0\34\0\0\0\25\0\5\0\321\344\370W"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 36
sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"\0\4\21\0\0\0\0\0", 8}, {"\0\0\0\34\2\0\0\25network.wireless\0\0\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 36
epoll_ctl(10, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLRDHUP, {u32=16876284, u64=16876284}}) = 0
poll([{fd=3, events=POLLIN|POLLERR}], 1, 0) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\2\21\0\0\0\0\0\0\0\0|", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\2\0\0\25network.wireless\0\0\0\0\3\0\0\10\261\306\314{"..., 120}], msg_controllen=0, msg_flags=0}, 0) = 120
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\1\21\0\0\0\0\0\0\0\0\f", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\0\10\0\0\0\0", 8}], msg_controllen=0, msg_flags=0}, 0) = 8
epoll_ctl(10, EPOLL_CTL_DEL, 3, NULL)   = 0
sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"\0\5\22\0{\314\306\261", 8}, {"\0\0\0\34\3\0\0\10\261\306\314{\4\0\0\vstatus\0\0\7\0\0\4", 28}], msg_controllen=0, msg_flags=0}, 0) = 36
epoll_ctl(10, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLRDHUP, {u32=16876284, u64=16876284}}) = 0
clock_gettime(CLOCK_MONOTONIC, {318739, 587935967}) = 0
clock_gettime(CLOCK_MONOTONIC, {318739, 588101567}) = 0
poll([{fd=3, events=POLLIN|POLLERR}], 1, 29999) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\2\22\0{\314\306\261\0\0\3\214", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\3\0\0\10\261\306\314{\7\0\3\200\202\0\2,\0\6radio0\0\0\0\0\207\0\0\r"..., 904}], msg_controllen=0, msg_flags=0}, 0) = 904
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\1\22\0{\314\306\261\0\0\0\24", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\0\10\0\0\0\0\3\0\0\10\261\306\314{", 16}], msg_controllen=0, msg_flags=0}, 0) = 16
epoll_ctl(10, EPOLL_CTL_DEL, 3, NULL)   = 0
socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 12
ioctl(12, SIOCGIFINDEX, {ifr_name="wlan0", ifr_index=25124}) = 0
close(12)                               = 0
sendmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0\25\0\5\0\322\344\370WJo\0\0\1\0\0\0\10\0\3\0$b\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 28
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\340\f\0\0\25\0\0\0\322\344\370WJo\0\0\3\1\0\0\10\0\1\0\0\0\0\0\t\0\2\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 3296
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0\322\344\370WJo\0\0\0\0\0\0\34\0\0\0\25\0\5\0\322\344\370W"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 36
socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 12
ioctl(12, SIOCGIFINDEX, {ifr_name="wlan0", ifr_index=25124}) = 0
close(12)                               = 0
sendmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0\25\0\5\0\323\344\370WJo\0\0\5\0\0\0\10\0\3\0$b\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 28
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\220\0\0\0\25\0\0\0\323\344\370WJo\0\0\7\1\0\0\10\0\3\0$b\0\0\n\0\4\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 144
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0\323\344\370WJo\0\0\0\0\0\0\34\0\0\0\25\0\5\0\323\344\370W"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 36
socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 12
ioctl(12, SIOCGIFINDEX, {ifr_name="wlan0", ifr_index=25124}) = 0
close(12)                               = 0
sendmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0\25\0\5\3\324\344\370WJo\0\0 \0\0\0\10\0\3\0$b\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 28
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\324\344\370WJo\0\0\0\0\0\0", 16384}], msg_controllen=0, msg_flags=0}, 0) = 20
socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 12
ioctl(12, SIOCGIFINDEX, {ifr_name="wlan0", ifr_index=25124}) = 0
close(12)                               = 0
sendmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0\25\0\5\0\325\344\370WJo\0\0\5\0\0\0\10\0\3\0$b\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 28
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\220\0\0\0\25\0\0\0\325\344\370WJo\0\0\7\1\0\0\10\0\3\0$b\0\0\n\0\4\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 144
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0\325\344\370WJo\0\0\0\0\0\0\34\0\0\0\25\0\5\0\325\344\370W"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 36
socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 12
ioctl(12, SIOCGIFINDEX, {ifr_name="wlan0", ifr_index=25124}) = 0
close(12)                               = 0
sendmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0\25\0\5\0\326\344\370WJo\0\0\1\0\0\0\10\0\3\0$b\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 28
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\340\f\0\0\25\0\0\0\326\344\370WJo\0\0\3\1\0\0\10\0\1\0\0\0\0\0\t\0\2\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 3296
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0\326\344\370WJo\0\0\0\0\0\0\34\0\0\0\25\0\5\0\326\344\370W"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 36
open("/var/run/hostapd-phy0.conf", O_RDONLY|O_LARGEFILE) = 12
readv(12, [{"", 0}, {"driver=nl80211\nlogger_syslog=127"..., 1024}], 2) = 604
readv(12, [{"", 0}, {"driver=nl80211\nlogger_syslog=127"..., 1024}], 2) = 0
close(12)                               = 0
sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"\0\4\23\0\0\0\0\0", 8}, {"\0\0\0\34\2\0\0\25network.wireless\0\0\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 36
epoll_ctl(10, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLRDHUP, {u32=16876284, u64=16876284}}) = 0
poll([{fd=3, events=POLLIN|POLLERR}], 1, 0) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\2\23\0\0\0\0\0\0\0\0|", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\2\0\0\25network.wireless\0\0\0\0\3\0\0\10\261\306\314{"..., 120}], msg_controllen=0, msg_flags=0}, 0) = 120
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\1\23\0\0\0\0\0\0\0\0\f", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\0\10\0\0\0\0", 8}], msg_controllen=0, msg_flags=0}, 0) = 8
epoll_ctl(10, EPOLL_CTL_DEL, 3, NULL)   = 0
sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"\0\5\24\0{\314\306\261", 8}, {"\0\0\0\34\3\0\0\10\261\306\314{\4\0\0\vstatus\0\0\7\0\0\4", 28}], msg_controllen=0, msg_flags=0}, 0) = 36
epoll_ctl(10, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLRDHUP, {u32=16876284, u64=16876284}}) = 0
clock_gettime(CLOCK_MONOTONIC, {318739, 720675207}) = 0
clock_gettime(CLOCK_MONOTONIC, {318739, 722671367}) = 0
poll([{fd=3, events=POLLIN|POLLERR}], 1, 29998) = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\2\24\0{\314\306\261\0\0\3\214", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\3\0\0\10\261\306\314{\7\0\3\200\202\0\2,\0\6radio0\0\0\0\0\207\0\0\r"..., 904}], msg_controllen=0, msg_flags=0}, 0) = 904
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0\1\24\0{\314\306\261\0\0\0\24", 12}], msg_controllen=0, msg_flags=0}, 0) = 12
poll([{fd=3, events=POLLIN}], 1, 0)     = 1 ([{fd=3, revents=POLLIN}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\0\10\0\0\0\0\3\0\0\10\261\306\314{", 16}], msg_controllen=0, msg_flags=0}, 0) = 16
epoll_ctl(10, EPOLL_CTL_DEL, 3, NULL)   = 0
socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 12
ioctl(12, SIOCGIFINDEX, {ifr_name="wlan0", ifr_index=25124}) = 0
close(12)                               = 0
sendmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0\25\0\5\0\327\344\370WJo\0\0\1\0\0\0\10\0\3\0$b\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 28
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\340\f\0\0\25\0\0\0\327\344\370WJo\0\0\3\1\0\0\10\0\1\0\0\0\0\0\t\0\2\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 3296
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0\327\344\370WJo\0\0\0\0\0\0\34\0\0\0\25\0\5\0\327\344\370W"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 36
socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 12
ioctl(12, SIOCGIFINDEX, {ifr_name="wlan0", ifr_index=25124}) = 0
close(12)                               = 0
sendmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0\25\0\5\0\330\344\370WJo\0\0\1\0\0\0\10\0\3\0$b\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 28
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\340\f\0\0\25\0\0\0\330\344\370WJo\0\0\3\1\0\0\10\0\1\0\0\0\0\0\t\0\2\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 3296
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0\330\344\370WJo\0\0\0\0\0\0\34\0\0\0\25\0\5\0\330\344\370W"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 36
socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 12
ioctl(12, SIOCGIFINDEX, {ifr_name="wlan0", ifr_index=25124}) = 0
close(12)                               = 0
sendmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0\25\0\5\0\331\344\370WJo\0\0\5\0\0\0\10\0\3\0$b\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 28
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\220\0\0\0\25\0\0\0\331\344\370WJo\0\0\7\1\0\0\10\0\3\0$b\0\0\n\0\4\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 144
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"$\0\0\0\2\0\0\0\331\344\370WJo\0\0\0\0\0\0\34\0\0\0\25\0\5\0\331\344\370W"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 36
socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 12
ioctl(12, SIOCGIFINDEX, {ifr_name="wlan0", ifr_index=25124}) = 0
close(12)                               = 0
sendmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0\25\0\5\0\332\344\370WJo\0\0\1\0\0\0\10\0\3\0$b\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 28
recvmsg(11, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\340\f\0\0\25\0\0\0\332\344\370WJo\0\0\3\1\0\0\10\0\1\0\0\0\0\0\t\0\2\0"..., 16384}], msg_controllen=0, msg_flags=0}, 0) = 3296
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x4} ---
+++ killed by SIGSEGV +++

In this case would be better to write this to: tech.support(at)turris(dot)cz

I can confirm that I have same issue.
The only way how to get /wireless/radio0.network1 working again is go to Turris Omnia web interface and switch radio back to 5GHz (or change config files by uci).

After that is /wireless/radio0.network1 accessible again normally. You can change any settings, e.g. switch back to 2.4GHz, modify settings according to your needs and save & apply changes. After saving the address /wireless/radio0.network1 returns 500 again.

you shouldn’t switch the 5 GHz card to 2.4 GHz unless you removed the diplexers and are using dedicated antennas…

I get this with my card on 5GHz. I tracked it down, and it’s already fixed upstream, just waiting for the updated binaries: https://github.com/CZ-NIC/turris-os/issues/10

1 Like

FWIW, the change that makes my TO Luci radio0 edit page report “500 - Internal Server Error” was doing the uci commits to change the wifi’s country setting:

uci set wireless.radio0.country='US’
uci set wireless.radio1.country='US’
uci commit wireles

Prior to that, I had radio0 doing 5 GHz and radio1 doing 2.4 Ghz with no problems.

As reported in https://github.com/CZ-NIC/turris-os/issues/10, a fix has been committed so iwinfo’s txpowerlist querry will no longer cause a seg fault, leaving pour Luci in the lurch.

My TO just went through an automatic software update this morning. After the update, my TO’s Luci still puts up “500 - Internal Server Error” on the radio0 edit page. Both wifi’s are working as they should. Just can’t get to Luci’s edit page on radio0.

Looking at /usr/lib/opkg/status entries for iwinfo and libiwinfo:

Package: iwinfo
Version: 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371
Depends: libc, libiwinfo
Status: install user installed
Architecture: mvebu
Installed-Time: 1473084999

Package: libiwinfo
Version: 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371
Depends: libc, libnl-tiny, libuci
Status: install user installed
Architecture: mvebu
Installed-Time: 1473084999
Auto-Installed: yes

Looks like the fix wasn’t in this drop. Is that correct?

That is correct, 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371 is still a broken version.

It seems that fix didnt make it to release.
I will ask on IRC what happened :confused:

So. Hold long to wait?

Same issue with me too.

miska responds: "Well for a month we hope to do release containing all bugfixes really soon but something that needs fixing always pops up :-/ "

Today it was pushed to omnia-stable so we will receive it soon

2 Likes