Multiple Nav x.xx Servers on one PC

MethosMethos Member Posts: 46
edited 2007-01-05 in Navision Attain
I`m trying to get a new Nav 3.01 server running on my PC. I already have 3 other servers running(Different versions of navision).

My hosts and services are setup, and i am able to ping my new server, but I seem to have run out of ports to use.

Annybody got some advice ?

[EDIT]
[SOLUTION]
kriki wrote:

Read the how to carefully it works great. Check the attached commands also for the correctness of your commands :!:

Answers

  • WaldoWaldo Member Posts: 3,412
    Methos wrote:
    I`m trying to get a new Nav 3.01 server running on my PC. I already have 3 other servers running(Different versions of navision).

    My hosts and services are setup, and i am able to ping my new server, but I seem to have run out of ports to use.

    Annybody got some advice ?

    Ran out of ports??
    Which port numbers do you use?

    We have 20 db servers using on our machine... .

    Can you send a snippet of the host and services file?

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • GoMaDGoMaD Member Posts: 313
    Could it be that you have a firewall program on your server?
    Now, let's see what we can see.
    ...
    Everybody on-line.
    ...
    Looking good!
  • DenSterDenSter Member Posts: 8,307
    Methos wrote:
    I seem to have run out of ports to use.
    You can use any port number that you want, so I doubt you ran out of them. There are restrictions, of course (which I don't know) but for this purpose you will have enough prt numbers to choose from. I think the defaul number is 2407, and you can increment that number for additional NAV database servers.
  • MethosMethos Member Posts: 46
    After doing some research on the forum I dont think that it is the ports.

    I`ll try getting a port scanner to find some open ports.

    My Command i use to start the server keeps returning error that port is in use, no matter what port I try.

    Here are the relevant parts of the hosts and services files and the command I use to start the server.

    HOSTS

    127.0.0.1 localhost
    10.10.10.11 ATB
    10.10.10.11 Wil-PC
    10.10.10.11 W-PC
    10.10.10.126 OZZSERVER
    10.10.10.126 NAV 4.1 Server
    10.10.10.126 OZZNAV3.01SERVER

    SERVICES

    Wil-PC 2407/tcp
    Bert-PC 2408/tcp
    OZZServer 2409/tcp
    NAV 4.1 Server 2410/tcp
    370A 2411/tcp
    OZZNAV3.01SERVER 2412/tcp

    COMMAND.BAT

    :Begin
    c:
    cd Program Files\Navision Attain 3.01A W1\SERVER
    server servername=OZZNAV3.01SERVER,nettype=tcp,commitcache=yes,database=E:\OZZ Nav 3.01A SERVER\OZZ.fdb
    pause
    :end
  • WaldoWaldo Member Posts: 3,412
    It's odd that you have multiple IP-addresses in your HOST file.

    Try to change your host file to this (for getting service "OZZNAV3.01SERVER" to work):

    127.0.0.1 localhost OZZNAV3.01SERVER
    10.10.10.11 ATB
    10.10.10.11 Wil-PC
    10.10.10.11 W-PC
    10.10.10.126 OZZSERVER
    10.10.10.126 NAV 4.1 Server

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • krikikriki Member, Moderator Posts: 9,115
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • MethosMethos Member Posts: 46
    Thanks kriki, I found that How to yesterday. I followed the instructions but the cmd`s does not start a new service. I did not install the versions from the cd`s, Copied files from other PC. The server start command starts the server but the command window has to stay open otherwise it stops, i.e a manual server start command.

    Waldo I tried edditing the host like said but it didn`t work.

    As for the other IPs in the host, it was setup that way when I got the PC, (second hand). The other Ips also have navision servers running on them. Is it really nessacerry for those IPs to be in my hosts file?

    I tried removing the other hosts but no results.
  • WaldoWaldo Member Posts: 3,412
    The Host file is just there to link a "name " to an "ip" for that machine. If you connect to "OZZSERVER", it'll connect to "10.10.10.126".

    So, if you try to install on your local machine, on another port than the default, you have to use the services file to link a port to a name, and the host file to link the name to an Ip. That way, the name links to an IP and a Port. then, you can use this name to set up your database server.

    I have one small remark:
    In the services file, the ports should be in order, so you can't put your additional ports at the end of the file.
    Other thing (which is a bit out of the blew): do not use tabs in the services file, use spaces to order the file. I had an issue once, which was solved by using spaces in stead of tabs... . I still find it a bit unbelievable, but still, it's worth trying... .

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • MethosMethos Member Posts: 46
    Thanks lots Waldo.

    One of ports in the services folder was out of sequence, my predesessor on the PC seems to have neglected it.

    But now I am confused, how dit the other servers I had work, even though the ports where out of sequence? :-k .

    Now it is only to get the services for all of these to regester so I dont have to start them manually each time my PC shuts down, and off course the irritating command prompt constantly open on my task bar.
  • krikikriki Member, Moderator Posts: 9,115
    Methos wrote:
    Thanks kriki, I found that How to yesterday. I followed the instructions but the cmd`s does not start a new service. I did not install the versions from the cd`s, Copied files from other PC. The server start command starts the server but the command window has to stay open otherwise it stops, i.e a manual server start command.
    Did you add the INSTALLASSERVICE-parameter?
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • MethosMethos Member Posts: 46
    Did you add the INSTALLASSERVICE-parameter?

    Yup i did, here is the command.
    server servername=OZZNAV3.01SERVER,nettype=tcp,commitcache=yes,CACHE=10000
    database="E:\OZZ Nav 3.01A SERVER\OZZ Foundries.fdb", INSTALLASSERVICE
    net start OZZNAV3.01SERVER
  • WaldoWaldo Member Posts: 3,412
    Check the service, and see that it is started with the "localsystem" account. (should be with 3.x versions :-k ).

    What is the output of the command in the dos-box?

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • MethosMethos Member Posts: 46
    Waldo:
    There is no service I can see to check if it is localsystem or not. Maybe i`m just missing it.
    I have a couple of MBS services that fail to start and are bassically useless, having trouble removing them. How do I delete them?

    The result of the dos window is - It runs through all the parameters of the command etc. and then gives the following text at the end:

    Database server successfully started.
    Press ESC to shut down the server.
  • krikikriki Member, Moderator Posts: 9,115
    Methos wrote:
    Did you add the INSTALLASSERVICE-parameter?

    Yup i did, here is the command.
    server servername=OZZNAV3.01SERVER,nettype=tcp,commitcache=yes,CACHE=10000
    database="E:\OZZ Nav 3.01A SERVER\OZZ Foundries.fdb", INSTALLASSERVICE
    net start OZZNAV3.01SERVER
    Between the "CACHE=10000" and the "database=", there should be a comma and they should be on the same line.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • WaldoWaldo Member Posts: 3,412
    Methos wrote:
    The result of the dos window is - It runs through all the parameters of the command etc. and then gives the following text at the end:

    Database server successfully started.
    Press ESC to shut down the server.

    Strange, this is the output when the "installasservice" is left out ... .
    So it's normal that there is no service ... .

    This is a long shot:
    execute this:
    server servername=OZZNAV3.01SERVER,nettype=tcp,commitcache=yes,CACHE=10000, database="E:\OZZ Nav 3.01A SERVER\OZZ Foundries.fdb"
    the database should be started.
    press ESC and ENTER to stop the database server
    then type this:
    server installasservice
    Check your services and pray [-o<

    I noticed there was no comma between "cache" and "database", but i suppose that was a "typo"?

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • WaldoWaldo Member Posts: 3,412
    Ah, sorry kriki, posting at the same time ... :lol:

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • MethosMethos Member Posts: 46
    #-o 8-[
    Thanks, it works perfectly now, stupid mistake.

    Thanks for all the help Waldo and Kriki. =D>
Sign In or Register to comment.