-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
make start fails with /usr/local/go/pkg/linux_amd64/os/user.a: permission denied #3103
Comments
we develop on OS-X, so it looks like the |
Yes, that will be my pleasure. But I don't really know how to fix this in the first place. Could you give some guidance? I Googled a little and couldn't figure out. I found this most relevant: golang/go#24674 (comment) but I couldn't understand why it needs to write (the directory and files do have read permission open). |
@MrXinWang - you run Linux I think? Would you be able to help please? |
@alexec Yes of course. I will try to reproduce this issue today. |
Hi @MrXinWang , thank you for offering to help. What I found is golang/go#37962 (comment)
Is removing |
Hi @alexec ! I tried to reproduce this on my machine and it seems there isn't any problems in the Makefile, as I did not met the error mentioned by @yunhailuo. It seems that his error occured in building @yunhailuo It seems that your golang might be the problem, as you also mentioned in your comment. I would suggest you completely remove golang and install it again? I will attach what I did below: My test cluster is two x86_64 completely newly started ubuntu 18.04 virtual machines with newly installed docker 19.03.9, k8s 1.14.9 (CNI is calico), golang 1.14.3. Then I just run And speaking of how to install golang: # Remove old golang, for me it is: rm -rf /usr/local/go
wget https://dl.google.com/go/go1.14.3.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.14.3.linux-amd64.tar.gz
# Add these lines to your $HOME/.bashrc
export PATH=$PATH:/usr/local/go/bin/:/go/bin
export GOPATH=/go
export GOROOT=/usr/local/go
source $HOME/.bashrc Another suggestion is to use the root user? or run
No I don't think so (as I didn't do anything with the Makefile and all binaries can still be built), @alexec can you please confirm? |
Thank you @MrXinWang . I think the root privilege is the only solution so far. With my previous settings, I was trying to follow the contributor seminar on YouTube and didn't notice Alex make as root user. Now that I watch it again, it might be he installed GO under his home directory instead of |
@yunhailuo That absolutely makes sense. Congratulations. I would say it is definitely possible to change the value of GOROOT and GOPATH...and of course you can put it under your home directory where you have privilege to access anything. However I did not tried before so I am also not sure. As long as all environment variables and (symbolic links) are configured correctly, there shouldn't be any problems. Also the reason why I put everything like above is that I just simply followed the tutorial in https://golang.org/doc/install#tarball, no any other special reasons... |
Thank you @MrXinWang . I think it is clear and all worked out. I still couldn't get token. I'll close this one and open another issue if needed. |
In case this matters, the reason I got
is I used minikube and by default the minikube user has no authentication set up. To fix this I did the following two and redo a clean start. Both of them works:
|
For anyone else bumping into this, I managed to avoid the permission issue by installing go in $HOME/bin/go, rather than /usr/local/go. |
Checklist:
What happened:
My issue is similar to #1154. I started a new issue because that one is closed and my versions are all new. Please let me know if I shouldn't. This is part of the output from
make start
What you expected to happen:
Build successfully
How to reproduce it (as minimally and precisely as possible):
minikube start
make start
Anything else we need to know?:
N/A
Environment:
Message from the maintainers:
If you are impacted by this bug please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
The text was updated successfully, but these errors were encountered: