Error during setup of component asuswrt in docker-solved

Hi everyone,
I am new to home assistant. Firstly thanks for every volunteer on this forum. Hopefully somone can point me to the right direction.
I have two questions:

  1. I am have issue with setup of component asuswrt (both password and public key) in docker on centos 7.6. But I am able to do it in virtualenvironment HA instance. There is a little bit of HA version difference. Router is DSL-ac68u with merlin firmware which do not support telnet login anymore. Please see detail below. asuswrt.yaml are the same BTW.

Docker HA detail:
System Health
arch x86_64
dev false
docker true
hassio false
os_name Linux
python_version 3.7.3
timezone Australia/Sydney
version 0.94.1
virtualenv false
Lovelace
mode auto-gen

asuswrt.yaml


asuswrt:
host: 192.168.1.1
username: !secret router_username
password: !secret router_password
#ssh_key: /config/id_rsa
sensors:
- upload
- download
- upload_speed
- download_speed

error log

2019-06-20 10:00:50 INFO (MainThread) [homeassistant.setup] Setting up asuswrt 2019-06-20 10:00:50 ERROR (MainThread) [homeassistant.setup] Error during setup of component asuswrt Traceback (most recent call last): File “/usr/src/app/homeassistant/setup.py”, line 153, in _async_setup_component hass, processed_config) File “/usr/src/app/homeassistant/components/asuswrt/init.py”, line 55, in async_setup await api.connection.async_connect() File “/usr/local/lib/python3.7/site-packages/aioasuswrt/connection.py”, line 72, in async_connect self._client = await asyncssh.connect(self._host, **kwargs) File “/usr/local/lib/python3.7/site-packages/asyncssh/misc.py”, line 182, in await return (yield from self._coro) File “/usr/local/lib/python3.7/site-packages/asyncssh/connection.py”, line 5451, in connect conn, _ = yield from create_connection(None, host, port, **kwargs) File “/usr/local/lib/python3.7/site-packages/asyncssh/connection.py”, line 5057, in create_connection client_username = getpass.getuser() File “/usr/local/lib/python3.7/getpass.py”, line 169, in getuser return pwd.getpwuid(os.getuid())[0] KeyError: ‘getpwuid(): uid not found: 1000’

both password and key got same error above in docker.

virtualenvironment HA detail:


I can only upload one screenshot.

both password and key authentication method works on HA on virtualenvironment with same asuswrt.yaml above.

  1. When I migrate from virtualenvironment to docker, I have to reconfigure webhook id on ifttt due to the new instance have a new webhook id. is there a way to use the same ifttt webhook id so that I don’t have to reconfigure ifttt every time?

Thanks in advance.

I’ve come across this article below explained the issue and solution. I added " user: 1000:1000" in the docker-compose file. But user id 1000 does not exist in ha container. Which caused the problem. After comment it out. Everything works fine. Hopefully this can help anyone have similar issues.

Cheers