docker icon indicating copy to clipboard operation
docker copied to clipboard

[rootfs] `service` failed with error `Command failed: Not found`

Open spvkgn opened this issue 1 year ago • 3 comments

# ps
  PID USER       VSZ STAT COMMAND
    1 root      1204 S    /bin/ash --login
 2558 root       984 S    ubusd
 2584 root      1172 S    rpcd -s /var/run/ubus/ubus.sock -t 30
 3599 root      1192 R    ps
# service
Usage: service <service> [command]
Command failed: Not found
/etc/init.d/boot              	  enabled	  stopped
Command failed: Not found
/etc/init.d/cron              	  enabled	  stopped
Command failed: Not found
/etc/init.d/dnsmasq           	  enabled	  stopped
Command failed: Not found
/etc/init.d/done              	  enabled	  stopped
Command failed: Not found
/etc/init.d/dropbear          	  enabled	  stopped
Command failed: Not found
/etc/init.d/firewall          	  enabled	  stopped
Command failed: Not found
/etc/init.d/gpio_switch       	  enabled	  stopped
Command failed: Not found
/etc/init.d/led               	  enabled	  stopped
Command failed: Not found
/etc/init.d/log               	  enabled	  stopped
Command failed: Not found
/etc/init.d/network           	  enabled	  stopped
Command failed: Not found
/etc/init.d/odhcpd            	  enabled	  stopped
Command failed: Not found
/etc/init.d/packet_steering   	  enabled	  stopped
Command failed: Not found
/etc/init.d/rpcd              	  enabled	  stopped
Command failed: Not found
/etc/init.d/sysctl            	  enabled	  stopped
Command failed: Not found
/etc/init.d/sysfixtime        	  enabled	  stopped
Command failed: Not found
/etc/init.d/sysntpd           	  enabled	  stopped
Command failed: Not found
/etc/init.d/system            	  enabled	  stopped
Command failed: Not found
/etc/init.d/umount            	  enabled	  stopped
Command failed: Not found
/etc/init.d/urandom_seed      	  enabled	  stopped
Command failed: Not found
/etc/init.d/urngd             	  enabled	  stopped

spvkgn avatar Jul 30 '24 11:07 spvkgn

I am also having this issue. Have tried to run /etc/init.d/boot boot and other services manually but they do not work.

Zgrill2 avatar Jul 31 '24 00:07 Zgrill2

I am having this issue with

podman run -it -p 8020:80 --name openwrt-hacking openwrt/rootfs:x86_64-23.05.5
/ # mkdir -p /var/run/
/ # mkdir -p /var/lock/
/ # ubusd & ash --login
root@b1d18a9dc48f:/# service

Usage: service <service> [command]
Command failed: Not found
/etc/init.d/boot              	   enabled	   stopped
Command failed: Not found
/etc/init.d/cron              	   enabled	   stopped
Command failed: Not found
/etc/init.d/dnsmasq           	   enabled	   stopped
Command failed: Not found
/etc/init.d/done              	   enabled	   stopped
Command failed: Not found
/etc/init.d/dropbear          	   enabled	   stopped
Command failed: Not found
/etc/init.d/firewall          	   enabled	   stopped
Command failed: Not found
/etc/init.d/gpio_switch       	   enabled	   stopped
Command failed: Not found
/etc/init.d/led               	   enabled	   stopped
Command failed: Not found
/etc/init.d/log               	   enabled	   stopped
Command failed: Not found
/etc/init.d/network           	   enabled	   stopped
Command failed: Not found
/etc/init.d/odhcpd            	   enabled	   stopped
Command failed: Not found
/etc/init.d/packet_steering   	   enabled	   stopped
Command failed: Not found
/etc/init.d/rpcd              	   enabled	   stopped
Command failed: Not found
/etc/init.d/sysctl            	   enabled	   stopped
Command failed: Not found
/etc/init.d/sysfixtime        	   enabled	   stopped
Command failed: Not found
/etc/init.d/sysntpd           	   enabled	   stopped
Command failed: Not found
/etc/init.d/system            	   enabled	   stopped
Command failed: Not found
/etc/init.d/ucitrack          	   enabled	   stopped
Command failed: Not found
/etc/init.d/uhttpd            	   enabled	   stopped
Command failed: Not found
/etc/init.d/umount            	   enabled	   stopped
Command failed: Not found
/etc/init.d/urandom_seed      	   enabled	   stopped
Command failed: Not found
/etc/init.d/urngd             	   enabled	   stopped

samsartor avatar Nov 05 '24 21:11 samsartor

I have a similar problem. Forcing the service temporarily helped me solve the problem. In my case, SSH. Do you have any information on the problem with Ubus?:

dropbear -p 22 -F


/ # ps PID USER VSZ STAT COMMAND 1 root 1196 S ash 1787 root 1024 S dropbear -p 22 -F 1788 root 1196 S -ash 2131 root 1196 S /bin/sh 2138 root 1192 R ps / #

/ # service Usage: service [command] Failed to connect to ubus /etc/init.d/boot enabled stopped Failed to connect to ubus /etc/init.d/cron enabled stopped Failed to connect to ubus /etc/init.d/dnsmasq enabled stopped Failed to connect to ubus /etc/init.d/done enabled stopped Failed to connect to ubus /etc/init.d/dropbear enabled stopped Failed to connect to ubus /etc/init.d/firewall enabled stopped Failed to connect to ubus /etc/init.d/gpio_switch enabled stopped Failed to connect to ubus /etc/init.d/led enabled stopped Failed to connect to ubus /etc/init.d/log enabled stopped Failed to connect to ubus /etc/init.d/network enabled stopped Failed to connect to ubus /etc/init.d/odhcpd enabled stopped Failed to connect to ubus /etc/init.d/packet_steering enabled stopped Failed to connect to ubus /etc/init.d/rpcd enabled stopped Failed to connect to ubus /etc/init.d/sshd enabled stopped Failed to connect to ubus /etc/init.d/sudo enabled stopped Failed to connect to ubus /etc/init.d/sysctl enabled stopped Failed to connect to ubus /etc/init.d/sysfixtime enabled stopped Failed to connect to ubus /etc/init.d/sysntpd enabled stopped Failed to connect to ubus /etc/init.d/system enabled stopped Failed to connect to ubus /etc/init.d/ucitrack enabled stopped Failed to connect to ubus /etc/init.d/uhttpd enabled stopped Failed to connect to ubus /etc/init.d/umount enabled stopped Failed to connect to ubus /etc/init.d/urandom_seed enabled stopped Failed to connect to ubus /etc/init.d/urngd enabled stopped / #

geryescalier avatar Jul 05 '25 21:07 geryescalier