Yes I reproduced this, and know why it happens. Will fix next week. But yes I recommend to postpone the migration to 7.12 while we take care of a few bugs including this one. Thanks for your patience @erms77.
Member of the Kibana Core team here, having the SO import/export under our team’s scope.
Would it be possible to share some detail on the cause of this problem? Having 3rd party plugins being able to break some core features is an issue, and I would like to try to understand how this was made possible.
Hi @pgayvallet, thanks for chipping in. My greetings to you and all the Kibana team
As far as I can see at this stage, Kibana’s Hapi server is coming back with this message:
Hello ! I’ve done some packet capture on my pc, and I’ve seen some interesting things. I’ll reach you through private message (If my understanding is right, even a vanilla kibana may be impacted by the issue).
Thanks to @pchesneau the issue was found and fixed. It was completely unrelated to Kibana because this plugin uses an internal proxy (responsible of the poor handling of the multipart POST request).
So @pgayvallet you don’t have to worry
As soon as my PR gets merged by ROR dev team, I will be able to create a pre release for you guys.
Please request a build directly to me in a private message or email if you are interested in trying it out. Otherwise, the fix will be in the next release.
We are facing same issue (“invalid multipart payload format”) when importing saved objects in Kibana. We are using 7.10.2 standard version of ES and Kibana. We were earlier on 1.30.0 of ROR. But even after upgrading to 1.31.0, we are continuing to get the error during import. We are using the free version of ES ROR and Kibana ROR plugin.
After I upgraded, now Kibana fails to start. I reverted back to old version for now. I see following error logged in stderr file.
Error: listen EADDRINUSE: address already in use 127.0.0.1:11221
at Server.setupListenHandle [as _listen2] (net.js:1280:14)
at listenInCluster (net.js:1328:12)
at doListen (net.js:1461:7)
at process._tickCallback (internal/process/next_tick.js:63:19)
In stdout, I am seeing these entries.
[12:39:13:140] [info][plugins][ReadonlyREST][preElasticsearchProxy] Pre-Elasticsearch-proxy will listen on 127.0.0.1:11221
[ROR] - serve.js - intercepting config
[ROR] - serve.js - intercepting config
[12:39:27:294] [error][plugins][ReadonlyREST][lazyUtils] Caught an error in executeWithInterval { FetchError: request to https://myelastic.domain.com/.readonlyrest_kbn_sessions/_search failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (D:\Apps\PROGRA~1\kibana-7.10.2-windows-x86_64\plugins\readonlyrestkbn\node_modules\node-fetch\lib\index.js:1461:11)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
message:
'request to https://myelastic.domain.com/.readonlyrest_kbn_sessions/_search failed, reason: read ECONNRESET',
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET' }
[12:39:28:109] [info][plugins][ReadonlyREST][preElasticsearchProxy] Pre-Elasticsearch-proxy will listen on 127.0.0.1:11221
[ROR] - serve.js - intercepting config
[ROR] - serve.js - intercepting config
[12:39:42:070] [error][plugins][ReadonlyREST][lazyUtils] Caught an error in executeWithInterval { FetchError: request to https://myelastic.domain.com/.readonlyrest_kbn_sessions/_search failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (D:\Apps\PROGRA~1\kibana-7.10.2-windows-x86_64\plugins\readonlyrestkbn\node_modules\node-fetch\lib\index.js:1461:11)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
message:
'request to https://myelastic.domain.com/.readonlyrest_kbn_sessions/_search failed, reason: read ECONNRESET',
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET' }
[12:39:42:818] [info][plugins][ReadonlyREST][preElasticsearchProxy] Pre-Elasticsearch-proxy will listen on 127.0.0.1:11221
[ROR] - serve.js - intercepting config
[ROR] - serve.js - intercepting config
You need to unpatch and patch again, plus remove the optimize folder content (rm -rf optimize/*).
Or better, unpack a fresh kibana and redo the patch + plugin install.
We do unpatch before uninstall and patch again after new install. Those are part of our standard upgrade scripts… But dont remove optimize folder. Let me try it again after removing optimize folder.
Also, should this be standard step going forward (i.e. removing optimize folder during every upgrade)?
Yes, it should because it happened so many times that customers ask me “why do I have an old version number in the ROR menu even if I upgraded?”. This is failure to detect changed sources is due to the Kibana plugin system and we have no power over it.
If you see the docs about upgrading, I already added the step a few weeks ago.