Jump to content

Topic on Talk:Parsoid/Archive 2

mediawiki 1.37.1 Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server

17
Summary by Arlolra
GCTWorks (talkcontribs)

After upgrading to MediaWiki 1.37.1, I can no longer use the visual editor. The loading box pops up and then gives me the following error:


Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server


I am not even sure how to diagnose this. I spent about 4 hours on the Google trying to find solutions. None seemed to work or were even applicable. Any help would be appreciated?


I am running:

Ubuntu Server 20.04.3 as a VM

Apache 2.4.41

PHP 7.4.3

MariaDB 10.5.13 (not local)

Arlolra (talkcontribs)

Can you paste your Parsoid configuration from your LocalSettings.php

The first step is to isolate Parsoid and see if that works on its own

GCTWorks (talkcontribs)

I am not sure my LocalSetting.php file has the configuration you are talking about. I did a text search for "parsoid" and nothing came up.

Arlolra (talkcontribs)
GCTWorks (talkcontribs)

I do not have this in my LocalSettings.php file. I basically have a near Out of the Box LocalSettings.php file except some additional $wgFileExtensions appended to the end. All of the was working fine in 1.37.0. I will try adding this later.

Is this something I need to do because my LocalSettings.php is from my initial install at 1.36.2 or 1.36.3? The upgrade to 1.37.0 went fine.

Arlolra (talkcontribs)
GCTWorks (talkcontribs)

It does up once for a Docker install. I am not using Docker. Just a native install.

Arlolra (talkcontribs)

An error is being reported by curl. My suggestion would be to log those errors and see what url it's trying to access.

GCTWorks (talkcontribs)

Apologies, but how do I do that? I did some googling, but I was not successful in finding the logs for that error.

Arlolra (talkcontribs)
GCTWorks (talkcontribs)

Okay. Here is what I think are the two pertinent log lines, obfuscated for security:

[http] HTTP start: GET https://mywiki.my.domain/rest.php/mywiki.my.domain/v3/page/html/Main_Page/3?redirect=false&stash=true

[http] Error fetching URL "https://mywiki.my.domain/rest.php/mywiki.my.domain/v3/page/html/Main_Page/3?redirect=false&stash=true": (curl error: 7) Couldn't connect to server


I do not know enough about how it is supposed to work to know what might be wrong

Arlolra (talkcontribs)

What happens when you visit that url directly, say in a browser

GCTWorks (talkcontribs)

I get the following:

{"error":"rest-read-denied","httpCode":403,"httpReason":"Forbidden"}

Arlolra (talkcontribs)

That's a different error. You connected but didn't forward a cookie so don't have permission to access the api. But it shows that you can connect to the endpoint.

The curl error says that MediaWiki can't connect, which means that it is probably having a hard time resolving the right address for your domain. That is indeed similar to the docker issue linked to before at https://www.mediawiki.org/wiki/Extension:VisualEditor#Troubleshooting

GCTWorks (talkcontribs)

Oh okay. So, I think you are correct in that it might be similar. I did not realize it until you mentioned it, the hostname of my server is the same as the "mywiki" part of mywiki.my.domain. Let me change the hostname and retest. I will follow-up with the results.

GCTWorks (talkcontribs)

Okay. That did the trick. Interesting that this was not an issue before I upgraded. How can I help to get that docker issue text updated to reflect my circumstances as well? I bet this would help some people.


Also, thank you so much for helping me! I really appreciate it considering I am a bit of n00b.

Arlolra (talkcontribs)

mediawiki.org is a wiki, please just edit the page as you see fit