Closed rnowosielski closed 9 years ago
Thanks for the bug report @rnowosielski!
I think a bit more information about your environment would be helpful in reproducing / diagnosing.
Host
vagrant version
vagrant plugin list
Guest
/var/state/vagrant_orchestrate/
? Does it contain any files?I'd be interested to see if you could list the file from the host machine with
vagrant ssh <HOSTNAME> -c "ls /var/state/vagrant_orchestrate/"
Are you running from a git repository? Are you running from the root of the repo? See https://github.com/Cimpress-MCP/vagrant-orchestrate/blob/master/lib/vagrant-orchestrate/repo_status.rb#L24 for a bit more searching you might be able to do.
Thanks!
Host: $ vagrant version Installed Version: 1.7.2 Latest Version: 1.7.2
$ vagrant plugin list vagrant-hostmanager (1.5.0) vagrant-hostsupdater (0.0.11) vagrant-librarian-puppet (0.9.0) vagrant-managed-servers (0.6.2) vagrant-orchestrate (0.6.0) vagrant-share (1.1.3, system) vagrant-winrm-s (0.0.2)
Guest:
$ uname -a
Linux
$ ls -ls /var/state/vagrant_orchestrate/ total 4 4 -rwxrwxrwx 1 vagrant vagrant 236 May 22 14:28 ivbcore
I'm running from the root of my repo, that has been checked out from git repository.
It looks like it is trying to download a directory, and not the file specific to the ivbcore
repository
DEBUG print_status: remote file: /var/state/vagrant_orchestrate/
DEBUG print_status: local file: C:/Users/rnowosielski/.vagrant.d/tmp/<HOSTNAME>_status
DEBUG ssh: Downloading: /var/state/vagrant_orchestrate/ to C:/Users/rnowosielski/.vagrant.d/tmp/<HOSTNAME>_status
Can you run this command from the root of your repo, please?
git config --get remote.origin.url
I'm trying to find out whether it doesn't know about your git repo or if there is something cross-wired.
I get no output:
E:\workspace\ivbcore>git config --get remote.origin.url
E:\workspace\ivbcore>
... and that made me realise, that I don't have a remote called origin
I am working on a repository that has 2 different remotes, and none of them is called origin
That'll do it, the software currently naively assumes that there is an origin remote and that parsing the URL of that will produce the repository name. I don't think that is a good requirement. Would you be willing to run the following from the root of your git repo to ensure that it prints the repository name correctly?
> irb
irb(main):001:0> File.basename(`git rev-parse --show-toplevel`)
I would expect something like `=> "ivbcore\n""
Thanks!
On Sun, May 24, 2015 at 9:50 AM, Rafal Nowosielski <notifications@github.com
wrote:
I get no output:
E:\workspace\ivbcore>git config --get remote.origin.url
E:\workspace\ivbcore>
... and that made me realise, that I don't have a remote called origin I am working on a repository that has 2 different remotes, and none of them is called origin
— Reply to this email directly or view it on GitHub https://github.com/Cimpress-MCP/vagrant-orchestrate/issues/29#issuecomment-105019196 .
E:\workspace\ivbcore>irb
irb(main):001:0> File.basename(`git rev-parse --show-toplevel`)
=> "ivbcore\n"
irb(main):002:0>
Released version 0.6.2 to correct this issue. Please let me know if it doesn't work.
When trying to use the plugin on Windows 7 with cygwin the command
vagrant orchestrate status
returns error.==>: Error downloading status for devwtrmibivb001.vistaprint.svc.
==> : SCP did not finish successfully (1)
vagrant orchestrate push
works correctly though. Both machines havescp
available in the path.Below is the log from running the command with
--debug