Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows build failure trying to rename directory held by different process #5229

Open
2 tasks done
M-Waszkiewicz-Anaconda opened this issue Mar 11, 2024 · 1 comment
Open
2 tasks done
Labels
type::bug describes erroneous operation, use severity::* to classify the type

Comments

@M-Waszkiewicz-Anaconda
Copy link

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

building snowflake-ml-python failing on windows with the message

03/07/24 11:14:36  INFO   Verifying transaction: ...working... done                                                                                                                                                                                          
                   INFO   Executing transaction: ...working... WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(182): Could not remove or rename C:\b\abs_17t0w_on_6\croot\snowflake-ml-python_1709827295791\_build_env\Library\lib\modules.     
                          Please remove this file manually (you may need to reboot to free file handles)                                                                                                                                                     
03/07/24 11:14:49  INFO   done                                                                                                                                                                                                                               
                   INFO   ERROR conda.core.link:_execute(945): An error occurred while installing package 'defaults::openjdk-11.0.13-h2bbff1b_0'.                                                                                                            
03/07/24 11:14:56  INFO   Rolling back transaction: ...working... done                                                                                                                                                                                       
                   INFO                                                                                                                                                                                                                                      
                   INFO   [Errno 22] Invalid argument: 'C:\\b\\abs_17t0w_on_6\\croot\\snowflake-ml-python_1709827295791\\_build_env\\Library\\lib\\modules'                                                                                                  
                   INFO   ()                                                                                                                                                                                                                                 
                   INFO                                                                                                                                                                                                                                      
03/07/24 11:14:57  ERROR  Command failed with exit code 1   

It does work if build only for single python version.

After the build for first python version, there is an error:

                   INFO   TEST START: C:\b\abs_17t0w_on_6\upload\win-64\snowflake-ml-python-1.2.2-py310h2bbff1b_3.tar.bz2                                                                                                                                    
                   INFO   Renaming work directory 'C:\b\abs_17t0w_on_6\croot\snowflake-ml-python_1709827295791\work' to 'C:\b\abs_17t0w_on_6\croot\snowflake-ml-python_1709827295791\work_moved_snowflake-ml-python-1.2.2-py310h2bbff1b_3_win-64'            
                   INFO   shutil.move(work)=C:\b\abs_17t0w_on_6\croot\snowflake-ml-python_1709827295791\work, dest=C:\b\abs_17t0w_on_6\croot\snowflake-ml-python_1709827295791\work_moved_snowflake-ml-python-1.2.2-py310h2bbff1b_3_win-64)                  
03/07/24 11:11:13  INFO   WARNING: Failed to rename work directory, check with strace, struss or procmon. Will sleep for 3 seconds and try again!                                                                                                            
03/07/24 11:11:25  INFO   ERROR: Failed to rename work directory despite sleeping and retrying. 

therefore the builds for following python version are failing

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

For some extra context - looks like this traces back to:
conda-build shutil_move_retrying:

def shutil_move_more_retrying(src, dest, debug_name):

--> line 2137
conda-build rm_rf
def rm_rf(path, config=None):

conda rm_rf
https://github.com/conda/conda/blob/1fbef60c03f383bd695c8a071687389f7e513d43/conda/gateways/disk/delete.py#L197
--> line 210
conda unlink_or_rename_to_trash
https://github.com/conda/conda/blob/1fbef60c03f383bd695c8a071687389f7e513d43/conda/gateways/disk/delete.py#L132

@M-Waszkiewicz-Anaconda M-Waszkiewicz-Anaconda added the type::bug describes erroneous operation, use severity::* to classify the type label Mar 11, 2024
@jezdez
Copy link
Member

jezdez commented Mar 27, 2024

Please add the requested issue template fields (conda info etc) above to understand better the environment this happened in (to create a reproducer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug describes erroneous operation, use severity::* to classify the type
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants