question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timing issue when renaming ~/.bashrc to ~/.profile

See original GitHub issue

I use the action on a self-hosted runner. The VM is powerful and I run several Github Action runner instances on it.

From time to time the job fails with:

Initializing conda shell integration...
  /home/ubuntu/miniconda/condabin/conda init --all
  no change     /home/ubuntu/miniconda/condabin/conda
  no change     /home/ubuntu/miniconda/bin/conda
  no change     /home/ubuntu/miniconda/bin/conda-env
  no change     /home/ubuntu/miniconda/bin/activate
  no change     /home/ubuntu/miniconda/bin/deactivate
  no change     /home/ubuntu/miniconda/etc/profile.d/conda.sh
  no change     /home/ubuntu/miniconda/etc/fish/conf.d/conda.fish
  no change     /home/ubuntu/miniconda/shell/condabin/Conda.psm1
  no change     /home/ubuntu/miniconda/shell/condabin/conda-hook.ps1
  no change     /home/ubuntu/miniconda/lib/python3.8/site-packages/xontrib/conda.xsh
  no change     /home/ubuntu/miniconda/etc/profile.d/conda.csh
  no change     /home/ubuntu/.bashrc
  no change     /home/ubuntu/.zshrc
  no change     /home/ubuntu/.config/fish/config.fish
  no change     /home/ubuntu/.xonshrc
  no change     /home/ubuntu/.tcshrc
  No action taken.
  Renaming "/home/ubuntu/.bashrc" to "/home/ubuntu/.profile"
  
Error: ENOENT: no such file or directory, rename '/home/ubuntu/.bashrc' -> '/home/ubuntu/.profile'

I use remove-profiles: false but it seems this does not prevent the renaming.

Could this be improved to be more friendly to such self-hosted setups ?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
goanpecacommented, Oct 20, 2022

Hi @martin-g sorry for the late reply. We will look into it!

1reaction
schudokucommented, Oct 19, 2022

It renamed also my .bashrc to .profile. The problem: .profile already existed and was overridden! This is not Ok and should at least be mentioned as important. .profile is used by our web shell and was broken for some hours. Too much hidden system modifications for a github action.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git for Windows doesn't execute my .bashrc file - Stack Overflow
I renamed my '.bashrc' -> '.bash_profile' and relaunched Git Bash. ... for Windows (2.8.3.windows.1) uses a 'profile' file now instead of the .bash_profile....
Read more >
MinGW Bash profile - Super User
I have a .bashrc with some aliases in it. The file is in my home folder which is where MinGW starts me in,...
Read more >
Why doesn't .bashrc run automatically? - Ask Different
The issue is that Terminal creates login shells, and Bash login shells only run the login startup script, not ~/.bashrc . However, the...
Read more >
Renaming .bash_profile to .profile - The UNIX and Linux Forums
Now we have the following options: 1. Change all the scripts where ever .profile is being used and replace it with .bash_profile. 2....
Read more >
Set up a WSL development environment - Microsoft Learn
Learn how to run the command to install the default Bash shell that ... You will have to configure a Linux user account...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found