Using the information above, I Pulled the Visual Editor off the git, and it looks like Visual Editor loads, however editing a new page the I am having Parsoid Issues now.
Error loading data from server: parsoidserver-http-bad-status: 500. Would you like to retry?
- worker(23189) loading...
- worker(23192) loading...
- worker(23188) loading...
- worker(23193) loading...
- worker(23190) loading...
- worker(23189) ready on :8142
- worker(23192) ready on :8142
- worker(23188) ready on :8142
- worker(23190) ready on :8142
- worker(23193) ready on :8142
[warning/api][null/Main_Page] Failed API request, 8 retries remaining.
[warning/api][null/Main_Page] Failed API request, 7 retries remaining.
[warning/api][null/Main_Page] Failed API request, 6 retries remaining.
[warning/api][null/Main_Page] Failed API request, 5 retries remaining.
[warning/api][null/Main_Page] Failed API request, 4 retries remaining.
[warning/api][null/Main_Page] Failed API request, 3 retries remaining.
[warning/api][null/Main_Page] Failed API request, 2 retries remaining.
[warning/api][null/Main_Page] Failed API request, 1 retries remaining.
[warning/api][null/Main_Page] Failed API request, 0 retries remaining.
From https://www.mediawiki.org/wiki/Parsoid/Setup I pulled the tarball wikimedia-mediawiki-extensions-Parsoid-8da3673.tar.gz and set the following settings.
in /usr/lib/parsoid/src/api/localsettings.js
parsoidConfig.setInterwiki( 'localhost', 'http://localhost:8142/mediawiki/api.php');
parsoidConfig.setInterwiki( 'localhost', 'http://localhost/mediawiki/api.php');
in /etc/mediawiki/parsoid/settings.js
parsoidConfig.setInterwiki( 'localhost', 'http://localhost:8142/mediawiki/api.php');
parsoidConfig.setInterwiki( 'localhost', 'http://localhost/mediawiki/api.php');
Again from the command line the Parsoid appears to be working
Invalid language.
You need to specify a language like this: <source lang="html4strict">...</source>
Supported languages for syntax highlighting:
c, cpp, bash, html4strict, text, java, latex, javascript, python, xml, csharp, php, css, asm, sql, pascal, matlab, html5, haskell, vb, lisp, ruby, ada, oracle11, dos, rsplus, fortran, d, bnf, ocaml, pcre, perl, vhdl, actionscript, lua, bibtex, go, bf, cobol, ini, delphi, arm, scheme, objc, prolog, actionscript3, mysql, qbasic, asp, algol68, groovy, erlang, abap, email, powershell, ecmascript, glsl, sas, apache, yaml, java5, vbnet, reg, cfm, fsharp, scala, applescript, gwbasic, clojure, pli, robots, tsql, whois, freebasic, verilog, llvm, visualfoxpro, sparql, tcl, plsql, coffeescript, scilab, dot, autoit, boo, mirc, lolcode, gnuplot, eiffel, j, teraterm, oorexx, diff, smalltalk, cmake, avisynth, perl6, xpp, typoscript, basic4gl, make, awk, e, gml, jquery, zxbasic, systemverilog, 6502acme, properties, oracle8, q, purebasic, pic16, ldif, rexx, unicon, urbi, modula3, mpasm, locobasic, progress, visualprolog, vala, octave, winbatch, oz, autohotkey, cadlisp, euphoria, pycon, oobas, povray, thinbasic, 68000devpac, mmix, modula2, cil, mxml, io, blitzbasic, parigp, oberon2
root@debian-web:/usr/lib/parsoid/src/tests# echo "foo bar\nThis is a [[link]]" | node parse --trace peg
0-[peg] | ----> ["foo bar\\nThis is a ",{"type":"SelfclosingTagTk","name":"wikilink","attribs":[{"k":"href","v":["link"],"vsrc":"link"}],"dataAttribs":{"tsr":[19,27],"src":"[[link]]"}}]
0-[peg] | ----> [{"type":"NlTk","dataAttribs":{"tsr":[27,28]}}]
0-[peg] | ----> [{"type":"EOFTk"}]
<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/"><head prefix="mwr: http://en.wikipedia.org/wiki/Special:Redirect/"><meta property="mw:parsoidVersion" content="0"/><link rel="dc:isVersionOf" href="//en.wikipedia.org/wiki/Main_Page"/><title></title><base href="//en.wikipedia.org/wiki/Main_Page"/></head><body data-parsoid='{"dsr":[0,28,0,0]}'><p data-parsoid='{"dsr":[0,27,0,0]}'>foo bar\nThis is a <a rel="mw:WikiLink" href="./Link" data-parsoid='{"stx":"simple","a":{"href":"./Link"},"sa":{"href":"link"},"dsr":[19,27,2,2]}'>link</a></p>
</body></html>
Looking at the https://www.mediawiki.org/wiki/Parsoid/Troubleshooting
When using curl https://localhost/w/api.php
Give me a 301 Moved Permanently, but the page it to apparently doesn't exist in its moved location. This might be because I am running my wiki one level deeper and not off the main/root url.
<syntaxhighlight>
root@debian-web:/usr/lib/parsoid/src/tests# curl -k https://localhost/w/api.php
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
html><head>
<title>301 Moved Permanently</title>
</head><body>
Moved Permanently
The document has moved <a href="https://localhost/./api.php">here</a>.
<address>Apache/2.2.22 (Debian) Server at localhost Port 443</address>
</body></html>
root@debian-web:/usr/lib/parsoid/src/tests# curl -k https://localhost/./api.php
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
html><head>
<title>404 Not Found</title>
</head><body>
Not Found
The requested URL /api.php was not found on this server.
<address>Apache/2.2.22 (Debian) Server at localhost Port 443</address>
</body></html>
</source>
Instead I am using 'http://localhost/mediawiki/api.php' which is the only api.php on the system
Os Side Note: Are there any instructions on how to add the ssl certificate for the Parsoid (right now I am running an unencrypted pages, but I like all my stuff to be using SSL) The Instructions are extremely vague https://www.mediawiki.org/wiki/Parsoid/Troubleshooting If your MediaWiki runs via SSL, make sure that your Parsoid server can access your MediaWiki without certificate errors. In other words; make sure that the certificate is valid and added to the certificate storage on your Parsoid-running system.
Again Thanks for helping me troubleshoot this.