Giter Club home page Giter Club logo

Comments (2)

DrEsteban avatar DrEsteban commented on July 24, 2024

Hey @ferantivero! Running azds with sudo shouldn't be necessary.

  1. Where is the azds binary located on your machine? Is it in a protected folder?
  2. Do you have access the the /tmp folder on your machine? That's where azds writes logs. If so, can you try sharing some example logfiles?
  3. Can you run azds --version and report back what version of azds you're using?

Thanks!

from dev-spaces.

ferantivero avatar ferantivero commented on July 24, 2024

Hey @DrEsteban

I think I might have found one of the folders that could be causing this issue in my environment. It looks like write access to .azds could be required for some commands:

drwxr-xr-x 3 root root 4096 Jan 24 19:56 .azds

Not so sure how during the installation process .azds ended up being owned by root. Please note that az-cli is also own by root in my environment and maybe during az aks use-dev-space is the moment in which this folder gets created for the first time. Also, full answers below:

  1. Where is the azds binary located on your machine? Is it in a protected folder?

/home/parallels/lib/azds-cli

drwxr-xr-x  4 root      root      20480 Jan 21 10:40 azds-cli
  1. Do you have access the the /tmp folder on your machine? That's where azds writes logs. If so, can you try sharing some example logfiles?

a. /tmp: I do not own the folder but yes, I do have access (rwt)
b. /tmp/Azure Dev Spaces/: I am the owner, and also I have access in there (rwx)

$ cat /tmp/Azure\ Dev\ Spaces/azds-cli-2019-01-29-13-45-50-1486.txt

"2019-01-29T13:45:50.6595364Z" : {"eventName":"Command.Start","properties":{"arguments":"--version"},"metrics":null}(version=0.1.20190116.6)(apiVersion=2.8)(subscriptionId=d0d422cd-e446-42aa-a2e2-e88806508d3b)(CommandId=b9062e5d-4f27-49bc-b33b-536fedfdef81)(ProcessId=1486)
"2019-01-29T13:45:50.8485196Z" : {"eventName":"Command.End","properties":{"arguments":"--version","successful":"True"},"metrics":{"duration":215.0}}(version=0.1.20190116.6)(apiVersion=2.8)(subscriptionId=d0d422cd-e446-42aa-a2e2-e88806508d3b)(CommandId=b9062e5d-4f27-49bc-b33b-536fedfdef81)(ProcessId=1486)
  1. Can you run azds --version and report back what version of azds you're using?
Azure Dev Spaces CLI (Preview)
0.1.20190116.6

please note that executing azds --version do not require sudo and it does write /tmp/Azure Dev Spaces folder as shared above.

OS: Ubuntu 16.04.5 LTS
Others: virtualized over Parallels

Please feel free to close this issue if your consider this is strictly related to my environment setup.

from dev-spaces.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.