From this part of your output I suppose that the oakctl
commands did not work correctly:
root@0961345efa71:~# oakctl app listConnecting to agent ...
No devices found.
No devices found.
Failed to connect to agent: "\"There are no available connections.\""
To disable+stop the default app you do this before factory-reset:
systemctl --plain --legend=false | grep oak-agent | grep "/" | awk "{print \$NF}" | xargs -I {} systemctl stop {};
Then do the factory reset - after that, then do following oakctl
commands from your PC (I'm also pasting expected output):
# 1. Self-update oakctl
oakctl self-update
# Output:
# Already up to date
# 2. Connect to the device
oakctl connect <ip> --with-password
# Output:
# Password is not going to be saved securely!
# Use at your own risk
# > Camera password ********
# Initiating storing connection to 10.0.1.24:9998
# Connection to 10.0.1.24:9998 successfully stored
# 3. Check list of apps
oakctl app list
# Output:
# +---+--------------------------------------+---------------------------+---------+
# | E | Container Id | Identifier | Status |
# +================================================================================+
# | * | 2d272224-82e5-414d-b7a3-4cdd344fe04d | com.luxonis.default:0.4.1 | running |
# +---+--------------------------------------+---------------------------+---------+
# 4. Disable app
oakctl app disable <ID> # e.g. 2d272224-82e5-414d-b7a3-4cdd344fe04d
# Output:
# Disabling app 2d272224-82e5-414d-b7a3-4cdd344fe04d ...
# App has been disabled! App will not be started automatically on the next device boot.
# 5. Stop app
oakctl app stop <ID>
# Stopping app 2d272224-82e5-414d-b7a3-4cdd344fe04d ...
# App has been stopped!
# 6. Reboot
reboot
# 7. Check list of apps again
oakctl app list
# Output:
# +---+--------------------------------------+---------------------------+---------+
# | E | Container Id | Identifier | Status |
# +================================================================================+
# | | 2d272224-82e5-414d-b7a3-4cdd344fe04d | com.luxonis.default:0.4.1 | stopped |
# +---+--------------------------------------+---------------------------+---------+
Then - to be sure - try this:
systemctl restart agentconfd
systemctl restart oak-agent
Now - wait for a while and send us ouput from this two commands if something is still wrong:
oakctl device info
oakctl list
Then you can proceed to run your app.