~$ sw_vers ProductName: Mac OS X ProductVersion: 10.15.7 BuildVersion: 19H1715 ~$ docker --version Docker version 20.10.12, build e91ed57 ~$ docker-compose --version Docker Compose version v2.2.3 ~$ whoami z ~$ mw version mw version 0.10.2 ( 2022-02-07T10:50:12Z ) https://gitlab.wikimedia.org/releng/cli/-/releases
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T246425 Selenium documentation is easy to use and up to date | |||
Open | None | T278827 Write missing Selenium documentation | |||
Open | None | T297377 Selenium/How-to/Run tests targeting Cli | |||
Open | • Addshore | T301898 "panic: user: unknown userid 501" after running "sudo mw docker hosts add" |
Event Timeline
Thanks for the report!
When using sudo the cli checks the SUDO_UID environment variable to find the ID of the users that is running sudo
Seemingly this ID is 501 for your run, but then go fails to find a user with this ID.
After a quick google I find this https://github.com/golang/go/issues/36246
So I have gone ahead and made a build trying with this flag set.
!165 CGO_ENABLED=1 for builds (make-cgo-enabled-1)
https://gitlab.wikimedia.org/repos/releng/cli/-/merge_requests/165
I uploaded some release builds from this MR to https://ufile.io/bnz2i1kh (also shared on slack now)
Could you give the binary that you normally use in that ZIP file a go and let me know how it goes?
@zeljkofilipin do let me know if the binary that I sent you on slack works!
Then we can merge it and release the fix :)
@Addshore sorry, I got distracted with other things. I'll let you know as soon as I get some time to work on this.