Page MenuHomePhabricator
Paste P17757

VisualEditor/Parsoid problem
ActivePublic

Authored by -jem- on Nov 17 2021, 11:37 PM.
Tags
None
Referenced Files
F34753743: VisualEditor/Parsoid problem
Nov 18 2021, 11:23 AM
F34752817: VisualEditor/Parsoid problem
Nov 17 2021, 11:45 PM
F34752806: VisualEditor/Parsoid problem
Nov 17 2021, 11:37 PM
Subscribers
None
[output of: curl -Iv https://localhost:8142]
* Rebuilt URL to: https://localhost:8142/
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8142 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:8142
* stopped the pause stream!
* Closing connection 0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:8142
[output of: curl -v http://localhost:8142]
* Rebuilt URL to: http://localhost:8142/
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8142 (#0)
> GET / HTTP/1.1
> Host: localhost:8142
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 200 OK
< X-Powered-By: Express
< Access-Control-Allow-Origin: *
< Content-Type: text/html; charset=utf-8
< Content-Length: 794
< ETag: W/"31a-LlqHLzu9y4swOH6feLr66YFoqlc"
< Vary: Accept-Encoding
< Date: Thu, 18 Nov 2021 10:59:45 GMT
< Connection: keep-alive
<
<code>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
// Work around the set base element.
var els = [{ src: '/static/css/style.css', css: true }];
function load(o) {
var el = document.createElement(o.css ? 'link' : 'script');
if (o.css) {
el.setAttribute('type', 'text/css');
el.setAttribute('rel', 'stylesheet');
}
el.setAttribute(o.css ? 'href' : 'src',
window.location.origin + o.src);
document.write(el.outerHTML);
}
els.forEach(load);
</script>
</head>
<body>
<h3>Welcome to the <a href="https://www.mediawiki.org/wiki/Parsoid">Parsoid</a> web service.</h3>
<p>See <a href="https://www.mediawiki.org/wiki/Parsoid#The_Parsoid_web_API_.2B_DOM_Spec">the API documentation on mediawiki.org</a>.</p>
</body>
* Connection #0 to host localhost left intact
</html>
</code>
[error lines from parsoid.log: before Parsoid restart]
[***** = Page title]
{"name":"parsoid","hostname":"ubuntu-4gb-hel1-1","pid":1466,"level":40,"logType":"warn/api/cert_has_expired","wiki":"wiki$0","title":"*****","oldId":null,"reqId":null,"userAgent":"VisualEditor-MediaWiki/1.31.1","msg":"Failed API request, {\"error\":{\"code\":\"CERT_HAS_EXPIRED\"},\"retries-remaining\":1}","longMsg":"Failed API request,\n{\"error\":{\"code\":\"CERT_HAS_EXPIRED\"},\"retries-remaining\":1}","levelPath":"warn/api/cert_has_expired","time":"2021-11-17T21:04:56.701Z","v":0}
{"name":"parsoid","hostname":"ubuntu-4gb-hel1-1","pid":1466,"level":40,"logType":"warn/api/cert_has_expired","wiki":"wiki$0","title":"*****","oldId":null,"reqId":null,"userAgent":"VisualEditor-MediaWiki/1.31.1","msg":"Failed API request, {\"error\":{\"code\":\"CERT_HAS_EXPIRED\"},\"retries-remaining\":0}","longMsg":"Failed API request,\n{\"error\":{\"code\":\"CERT_HAS_EXPIRED\"},\"retries-remaining\":0}","levelPath":"warn/api/cert_has_expired","time":"2021-11-17T21:04:56.715Z","v":0}
{"name":"parsoid","hostname":"ubuntu-4gb-hel1-1","pid":1466,"level":60,"logType":"fatal/request","wiki":"wiki$0","title":"*****","oldId":null,"reqId":null,"userAgent":"VisualEditor-MediaWiki/1.31.1","msg":"Template Fetch failure for \"*****\": Error: certificate has expired","stack":"Error: Template Fetch failure for \"*****\": Error: certificate has expired\n at TemplateRequest.ApiRequest._requestCB (/usr/lib/parsoid/src/lib/mw/ApiRequest.js:411:15)\n at self.callback (/usr/lib/parsoid/node_modules/request/request.js:186:22)\n at emitOne (events.js:116:13)\n at Request.emit (events.js:211:7)\n at Request.onRequestError (/usr/lib/parsoid/node_modules/request/request.js:878:8)\n at emitOne (events.js:121:20)\n at ClientRequest.emit (events.js:211:7)\n at TLSSocket.socketErrorListener (_http_client.js:387:9)\n at emitOne (events.js:116:13)\n at TLSSocket.emit (events.js:211:7)\n at emitErrorNT (internal/streams/destroy.js:64:8)\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\n at process._tickCallback (internal/process/next_tick.js:180:9)","longMsg":"Template Fetch failure for \"*****\": Error: certificate has expired","levelPath":"fatal/request","time":"2021-11-17T21:04:56.716Z","v":0}
[error lines from parsoid.log: after Parsoid restart]
[***** = Site domain]
{"name":"parsoid","hostname":"ubuntu-4gb-hel1-1","pid":22265,"level":40,"logType":"warn/api/cert_has_expired","wiki":"wiki$0","title":"Main Page","oldId":null,"reqId":null,"userAgent":"VisualEditor-MediaWiki/1.31.1","msg":"Failed API request, {\"error\":{\"code\":\"CERT_HAS_EXPIRED\"},\"retries-remaining\":1}","longMsg":"Failed API request,\n{\"error\":{\"code\":\"CERT_HAS_EXPIRED\"},\"retries-remaining\":1}","levelPath":"warn/api/cert_has_expired","time":"2021-11-18T10:46:48.723Z","v":0}
{"name":"parsoid","hostname":"ubuntu-4gb-hel1-1","pid":22265,"level":40,"logType":"warn/api/cert_has_expired","wiki":"wiki$0","title":"Main Page","oldId":null,"reqId":null,"userAgent":"VisualEditor-MediaWiki/1.31.1","msg":"Failed API request, {\"error\":{\"code\":\"CERT_HAS_EXPIRED\"},\"retries-remaining\":0}","longMsg":"Failed API request,\n{\"error\":{\"code\":\"CERT_HAS_EXPIRED\"},\"retries-remaining\":0}","levelPath":"warn/api/cert_has_expired","time":"2021-11-18T10:46:48.735Z","v":0}
{"name":"parsoid","hostname":"ubuntu-4gb-hel1-1","pid":22265,"level":60,"err":{"message":"Config Request failure for \"https://*****/w/api.php\": Error: certificate has expired","name":"../src/lib/index.js","stack":"../src/lib/index.js: Config Request failure for \"https://*****/w/api.php\": Error: certificate has expired\n at ConfigRequest.ApiRequest._requestCB (/usr/lib/parsoid/src/lib/mw/ApiRequest.js:411:15)\n at self.callback (/usr/lib/parsoid/node_modules/request/request.js:186:22)\n at emitOne (events.js:116:13)\n at Request.emit (events.js:211:7)\n at Request.onRequestError (/usr/lib/parsoid/node_modules/request/request.js:878:8)\n at emitOne (events.js:121:20)\n at ClientRequest.emit (events.js:211:7)\n at TLSSocket.socketErrorListener (_http_client.js:387:9)\n at emitOne (events.js:116:13)\n at TLSSocket.emit (events.js:211:7)\n at emitErrorNT (internal/streams/destroy.js:64:8)\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\n at process._tickCallback (internal/process/next_tick.js:180:9)","levelPath":"fatal/request"},"msg":"Config Request failure for \"https://*****/w/api.php\": Error: certificate has expired","time":"2021-11-18T10:46:48.736Z","v":0}