Skip to content
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

403s from github while installing Janus #481

Open
kevinpauli opened this issue Nov 30, 2012 · 3 comments
Open

403s from github while installing Janus #481

kevinpauli opened this issue Nov 30, 2012 · 3 comments

Comments

@kevinpauli
Copy link

=== noob alert ===

I have been learning vim to do web app development in linux, and I was trying to install Janus since it seemed it would give me a more IDE like experience.

I first executed the install script

kpauli@ubuntu-vm:~$ curl -Lo- https://bit.ly/janus-bootstrap | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   149  100   149    0     0     72      0  0:00:02  0:00:02 --:--:--   262
100   587  100   587    0     0    155      0  0:00:03  0:00:03 --:--:--  1603
/home/kpauli/.vim has been renamed to /home/kpauli/.vim.old
/home/kpauli/.vimrc has been renamed to /home/kpauli/.vimrc.old
Cloning into '/home/kpauli/.vim'...
remote: Counting objects: 3324, done.
remote: Compressing objects: 100% (1328/1328), done.
remote: Total 3324 (delta 1909), reused 3168 (delta 1786)
Receiving objects: 100% (3324/3324), 393.80 KiB | 710 KiB/s, done.
Resolving deltas: 100% (1909/1909), done.
bash: line 21: rake: command not found
Rake failed.

However I see now that rake and some other things are required. So I did a:

kpauli@ubuntu-vm:~$ sudo apt-get install ack ctags git ruby rake 

Which completed fine.

So I tried the install again....

kpauli@ubuntu-vm:~$ curl -Lo- https://bit.ly/janus-bootstrap | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   149  100   149    0     0     91      0  0:00:01  0:00:01 --:--:--   451
100   587  100   587    0     0    183      0  0:00:03  0:00:03 --:--:--  2979
/home/kpauli/.vim has been renamed to /home/kpauli/.vim.old
Cloning into '/home/kpauli/.vim'...

error: The requested URL returned error: 403 Forbidden while accessing https://github.com/carlhuda/janus.git/info/refs
fatal: HTTP request failed
Could not clone the repository to /home/kpauli/.vim

Just for grins, I tried the install again, and it got much further:

kpauli@ubuntu-vm:~$ curl -Lo- https://bit.ly/janus-bootstrap | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   149  100   149    0     0     91      0  0:00:01  0:00:01 --:--:--   430
100   587  100   587    0     0    189      0  0:00:03  0:00:03 --:--:--  2891
Cloning into '/home/kpauli/.vim'...
remote: Counting objects: 3324, done.
remote: Compressing objects: 100% (1328/1328), done.
remote: Total 3324 (delta 1909), reused 3168 (delta 1786)
Receiving objects: 100% (3324/3324), 393.80 KiB, done.
Resolving deltas: 100% (1909/1909), done.
rake update
Cleaning the janus folder
Pulling latest changes
Cleaning the janus folder
Synchronising submodules urls
Updating the submodules
remote: Counting objects: 35, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 35 (delta 13), reused 29 (delta 7)
Unpacking objects: 100% (35/35), done.
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 6 (delta 0), reused 6 (delta 0)
Unpacking objects: 100% (6/6), done.
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 8 (delta 1), reused 8 (delta 1)
Unpacking objects: 100% (8/8), done.
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 5 (delta 0), reused 5 (delta 0)
Unpacking objects: 100% (5/5), done.
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 11 (delta 1), reused 2 (delta 0)
Unpacking objects: 100% (11/11), done.
remote: Counting objects: 31, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 31 (delta 5), reused 31 (delta 5)
Unpacking objects: 100% (31/31), done.
remote: Counting objects: 145, done.
remote: Compressing objects: 100% (135/135), done.
remote: Total 145 (delta 8), reused 145 (delta 8)
Receiving objects: 100% (145/145), 175.85 KiB, done.
Resolving deltas: 100% (8/8), done.
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/altercation/vim-colors-solarized.git/info/refs
fatal: HTTP request failed
Clone of 'https://github.com/altercation/vim-colors-solarized.git' into submodule path 'janus/vim/colors/solarized' failed
rake install
mkdir -p _backup
mkdir -p _temp
ln -s /home/kpauli/.vim/janus/vim/vimrc /home/kpauli/.vimrc
ln -s /home/kpauli/.vim/janus/vim/gvimrc /home/kpauli/.gvimrc

****************************************
*        Installing watchtower         *
****************************************

mkdir -p janus/vim/tools/watchtower/autoload

****************************************
*         Installing mustache          *
****************************************

mkdir -p janus/vim/langs/mustache/syntax
mkdir -p janus/vim/langs/mustache/ftdetect

Except for the ominous 403 while accessing vim-colors-solarized, it seemed to get much further.

However, when I launch vim, I am getting an error now.

kpauli@ubuntu-vm:~$ vim
Error detected while processing function janus#load_pathogen:
line    3:
E484: Can't open file /home/kpauli/.vim/janus/vim/core/pathogen/autoload/pathogen.vim
line   10:
E117: Unknown function: pathogen#infect
E117: Unknown function: pathogen#infect
E117: Unknown function: pathogen#infect
Error detected while processing function janus#load_pathogen..janus#load_core:
line    5:
E117: Unknown function: pathogen#infect
Error detected while processing function janus#load_pathogen:
line   16:
E117: Unknown function: pathogen#helptags
Press ENTER or type command to continue

And then when vim does start it just looks normal, with no Janus goodness.

I'm afraid I've screwed things up horribly by running the install script again after it failed the first time due to lacking rake.

How should I proceed to undo all this and start afresh, and avoid to 403s? I really want to try Janus.

@dcalacci
Copy link

dcalacci commented Dec 3, 2012

I have had this same issue when trying to install janus on a distribution of ubuntu karmic with git version 1.6.3.3. It seems http support pre-git 1.7 is less than perfect, and results in 403 errors.

I'd suggest that someone (or we) maintain a fork of janus that uses the git protocol instead. Not sure how this would work within ruby but it certainly couldn't hurt.

Or, perhaps, the script itself could be changed to use git rather than http - would there be any downsides to this approach?

@jeroendv
Copy link

I notices this has been closed, but the bootstrap.sh script still uses the https protocol instead of the git protocol which has been proposed as a solution.

Edit:
sorry, just realized the issue is still open, but issues 471 and 469 have been closed referencing this one.

@kalbasit
Copy link
Member

We prefer to keep using the https protocol because a lot of companies block port 9418 which is used by git:// so it's better to fix your SSL problem rather than using a blocked port which you cannot work around it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants