Comments (27)
Sorry for the late reply.. Do you still have this issue?
What $ git --version
are you running?
from tpm.
Closing this issue since it's been a while. Feel free to reopen if this problem persists and I'll be glad to help.
from tpm.
I have the same problem here. I'm running tmux 2.0-3 and git 2.1.4. Here's my ~/.tmux.conf
:
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
run '~/.tmux/plugins/tpm/tpm'
It yields the following error message:
Already installed "tpm" [0/0]
Installing "tmux-sensible"
"tmux-sensible" download fail
Installing "tmux-resurrect"
"tmux-resurrect" download fail
TMUX environment reloaded.
Done, press ENTER to continue.
Tomorrow I'll try to strace the process and interpret the data. I've already made a quick glance, and there seem to be several Resource temporarily unavailable
errors.
from tpm.
Hey, thanks for the update. Not sure what's causing this.
How about just looking into the scripts/install_plugins.sh
script (full path: ~/.tmux/plugins/tpm/scripts/install_plugins.sh
).. That's all that's done on install, it's 50ish lines..
This is invoked to fetch ie tmux-sensible
plugin:
cd ~/.tmux/plugins/
GIT_TERMINAL_PROMPT=0 git clone --recursive https://git::@github.com/tmux-plugins/tmux-sensible
Can you maybe manually check the above git
command is working?
from tpm.
Can you maybe manually check the above
git
command is working?
Sure. I tried running it and it turned out there was a retrospectively obvious case of insufficient directory permissions.
bacondropped@baconcomp ~/.tmux/plugins
% GIT_TERMINAL_PROMPT=0 git clone --recursive https://git::@github.com/tmux-plugins/tmux-sensible
fatal: could not create work tree dir 'tmux-sensible'.: Permission denied
I created a little pull request which will, in a hacky way, attempt to detect the lack of required write permission and warn the user, you might want to review it.
EDIT: Technically, this might not be the same issue @isthisthat experienced, but this workaround works in the expected fashion for me.
from tpm.
I have this problem too with tmux 2.0 and git 2.4.6
after tried the above GIT_TERMINAL_PROMPT=0 git clone --recursive https://git::@github.com/tmux-plugins/tmux-sensible
the plugin is downloaded successfully :<
from tpm.
- Are you sure you're cloning into the plugin directory?
- Do you have sufficient write privileges?
- Have you tried
export GIT_SSL_NO_VERIFY=true
?
from tpm.
@bacondropped
- yes, I run
git clone https://github.com/tmux-plugins/tmp
first as README.md. I guess if tpm not installed, there won't be any info afterprefix + I
. - I install plugins into my home directory, and it's not a 'permission deny' but 'download fail'
- no, as I installed them manually.
and some more info, this 'download fail' occurred in my own Mac OS too, as the previous issue actually happened in my remote server, but after retried several time, they are downloaded to my Mac via git. and for my remote server, I installed git manually in some other directory, with configure of link to curl (so I can clone git repository with https url). I guess this may be the reason of downloading with https, but not sure, and haven't look into your source code yet.
from tpm.
@die4live, linking your .tmux.conf
would help to resolve this. What is the output of echo $TMUX_PLUGIN_MANAGER_PATH
inside tmux
?
from tpm.
@bruno- sure, they're in my repo: die4live/dotfiles, as the one in branch master (dotfiles/.tmux.conf at master ยท die4live/dotfiles) is for my Mac, and the one in branch 1gene (dotfiles/.tmux.conf at 1gene ยท die4live/dotfiles) is for my remote server (Cent OS), hope that will help.
and for the echo command, both are $HOME/.tmux/plugins/
from tpm.
@die4live, thanks for the quick response, that helps.
- I noticed you have
tmux-resurrect
and some other plugins running. Do those work? You have problems just withtpm
? - what is the output of
ls -l $HOME/.tmux/plugins/
? - to confirm: cloning
tmux-sensible
plugin in$HOME/.tmux/plugins/
directory works fine? Here's the one liner to test:cd $HOME/.tmux/plugins/; GIT_TERMINAL_PROMPT=0 git clone --recursive https://git::@github.com/tmux-plugins/tmux-sensible
- what is the output of the command
[ -w $HOME/.tmux/plugins/ ]; echo $?
? - do you by any chance start
tmux
as a different user than what you use for work?
Thanks
from tpm.
@bruno- the follow answers are to my work machine as my own Mac works fine, and my problem was 'download fail' when I tried to install other plugins through tpm
, with error info just like @isthisthat, and I'm sure that's not caused by no permission.
and for your questions:
- actually the
tmux-contiunuum
doesn't work, butresurrect
is able to save and have files under my$HOME/.tmux/resurrect
. However, I haven't triedtmux-sensible
and not sure wether it works. - I changed user and group name for privacy
total 16
drwxrwxr-x 4 XX XXX 4096 Jul 27 10:59 tmux-continuum
drwxrwxr-x 9 XX XXX 4096 Jul 27 11:01 tmux-resurrect
drwxrwxr-x 3 XX XXX 4096 Jul 27 10:55 tmux-sensible
drwxrwxr-x 6 XX XXX 4096 Jul 27 10:38 tpm
- yes, it success to clone after I delete the existing
tmux-sensible
- 0
- I have no other user account for my remote server
from tpm.
@die4live, what happens if you run chmod 777 "$HOME/.tmux/plugins"
, delete all plugin directories except for tpm (tmux-continuum, etc), and test again? Does the issue re-emerge? I'm asking because I too had the same problem with permissions 775, and changing them to 777 fixed it.
EDIT: Also, is the following true? You installed tmux and tpm as root, but are currently using it as a regular user without elevated privileges.
from tpm.
@bacondropped I was trying to reinstall plugins just now, and after I delete all plugins except tpm
, then active prefix + I
, all other three plugins were downloaded successfully, and I think I haven't change anything with tmux, so what I could say is maybe that's the network problem.. especially when considering the fact that I'm in China, lol.
However, the tmux-continuum
seems still not work, but I guess that's another issue.
So sorry for the bothering:<
from tpm.
@die4live, if you're concerned about MITM attacks, it might be a good idea to regularly (a) verify Github SSH fingerprints:
dig SSHFP github.com +nostats +nocomments +nocmd
;github.com. IN SSHFP
github.com. 300 IN SSHFP 2 1 7491973E5F8B39D5327CD4E08BC81B05F7710B49
github.com. 300 IN SSHFP 1 1 BF6B6825D2977C511A475BBEFB88AAD54A92AC73
and (b) verify sensitive services' HTTPS certificates, as described here: http://wiki.debuntu.org/wiki/OpenSSL#Retrieving_certificate_informations
Other than this little advice, I have nothing, except to offer to check folder permissions one more time. I had some problems with Tmux and TPM (maybe even tmux-resurrect
), and for the most part they were caused by insufficient privileges.
from tpm.
@bacondropped
Thanks for that advice, I tested the fingerprints and it seems ok now. I saved the command to my snippets for later usage:)
from tpm.
@bacondropped , thanks a lot for the help with resolving this issue.
Closing as it seems things are now working.
from tpm.
I had failure installing plugins and tracked it down to this line. What is the reason for the git::
in the clone url? GitHub itself doesn't promote needing to specify a username/password in the clone url. Removing that piece made it all start working for me.
from tpm.
Hey @cehoffman,
the commit for that line does say a little about that change - link.
There were some issues in the past (eg #7) where a user mis-typed tmux plugin name. In this case tpm
install process would hang because Github prompts for username / password.
The trick with git::
is also used by some vim plugin managers. It basically specifies blank git username / password.
@cehoffman what git
version are you running? Does updating git
to latest version help?
from tpm.
@bruno I'm running git 2.5.3 and I had the issue coincidentally when trying to install a plugin using a misspelled name. The pane would just hang there as described in #7; only once I removed the git::
piece did I get to a failure where I realized the plugin name had been misspelled.
Trying to recreate the hang isn't occurring anymore. I think this issue may just be a bread crumb for future people that experience hanging installs to check spelling.
from tpm.
I'm trying to install the continuum plugin and it's failing... I think I've tried all the steps listed here but still no success.
git version 1.8.5.2 (Apple Git-48)
I tried reseting permissions(chmod 777 "$HOME/.tmux/plugins"
), deleting all plugins(except TPM) and then reinstalling. Still doesn't install continuum, others install ok.
Pulling directly from git seems to work fine. cd $HOME/.tmux/plugins/; GIT_TERMINAL_PROMPT=0 git clone --recursive https://git::@github.com/tmux-plugins/tmux-continuum
I also tried export GIT_SSL_NO_VERIFY=true
Still nothing seems to be working. Any ideas what to try next?
Already installed "tpm"
Installing "tmux-sensible"
"tmux-sensible" download success
Installing "tmux-resurrect"
"tmux-resurrect" download success
Installing "tmux-continuum"
"tmux-continuum" download fail
TMUX environment reloaded.
Done, press ENTER to continue.
from tpm.
Hey @nathanbwright,
no idea what's causing that. Did you try removing existing tmux-continuum directory?
$ rm -rf $HOME/.tmux/plugins/tmux-continuum
from tpm.
Thanks for looking into this! Yes, I've tried removing the tmux-continuum directory, but it's still failing...
Do you have any other ideas?
from tpm.
Hm. I'm really not sure what's causing this.
How about avoiding the problem (for now). You can:
- manually clone the repo to
~/.tmux/plugins/tmux-continuum
directory (just as you did in the post above) - add the plugin to
.tmux.conf
:set -g @plugin 'tmux-plugins/tmux-continuum'
- reload TMUX environment with:
$ tmux source-file ~/.tmux.conf
and things should work
tmux-continuum works quietly in the background. It automatically performs saves every 15 minutes (by default). You can check it's working by checking if the new saved file appeared in ~/.tmux/resurrect/
directory after 15 mins or so.
from tpm.
Hi, I'm having the same issue ('download fail') when trying to install tmux-resurrect. Already did some advices from the past posts, without help.
Manually downloading with just "git clone --recursive https://github.com/tmux-plugins/tmux-resurrect.git" works, but seems the plugin is not working (I've added "set -g @plugin 'tmux-plugins/tmux-resurrect'" on tmux.conf, but no luck).
EDIT: now it is working, manually updating tpm made the trick (prefix + U wasn't working).
Thanks!
from tpm.
@bruno- Thanks for the advice, the manual install seems to be working...
Cheers!
from tpm.
TL;DR: root owned my .tmux/plugins directory. Chowning that directory to my user account fixed the download fail issue.
Yak Shaving Explanation: When I installed TMUX plugin manager on my Mac OS X system, the OS wanted me to agree to some xcode license. But it wanted me to do so with root privileges. Eventually I noticed that the .tmux/plugins directory the TPM script had created was owned by root, presumably because I'd sudoed the TPM installer script because of the xcode license agreement. Chowning the .tmux/plugins directory to my user account allowed me to achieve downloading success.
from tpm.
Related Issues (20)
- [discussion] bundle several tmux plugins under a common umbrella organization for visibility
- TPM does not install plugins on M1 Mac (Ventura) HOT 8
- Nix formula please? HOT 1
- NetBSD - TPM locks up the entire system. HOT 4
- Is there a way to install plugins to another directory? HOT 7
- How to install plugins automatically? HOT 2
- Implementing an embedded plugin list in tpm? HOT 1
- how to update TPM itself? HOT 2
- TPM is apparently installing plugins but they are not loaded. Windows 10 WSL2 Ubuntu. HOT 1
- Tmux output numbers separated by semicolon at startup HOT 7
- TPM should account for the repository's author to prevent naming conflicts HOT 1
- Sourcing tmux conf returns 126 in WSL Ubuntu HOT 4
- '~/.local/share/tmux/plugins/tpm/tpm' returned 1 on macOS Sonoma 14.3.1 HOT 3
- tpm does not works on macbook pro m3 pro HOT 2
- Fix the instructions on changing plugins install dir HOT 1
- Install plugin from subdirectory HOT 1
- Most plugins are not being installed and loaded HOT 3
- Fix: cannot set variables with a name whose prefix is `plugin` HOT 1
- GitHub rejects clones using user:pass:?@host construction HOT 1
- TPM Update returns "failed to store -25299" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tpm.