{"action":"opened","issue":{"url":"https://api.github.com/repos/NixOS/nixops/issues/261","labels_url":"https://api.github.com/repos/NixOS/nixops/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixops/issues/261/comments","events_url":"https://api.github.com/repos/NixOS/nixops/issues/261/events","html_url":"https://github.com/NixOS/nixops/issues/261","id":56143794,"number":261,"title":"Cannot (re)deploy old deployment (missing \"backing file\")","user":{"login":"bjornfor","id":133602,"avatar_url":"https://avatars.githubusercontent.com/u/133602?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornfor","html_url":"https://github.com/bjornfor","followers_url":"https://api.github.com/users/bjornfor/followers","following_url":"https://api.github.com/users/bjornfor/following{/other_user}","gists_url":"https://api.github.com/users/bjornfor/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornfor/subscriptions","organizations_url":"https://api.github.com/users/bjornfor/orgs","repos_url":"https://api.github.com/users/bjornfor/repos","events_url":"https://api.github.com/users/bjornfor/events{/privacy}","received_events_url":"https://api.github.com/users/bjornfor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-31T23:16:31Z","updated_at":"2015-01-31T23:16:31Z","closed_at":null,"body":"I created a nixops deployment some time ago (~2 months). Now I cannot start/deploy it anymore, because of what looks like garbage collection having removed the \"backing file\":\r\n\r\n```\r\n$ nixops deploy -d trivial\r\nmachine> error: Failed to create domain from /tmp/nixops-tmpBdXUKd/machine-domain.xml\r\nmachine> error: Cannot access backing file '/nix/store/nmg8c0b84b5mx1f24l9vqkj2fz9rmpyg-libvirtd-ssh-image/disk.qcow2' of storage file '/home/bfo/nixops-libvirt-images/nixops-60d1a626-8635-11e4-bbc6-00012e496794-machine.img' (as uid:0, gid:0): No such file or directory\r\nmachine> \r\nerror: command ‘['virsh', '-c', 'qemu:///system', 'create', '/tmp/nixops-tmpBdXUKd/machine-domain.xml']’ failed on machine ‘machine’ (exit code 1)\r\n```\r\n\r\nHow to rebuild the missing \"backing file\"? Shouldn't nixops do this automatically?\r\n\r\nI looked at the available options for the \"deploy\" command, in case there was some option to rebuild the \"backing file\" or something. I tested \"nixops deploy -d trivial --repair\" (and --allow-recreate), but that didn't fix it.\r\n\r\n\"nixops start -d trivial\" prints the same message (missing backing file).\r\n\r\nI'm running nixops-1.3pre1362_2a616f8."}}