Hi, the situation is pretty strange, and I'm not so able to understand why this happens, I'll try to explain what is and when happen the error.
I wrote a little bash script to extract listening port with this command
ACTUAL_QBITTORRENT_PORT=$($QBT_BIN server settings connection --username "$QBITTORRENT_USERNAME" --password "$QBITTORRENT_PASSWORD" --url "http://${QBITTORRENT_HOST}:$QBITTORRENT_PORT" --format json | $JQ_BIN '.ListenPort')
When I run it inside putty shell all works, the same when I use it from command line, but if I call the script from a systemd system I get the "Cannot assign requested address" error.
So this's the output if I launch the script
Never mind, I found the problem, was my fault, I used ExecStartPre instead ExecStartPost so qbt was launched before qbittorrent and not after!
So, no worry.
Hi, the situation is pretty strange, and I'm not so able to understand why this happens, I'll try to explain what is and when happen the error. I wrote a little bash script to extract listening port with this command
ACTUAL_QBITTORRENT_PORT=$($QBT_BIN server settings connection --username "$QBITTORRENT_USERNAME" --password "$QBITTORRENT_PASSWORD" --url "http://${QBITTORRENT_HOST}:$QBITTORRENT_PORT" --format json | $JQ_BIN '.ListenPort')
When I run it inside putty shell all works, the same when I use it from command line, but if I call the script from a systemd system I get the "Cannot assign requested address" error. So this's the output if I launch the scriptAnd this's the output when I call the script from the systemd
As you can see, the ACTUAL_QBITTORRENT_PORT var is not valid because of "Cannot assign requested address" error
Do you've any idea?