Skip navigation
10,151 Views 27 Replies Last post: Aug 19, 2009 5:31 AM by Andy Pardue RSS 1 2 Previous Next
terrysunhh Contributor 18 posts since
Jun 4, 2009
Currently Being Moderated

Jun 5, 2009 12:17 AM

How to configuration OpenVista CIS and Server in windows system?

Hi all,

 

My operation steps:

     1. I download openvistacis-0.9.95-client.zip, openvistaserver-1.5.sp1-cache.zip, openvistaserver-1.5.sp1-globals.zip and openvistaserver-1.5.sp1-routines.zip

     2. I uncompress these zip file to 4 folders

     3. Download and install Cache and create a new namespace named "OPEN", I shut down the Cache and replace cache.dat file with penvistaserver-1.5.sp1-cache.zip, start the Cache.

     4. Run OpenVista CIS application, input login id with "pu1234", password with "pu1234!!", server with my machine name and port with 1972(default.)

 

 

I already installed Gtk# runtime, but when I click connect button, the application gave me a window and say "unable to connect to vista server"?

 

 

 

Thanks.

Jonathan Tai Medspherian 341 posts since
Jul 24, 2008
Currently Being Moderated
1. Jun 5, 2009 1:01 AM in response to: terrysunhh
Re: How to configuration OpenVista CIS and Server in windows system?

terrysunhh wrote:

 

     1. I download openvistacis-0.9.95-client.zip, openvistaserver-1.5.sp1-cache.zip, openvistaserver-1.5.sp1-globals.zip and openvistaserver-1.5.sp1-routines.zip

 

If you're going to run on Cache/Windows, you do not need the globals and routines zip files.

 

terrysunhh wrote:

 

     3. Download and install Cache and create a new namespace named "OPEN", I shut down the Cache and replace cache.dat file with penvistaserver-1.5.sp1-cache.zip, start the Cache.

     4. Run OpenVista CIS application, input login id with "pu1234", password with "pu1234!!", server with my machine name and port with 1972(default.)

 

The port that CIS is looking for is the port of the RPC broker, not the port that Cache listens on for Studio connections.  You need to start the RPC broker, and to do that, you first need to start TaskMan.  Open up the Cache Terminal and run the following:

D START^ZTMB
D ^ZTMON

 

Press ENTER until it says Taskman is current... , then type ^ and press ENTER to exit.  Next, run:

D RESTART^XWBTCP

 

Once this command finishes, the RPC broker should be running on port 9201 (the default port configured in the release).  Enter the host and port 9201 in the CIS login dialog and try connecting again.

 

If you want to change the port, you will need to edit the RPC BROKER SITE PARAMETERS file within OpenVista.

Andy Pardue Medspherian 155 posts since
Sep 11, 2008
Currently Being Moderated
3. Jun 5, 2009 5:23 AM in response to: terrysunhh
Re: How to configuration OpenVista CIS and Server in windows system?

You are probably just in the wrong namespace.  In cache, namespaces are analogous to separate databases within a single database server.  If you know the name of your namespace, you can simply change to it before you execute your statements.  For example, if your desired namespace is "CACHE", you can change to it as follows:

 

USER> ZNSPACE "CACHE"

 

CACHE> D START^ZTMB

 

... the ZNSPACE command can be abbreviated to ZN.

 

If you aren't sure what your namespace is then you can run the ^%CD routine and inputing ? at the namespace prompt and it will show you a list of namespaces:

 

USER> D ^%CD

 

Namespace: ?

 

    '?' for help.
    '@' (at-sign) to edit the default, the last namespace
        name attempted.  Edit the line just as if it were
        a line of code.
    <RETURN> will leave you in the current namespace.
Here are the defined namespaces:
     %SYS
     CACHE
     DEMO
     DOCBOOK
     SAMPLES
     USER

 

... you can enter the name of the desired namespace at the Namespace: prompt and it will change to the requested namespace for you.

 

good luck.

 

Andy

Jonathan Tai Medspherian 341 posts since
Jul 24, 2008
Currently Being Moderated
5. Jun 7, 2009 10:09 PM in response to: terrysunhh
Re: How to configuration OpenVista CIS and Server in windows system?

I don't think I've seen that particular error before - what version of Cache are you using?

Jonathan Tai Medspherian 341 posts since
Jul 24, 2008
Currently Being Moderated
7. Jun 7, 2009 10:24 PM in response to: terrysunhh
Re: How to configuration OpenVista CIS and Server in windows system?

What did you do to fix TaskMan (for the benefit of others who may find this thread in the future)?

 

For the broker problem, have a look at this document and see if it fixes your problem: CPRS can connect, but CIS says "Unable to connect to VistA server"

Jonathan Tai Medspherian 341 posts since
Jul 24, 2008
Currently Being Moderated
9. Jun 7, 2009 10:49 PM in response to: terrysunhh
Re: How to configuration OpenVista CIS and Server in windows system?

Yes, the global and routine mappings are required.

 

I think running STRT^XWBTCP(9201) starts the "old-style" broker.  Try RESTART^XWBTCP instead.

Andy Pardue Medspherian 155 posts since
Sep 11, 2008
Currently Being Moderated
11. Jun 8, 2009 6:20 AM in response to: terrysunhh
Re: How to configuration OpenVista CIS and Server in windows system?

At this point, once you started the old style RPC Broker, its hard for me to tell if the old one is still running or not but it looks like the old style might be.  The first step would be to stop the broker that is running on port 9201.  I'm no expert in this, but I would suppose that if you started the old style with STRT^XWBTCP, then try STOP^XWBTCP and check the port to make sure that no process at all is running on the port.  If this is a development environment, then stoppping and starting cache itself is a brute-force way to do the same thing -- but only if you can do that without disrupting other users, of course.  Once you are sure that nothing is running on port 9201, then, as Jon indicated, start RPCBroker as:

 

D RESTART^XWBTCP

 

... and run taskman as:

 

D ^ZTMB

 

Good luck and let us know if it works or not.

 

Andy

Andy Pardue Medspherian 155 posts since
Sep 11, 2008
Currently Being Moderated
13. Jun 8, 2009 8:37 AM in response to: terrysunhh
Re: How to configuration OpenVista CIS and Server in windows system?

Perhaps your vista instance is configured to run the new style rpc broker on a different port other than 9201?  Sometimes it will be configured for 9021 or 9260, etc.  After starting the new style broker, can you check all your TCP ports for some type of XWBTCP process that is listening and then use that port when you connect from CIS?  I'm hoping that you'll find it running on a different port in the 9xxx range.  Also, when you start CIS, make sure that you are using -proxy-mode builtin as a command line argument.

 

Andy

Jonathan Tai Medspherian 341 posts since
Jul 24, 2008
Currently Being Moderated
14. Jun 8, 2009 8:46 AM in response to: terrysunhh
Re: How to configuration OpenVista CIS and Server in windows system?

Terry, we're going to need some more information to troubleshoot your problem.  Have you reconfigured the broker at all?  (i.e., have you edited the RPC BROKER SITE PARAMETERS file?)  What version of CIS are you running, and with what command-line parameters?

 

TaskMan needs to be running before the RPC broker can run - TaskMan is the one that actually starts and stops the listener.  As Andy mentioned, (and provided you have not edited the RPC BROKER SITE PARAMETERS file) I would:

  1. Shut down Cache.  This ensures any processes (TaskMan or old RPC brokers) are stopped.
  2. Start Cache.
  3. Run D START^ZTMB.  This starts TaskMan.
  4. Run D ^ZTMON to make sure TaskMan says "TaskMan is current...", then use ^ to exit the TaskMan monitor.
  5. Run D RESTART^XWBTCP.  This starts the new-style broker that comes pre-configured in the release.
  6. Connect with CIS using the --proxy-mode builtin flag.  (If you're running the latest release, builtin mode is the default.)

More Like This

  • Retrieving data ...

Bookmarked By (1)