-
Notifications
You must be signed in to change notification settings - Fork 376
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
[BUG] walinuxagent does not read environment variable PATH #1561
Comments
When tried on multiple Ubuntu 18.04 VMs.
From RunCommand:
|
Please note that I was using the "Azure Data Science Virtual Machine for Linux", which is an Ubuntu 16.04 LTS, not 18.04. |
Yes. There is a descrepency. From the Azure DS VM:
From RunCommand output:
When I go inside the box, I run the script that gets downloaded, and see the output:
But in the stdout of the run-command, it captures only a subsection of the output.
|
Looking at the environment variables for Daemon and ExtHandler. The ExtHandler launches the extension script and passed its env. variables to the child process.
|
More info for context:
|
My hypothesis is that the later two path variables ( This is an issue, especially if the environment variables are not being picked up. I will test it with 18.04 VMs as well. |
@vrdmr , thanks a lot for the hard work! |
This is still an issue with all Linux VMs I've tried (mostly different versions of Ubuntu). Environment variables set in |
I updated the PATH variable on my VM, but the walinuxagent seems not to pick up the changes, and uses and odd value for it.
Steps followed:
/etc/environment
If I ssh into the machine and perform the following commands:
sudo su
(to impersonate the userroot
)echo $PATH
the returned value is correct.
If I execute
echo $PATH
in Azure Portal through the 'Run command' panel of the VM, a different value is returned in the output (different even from the one before I made the change).I also executed the commands
whoami
(to be sure I am using the same userroot
in both cases) andmore /etc/environment
(to check that the right value is still there).I tried to re-install and restart the agent, but not difference in the outcome.
waagent --version
:WALinuxAgent-2.2.32.2 running on ubuntu 16.04
Python: 3.5.2
Goal state agent: 2.2.40
The text was updated successfully, but these errors were encountered: