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

git clone mediawiki issues over https #3

Closed
darenwelsh opened this issue Apr 19, 2019 · 2 comments
Closed

git clone mediawiki issues over https #3

darenwelsh opened this issue Apr 19, 2019 · 2 comments

Comments

@darenwelsh
Copy link
Collaborator

When I ran git clone mediawiki::https://192.168.100.100/demo wiki-sync (on the "master" wiki) from #1 I got the following error message. Meza sets up for https by default.

[daren@localhost Git-Mediawiki]$ git clone mediawiki::https://192.168.100.100/demo wiki-sync
Cloning into 'wiki-sync'...
Searching revisions...
No previous mediawiki revision found, fetching from beginning.
Fetching & writing export data by pages...
Listing pages on remote wiki...
fatal: could not get the list of wiki pages.
fatal: 'https://192.168.100.100/demo' does not appear to be a mediawiki
fatal: make sure 'https://192.168.100.100/demo/api.php' is a valid page
fatal: and the SSL certificate is correct.
fatal: (error 2: 501 Protocol scheme 'https' is not supported (LWP::Protocol::https not installed) : error occurred when accessing https://192.168.100.100/demo/api.php after 1 attempt(s))
fatal: Could not read ref refs/mediawiki/origin/master

So I ran sudo cpan install LWP::Protocol::https

Then I tried git clone mediawiki::https://192.168.100.100/demo wiki-sync again and got the following:

[daren@localhost Git-Mediawiki]$ git clone mediawiki::https://192.168.100.100/demo wiki-sync
Cloning into 'wiki-sync'...
Searching revisions...
No previous mediawiki revision found, fetching from beginning.
Fetching & writing export data by pages...
Listing pages on remote wiki...
fatal: could not get the list of wiki pages.
fatal: 'https://192.168.100.100/demo' does not appear to be a mediawiki
fatal: make sure 'https://192.168.100.100/demo/api.php' is a valid page
fatal: and the SSL certificate is correct.
fatal: (error 2: 500 Can't connect to 192.168.100.100:443 : error occurred when accessing https://192.168.100.100/demo/api.php after 1 attempt(s))
fatal: Could not read ref refs/mediawiki/origin/master
@darenwelsh darenwelsh added this to the Wikimedia Hackathon 2019 milestone Apr 25, 2019
hexmode added a commit that referenced this issue May 27, 2019
@hexmode
Copy link
Member

hexmode commented May 27, 2019

@darenwelsh sorry this has taken a month.

I switched the remote for the submodule to better track changes made upstream so you'll either need to use a clean checkout or git pull && git submodule sync && git submodule update --init in your current check out.

@hexmode
Copy link
Member

hexmode commented May 28, 2019

To clone a wiki with a self-signed cert, use git -c http.sslVerify=false clone mediawiki::https://example.com/ or set the envvar GIT_SSL_NO_VERIFY=true.

In the repo for the wiki, you'll probably want to git config http.sslVerify false

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

2 participants