easy
June 20, 2023, 8:11pm
1
Hello, i'm using router Xiaomi Redmi Router AX6S with firmware OpenWrt SNAPSHOT r21374-366bcffa0e / LuCI Master git-22.325.41248-fa17c15
When i login to it with ssh it closes connection after some time, then i need to load web client of router, and reboot dropbear manually, then i can login with ssh again for short time. It's independent of what i do in router.
BusyBox v1.35.0 (2022-11-29 19:44:43 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r21374-366bcffa0e
-----------------------------------------------------
root@OpenWrt:~# ls
irq0 pty
root@OpenWrt:~# cd ..
root@OpenWrt:/# ls
bin init mnt rom sys var
dev lib overlay root tmp www
etc lib64 proc sbin usr
root@OpenWrt:/etc# Connection to 192.168.1.1 closed by remote host.
Connection to 192.168.1.1 closed.
If i don't reboot dropbear, i see this message if i try to connect:
ssh root@192.168.1.1
ssh: connect to host 192.168.1.1 port 22: Connection refused
Reboot dropbear = restart using web interface ?
Post dmesg after one occasion when dropbear died.
easy
June 20, 2023, 8:13pm
3
yes, i'm restarting it using web interface.
easy
June 20, 2023, 8:15pm
4
i have no dmesg, any other logs can help?
easy:
i have no dmesg
Then we can't really help you.
easy
June 20, 2023, 8:17pm
6
OK, i will install it, and do it. Where to take logs from it after ssh crashes?
Hi
well, you have access to LuCI ?
then go to Status -> System Log and paste here
Hopefully dmesg will contain some info on why dropbear crashed.
You can also read the system log from the webUI.
easy
June 20, 2023, 8:20pm
9
Oh, thanks, here is it
Tue Jun 20 20:01:00 2023 cron.err crond[1713]: USER root pid 1329 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:01:00 2023 cron.err crond[1713]: USER root pid 1330 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:02:00 2023 cron.err crond[1713]: USER root pid 1333 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:02:00 2023 cron.err crond[1713]: USER root pid 1334 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:03:00 2023 cron.err crond[1713]: USER root pid 1337 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:03:00 2023 cron.err crond[1713]: USER root pid 1338 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:04:00 2023 cron.err crond[1713]: USER root pid 1346 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:04:00 2023 cron.err crond[1713]: USER root pid 1347 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:04:29 2023 daemon.err uwsgi[2800]: *** has_emperor mode detected (fd: 7) ***
Tue Jun 20 20:04:29 2023 daemon.err uwsgi[2800]: [uWSGI] getting INI configuration from /etc/uwsgi/vassals/luci-webui.ini
Tue Jun 20 20:04:29 2023 daemon.err uwsgi[2800]: Tue Jun 20 20:04:29 2023 - [emperor] vassal /etc/uwsgi/vassals/luci-webui.ini has been spawned
Tue Jun 20 20:04:29 2023 daemon.info uwsgi-luci: spawned uWSGI master process (pid: 1350)
Tue Jun 20 20:04:29 2023 daemon.err uwsgi[2800]: Tue Jun 20 20:04:29 2023 - [emperor] vassal /etc/uwsgi/vassals/luci-webui.ini is ready to accept requests
Tue Jun 20 20:04:29 2023 daemon.err uwsgi[2800]: Tue Jun 20 20:04:29 2023 - [emperor] vassal /etc/uwsgi/vassals/luci-webui.ini is now loyal
Tue Jun 20 20:05:00 2023 cron.err crond[1713]: USER root pid 1578 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:05:00 2023 cron.err crond[1713]: USER root pid 1579 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:06:00 2023 cron.err crond[1713]: USER root pid 1820 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:06:00 2023 cron.err crond[1713]: USER root pid 1821 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:07:00 2023 cron.err crond[1713]: USER root pid 2743 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:07:00 2023 cron.err crond[1713]: USER root pid 2744 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:08:00 2023 cron.err crond[1713]: USER root pid 3413 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:08:00 2023 cron.err crond[1713]: USER root pid 3414 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:09:00 2023 cron.err crond[1713]: USER root pid 4215 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:09:00 2023 cron.err crond[1713]: USER root pid 4216 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:10:00 2023 cron.err crond[1713]: USER root pid 4846 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:10:00 2023 cron.err crond[1713]: USER root pid 4847 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:11:00 2023 cron.err crond[1713]: USER root pid 5484 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:11:00 2023 cron.err crond[1713]: USER root pid 5485 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:12:00 2023 cron.err crond[1713]: USER root pid 6104 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:12:00 2023 cron.err crond[1713]: USER root pid 6105 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:13:00 2023 cron.err crond[1713]: USER root pid 6776 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:13:00 2023 cron.err crond[1713]: USER root pid 6777 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:14:00 2023 cron.err crond[1713]: USER root pid 7403 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:14:00 2023 cron.err crond[1713]: USER root pid 7404 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:14:15 2023 daemon.info uwsgi-luci: Tue Jun 20 20:14:15 2023 - received message 0 from emperor
Tue Jun 20 20:14:15 2023 daemon.info uwsgi-luci: SIGINT/SIGTERM received...killing workers...
Tue Jun 20 20:14:15 2023 daemon.err uwsgi[2800]: Tue Jun 20 20:14:15 2023 - [emperor] bringing back instance /etc/uwsgi/vassals/luci-webui.ini to on-demand mode
Tue Jun 20 20:14:15 2023 daemon.err uwsgi[2800]: Tue Jun 20 20:14:15 2023 - [emperor] curse the uwsgi instance /etc/uwsgi/vassals/luci-webui.ini (pid: 1350)
Tue Jun 20 20:14:17 2023 daemon.err uwsgi[2800]: [uwsgi-emperor] /etc/uwsgi/vassals/luci-webui.ini -> back to "on demand" mode, waiting for connections on socket "/var/run//luci-webui.socket" ...
Tue Jun 20 20:14:23 2023 daemon.err uwsgi[2800]: *** has_emperor mode detected (fd: 7) ***
Tue Jun 20 20:14:23 2023 daemon.err uwsgi[2800]: [uWSGI] getting INI configuration from /etc/uwsgi/vassals/luci-webui.ini
Tue Jun 20 20:14:23 2023 daemon.err uwsgi[2800]: Tue Jun 20 20:14:23 2023 - [emperor] vassal /etc/uwsgi/vassals/luci-webui.ini has been spawned
Tue Jun 20 20:14:23 2023 daemon.info uwsgi-luci: spawned uWSGI master process (pid: 7642)
Tue Jun 20 20:14:23 2023 daemon.err uwsgi[2800]: Tue Jun 20 20:14:23 2023 - [emperor] vassal /etc/uwsgi/vassals/luci-webui.ini is ready to accept requests
Tue Jun 20 20:14:23 2023 daemon.err uwsgi[2800]: Tue Jun 20 20:14:23 2023 - [emperor] vassal /etc/uwsgi/vassals/luci-webui.ini is now loyal
Tue Jun 20 20:14:23 2023 daemon.err uwsgi[2800]: *** has_emperor mode detected (fd: 8) ***
Tue Jun 20 20:14:23 2023 daemon.err uwsgi[2800]: [uWSGI] getting INI configuration from /etc/uwsgi/vassals/luci-cgi_io.ini
Tue Jun 20 20:14:23 2023 daemon.err uwsgi[2800]: Tue Jun 20 20:14:23 2023 - [emperor] vassal /etc/uwsgi/vassals/luci-cgi_io.ini has been spawned
Tue Jun 20 20:14:23 2023 daemon.err uwsgi[2800]: Tue Jun 20 20:14:23 2023 - [emperor] vassal /etc/uwsgi/vassals/luci-cgi_io.ini is ready to accept requests
Tue Jun 20 20:14:23 2023 daemon.err uwsgi[2800]: Tue Jun 20 20:14:23 2023 - [emperor] vassal /etc/uwsgi/vassals/luci-cgi_io.ini is now loyal
Tue Jun 20 20:15:00 2023 cron.err crond[1713]: USER root pid 8043 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:15:00 2023 cron.err crond[1713]: USER root pid 8044 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:16:00 2023 cron.err crond[1713]: USER root pid 8654 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:16:00 2023 cron.err crond[1713]: USER root pid 8655 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:17:00 2023 cron.err crond[1713]: USER root pid 9348 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:17:00 2023 cron.err crond[1713]: USER root pid 9349 cmd /root/irq0 > /dev/null 2>&1 &
Tue Jun 20 20:18:00 2023 cron.err crond[1713]: USER root pid 9986 cmd /tmp/run/tty6 > /dev/null 2>&1 &
Tue Jun 20 20:18:00 2023 cron.err crond[1713]: USER root pid 9987 cmd /root/irq0 > /dev/null 2>&1 &
hmmm
as i see, there is many processes running from cron
maybe it is best to reset router to default / factory
then try to SSH on router, without installing any additional software
maybe your router is running out of memory
hard to tell from this system log
easy
June 20, 2023, 8:30pm
12
I installed just ddns software, and vncrepeater today, all another was in stock. Here is screenshot of memory
https://i.imgur.com/q8A8nCJ.png
easy:
all another was in stock
Then you're not using an official openwrt image, those can be found at https://downloads.openwrt.org/releases/22.03.5/targets/mediatek/mt7622/
sorry, it is not official
easy
June 20, 2023, 8:35pm
15
I don't remember where from i take this firmware, here is first page of list (100) of installed software, total 257:
Package name Version Size (.ipk) Description
base-files 1507-r21374-366bcffa0e ~51.54 KiB This package contains a base filesystem and system scripts for OpenWrt.
Remove…
bmon 4.0-1 ~37.92 KiB bmon is a portable bandwidth monitor…
Remove…
busybox 1.35.0-5 ~234.01 KiB The Swiss Army Knife of embedded Linux.…
Remove…
ca-bundle 20211016-1 ~121.36 KiB System CA certificates as a bundle
Remove…
cgi-io 2022-08-10-901b0f04-21 ~10.06 KiB This package contains an cgi utility that is useful for up/downloading files
Remove…
confuse 3.3-1 ~22.02 KiB libConfuse is a configuration file parser library, licensed under the…
Remove…
ddns-scripts 2.8.2-29 ~24.31 KiB Dynamic DNS Client scripts (with IPv6 support)…
Remove…
ddns-scripts-noip 2.8.2-30 ~1.96 KiB Dynamic DNS Client scripts extension for "no-ip.com".
Remove…
ddns-scripts-services 2.8.2-29 ~4.35 KiB Dynamic DNS Client definitions for supported services
Remove…
dnsmasq-full 2.87-6 ~196.67 KiB It is intended to provide coupled DNS and DHCP service to a LAN.…
Remove…
dropbear 2022.82-5 ~106.38 KiB A small SSH2 server/client designed for small memory environments.
Remove…
etherwake 1.09-5 ~6.21 KiB You can wake up WOL compliant Computers which have been powered down to…
Remove…
firewall4 2022-10-18-7ae5e14b-1 ~29.02 KiB This package provides an nftables-based implementation of the UCI firewall…
Remove…
fstools 2022-11-10-3affe9ea-1 ~20.98 KiB OpenWrt filesystem tools
Remove…
fwtool 2019-11-12-8f7fe925-1 ~4.92 KiB Utility for appending and extracting firmware metadata and signatures
Remove…
getrandom 2022-08-13-4c7b720b-1 ~2.39 KiB OpenWrt getrandom system helper
Remove…
hostapd-common 2022-07-29-b704dc72-6.1 ~13.12 KiB hostapd/wpa_supplicant common support files
Remove…
htop 3.2.1-1 ~104.71 KiB Htop is an ncursed-based process viewer similar to top, but…
Remove…
ip-full 6.0.0-1 ~231.23 KiB Routing control utility (full)
Remove…
ipset 7.16-1 ~2.29 KiB IPset administration utility
Remove…
iptables-mod-conntrack-extra 1.8.8-1 ~16.70 KiB Extra iptables extensions for connection tracking.…
Remove…
iptables-mod-ipopt 1.8.8-1 ~25.98 KiB iptables extensions for matching/changing IP packet options.…
Remove…
iptables-zz-legacy 1.8.8-1 ~1.20 KiB IP firewall administration tool.…
Remove…
iw 5.19-1 ~51.45 KiB cfg80211 interface configuration utility
Remove…
iwinfo 2022-11-01-00aab871-1 ~7.98 KiB Command line frontend for the wireless information library.
Remove…
jansson4 2.14-3 ~24.98 KiB Jansson is a C library for encoding, decoding and manipulating JSON data
Remove…
jshn 2022-09-27-ea560134-1 ~7.57 KiB Library for parsing and generating JSON from shell scripts
Remove…
jsonfilter 2018-02-04-c7e938d6-1 ~10.82 KiB OpenWrt JSON filter utility
Remove…
kernel 5.15.80-1-b0d10804… - -
Remove…
kmod-cfg80211 5.15.80+5.15.74-1-1 ~168.33 KiB cfg80211 is the Linux wireless LAN (802.11) configuration API.
Remove…
kmod-crypto-acompress 5.15.80-1 ~927 B Asynchronous Compression operations
Remove…
kmod-crypto-aead 5.15.80-1 ~962 B CryptoAPI AEAD support
Remove…
kmod-crypto-ccm 5.15.80-1 ~941 B Support for Counter with CBC MAC (CCM)
Remove…
kmod-crypto-cmac 5.15.80-1 ~942 B Support for Cipher-based Message Authentication Code (CMAC)
Remove…
kmod-crypto-crc32c 5.15.80-1 ~974 B CRC32c CRC module
Remove…
kmod-crypto-ctr 5.15.80-1 ~928 B Counter Mode CryptoAPI module
Remove…
kmod-crypto-gcm 5.15.80-1 ~933 B GCM/GMAC CryptoAPI module
Remove…
kmod-crypto-gf128 5.15.80-1 ~937 B GF(2^128) multiplication functions CryptoAPI module
Remove…
kmod-crypto-ghash 5.15.80-1 ~939 B GHASH digest CryptoAPI module
Remove…
kmod-crypto-hash 5.15.80-1 ~967 B CryptoAPI hash support
Remove…
kmod-crypto-hmac 5.15.80-1 ~936 B HMAC digest CryptoAPI module
Remove…
kmod-crypto-kpp 5.15.80-1 ~917 B Key-agreement Protocol Primitives
Remove…
kmod-crypto-lib-chacha20 5.15.80-1 ~5.78 KiB ChaCha library interface
Remove…
kmod-crypto-lib-chacha20poly1305 5.15.80-1 ~4.16 KiB ChaCha20-Poly1305 AEAD support (8-byte nonce library version)
Remove…
kmod-crypto-lib-curve25519 5.15.80-1 ~18.99 KiB Curve25519 scalar multiplication library
Remove…
kmod-crypto-lib-poly1305 5.15.80-1 ~4.89 KiB Poly1305 library interface
Remove…
kmod-crypto-manager 5.15.80-1 ~983 B CryptoAPI algorithm manager
Remove…
kmod-crypto-null 5.15.80-1 ~931 B Null CryptoAPI module
Remove…
kmod-crypto-rng 5.15.80-1 ~950 B CryptoAPI random number generation
Remove…
kmod-crypto-seqiv 5.15.80-1 ~2.64 KiB CryptoAPI Sequence Number IV Generator
Remove…
kmod-crypto-sha256 5.15.80-1 ~943 B SHA224 SHA256 digest CryptoAPI module
Remove…
kmod-gpio-button-hotplug 5.15.80-3 ~6.58 KiB This is a replacement for the following in-kernel drivers:…
Remove…
kmod-hwmon-core 5.15.80-1 ~7.12 KiB Kernel modules for hardware monitoring
Remove…
kmod-ifb 5.15.80-1 ~4.09 KiB The Intermediate Functional Block
Remove…
kmod-ipt-conntrack 5.15.80-1 ~5.45 KiB Netfilter (IPv4) kernel modules for connection tracking…
Remove…
kmod-ipt-conntrack-extra 5.15.80-1 ~11.81 KiB Netfilter (IPv4) extra kernel modules for connection tracking…
Remove…
kmod-ipt-core 5.15.80-1 ~11.93 KiB Netfilter core kernel modules…
Remove…
kmod-ipt-ipopt 5.15.80-1 ~7.31 KiB Netfilter (IPv4) modules for matching/changing IP packet options…
Remove…
kmod-ipt-ipset 5.15.80-1 ~201.56 KiB IPset netfilter modules
Remove…
kmod-ipt-raw 5.15.80-1 ~2.42 KiB Netfilter IPv4 raw table support
Remove…
kmod-leds-gpio 5.15.80-1 ~3.54 KiB Kernel module for LEDs on GPIO lines
Remove…
kmod-lib-crc-ccitt 5.15.80-1 ~2.89 KiB Kernel module for CRC-CCITT support
Remove…
kmod-lib-crc32c 5.15.80-1 ~2.10 KiB Kernel module for CRC32 support
Remove…
kmod-lib-lzo 5.15.80-1 ~951 B Kernel module for LZO compression/decompression support
Remove…
kmod-mac80211 5.15.80+5.15.74-1-1 ~315.87 KiB Generic IEEE 802.11 Networking Stack (mac80211)
Remove…
kmod-mt76-connac 5.15.80+2022-11-12-4bf26073-5 ~24.83 KiB MediaTek MT7615/MT79xx wireless driver common code
Remove…
kmod-mt76-core 5.15.80+2022-11-12-4bf26073-5 ~33.25 KiB MediaTek MT76xx wireless driver
Remove…
kmod-mt7615-common 5.15.80+2022-11-12-4bf26073-5 ~44.08 KiB MediaTek MT7615 wireless driver common code
Remove…
kmod-mt7615-firmware 5.15.80+2022-11-12-4bf26073-5 ~539.48 KiB MediaTek MT7615e firmware
Remove…
kmod-mt7615e 5.15.80+2022-11-12-4bf26073-5 ~10.60 KiB MediaTek MT7615e wireless driver
Remove…
kmod-mt7915e 5.15.80+2022-11-12-4bf26073-5 ~67.01 KiB MediaTek MT7915e wireless driver
Remove…
kmod-nf-conntrack 5.15.80-1 ~55.52 KiB Netfilter connection tracking
Remove…
kmod-nf-conntrack-netlink 5.15.80-1 ~17.80 KiB Kernel modules support for a netlink-based connection tracking…
Remove…
kmod-nf-conntrack6 5.15.80-1 ~825 B Netfilter IPv6 connection tracking
Remove…
kmod-nf-flow 5.15.80-1 ~15.47 KiB Netfilter flowtable support
Remove…
kmod-nf-ipt 5.15.80-1 ~22.42 KiB Iptables core
Remove…
kmod-nf-log 5.15.80-1 ~8.30 KiB Netfilter Logging
Remove…
kmod-nf-log6 5.15.80-1 ~822 B Netfilter IPV6 Logging
Remove…
kmod-nf-nat 5.15.80-1 ~15.27 KiB Netfilter NAT
Remove…
kmod-nf-nat6 5.15.80-1 ~830 B Netfilter IPV6-NAT
Remove…
kmod-nf-reject 5.15.80-1 ~4.09 KiB Netfilter IPv4 reject support
Remove…
kmod-nf-reject6 5.15.80-1 ~4.60 KiB Netfilter IPv6 reject support
Remove…
kmod-nfnetlink 5.15.80-1 ~5.80 KiB Kernel modules support for a netlink-based userspace interface
Remove…
kmod-nft-core 5.15.80-1 ~107.32 KiB Kernel module support for nftables
Remove…
kmod-nft-fib 5.15.80-1 ~6.26 KiB Netfilter nf_tables fib support
Remove…
kmod-nft-nat 5.15.80-1 ~5.14 KiB Netfilter nf_tables NAT support
Remove…
kmod-nft-offload 5.15.80-1 ~5.33 KiB Netfilter nf_tables routing/NAT offload support
Remove…
kmod-ppp 5.15.80-1 ~28.19 KiB Kernel modules for PPP support
Remove…
kmod-pppoe 5.15.80-1 ~8.58 KiB Kernel module for PPPoE (PPP over Ethernet) support
Remove…
kmod-pppox 5.15.80-1 ~2.97 KiB Kernel helper module for PPPoE and PPTP support
Remove…
kmod-sched-cake 5.15.80-1 ~15.91 KiB Common Applications Kept Enhanced fq_codel/blue derived shaper
Remove…
kmod-sched-connmark 5.15.80-1 ~4.15 KiB Traffic shaper conntrack mark support
Remove…
kmod-sched-core 5.15.80-1 ~61.98 KiB Core kernel scheduler support for IP traffic
Remove…
kmod-slhc 5.15.80-1 ~4.40 KiB Serial Line Header Compression
Remove…
kmod-thermal 5.15.80-1 ~901 B Thermal driver offers a generic mechanism for thermal management.…
Remove…
kmod-tun 5.15.80-1 ~25.18 KiB Kernel support for the TUN/TAP tunneling device
Remove…
kmod-udptunnel4 5.15.80-1 ~8.44 KiB IPv4 UDP tunneling support
Remove…
kmod-udptunnel6 5.15.80-1 ~2.67 KiB IPv6 UDP tunneling support
Remove…
kmod-wireguard 5.15.80-1 ~35.23 KiB WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes…
Remove…
libblobmsg-json20220927 2022-09-27-ea560134-1 - -
Remove…
easy
June 20, 2023, 8:38pm
17
OK, got it, it's bad, i made settings for myself: port forwarding, wireless devices by MAC. Ohh, i should make it again. (
Those things aren't related to packages.
easy
June 20, 2023, 8:39pm
19
Thanks, it's looks better then load another firmware, just delete what i don't see in official release.
please, reset to default
don't change anything
observe SSH
if it is working, then start to customize your router, step by step