Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Backup/restore not working from within a docker instance of InfluxDB #8551
InfluxDB 1.2.2 running within docker container pulled from the company dockyard.
Steps to reproduce:
As you can see no database telegraf restored.
Expected behavior: I expected to see the restored telegraf database
Actual behavior: Output messages indicated that it was restoring but nothing actually restored
I am experiencing the same issue (tried with both
FROM influxdb:1.3 # Install unzip (lol) RUN apt-get -qq update && \ apt-get -qq install -y unzip && \ rm -rf /var/lib/apt/lists/* # Copy/extract seed database COPY 7-5-2017.zip ./ RUN unzip -q ./7-5-2017.zip && \ rm ./7-5-2017.zip # Restore RUN influxd restore -metadir /var/lib/influxdb/meta ./7-5-2017 && \ influxd restore -database "historical-poloniex" -datadir /var/lib/influxdb/data ./7-5-2017 && \ rm -r ./7-5-2017
The container is run like so:
It produces the following output (note that there is nothing about loading the restored files):
Listing databases results in the same thing as experienced by @edbernier:
While attempting to debug the issue, I tried running InfluxDB locally (not in a container) – this way I was able to successfully restore the backup. The output from running the server is markedly different:
And indeed the databases are available:
It seems like there's some kind of weird interaction between the restore process and containerizing InfluxDB? Please let me know if I can provide any more information.
@edbernier in the screenshot – which is extremely difficult to read; please don't submit screenshots when you can copy and paste text – it appears that you are running
@adamrothman you showed that
@mark-rushakoff No, the image is built separately. I built it immediately before posting my comment, using the Dockerfile posted. At the time of writing, 1.3.0 was the latest (this appears to still be the case).
To be certain, I just pulled the latest