Toolbox Dump - No content to map

Enonic version: Latest
OS: Ubuntu 16.04

Hi!

Does anyone know what is going on over here? :sweat:
I am trying to create a cronjob to run ./toolbox.sh dump… every night for backup purposes.

./toolbox.sh dump -a su:password -t myDump

Failed to prettify response
com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input
 at [Source: ; line: 1, column: 1]
        at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
        at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3776)
        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:84)
        at com.enonic.xp.toolbox.repo.RepoCommand.postRequest(RepoCommand.java:57)
        at com.enonic.xp.toolbox.repo.RepoCommand.postRequest(RepoCommand.java:42)
        at com.enonic.xp.toolbox.repo.DumpCommand.execute(DumpCommand.java:36)
        at com.enonic.xp.toolbox.ToolCommand.run(ToolCommand.java:13)
        at com.enonic.xp.toolbox.Main.main(Main.java:54)
Response error: 

FYI.: I was able to create a dump using Data toolbox.

Thx in advance. :slightly_smiling_face:

Interesting :thinking::thinking::thinking: … That error happens for every command that I run.

./toolbox.sh list-snapshots -a su:password
./toolbox.sh reindex -a su:password -b draft,master -i -r cms-repo
etc…

/api not mapped in the vhost mappings

mapping.api.host = localhost
mapping.api.source = /api
mapping.api.target = /api

You said it best brother! Thanks @gri

A little off topic but isn’t backup of /repo folder + snapshots a lot safer than doing a dump? If you for some reason need to load the data into another server that won’t work?