azure-sdk-for-cpp icon indicating copy to clipboard operation
azure-sdk-for-cpp copied to clipboard

"Install WSL on Windows hosts when proxy tests are enabled.." fails intermittently with repeated "adduser: Only one or two names allowed." until operation canceled

Open ahsonkhan opened this issue 2 years ago • 3 comments

From unrelated PR: https://github.com/Azure/azure-sdk-for-cpp/pull/4393

On Win2022_Win32Api_debug_tests_x64 https://dev.azure.com/azure-sdk/public/_build/results?buildId=2597158&view=logs&j=62f96420-69e0-55c5-87e4-47c3c06a1c78&t=569ea126-27b5-5a23-71c4-ce1c427a6ea6&l=13328

2023-03-01T01:46:00.5056187Z ##[section]Starting: Install WSL on Windows hosts when proxy tests are enabled..
2023-03-01T01:46:00.5190074Z ==============================================================================
2023-03-01T01:46:00.5190676Z Task         : PowerShell
2023-03-01T01:46:00.5190895Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2023-03-01T01:46:00.5191234Z Version      : 2.212.0
2023-03-01T01:46:00.5191458Z Author       : Microsoft Corporation
2023-03-01T01:46:00.5191742Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2023-03-01T01:46:00.5192099Z ==============================================================================
2023-03-01T01:46:01.5860267Z Generating script.
2023-03-01T01:46:01.6316297Z ========================== Starting Command Output ===========================
2023-03-01T01:46:01.6574046Z ##[command]"C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\a469cf37-7939-4632-8131-96dc791c0e2c.ps1'"
2023-03-01T01:46:02.1133251Z w�s�l� �-�-�u�p�d�a�t�e� �-�-�w�e�b�-�d�o�w�n�l�o�a�d�
2023-03-01T01:46:02.1135312Z �
2023-03-01T01:46:34.6269336Z �D�o�w�n�l�o�a�d�i�n�g�:� �W�i�n�d�o�w�s� �S�u�b�s�y�s�t�e�m� �f�o�r� �L�i�n�u�x�
2023-03-01T01:46:34.6272232Z �
2023-03-01T01:46:34.6277331Z �
2023-03-01T01:46:34.6286867Z �
2023-03-01T01:46:34.6295130Z �I�n�s�t�a�l�l�i�n�g�:� �W�i�n�d�o�w�s� �S�u�b�s�y�s�t�e�m� �f�o�r� �L�i�n�u�x�
2023-03-01T01:46:34.6297089Z �
2023-03-01T01:46:34.6300165Z �
2023-03-01T01:46:34.6326085Z �
2023-03-01T01:46:34.6356399Z �W�i�n�d�o�w�s� �S�u�b�s�y�s�t�e�m� �f�o�r� �L�i�n�u�x� �h�a�s� �b�e�e�n� �i�n�s�t�a�l�l�e�d�.�
2023-03-01T01:46:34.6377288Z �
2023-03-01T01:46:34.6384952Z �
2023-03-01T01:46:34.6405284Z �
2023-03-01T01:46:34.6408091Z �
2023-03-01T01:46:34.6410020Z �
2023-03-01T01:46:34.6410895Z �w�s�l� �-�-�v�e�r�s�i�o�n�
2023-03-01T01:46:34.6411600Z �
2023-03-01T01:46:34.9516803Z �W�S�L� �v�e�r�s�i�o�n�:� �1�.�1�.�3�.�0�
2023-03-01T01:46:34.9518294Z �
2023-03-01T01:46:34.9519565Z �K�e�r�n�e�l� �v�e�r�s�i�o�n�:� �5�.�1�5�.�9�0�.�1�
2023-03-01T01:46:34.9520252Z �
2023-03-01T01:46:34.9521100Z �W�S�L�g� �v�e�r�s�i�o�n�:� �1�.�0�.�4�9�
2023-03-01T01:46:34.9521567Z �
2023-03-01T01:46:34.9522024Z �M�S�R�D�C� �v�e�r�s�i�o�n�:� �1�.�2�.�3�7�7�0�
2023-03-01T01:46:34.9522467Z �
2023-03-01T01:46:34.9522982Z �D�i�r�e�c�t�3�D� �v�e�r�s�i�o�n�:� �1�.�6�0�8�.�2�-�6�1�0�6�4�2�1�8�
2023-03-01T01:46:34.9540148Z �
2023-03-01T01:46:34.9559633Z �D�X�C�o�r�e� �v�e�r�s�i�o�n�:� �1�0�.�0�.�2�5�1�3�1�.�1�0�0�2�-�2�2�0�5�3�1�-�1�7�0�0�.�r�s�-�o�n�e�c�o�r�e�-�b�a�s�e�2�-�h�y�p�
2023-03-01T01:46:34.9576345Z �
2023-03-01T01:46:34.9600923Z �W�i�n�d�o�w�s� �v�e�r�s�i�o�n�:� �1�0�.�0�.�2�0�3�4�8�.�1�5�4�7�
2023-03-01T01:46:34.9604703Z �
2023-03-01T01:46:34.9619735Z �W�S�L� �i�n�s�t�a�l�l� �o�f� �u�b�u�n�t�u�.�
2023-03-01T01:46:34.9620774Z �
2023-03-01T01:47:33.7992460Z adduser: Only one or two names allowed.
2023-03-01T01:47:34.0451960Z adduser: Only one or two names allowed.
2023-03-01T01:47:34.3090514Z adduser: Only one or two names allowed.
...
2023-03-01T01:48:06.4226063Z adduser: Only one or two names allowed.
2023-03-01T01:48:06.6416411Z adduser: Only one or two names allowed.
2023-03-01T01:48:06.8603802Z adduser: Only one or two names allowed.
2023-03-01T01:48:07.0679236Z adduser: Only one or two names allowed.
2023-03-01T01:48:07.2763055Z adduser: Only one or two names allowed.
2023-03-01T01:48:07.2882469Z �Installing, this may take a few minutes...
2023-03-01T01:48:07.2892989Z 
2023-03-01T01:48:07.2900654Z Please create a default UNIX user account. The username does not need to match your Windows username.
2023-03-01T01:48:07.2912470Z 
2023-03-01T01:48:07.2916766Z For more information visit: https://aka.ms/wslusers
2023-03-01T01:48:07.2927510Z 
2023-03-01T01:48:07.4889111Z adduser: Only one or two names allowed.
2023-03-01T01:48:07.7009238Z adduser: Only one or two names allowed.
2023-03-01T01:48:07.9142542Z adduser: Only one or two names allowed.
...
2023-03-01T02:34:58.9657845Z adduser: Only one or two names allowed.
2023-03-01T02:34:59.1753474Z adduser: Only one or two names allowed.
2023-03-01T02:34:59.3827180Z adduser: Only one or two names allowed.
2023-03-01T02:34:59.5920161Z adduser: Only one or two names allowed.
2023-03-01T02:34:59.8015666Z adduser: Only one or two names allowed.
2023-03-01T02:35:00.0206205Z adduser: Only one or two names allowed.
2023-03-01T02:35:00.2476662Z adduser: Only one or two names allowed.
2023-03-01T02:35:00.4678607Z adduser: Only one or two names allowed.
2023-03-01T02:35:00.6803694Z adduser: Only one or two names allowed.
2023-03-01T02:35:00.8921961Z adduser: Only one or two names allowed.
2023-03-01T02:35:01.6092409Z Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username:
...
UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: Enter new UNIX username: E
2023-03-01T02:35:01.8506526Z ##[error]The operation was canceled.
2023-03-01T02:35:01.8606824Z ##[section]Finishing: Install WSL on Windows hosts when proxy tests are enabled..

cc @danieljurek

ahsonkhan avatar Mar 01 '23 20:03 ahsonkhan

A re-run didn't succeed.

ahsonkhan avatar Mar 01 '23 22:03 ahsonkhan

I'm getting this issue as well in another repo that uses WSL in Azure DevOps hosted agents, it used to work properly about a month ago. Did you find anything that could work around it? Thanks!

jeromelaban avatar Mar 24 '23 01:03 jeromelaban

It may be completely unrelated, but I got this "adduser:..." error when I did an "Enter-PSSession" to a server to install a disto instead of "ssh" to the server. The difference may have been that the first used an Active Directory admin and the later used a local machine admin account.

joshmouch avatar Feb 19 '24 02:02 joshmouch

Hi @ahsonkhan, we deeply appreciate your input into this project. Regrettably, this issue has remained unresolved for over 2 years and inactive for 30 days, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.

github-actions[bot] avatar Mar 03 '25 18:03 github-actions[bot]