ct-Open-Source / ct-Open-Source/tuya-convert

AP starts but stops almost immediately

Open
#1,131 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5.1k
Forks
523
PR merge metrics
No merged PRs in 30d

Description

Hope this helps someone in the future as it took me a ton of time to resolve this issue.

Raspberry Pi 3B running Debian Bookworm
Linux pi 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux

I was having an issue where the vtrust-flash AP would start but almost immediately stop.

The logs for smarthack-wifi.log showed the following error:

"Failed to stop network-manager.service: Unit network-manager.service not loaded."

This turned out to be the same problem as another user reported affecting Kali Linux - Debian uses NetworkManager.service rather than network-manager.service.
Thanks to the other user's helpful guide I was able to fix the issue by editing setup_ap.sh replacing two instances of network-manager with NetworkManager.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with setup_ap.sh and inspect the two network-manager references described in the report. Run the AP setup on Debian Bookworm and check smarthack-wifi.log; done means the AP remains running without the service-not-loaded error.

Written by the indexing model from the issue text.

Assessment

Tech stack
debian, linux, shell
Domain
networking, operating-systems
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.