I just installed MediaWiki 1.35 on an Amazon Linux EC2 server, with php 7.3 and MariaDB
Everything seems to work fine, except when I try to edit a page using VisualEditor.
I cannot load a page for editing, I get the error:
Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached
I can edit a new page with VisualEditor, but I when I try to save it, I get the same error.
Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached
I have no trouble reaching the page via the REST endpoint:
http://MyWayCoolIPAddress/rest.php/v1/page/Main_Page
Which returns:
// 20201019142902
// http://MyWayCoolIPAddress/rest.php/v1/page/Main_Page
{
"id": 1,
"key": "Main_Page",
"title": "Main Page",
"latest": {
"id": 1,
"timestamp": "2020-10-14T17:17:27Z"
},
"content_model": "wikitext",
"license": {
"url": "",
"title": ""
},
"source": "MediaWiki has been installed.\n\nConsult the User's Guide for information on using the wiki software.\n\n== Getting started ==\n* Configuration settings list\n* MediaWiki FAQ\n* MediaWiki release mailing list\n* Localise MediaWiki for your language\n* Learn how to combat spam on your wiki"
}
If I try to call the API endpoint directly:
http://MyWayCoolIPAddress/api.php?action=visualeditor&paction=parse&page=Main_Page
I get a similar error:
{
"error": {
"code": "apierror-visualeditor-docserver-http-error",
"info": "Error contacting the Parsoid/RESTBase server: (curl error: 28) Timeout was reached",
"*": "See http://MyWayCoolIPAddress/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
}
}
This is MediaWiki 1.35, and as far as I know it includes Parsoid-PHP, so I don't need to do any additional configuration.
I assume VisualEditor is not the problem because I can edit a new page, I just can't save it.