Unable to create dump

Enonic version: 6.10.1
OS: Linux

Hi Team !

I found strange issue on our server. It’s not possible to create dump with following error:

Failed to prettify response
com.fasterxml.jackson.core.JsonParseException: Unexpected character (’<’ (code 60)): expected a valid value (number, String, array, object, ‘true’, ‘false’ or ‘null’)
at [Source:

504 Gateway Time-out


The server didn’t respond in time.

; line: 1, column: 2]
at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1581)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:533)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:462)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1624)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:689)
at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3771)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3716)
at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:2272)
at com.enonic.xp.toolbox.util.JsonHelper.prettifyJson(JsonHelper.java:31)
at com.enonic.xp.toolbox.repo.RepoCommand.executeRequest(RepoCommand.java:81)
at com.enonic.xp.toolbox.repo.RepoCommand.postRequest(RepoCommand.java:54)
at com.enonic.xp.toolbox.repo.RepoCommand.postRequest(RepoCommand.java:39)
at com.enonic.xp.toolbox.repo.DumpCommand.execute(DumpCommand.java:23)
at com.enonic.xp.toolbox.ToolCommand.run(ToolCommand.java:13)
at com.enonic.xp.toolbox.Main.main(Main.java:50)
Response error:

504 Gateway Time-out


The server didn’t respond in time.

Actually toobox creates some dirs structures and exports some objects, but there should be much more items. What can I do in this case ?

Thanks !

Any ideas how to solve this ?

It looks like there is some kind of proxy dropping the connection in your network.

What parameters do you use to make the dump?
I would try executing it from the same machine where XP is running to bypass any proxies.

Hi @aro,

this problem is not related to proxy. Same error appears during creating dump from toolbox.sh with -p option. Of-course we didn’t see 504 error message, but “Failed to prettify response” is still there.

Can you copy here the whole stack trace from the error that appears in XP log?

As a workaround you can create a dump from admin interface instead of command line:

1 Like

Hi @aro,

thanks for your idea :slight_smile: It works via Data Toolbox.