Re: 4Dv15 applications as a Service in Windows Server 2012
Hi Justin, The SET ABOUT command is not used in this app. When testing David’s suggestion, I had also tested running the service both with and without checking the “Allow Service to interact with desktop” checkbox to no avail. I think I’ll just have to weigh between running v15.5 Server (32-bit) as a Windows Service OR v15.5 Server (64-bit) as a direct application. One of the reasons why we are transitioning from v11 to v15 is that the data size is growing while the hardware server had started to show signs of lagging. The speed gain from the 64-bit 4D Server would surely come in handy while on the support side, the user’s IT would much prefer a setup where the database can easily be restarted via an automatic Windows service (which is where the 32-bit 4D Server would tick the boxes)….. Regards, Ronnie > On 13 Sep 2018, at 4:34 PM, 4ustinc...@geniesolutions.com.au wrote: > > > I'm also chiming in late on this one but it sounds similar to an issue we > encountered with v16R3. The application would crash when run as a service > when calling SET ABOUT during the server startup. I think you could avoid the > crash by ticking the "Allow service to interact with desktop" checkbox, or by > removing the call to SET ABOUT. > > cheers > J > ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
On 13 Sep 2018, at 5:14 pm, Ronnie Teo via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Hi David, > > Thanks for your tip. > I have conducted the test as per your suggestion and from the results of the > test, it does not appear to be a firewall problem. > > a) 4Dv15.5 (32-bit) - server app launched directly - database server appears > on Available tab on Client (works OK) > b) 4Dv15.5 (32-bit) - server app run as Windows service - database server > appears on Available tab on Client (works OK) > c) 4Dv15.5 (64-bit) - server app launched directly - database server appears > on Available tab on Client (works OK) > > d) 4Dv15.5 (64-bit) - server app run as Windows service - Available tab on > Client is empty (does NOT work) > > For the failed service (d), when I highlight the service it shows that the > service is running. > Further examination of the service properties shows that the service is NOT > running or has stopped. > I have to click the Start button again and even then, the available tab on > the client is still blank, connection fails. I'm also chiming in late on this one but it sounds similar to an issue we encountered with v16R3. The application would crash when run as a service when calling SET ABOUT during the server startup. I think you could avoid the crash by ticking the "Allow service to interact with desktop" checkbox, or by removing the call to SET ABOUT. cheers J ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
Hi David, Thanks for your tip. I have conducted the test as per your suggestion and from the results of the test, it does not appear to be a firewall problem. a) 4Dv15.5 (32-bit) - server app launched directly - database server appears on Available tab on Client (works OK) b) 4Dv15.5 (32-bit) - server app run as Windows service - database server appears on Available tab on Client (works OK) c) 4Dv15.5 (64-bit) - server app launched directly - database server appears on Available tab on Client (works OK) d) 4Dv15.5 (64-bit) - server app run as Windows service - Available tab on Client is empty (does NOT work) For the failed service (d), when I highlight the service it shows that the service is running. Further examination of the service properties shows that the service is NOT running or has stopped. I have to click the Start button again and even then, the available tab on the client is still blank, connection fails. In the event that I have to give up on the 64-bit version of 4Dv15.5 server, what else will I lose by deploying the 32-bit version? Regards, Ronnie Tarawerkz > On 12 Sep 2018, at 10:35 PM, David Samson wrote: > > Hello Ronnie, > > Sorry to come in on this one late but I have been away. We had a similar > problem and it turned out to be the Windows firewall settings. Each program > needs explicit firewall rules to allow it to publish. > > One quick way to verify this is to run 4D client on the server. If that > connects OK then it is just being blocked on the network. > > HTH > David > Manchester > UK > > > > Message: 1 > Date: Mon, 10 Sep 2018 12:21:23 +0800 > From: Ronnie Teo mailto:ron...@tarawerkz.com>> > To: Jim Hays mailto:jgha...@gmail.com>> > Cc: 4D iNug Technical <4D_Tech@lists.4D.com <mailto:4D_Tech@lists.4D.com>> > Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 > Message-ID: <112a686e-7a46-4d46-976a-c2c62527c...@tarawerkz.com > <mailto:112a686e-7a46-4d46-976a-c2c62527c...@tarawerkz.com>> > Content-Type: text/plain; charset=gb2312 > > Hi Jim & Paul, > > This is my finding after testing over the weekend with Windows Server 2012 > and 4Dv15.5. > > Running a v15 app with 4Dv15.5 (64bit) as a Windows service does NOT work. > Running the same app with 4Dv15.5 (32bit) as a Windows DOES work. > > In the latter scenario, the database name appears in the Available tab on the > client software and we are able to log in and use the app as per normal. > > I do not understand why it does not work with the 64-bit version. > But my next question would be, what do we give up by not using the 64-bit > version of 4Dv15.5? > > Regards, > Ronnie > > -- > D Samson ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
Hi vance, I have tried a test as per the KB note. Results are similar as per previous tests… Running a v15 app with 4Dv15.5 (64bit) as a Windows service does NOT work. Running the same app with 4Dv15.5 (32bit) as a Windows service DOES work. If I were to forgo the use of the 64-bit version of the v15.5 server, what do I lose? Regards, Ronnie > On 11 Sep 2018, at 11:02 PM, Vance Villanueva wrote: > > Hi Ronnie, > > Please take a look at this KB in regards to Windows Server 2012: > > http://kb.4d.com/assetid=77139 <http://kb.4d.com/assetid=77139> > > Regards, > > Vance Villanueva > > > > > Vance Villanueva > Technical Services Engineer > Telephone : +1-408-557-4600 > Email : vvillanu...@4d.com <mailto:vvillanu...@4d.com> > Web : www.4D.com <http://www.4d.com/> > 4D inc > 95 S. Market Street, Suite #240 > CA 95113 San Jose - United States > Standard :+1-408-557-4600 > Fax : +1-408-271-5080 > <http://bit.ly/2L7fr94> > > > > > > > > > > > > > > > > > > > > > > From: Ronnie Teo [mailto:ron...@tarawerkz.com] > Sent: Tuesday, September 11, 2018 12:30 AM > To: Vance Villanueva > Cc: 4D iNug Technical > Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 > > Hi Vance, > > Yes, I have done that more than a few times. > > Regards, > Ronnie > Tarawerkz > > > On 11 Sep 2018, at 2:53 AM, Vance Villanueva <mailto:vvillanu...@4d.com>> wrote: > > Hi Ronnie, > > Have you tried unregistering the service and re-registering it? > > http://kb.4d.com/assetid=2 <http://kb.4d.com/assetid=2> > > > Regards, > > Vance Villanueva > > > > Vance Villanueva > Technical Services Engineer > > 4D Inc > 95 S. Market Street, Suite #240 > CA 95113 San Jose > United States > > Téléphone : +1-408-557-4600 > Standard : +1-408-557-4600 > Fax : +1-408-271-5080 > Email : vvillanu...@4d.com <mailto:vvillanu...@4d.com> > Web : www.4D.com <http://www.4d.com/> > > > > > > -Original Message- > From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com > <mailto:4d_tech-boun...@lists.4d.com>] On Behalf Of Ronnie Teo via 4D_Tech > Sent: Sunday, September 09, 2018 9:21 PM > To: Jim Hays > Cc: Ronnie Teo; 4D iNug Technical > Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 > > Hi Jim & Paul, > > This is my finding after testing over the weekend with Windows Server 2012 > and 4Dv15.5. > > Running a v15 app with 4Dv15.5 (64bit) as a Windows service does NOT work. > Running the same app with 4Dv15.5 (32bit) as a Windows DOES work. > > In the latter scenario, the database name appears in the Available tab on the > client software and we are able to log in and use the app as per normal. > > I do not understand why it does not work with the 64-bit version. > But my next question would be, what do we give up by not using the 64-bit > version of 4Dv15.5? > > Regards, > Ronnie > > > On 7 Sep 2018, at 7:59 PM, Jim Hays <mailto:jgha...@gmail.com>> wrote: > > Just to be clear, these are our steps. It may or may not be helpful in your > case. > > When we set up a built 4D server, we usually are logged in to the machine > with an Administrator level account. > Then we launch our built EXE by running As Administrator. (I think we have > to do this). > Once it is launched, we register the service using the 4D menu item. > > On two Win 2012 servers, we had to change the login account for the service > to a different user. > We were told that the "localsystem" account does not normally support network > services. > In most cases we just leave it as localsystem and it works fine. > > > Separately, Paul may be on the right track. Maybe the service launches, but > 4D is stopped when looking for the 4DC, or the data file, or something else > on startup. > > Consider looking at the 4D Folder where the Plugins are cached. It is > different (I think) when running as a service or running double-clicked. At > least we always see the that cache being rebuilt if we connect from a 4D > remote first one way, then the other. > Maybe 4D can't write to the 4D folder location when running as a service. > > Jim > > > > On Thu, Sep 6, 2018 at 11:32 PM Ronnie Teo <mailto:ron...@tarawerkz.com><mailto:ron...@tarawerkz.com > <mailto:ron...@tarawerkz.com>>> wrote: > Hi Jim, > > I’m testing both under the same account. > Do
RE: 4Dv15 applications as a Service in Windows Server 2012
Hi Ronnie, Please take a look at this KB in regards to Windows Server 2012: http://kb.4d.com/assetid=77139 Regards, Vance Villanueva From: Ronnie Teo [mailto:ron...@tarawerkz.com] Sent: Tuesday, September 11, 2018 12:30 AM To: Vance Villanueva Cc: 4D iNug Technical Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 Hi Vance, Yes, I have done that more than a few times. Regards, Ronnie Tarawerkz On 11 Sep 2018, at 2:53 AM, Vance Villanueva mailto:vvillanu...@4d.com>> wrote: Hi Ronnie, Have you tried unregistering the service and re-registering it? http://kb.4d.com/assetid=2 Regards, Vance Villanueva Vance Villanueva Technical Services Engineer 4D Inc 95 S. Market Street, Suite #240 CA 95113 San Jose United States Téléphone : +1-408-557-4600 Standard : +1-408-557-4600 Fax : +1-408-271-5080 Email : vvillanu...@4d.com<mailto:vvillanu...@4d.com> Web : www.4D.com<http://www.4d.com/> -Original Message- From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Ronnie Teo via 4D_Tech Sent: Sunday, September 09, 2018 9:21 PM To: Jim Hays Cc: Ronnie Teo; 4D iNug Technical Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 Hi Jim & Paul, This is my finding after testing over the weekend with Windows Server 2012 and 4Dv15.5. Running a v15 app with 4Dv15.5 (64bit) as a Windows service does NOT work. Running the same app with 4Dv15.5 (32bit) as a Windows DOES work. In the latter scenario, the database name appears in the Available tab on the client software and we are able to log in and use the app as per normal. I do not understand why it does not work with the 64-bit version. But my next question would be, what do we give up by not using the 64-bit version of 4Dv15.5? Regards, Ronnie On 7 Sep 2018, at 7:59 PM, Jim Hays mailto:jgha...@gmail.com>> wrote: Just to be clear, these are our steps. It may or may not be helpful in your case. When we set up a built 4D server, we usually are logged in to the machine with an Administrator level account. Then we launch our built EXE by running As Administrator. (I think we have to do this). Once it is launched, we register the service using the 4D menu item. On two Win 2012 servers, we had to change the login account for the service to a different user. We were told that the "localsystem" account does not normally support network services. In most cases we just leave it as localsystem and it works fine. Separately, Paul may be on the right track. Maybe the service launches, but 4D is stopped when looking for the 4DC, or the data file, or something else on startup. Consider looking at the 4D Folder where the Plugins are cached. It is different (I think) when running as a service or running double-clicked. At least we always see the that cache being rebuilt if we connect from a 4D remote first one way, then the other. Maybe 4D can't write to the 4D folder location when running as a service. Jim On Thu, Sep 6, 2018 at 11:32 PM Ronnie Teo mailto:ron...@tarawerkz.com><mailto:ron...@tarawerkz.com>> wrote: Hi Jim, I’m testing both under the same account. Double-clicking works while running under Service does not. FWIW, under the same account, running under service and direct app works for v13 apps. Regards, Ronnie On 7 Sep 2018, at 3:00 AM, 4d_tech-requ...@lists.4d.com<mailto:4d_tech-requ...@lists.4d.com> <mailto:4d_tech-requ...@lists.4d.com> wrote: From: Jim Hays mailto:jgha...@gmail.com> <mailto:jgha...@gmail.com>> To: 4D iNug Technical <4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com> <mailto:4d_tech@lists.4d.com>> Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 Could it be that the account that the service is running under doesn't have network privileges? Try setting the service to run under the Administrator account or the one that works when you double-click the server exe. Jim ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
Hi Vance, Yes, I have done that more than a few times. Regards, Ronnie Tarawerkz > On 11 Sep 2018, at 2:53 AM, Vance Villanueva wrote: > > Hi Ronnie, > > Have you tried unregistering the service and re-registering it? > > http://kb.4d.com/assetid=2 <http://kb.4d.com/assetid=2> > > > Regards, > > Vance Villanueva > > > > Vance Villanueva > Technical Services Engineer > > 4D Inc > 95 S. Market Street, Suite #240 > CA 95113 San Jose > United States > > Téléphone : +1-408-557-4600 > Standard : +1-408-557-4600 > Fax : +1-408-271-5080 > Email : vvillanu...@4d.com <mailto:vvillanu...@4d.com> > Web : www.4D.com <http://www.4d.com/> > > > > > > -Original Message- > From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com > <mailto:4d_tech-boun...@lists.4d.com>] On Behalf Of Ronnie Teo via 4D_Tech > Sent: Sunday, September 09, 2018 9:21 PM > To: Jim Hays > Cc: Ronnie Teo; 4D iNug Technical > Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 > > Hi Jim & Paul, > > This is my finding after testing over the weekend with Windows Server 2012 > and 4Dv15.5. > > Running a v15 app with 4Dv15.5 (64bit) as a Windows service does NOT work. > Running the same app with 4Dv15.5 (32bit) as a Windows DOES work. > > In the latter scenario, the database name appears in the Available tab on the > client software and we are able to log in and use the app as per normal. > > I do not understand why it does not work with the 64-bit version. > But my next question would be, what do we give up by not using the 64-bit > version of 4Dv15.5? > > Regards, > Ronnie > >> On 7 Sep 2018, at 7:59 PM, Jim Hays wrote: >> >> Just to be clear, these are our steps. It may or may not be helpful in your >> case. >> >> When we set up a built 4D server, we usually are logged in to the machine >> with an Administrator level account. >> Then we launch our built EXE by running As Administrator. (I think we have >> to do this). >> Once it is launched, we register the service using the 4D menu item. >> >> On two Win 2012 servers, we had to change the login account for the service >> to a different user. >> We were told that the "localsystem" account does not normally support >> network services. >> In most cases we just leave it as localsystem and it works fine. >> >> >> Separately, Paul may be on the right track. Maybe the service launches, but >> 4D is stopped when looking for the 4DC, or the data file, or something else >> on startup. >> >> Consider looking at the 4D Folder where the Plugins are cached. It is >> different (I think) when running as a service or running double-clicked. At >> least we always see the that cache being rebuilt if we connect from a 4D >> remote first one way, then the other. >> Maybe 4D can't write to the 4D folder location when running as a service. >> >> Jim >> >> >> >> On Thu, Sep 6, 2018 at 11:32 PM Ronnie Teo > <mailto:ron...@tarawerkz.com><mailto:ron...@tarawerkz.com >> <mailto:ron...@tarawerkz.com>>> wrote: >> Hi Jim, >> >> I’m testing both under the same account. >> Double-clicking works while running under Service does not. >> >> FWIW, under the same account, running under service and direct app works for >> v13 apps. >> >> >> Regards, >> Ronnie >> >>> On 7 Sep 2018, at 3:00 AM, 4d_tech-requ...@lists.4d.com >>> <mailto:4d_tech-requ...@lists.4d.com> <mailto:4d_tech-requ...@lists.4d.com >>> <mailto:4d_tech-requ...@lists.4d.com>> wrote: >>> >>> From: Jim Hays mailto:jgha...@gmail.com> >>> <mailto:jgha...@gmail.com <mailto:jgha...@gmail.com>>> >>> To: 4D iNug Technical <4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com> >>> <mailto:4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com>>> >>> Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 >>> >>> Could it be that the account that the service is running under doesn't have >>> network privileges? >>> Try setting the service to run under the Administrator account or the one >>> that works when you double-click the server exe. >>> >>> Jim >> > > ** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > <http://lists.4d.com/archives.html> > Options: https://lists.4d.com/mailman/options/4d_tech > <https://lists.4d.com/mailman/options/4d_tech> > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > <mailto:4d_tech-unsubscr...@lists.4d.com> > ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: 4Dv15 applications as a Service in Windows Server 2012
Hi Ronnie, Have you tried unregistering the service and re-registering it? http://kb.4d.com/assetid=2 Regards, Vance Villanueva -Original Message- From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Ronnie Teo via 4D_Tech Sent: Sunday, September 09, 2018 9:21 PM To: Jim Hays Cc: Ronnie Teo; 4D iNug Technical Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 Hi Jim & Paul, This is my finding after testing over the weekend with Windows Server 2012 and 4Dv15.5. Running a v15 app with 4Dv15.5 (64bit) as a Windows service does NOT work. Running the same app with 4Dv15.5 (32bit) as a Windows DOES work. In the latter scenario, the database name appears in the Available tab on the client software and we are able to log in and use the app as per normal. I do not understand why it does not work with the 64-bit version. But my next question would be, what do we give up by not using the 64-bit version of 4Dv15.5? Regards, Ronnie > On 7 Sep 2018, at 7:59 PM, Jim Hays wrote: > > Just to be clear, these are our steps. It may or may not be helpful in your > case. > > When we set up a built 4D server, we usually are logged in to the machine > with an Administrator level account. > Then we launch our built EXE by running As Administrator. (I think we have > to do this). > Once it is launched, we register the service using the 4D menu item. > > On two Win 2012 servers, we had to change the login account for the service > to a different user. > We were told that the "localsystem" account does not normally support network > services. > In most cases we just leave it as localsystem and it works fine. > > > Separately, Paul may be on the right track. Maybe the service launches, but > 4D is stopped when looking for the 4DC, or the data file, or something else > on startup. > > Consider looking at the 4D Folder where the Plugins are cached. It is > different (I think) when running as a service or running double-clicked. At > least we always see the that cache being rebuilt if we connect from a 4D > remote first one way, then the other. > Maybe 4D can't write to the 4D folder location when running as a service. > > Jim > > > > On Thu, Sep 6, 2018 at 11:32 PM Ronnie Teo <mailto:ron...@tarawerkz.com>> wrote: > Hi Jim, > > I’m testing both under the same account. > Double-clicking works while running under Service does not. > > FWIW, under the same account, running under service and direct app works for > v13 apps. > > > Regards, > Ronnie > >> On 7 Sep 2018, at 3:00 AM, 4d_tech-requ...@lists.4d.com >> <mailto:4d_tech-requ...@lists.4d.com> wrote: >> >> From: Jim Hays mailto:jgha...@gmail.com>> >> To: 4D iNug Technical <4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com>> >> Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 >> >> Could it be that the account that the service is running under doesn't have >> network privileges? >> Try setting the service to run under the Administrator account or the one >> that works when you double-click the server exe. >> >> Jim > ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
Hi Jim & Paul, This is my finding after testing over the weekend with Windows Server 2012 and 4Dv15.5. Running a v15 app with 4Dv15.5 (64bit) as a Windows service does NOT work. Running the same app with 4Dv15.5 (32bit) as a Windows DOES work. In the latter scenario, the database name appears in the Available tab on the client software and we are able to log in and use the app as per normal. I do not understand why it does not work with the 64-bit version. But my next question would be, what do we give up by not using the 64-bit version of 4Dv15.5? Regards, Ronnie > On 7 Sep 2018, at 7:59 PM, Jim Hays wrote: > > Just to be clear, these are our steps. It may or may not be helpful in your > case. > > When we set up a built 4D server, we usually are logged in to the machine > with an Administrator level account. > Then we launch our built EXE by running As Administrator. (I think we have > to do this). > Once it is launched, we register the service using the 4D menu item. > > On two Win 2012 servers, we had to change the login account for the service > to a different user. > We were told that the "localsystem" account does not normally support network > services. > In most cases we just leave it as localsystem and it works fine. > > > Separately, Paul may be on the right track. Maybe the service launches, but > 4D is stopped when looking for the 4DC, or the data file, or something else > on startup. > > Consider looking at the 4D Folder where the Plugins are cached. It is > different (I think) when running as a service or running double-clicked. At > least we always see the that cache being rebuilt if we connect from a 4D > remote first one way, then the other. > Maybe 4D can't write to the 4D folder location when running as a service. > > Jim > > > > On Thu, Sep 6, 2018 at 11:32 PM Ronnie Teo <mailto:ron...@tarawerkz.com>> wrote: > Hi Jim, > > I’m testing both under the same account. > Double-clicking works while running under Service does not. > > FWIW, under the same account, running under service and direct app works for > v13 apps. > > > Regards, > Ronnie > >> On 7 Sep 2018, at 3:00 AM, 4d_tech-requ...@lists.4d.com >> <mailto:4d_tech-requ...@lists.4d.com> wrote: >> >> From: Jim Hays mailto:jgha...@gmail.com>> >> To: 4D iNug Technical <4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com>> >> Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 >> >> Could it be that the account that the service is running under doesn't have >> network privileges? >> Try setting the service to run under the Administrator account or the one >> that works when you double-click the server exe. >> >> Jim > ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
I have v15 running as service on remote Virtual machine and I can connect with 4D remote without problem. In the service properties under the general tab what do you have as the path to the executable. For example mine is. C:\Program Files (x86)\4D\4D v15.4\4D Server\4D Server.exe -s "C:\Compare_Server\Compare\Compare\Compare.4DC" My guess is that when you run the application as a service it is unable to find the compiled application to launch so although for the server runs it doesn't know which application to open. Paul -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
Hi Jim, I’m testing both under the same account. Double-clicking works while running under Service does not. FWIW, under the same account, running under service and direct app works for v13 apps. Regards, Ronnie > On 7 Sep 2018, at 3:00 AM, 4d_tech-requ...@lists.4d.com wrote: > > From: Jim Hays mailto:jgha...@gmail.com>> > To: 4D iNug Technical <4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com>> > Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 > > Could it be that the account that the service is running under doesn't have > network privileges? > Try setting the service to run under the Administrator account or the one > that works when you double-click the server exe. > > Jim ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
Could it be that the account that the service is running under doesn't have network privileges? Try setting the service to run under the Administrator account or the one that works when you double-click the server exe. Jim On Tue, Sep 4, 2018 at 11:24 PM Ronnie Teo via 4D_Tech <4d_tech@lists.4d.com> wrote: > Hi Paul, > > Thanks for the reply. > Running v15 on 2012 is not a problem. I’m only having issues running it > as a service. > > When the service is launched, it doesn’t appear under the Available tab. > Even when I specify the IP address directly, it is not able to connect. > > When launched directly from the 4D Server app, connection is not a problem. > Yet from the same server (2012 server), there is no problem running a v13 > app under service. > > That’s why I’m puzzled…. > > Regards, > Ronnie > Tarawerkz > > > On 5 Sep 2018, at 12:40 AM, 4d_tech-requ...@lists.4d.com wrote: > > > > I am running 15.5 on 2012 without a problem. Is this a built > application? If > > not how are you selecting the database to launch ? > > Paul > > > > > > ** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
Hi Paul, Thanks for the reply. Running v15 on 2012 is not a problem. I’m only having issues running it as a service. When the service is launched, it doesn’t appear under the Available tab. Even when I specify the IP address directly, it is not able to connect. When launched directly from the 4D Server app, connection is not a problem. Yet from the same server (2012 server), there is no problem running a v13 app under service. That’s why I’m puzzled…. Regards, Ronnie Tarawerkz > On 5 Sep 2018, at 12:40 AM, 4d_tech-requ...@lists.4d.com wrote: > > I am running 15.5 on 2012 without a problem. Is this a built application? If > not how are you selecting the database to launch ? > Paul > > ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
Hi Epperlein, Thank you for your reply. This is a test server, so yes it is only running one instance of 4D Server at any one time >> If I launch a separate v13 application from the same 2012 server, it works >> fine too. When I mentioned successfully running a v13 application from the same 2012 server, I forgot to mention that it was running as a service. Regards, Ronnie Tarawerkz > On 4 Sep 2018, at 3:42 PM, Epperlein, Lutz (agendo) > wrote: > > Do you run only one single 4d server on this Windows server? > If you have multiple 4d servers please set the SQL port to a different value > even you don't use SQL (not only the common C/S ports). > >> -Original Message- >> From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Ronnie Teo >> via >> 4D_Tech >> Sent: Monday, September 3, 2018 10:35 AM >> To: 4D iNug Technical <4D_Tech@lists.4D.com> >> Cc: Ronnie Teo >> Subject: 4Dv15 applications as a Service in Windows Server 2012 >> >> Hi, >> >> I have not been able to run v15 applications as a service under Windows >> Server 2012, >> using 4Dv15.5 >> When the service is started, I am unable to connect to the database from a >> client, the >> Available tab is also empty. >> >> It is not a problem when the same v15 application is launched directly with >> the 4D >> Server application from the same 2012 server. >> If I launch a separate v13 application from the same 2012 server, it works >> fine too. >> In both the above scenarios, there is no issue with client connections. >> >> Can anyone advise? Is there some setting I have to carry out to facilitate >> a v15 app >> running as a service? >> >> Regards, >> Ronnie >> Tarawerkz >> >> * >> * >> 4D Internet Users Group (4D iNUG) >> Archive: http://lists.4d.com/archives.html >> Options: https://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:4d_tech-unsubscr...@lists.4d.com >> * >> * ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: 4Dv15 applications as a Service in Windows Server 2012
Do you run only one single 4d server on this Windows server? If you have multiple 4d servers please set the SQL port to a different value even you don't use SQL (not only the common C/S ports). > -Original Message- > From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Ronnie Teo > via > 4D_Tech > Sent: Monday, September 3, 2018 10:35 AM > To: 4D iNug Technical <4D_Tech@lists.4D.com> > Cc: Ronnie Teo > Subject: 4Dv15 applications as a Service in Windows Server 2012 > > Hi, > > I have not been able to run v15 applications as a service under Windows > Server 2012, > using 4Dv15.5 > When the service is started, I am unable to connect to the database from a > client, the > Available tab is also empty. > > It is not a problem when the same v15 application is launched directly with > the 4D > Server application from the same 2012 server. > If I launch a separate v13 application from the same 2012 server, it works > fine too. > In both the above scenarios, there is no issue with client connections. > > Can anyone advise? Is there some setting I have to carry out to facilitate > a v15 app > running as a service? > > Regards, > Ronnie > Tarawerkz > > * > * > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > * > * ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
I am running 15.5 on 2012 without a problem. Is this a built application? If not how are you selecting the database to launch ? Paul -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
Hi Gerald, Thanks for your heads. Yes, I had confirmed that the application is registered in the firewall. Regards, Ronnie Tarawerkz > On 3 Sep 2018, at 11:34 PM, 4d_tech-requ...@lists.4d.com wrote: > > Subject: Re: 4Dv15 applications as a Service in Windows Server 2012 > Message-ID: <706c3933-68b2-4e60-b3dc-6c18bf603...@balzer-computing.ch > <mailto:706c3933-68b2-4e60-b3dc-6c18bf603...@balzer-computing.ch>> > Content-Type: text/plain; charset=utf-8 > > Make sure, that the application is registered in the windows firewall. Even > if it might be disabled. > > Cheers > > Gerald ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: 4Dv15 applications as a Service in Windows Server 2012
Make sure, that the application is registered in the windows firewall. Even if it might be disabled. Cheers Gerald BALZER COMPUTING • Breitensteinstr. 88 • CH-8037 Zürich • Tel.: +41-44-4404605 • Fax: +41-44-4404609 Mitglied im Entwicklernetzwerk die4dWerkstatt > Am 03.09.2018 um 10:35 schrieb Ronnie Teo via 4D_Tech <4d_tech@lists.4d.com>: > > Hi, > > I have not been able to run v15 applications as a service under Windows > Server 2012, using 4Dv15.5 > When the service is started, I am unable to connect to the database from a > client, the Available tab is also empty. > > It is not a problem when the same v15 application is launched directly with > the 4D Server application from the same 2012 server. > If I launch a separate v13 application from the same 2012 server, it works > fine too. > In both the above scenarios, there is no issue with client connections. > > Can anyone advise? Is there some setting I have to carry out to facilitate a > v15 app running as a service? > > Regards, > Ronnie > Tarawerkz > > ** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **