Giter Club home page Giter Club logo

Comments (27)

bruno- avatar bruno- commented on July 16, 2024

Sorry for the late reply.. Do you still have this issue?
What $ git --version are you running?

from tpm.

bruno- avatar bruno- commented on July 16, 2024

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.

 avatar commented on July 16, 2024

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.

bruno- avatar bruno- commented on July 16, 2024

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.

 avatar commented on July 16, 2024

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.

die4live avatar die4live commented on July 16, 2024

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.

 avatar commented on July 16, 2024

@die4live

  1. Are you sure you're cloning into the plugin directory?
  2. Do you have sufficient write privileges?
  3. Have you tried export GIT_SSL_NO_VERIFY=true?

from tpm.

die4live avatar die4live commented on July 16, 2024

@bacondropped

  1. 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 after prefix + I.
  2. I install plugins into my home directory, and it's not a 'permission deny' but 'download fail'
  3. 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.

bruno- avatar bruno- commented on July 16, 2024

@die4live, linking your .tmux.conf would help to resolve this. What is the output of echo $TMUX_PLUGIN_MANAGER_PATH inside tmux?

from tpm.

die4live avatar die4live commented on July 16, 2024

@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.

bruno- avatar bruno- commented on July 16, 2024

@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 with tpm?
  • 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.

die4live avatar die4live commented on July 16, 2024

@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:

  1. actually the tmux-contiunuum doesn't work, but resurrect is able to save and have files under my $HOME/.tmux/resurrect. However, I haven't tried tmux-sensible and not sure wether it works.
  2. 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
  1. yes, it success to clone after I delete the existing tmux-sensible
  2. 0
  3. I have no other user account for my remote server

from tpm.

 avatar commented on July 16, 2024

@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.

die4live avatar die4live commented on July 16, 2024

@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.

 avatar commented on July 16, 2024

@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.

die4live avatar die4live commented on July 16, 2024

@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.

bruno- avatar bruno- commented on July 16, 2024

@bacondropped , thanks a lot for the help with resolving this issue.

Closing as it seems things are now working.

from tpm.

cehoffman avatar cehoffman commented on July 16, 2024

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.

bruno- avatar bruno- commented on July 16, 2024

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.

cehoffman avatar cehoffman commented on July 16, 2024

@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.

nathanbwright avatar nathanbwright commented on July 16, 2024

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.

bruno- avatar bruno- commented on July 16, 2024

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.

nathanbwright avatar nathanbwright commented on July 16, 2024

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.

bruno- avatar bruno- commented on July 16, 2024

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.

mdkcore0 avatar mdkcore0 commented on July 16, 2024

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.

nathanbwright avatar nathanbwright commented on July 16, 2024

@bruno- Thanks for the advice, the manual install seems to be working...
Cheers!

from tpm.

tamborello avatar tamborello commented on July 16, 2024

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)

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.