question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

site restore error - 'docker: invalid reference format'

See original GitHub issue

Description of the issue

I’m trying to restore a site by running the below command as mentioned in the docs:

docker run -e "MYSQL_ROOT_PASSWORD=admin" -e "BUCKET_NAME=backups" -e "BUCKET_DIR=frappe-bench" -v custom_frappe_docker_sites-vol:/home/frappe/frappe-bench/sites -v ./backups:/home/frappe/backups --network custom_frappe_docker_default frappe/frappe-worker:$FRAPPE_VERSION restore-backup

but I’m getting this error:

docker: invalid reference format

Context information (for bug reports)

Steps to reproduce the issue

  1. Copy the backup files in the mounted volume
  2. Run the command to restore the site from the backups folder
  3. Observe the issue

Observed result

docker: invalid reference format

Expected result

Should be able to restore the site from the backup files

Stacktrace / full error message if available

bash$ docker run -e "MYSQL_ROOT_PASSWORD=admin" -e "BUCKET_NAME=backups" -e "BUCKET_DIR=frappe-bench" -v custom_frappe_docker_sites-vol:/home/frappe/frappe-bench/sites -v custom_frappe_docker_sites-vol:/home/frappe/backups --network custom_frappe_docker_default frappe/frappe-worker:${FRAPPE_VERSION} restore-backup
docker: invalid reference format.
See 'docker run --help'.

note: I didn’t built the containers using the --project-name, instead I built the containers by running this: docker compose up

Should I be doing something else?

CC: @revant

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
revantcommented, Feb 20, 2022

should I update site config also manually?

yes. you can do that manually or use bench set-config command

0reactions
saru2020commented, Feb 20, 2022

thank you @revant for these insights.

another unrelated question: how should i configure ‘site_config.json’ ?

should I update site config also manually?

Read more comments on GitHub >

github_iconTop Results From Across the Web

error: docker: invalid reference format. · Issue #1 - GitHub
Hi there, I'm trying to run blobtoolkit in a docker container locally by modifying your suggested code. Here's what I'm entering: docker run...
Read more >
How to fix docker error invalid reference format error? - Jhooq
In this blog post we will look on ways to fix the docker error invalid reference format error. If you look at the...
Read more >
Docker-compose error: invalid reference format - Stack Overflow
It turns out that by repository it meant 'service'. I updated service name as show bellow and it works.
Read more >
How to fix 'docker: invalid reference format.' - TechOverflow
Solution: Docker is telling you that the syntax of the docker image name (& version) is wrong. Note that this is not the...
Read more >
failed to build: Error parsing reference: "microsoft/aspnetcore ...
Hi, I got this error when running vsts build using Hosted Linux Preview build agent. The same dockerfile works fine 3 days before....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found