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

hab-sup.service.sh script is storing proxy and credential information in the /etc/systemd/system/hab-sup.service #233

Open
5 tasks
hchiao1 opened this issue Mar 3, 2020 · 1 comment

Comments

@hchiao1
Copy link

hchiao1 commented Mar 3, 2020

Hello - thanks for reporting an issue with Habitat.

In order to help us troubleshoot the issue, please be sure to include the following information if applicable:

  • The OS (including version) where you are running any of the Habitat commands.

  • [x ] Debug/backtrace of the command you are trying to run. You can set the following environment variables before running the hab command to generate a trace:

      # Linux/MacOS
      hab-sup.service.sh script is storing proxy and credential information in the `/etc/systemd/system/hab-sup.service`  when user run ./uninstall.sh and ./install.sh. The oauth will facing a redirect incident. Will need to remove the proxy and credential information in the `/etc/systemd/system/hab-sup.service` to make it work.
    
  • Current Habitat environment variables where the hab command or supervisor is running. These can be gathered using:

      env | grep HAB | grep -v HAB_AUTH_TOKEN
    
    • DO NOT include HAB_AUTH_TOKEN or any other sensitive information. More info on Habitat environment variables can be found here.
    • If you're running into problems with the Habitat Studio, please use the env | grep ... command specified above to include environment variables:
      • a. before starting the studio
      • b. inside the studio
  • [] If this is a key related issue, please include the list of files (including user/group permissions) in /hab/cache/keys and $HOME/.hab/cache/keys via ls -la.

      # Linux/MacOS
      ls -la /hab/cache/keys
      ls -la $HOME/.hab/cache.keys
    
      # Windows (Powershell 5+)
      ls C:\hab\cache\keys
    
@hchiao1
Copy link
Author

hchiao1 commented Mar 3, 2020

Adding this line on end of provision.sh script will fix this issue

sed -i '/^Env/d' /etc/systemd/system/hab-sup.service; systemctl daemon-reload; systemctl restart hab-sup


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant