Question on "Couldn't spawn the qmi-proxy" error
Hi Aleksander,
Need your advise on occasional qmi-proxy issue.
Sometimes I'm encountering the following GLib error: qmi_core_error_quark: Couldn't spawn the qmi-proxy
during qmi_device_open_finish callback of qmi_device_open method called with PROXY flag.
I'm calling these methods via GObject-Introspection from Python, but I guess qmi-proxy itself should be independent of this.
OS Debian, different libqmi versions (1.25.5, 1.26.1, 1.27.1), different modems (I guess that doesn't matter here).
Note: I indeed can have multiple devices opened and talking to them at the same time using qmi-proxy, and usually it is working fine. But sometimes this happens.
Couple of questions:
a) what is the meaning of such error (too many simultaneous requests to qmi-proxy? or?)
b) recommendation to avoid this?
c) is there anything I can do to restart/reset qmi-proxy service/process manually if this already happened?
I've tried to just kill the qmi-proxy process (using kill PID
) and afterwards restart it using either
/usr/libexec/qmi-proxy --no-exit --verbose > /tmp/qmi-proxy-verbose.log 2>&1 &
or just
/usr/libexec/qmi-proxy
but I'm getting error: Error binding to address: Address already in use
If I check active unix sockets after killing qmi-proxy process after getting this error, indeed there're some left behind:
netstat --all --program | grep qmi-proxy
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 21481 - @qmi-proxy
unix 2 [ ] STREAM CONNECTING 0 - @qmi-proxy
unix 2 [ ] STREAM CONNECTED 3587105 - @qmi-proxy
unix 2 [ ] STREAM CONNECTING 0 - @qmi-proxy
unix 2 [ ] STREAM CONNECTING 0 - @qmi-proxy
unix 2 [ ] STREAM CONNECTING 0 - @qmi-proxy
unix 2 [ ] STREAM CONNECTED 3586708 - @qmi-proxy
unix 2 [ ] STREAM CONNECTED 3585871 - @qmi-proxy
unix 2 [ ] STREAM CONNECTING 0 - @qmi-proxy
unix 2 [ ] STREAM CONNECTING 0 - @qmi-proxy
unix 2 [ ] STREAM CONNECTED 3586046 - @qmi-proxy
unix 2 [ ] STREAM CONNECTING 0 - @qmi-proxy
unix 2 [ ] STREAM CONNECTED 3586707 - @qmi-proxy
unix 2 [ ] STREAM CONNECTING 0 - @qmi-proxy
unix 2 [ ] STREAM CONNECTING 0 - @qmi-proxy
unix 2 [ ] STREAM CONNECTING 0 - @qmi-proxy
unix 2 [ ] STREAM CONNECTING 0 - @qmi-proxy
How to kill/restart qmi-proxy in a way that doesn't leave open sockets behind?
Your advise is much appreciated.