Omnis app server deployment

Mike Matthews - Omnis omnis at lineal.co.uk
Sat Aug 31 08:20:15 UTC 2024


Hello Martin,

You can set the port number in the Prefs pane, and by notation.

$root.$prefs.$serverport

Mike Matthews

Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>

omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>

www.lineal.co.uk<http://www.lineal.co.uk/>

www.sqlworks.co.uk<http://www.sqlworks.co/>



On 31 Aug 2024, at 08:57, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com<mailto:omnisdev-en at lists.omnis-dev.com>> wrote:

Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.



Hi Joe,

I'm no expert in port numbering but that "53666" honestly was a guess and it worked. But now the port is not working. It seems like the port assignments keep changing on my windows 10 OS. Also, don't you think if I assign the port to default to 0, then Omnis would automatically assign it to any other available port. Right? Wrong?

Kind regards,Martin Obongita.


   On Saturday, August 31, 2024 at 01:09:02 AM GMT+3, Joe Maus <jmaus at theccgllc.com<mailto:jmaus at theccgllc.com>> wrote:

Hi,

It sounds like some other program is grabbing the port you need to listen on.  If you have the Omnis SDK and a app server installed on the same machine, make sure they are using different ports for the each application or make sure both are not running at the same time as otherwise one will be very unhappy network wise if you're trying to debug issues on the server via the dev kit with the server running.

So, I'd make sure the port is free by checking if anyone else has the port of interest.

If using Windows:
From the Window's command prompt you can run the following to determine what other apps might be interfering with your installation.

   netstat -aon | findstr : <PortNumber>. (Without the <>)

Or download the TCPView utility from MS at: learn.microsoft.com/en-us/sysinternals/downloads/tcpview<http://learn.microsoft.com/en-us/sysinternals/downloads/tcpview> for a bit more helpful view of who's using what port (it will tell you the process names using each port).

If using Linux or Mac OS:

   sudo netstat -tuln | grep <PortNumber> (Again don't type the <>)
Or:
   sudo lsof -i :<PortNumber>. (Again don't type the <>)

Or install Wireshark on any OS and set it up to listen on the port of interest and see if your expected data is coming across the network as expected on that port.  Or to see if something else is communicating on the port.

I would avoid using port 0 as that's not a standard port to use.  I'd go back to the server setup and set it up to use the port you have set in the htm files you're looking to test. Your mentioned previous you had your .htm files configured like this:

   data-omnisserverandport="53666"

So, the server itself should be listening on 53666.  Make sure there is not a firewall rule blocking access too.

Kind regards,

Joe Maus
The Convergent Consulting Group, LLC
jmaus at theccgllc.com<mailto:jmaus at theccgllc.com>
303-349-6696




On Aug 30, 2024, at 4:23 PM, Martin Obongita via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:

Omnis app server stopped working, again. Port number is set 0. No remote form is opening when I run the app. Why is Omnis 10.22 this difficult to deploy?




    On Monday, August 26, 2024 at 09:29:54 PM GMT+3, Andrew Stolarz <stolarz at gmail.com> wrote:

Martin, the port number should not be set to zero for it to work.... it
means that another omnis copy is running and serving using that port.

I would look into what I said... I would turn that off, and then set your
port back in your app to make it work again.


- Is this a windows server? if I recall correctly, during the app server
install process it asks if you want to install the omnis windows service (i
think its on by default). If you are not using this deployment method, try
turning it off (the windows services), and then launch your omnis app
server etc.



Andrew


On Mon, Aug 26, 2024 at 2:26 PM Martin Obongita via omnisdev-en <
omnisdev-en at lists.omnis-dev.com> wrote:

  Stop Everyone, STOP!
The dataGrid has just displayed the data after I changed the port number
in the server configuration to 0. Very "weid" behaviour from Omnis app
server.I can't explain what really happened. But it is now working. The
datagrid is diplaying all the records. @Caroline could be right that there
is a bug hidden somewhere in the app server installation.
Thank you all for chipping in your ideas. I'm now good to go.
Kind regards, Martin



    On Monday, August 26, 2024 at 09:06:05 PM GMT+3, jim jpcr.com <
jim at jpcr.com> wrote:

  Hi Martin,
Not so much the .htm files, but maybe there are older versions of .css or
.js files lurking in your app server environment.
Jim

--
Jim Pistrang
JP Computer Resources
413-237-5710
<https://jpcr.com>

On Aug 26, 2024, at 11:29 AM, Martin Obongita <martin.obongita at yahoo.com>
wrote:
I have copied over all the htm file from /html folder into the server
folder. The forms are many, so only updated the data parameters for the
forms I want to test. Could this be the cause of the issues? that all the
forms must be updates the
<div id="omnisobject1" style="position:absolute; top:0; left:0;
width:_BW_; height:_BH_;"data-webserverurl="127.0.0.1:53666
"data-omnisserverandport="53666"data-omnislibrary="email_payslip"data-omnisclass="jsemailpayslip"data-themename="default"data-appid="email_payslip.jsemailpayslip"data-dss=""data-param1=""data-param2=""data-commstimeout="0"></div>
Regards

On Monday, August 26, 2024 at 06:07:45 PM GMT+3, jim jpcr.com <
jim at jpcr.com> wrote:

Hi Martin,
Another thing to check - make sure you have the correct versions of the
files in your app server /html folder environment.  They should match what
you have in your developer environment.
Jim

--
Jim Pistrang
JP Computer Resources
413-237-5710
<https://jpcr.com>

On Aug 26, 2024, at 10:47 AM, Martin Obongita via omnisdev-en <
omnisdev-en at lists.omnis-dev.com> wrote:
Yes. $columndatacol are assigned values. Values are local variables
defined in the instance list variable. I'm using 10.22 web dev. 216 records
display in the datagrid when I test the form. Deploying is when it does not
display the records. The entry field iList.$linecount shows 216 records
fetched when I run in the app server.

Regards, Martin.

    On Monday, August 26, 2024 at 05:33:58 PM GMT+3, Andrew Stolarz <
stolarz at gmail.com> wrote:

I'm assuming you also have $columndatacol set for each column?


What version of omnis are you using?



Andrew



On Mon, Aug 26, 2024 at 10:22 AM Martin Obongita via omnisdev-en <
omnisdev-en at lists.omnis-dev.com> wrote:


  Hi Andrew,
Yes. This is the exact document I have been following to deploy the in the
app server. I have setup the data arameters in the htm pages. The server is
connecting to a postgresql database through an assigned port. The remote
forms opens okay displaying the buttons objects correctly. I have also
created an entry field to display the total number of records fetched in
the database. And indeed it shows 216 records. But for some strange reason,
the datagrid will not display the fetched data. I have assigned the
$dataname property to the iDataList. Are there properties in the DataGrid
that could possibly hide data display? My question still remains how a
window can display data perfectly fine in development mode but fail to
display in deployment. The database server is connected. The remote form is
opening. and the data is fetched correctly.
Regards, Martin.


    On Monday, August 26, 2024 at 04:42:26 PM GMT+3, Andrew Stolarz <
stolarz at gmail.com> wrote:

  Martin,

Have you looked at the following tech note?

https://www.omnis.net/developers/resources/technotes/tnjs0003.jsp


Developer and app server deployments are two completely different setups,
so yes one can work and not the other if not set up correctly.


Andrew



On Mon, Aug 26, 2024 at 9:28 AM Martin Obongita via omnisdev-en <
omnisdev-en at lists.omnis-dev.com> wrote:


  Thanks Caroline,
Is it possible for a remote form to run perfectly okay in development
environment but would fail in deployment? I thought the reason why we

test

the window in development mode is to ensure there are no bugs/breakpoints
before rolling out to deployment? I'm wrong in my thinking?
Martin.



    On Monday, August 26, 2024 at 12:47:12 AM GMT+3, Dr Caroline Wilkins <
caroline at ib2bsystems.com> wrote:

  It's hard to tell without getting in there and exploring the situation
but these would be the first 2 things I would do:

1) Check you haven't got a breakpoint in there that has been hit and is
preventing the methods from completing and providing data to the form.

2) Golden rule of Omnis: When it does mad stuff, restart it. You'd be
amazed how many strange problems that has fixed for me over the years!

If those 2 ideas don't resolve the problem, I would be placing a
breakpoint and stepping through to check the data is being fetched for
that datagrid.

Good luck!

Caroline



On 25/08/2024 22:25, Martin Obongita via omnisdev-en wrote:

Hello $Omnis Gurus,

I have copied the js htm files over in the html folder in the Omnis

installation folder. I then edit the htm files <div id="omnisobject1"

data

parameters>. I copy the library I am testing into the startup folder. The
server configuration is setup and the synchronization server is connected
to the database. If I run the Omnis app server, the remote form opens

okay.

Buttons are visible and enabled. The datagrid object is visible and

enable

but it does not display data. Though the entry field object with
iList.$linecount displays 216 records. $dataname property for the

datagrid

is iLine. If I test in the web dev environment, the datagrid displays all
the 216 records. Only in deployment mode does the datagrid refuse to
display the data. Any hints on where I could check for a solution?


Kind regards, Martin Obongita.

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com


_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com


_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com





_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list