Subject Re: [firebird-support] Re: Detect Firebird Server Type
Author Helen Borrie
At 09:16 AM 12/09/2007, you wrote:

>Hang on, ...
>
>gbak -b -se [ServerName]:service_mgr
> [DBFileName]
> [BackupFileName]
> -user [UserName] -password [Password]
>
>works well on Super Server, but it fails on our Classic Server with:
>
>gbak: ERROR: unavailable database
>gbak: Exiting before completion due to errors

Unavailable database means that the Firebird Classic service on the
server is not running or the Firebird service cannot connect to the database.

This syntax works for me on Classic....


>On the other hand ...
>
>gbak -b -se [ServerName]:service_mgr
> [ServerName]:[DBFileName]
> [BackupFileName]
> -user [UserName] -password [Password]
>
>works well on our classic server, as published in your book.

I have the opposite experience. This syntax produces the errors you
describe happening when you use the correct syntax.

> And finally:
>
>gbak -b -se service_mgr
> [ServerName]:[DBFileName]
> [BackupFileName]
> -user [UserName] -password [Password]
>
>has to run into an error:
>
>gbak: ERROR: Cannot attach to services manager
>gbak: Exiting before completion due to errors
>
>as it doesn't know to which remote server to attach to.

That's correct. Each server has its own Services Manager that
operates from its own executable. If you are running two servers,
e.g. both Superserver and Classic on the same host machine, then you
would need to include the port number of the server along with the
hostname, e.g.,

gbak -b -se [ServerName]/9999:service_mgr
[DBFileName]
[BackupFileName]
-user [UserName] -password [Password]


>This brings me back to square one: I need to use different GBAK calls
>depending on the server type (e.g. Classic or Super). Too bad, I
>thought we had solved the case thanks to Alan's help. :-(
>
>Any further ideas?

It seems to me you might have problems with conflicting server
ports. Could that be the case?

./heLen



>Salut,
> Mathias
>
>
>
>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>Visit http://www.firebirdsql.org and click the Resources item
>on the main (top) menu. Try Knowledgebase and FAQ links !
>
>Also search the knowledgebases at http://www.ibphoenix.com
>
>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>Yahoo! Groups Links
>
>
>