"Cannot write: No space left on device" when trying to install linuxbrew to VPS server #923
Comments
My best guess is that you're filling up your
If that fails, report the output of |
I noticed that you installed Linuxbrew in |
I don't have sudo access which is actually why I'm trying to use linuxbrew. My understanding is that it would enable me to install packages without sudo access. I know that it's limited in what it can do without sudo access but I'm mostly just looking for an easy way to install things like zsh, and zsh-auto-suggestion stuff without having to wget curl everything manually etc. Also I work in both in both normal linux servers, local linux desktops, and local WSL contexts and linuxbrew seemed like a more platform neutral way for me to maintain my personal application preferences etc across contexts. I've run the export and brew install hello and so far it seems to be installing things correctly. If I'm understanding correctly the issue is that my host probably put some kind of cap on the |
Your use case is exactly why I created Linuxbrew. Mine is the same.
Excellent! Glad to hear that you got it working.
Exactly. I have the same issue at work. |
Ah dang it looks like it stopped working I opened up my terminal to check and got this:
|
You'll need to run |
I've adjusted my term's scrollback buffer so that I can get a fuller copy of the output. I also tried changing the homebrew tmp to be in my home folder, but that does not seem to be fixing the issue. Yes, I am running the export homebrew temp thing before hand also. I've also added it to my .zshrc
When I go to Checking the df results in basically the same results as before. |
After the no space errors finish I get the following:
So maybe the bin utils errors are not the end all be all and it just needs to build stuff from source? Though it seems that if stuff gets the "no space left" error early on that eventually comes back to shutdown any future attempts at building or installing things. Thank you for your help. |
Hmm weird. After it tries making stuff I get booted from the ssh connection. |
It looks to me like you're hitting some disk quota on your home directory. Can't say for sure though. You may need to check in with your VPS provider. |
Again, thank you for your help and patience in talking about this with me. I emailed them and I got this response: "We can go ahead and move your So it sounds like they were writing tmp to RAM (which I only have a gig of) instead of disk. Thats.... weird right? I didn't know you could even do that. |
Having As an experiment, you can try… mkdir -p ~/tmp
cd ~/tmp
curl -L https://linuxbrew.bintray.com/bottles/binutils-2.31.1_2.x86_64_linux.bottle.tar.gz | tar zx
rm -rf ~/tmp/binutils If that fails, you've exceed your disk quota in your home directory. |
The experiment you suggested did not fail. And I heard back from them. The switched over my VPS to use disk for tmp. I tried to install hello but got some errors that seemed to indicate that the mirrors were 404. I tried to install ranger and it was in the process of installing python when the remote host closed the connection. Not sure what that all means but I think at this point I'm going to give things up until I can get sudo access. I've decided that I'm going to ask my new dev job for a Mac instead of a windows machine so that I can run Homebrew on it. And I'm going to move most of my development off my Windows machine probably for now, and stick with Unix only systems for doing dev stuff. I'll keep my windows stuff around for when I do art stuff or play games but woof, trying to maintain dot files between WSL and Linux has been such a pain still. I got manually installed what I really need for my portfolio server for now, and I think I'll focus on learning stuff at my new job, and maybe I'll switch off VPS to something like AWS or something soon, once I bone up a bit more, so that I can have sudo access. Thank you @sjackman so much for your help. You've been very patient and kind and I will come back to the linuxbrew project soon once I get my new job computer in order so I can start sharing between my work mac computer and my personal home linux server more. This project is really interesting and I hope more people start using it! I'll go write up a review on slant.co and add it to my list of CLI tools I'm writing up a blog post about. Thanks again! |
I'm glad to hear that you are enjoying your experience with Linuxbrew. I also use Homebrew on my personal macOS laptop, and Linuxbrew on the server. I like using the same package manager on both systems, which is really why I created the project. |
I ran into a similar issue of running out of
And here is my homebrew config:
Is there other options to specify where the bottles are poured? Thanks for your help in advance. |
The bottles are poured to
|
I'm wrong! It's extracting to
|
Thanks for your reply and it shed a light on my workaround. I manually poured the gcc bottle by
Brew seems to work now and continues to install other packages. |
Here's the buggy line: Dir.mktmpdir do |tmp_unpack_dir| It's using the value of |
Does |
Passing Thanks for spotting the buggy line in such a short time. I tried grepping the Homebrew source code but my attempt was to no avail. I will let others to fix it. Thanks again! |
If I run |
@sjackman what do you think of scpeters/brew@5669998 ? I wasn't sure what to write for the commit message since it touches multiple files. |
Yes as long as your
My brewed version of curl actually contained the certificates, though homebrew kept trying the My brew command now becomes |
Do these files exist? If not, does |
@scpeters Thanks for the fix! To avoid having to modify each invocation of ENV["TMPDIR"] = HOMEBREW_TEMP unless ENV["HOMEBREW_NO_ENV_FILTERING"] ? |
@sjackman that is simpler and should avoid regressions. Where would that line be added? It's a more wide-reaching change, but on first glance it seems like the right thing to do. |
@scpeters Perhaps |
brew
command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Linuxbrew/homebrew-core: https://github.com/Linuxbrew/homebrew-core/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
I am trying to install linuxbrew on a vps server so that I can install things to my home folder without root permissions.
What happened (include command output)
Check this gist for the results of
brew doctor
,brew update
, and me trying to runbrew install zsh
.What you expected to happen
I expected linuxbrew to install and then I could use it as a package manager without root permissions.
Step-by-step reproduction instructions (by running
brew
commands)First I ran the installation script:
Then I ran brew install zsh and I got an error output as linked in the above gist. Then I ran both brew update and brew doctor twice and got the outputs linked above.
Looking at the troubleshooting page it seems the most likely issue is that I have unbrewed (idk what that means tbh ) libraries in my /usr/local, but I don't what the fix for that issue is. I've never used Homebrew before and I've only used NPM and apt as package managers so I'm unclear what the expected solution is for that problem. The output of
brew doctor
seems to confirm what the troubleshooting wiki says though.The specifics of the
no space left on device
are also a little baffling. If I run df -hk or df -i give me these results which indicate that I'm nowhere near filling up my entire vps drive. My vps has 30 gigs and I'm only using 13 right now.df -i
df -hk
Any thoughts on what I can do? I'm sorry if this issue is extremely basic. I've tried to provide as much information as possible. I'm a very new developer. My background is in design and I just started my first developer role after teaching myself web dev stuff but I've obviously got a lot more to learn still.
The text was updated successfully, but these errors were encountered: