public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: The General <the.third.general@gmail.com>
To: cygwin@cygwin.com
Subject: Issue while running Visual Studio's devenv through ssh
Date: Fri, 15 May 2015 19:18:00 -0000	[thread overview]
Message-ID: <CAKA7CgOLyixr3O1yzR+JoYdoOZxoiAzA_OhL5haGCBOy5-6C6A@mail.gmail.com> (raw)

I have some code that needs to be built on a windows machine (W), but
my primary development/deploy environment is an Ubuntu server (U). The
goal is to fully automate the build/deploy process so that it can be
kicked off from U.

Before I describe the problem let me explain my process.

U is an Ubuntu 12.04.5 VM running on ESXI
W is a Windows 7 VM (Version 6.1.7601) running on ESXI, it has Cygwin
installed (with the openssl and git packages included) and UAC
disabled.

I am running the following command from U:
ssh win_user@1.2.3.4 'cd
/cygdrive/c/Users/win_user/git_repo/windows_code && ./build.bat'
I have set up public key authentication from U to W, but I also
experience the below issue when I include the '-o
PreferredAuthentications=password' switch.

build.bat is stored locally on W and looks like this:
@echo off
git pull
call "C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\vcvarsall.bat" amd64
devenv /nologo "windows_code.sln" /Build "Release|x64"
The git pull command is pulling changes from a remote git server (G).
I have also set up public key authentication from W to G, disabling
this doesn't seem to have any effect.

The problem:
After I got the above working I took a snapshot of W. If I reset to
that snapshot and run the ssh command on U everything works. If I
leave W idle for a few hours and try again I get the following from
devenv:
1>------ Rebuild All started: Project: windows_code, Configuration:
Release x64 ------
1>  Stdafx.cpp
1>Stdafx.cpp : fatal error C1902: Program database manager mismatch;
please check your installation

Right now I'm at a loss as to why this will work after a snapshot
reset, but will stop working if the machine is left alone for awhile.
Resetting to the most recent snapshot, rebooting the VM, and then
running the ssh command from U will also generate the above error.

A temporary solution is to manually reset the VM before kicking off
the job, but I'd like to figure out why it stops working after awhile.

Any feedback is much appreciated, and if anyone needs more information
please don't hesitate to ask.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

             reply	other threads:[~2015-05-15 19:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-15 19:18 The General [this message]
2015-05-15 19:25 ` Warren Young
2015-05-18 15:33 ` The General
2015-05-27 12:09   ` Corinna Vinschen
2015-05-22 20:21 ` David Macek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKA7CgOLyixr3O1yzR+JoYdoOZxoiAzA_OhL5haGCBOy5-6C6A@mail.gmail.com \
    --to=the.third.general@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).