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

Installation fails "unable to update url base from redirection" #21

Closed
pv2b opened this issue Oct 26, 2019 · 3 comments
Labels
bug

Comments

@pv2b
Copy link

@pv2b pv2b commented Oct 26, 2019

When attempting to follow the install directions as outlined at https://github.com/okkur/syna-start, this is what I get:

PS C:\hugo\sites> git clone https://git.okkur.org/syna-start myproject
Cloning into 'myproject'...
warning: redirecting to https://github.com/okkur/syna-start.git/
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 367 (delta 7), reused 9 (delta 2), pack-reused 348
Receiving objects: 100% (367/367), 947.13 KiB | 2.34 MiB/s, done.
Resolving deltas: 100% (144/144), done.
PS C:\hugo\sites> cd myproject
PS C:\hugo\sites\myproject> git submodule init
Submodule 'themes/syna' (https://git.okkur.org/okkur/syna) registered for path 'themes/syna'
PS C:\hugo\sites\myproject> git submodule update
Cloning into 'C:/Hugo/Sites/myproject/themes/syna'...
fatal: unable to update url base from redirection:
  asked for: https://git.okkur.org/okkur/syna/info/refs?service=git-upload-pack
   redirect: https://about.okkur.org/
fatal: clone of 'https://git.okkur.org/okkur/syna' into submodule path 'C:/Hugo/Sites/myproject/themes/syna' failed
Failed to clone 'themes/syna'. Retry scheduled
Cloning into 'C:/Hugo/Sites/myproject/themes/syna'...
fatal: unable to update url base from redirection:
  asked for: https://git.okkur.org/okkur/syna/info/refs?service=git-upload-pack
   redirect: https://about.okkur.org/
fatal: clone of 'https://git.okkur.org/okkur/syna' into submodule path 'C:/Hugo/Sites/myproject/themes/syna' failed
Failed to clone 'themes/syna' a second time, aborting
PS C:\hugo\sites\myproject>

It would appear that this is a misconfiguration of git.okkur.org, making it redirect to https://about.okkur.org/ which is not a repo.

@pv2b

This comment has been minimized.

Copy link
Author

@pv2b pv2b commented Oct 26, 2019

I've identified a workaround, which is to change the URL in .gitmodules to https://github.com/okkur/syna

After that, you need to run git submodule sync.

Not sure if you want to change this in code to hard-point to github or if you'd rather fix your redirects.

@stp-ip

This comment has been minimized.

Copy link
Member

@stp-ip stp-ip commented Oct 27, 2019

We are using a vanity url for git and it wasn't correctly migrated. This should be fixed with #22

@stp-ip stp-ip added the bug label Oct 27, 2019
@stp-ip

This comment has been minimized.

Copy link
Member

@stp-ip stp-ip commented Oct 27, 2019

Thanks for catching this.

@stp-ip stp-ip closed this Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.