SSH-test in setup wizard fails, but manual test via PuTTY successful #195
-
Installation methodDocker (docker run / docker-compose) System architectureOther / not sure Operating systemTrueNAS Scale 24.10.2.2 What do you need help with?Using the setup wizard to configure my Soundtouch 10, I cannot pass the SSH test on the setup wizard. I followed all steps with the USB stick and doing a manual SSH test with PuTTY is also successful. The check within the setup wizard still says that SSH is not available and it is also not possible to go to the next step within the wizard. See the error message below. Relevant logs or error messagesSSH nicht erreichbar
Port check failed: {"type":"server_error","title":"Internal Server Error","status":500,"detail":"Unknown local username: set one of LOGNAME, USER, LNAME, or USERNAME in the environment","instance":"/api/setup/wizard/check-ports","errors":null}What have you already tried?Retried the power off, power on cycle with attached USB stick. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi, good catch β and thanks for the detailed error message. This is a known issue with the asyncssh library that OCT uses internally. What's happeningThe error Unknown local username: set one of LOGNAME, USER, LNAME, or USERNAME in the environment comes from the SSH library trying to determine the local username on the OCT server side (not the SoundTouch device). On TrueNAS Scale, Docker containers sometimes don't have these standard environment variables set. WorkaroundAdd the USER environment variable to your Docker container configuration: `
Then restart the container and try the wizard again. Bug on our sideThis is a bug β OCT shouldn't depend on the host environment having USER set. We'll fix this in a future release. Thanks for reporting it. If the workaround doesn't help, let us know and we'll dig deeper. |
Beta Was this translation helpful? Give feedback.
-
|
We've created a tracked bug report for this: #202 This will be fixed in a future release. In the meantime, the workaround (adding |
Beta Was this translation helpful? Give feedback.
Hi,
good catch β and thanks for the detailed error message. This is a known issue with the asyncssh library that OCT uses internally.
What's happening
The error Unknown local username: set one of LOGNAME, USER, LNAME, or USERNAME in the environment comes from the SSH library trying to determine the local username on the OCT server side (not the SoundTouch device). On TrueNAS Scale, Docker containers sometimes don't have these standard environment variables set.
Workaround
Add the USER environment variable to your Docker container configuration:
`
environment:
`
Then restart the container and try the wβ¦