Re: $D V17 as a service

2019-03-18 Thread GI -AJAR via 4D_Tech
Hi Pat. 

We had the same issue some time ago and figured out how to solve the problem. 
The issue was that we use the new architecture for deploymemt and with this new 
architecture, the datafile location is stored in a xml file in the user appdata 
of the user which launch the application the first time. In our case it was the 
Administrator. Because as a Service it was Local System user, 4D stop to run 
because he could not find a datafile to open. The solution was to move this xml 
file in the appdata of the Local System user (located in a deep hidden place 
but findable). This solve our issue.

I dont know if it is the same for you. But I assume you launch 4D as 
Administrator when you launch it normally(not as a service). 

You can also get some more informations in the event logs of windows and get 
the log of why 4D stops. In our case it was written « cannot open a datafile » 
or something like that. 

Hope ut can help. 

Gabriel 

Envoyé de mon iPhone

> Le 19 mars 2019 à 01:22, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> a 
> écrit :
> 
> I have been banging my head against the wall with this problem for weeks :)
> Advice I was given was to NOT run the service with the Local system Access
> option selected but to create a new user account and use that. I got the
> client's IT dept. to create a new user account and it is selected under
> "This account" in Task Manager->Services->Properties->Log on.
> 
> So in the Task Manager it says the app is "Running", but in the Properties
> dialog, under General, it says Service status: Stopped. If I click Start it
> starts but then immediately reverts to Stopped.
> 
> If I do not try to run the app as a service, it runs just fine, and I can
> connect to it from a Client on the same machine, so I'm confident that
> there isn't a problem with the app that's preventing it from running.
> 
> I started a thread on this topic a few weeks ago and I believe I've
> followed the advice given there :) But still can't get it to work.
> 
> Pat
> 
> On Mon, 18 Mar 2019 at 22:12, Robert ListMail via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> I’m having the same issue with Windows Server 2016 and Windows 10 Pro
>> (local Dev OS) when using a built server.
>> 
>> The steps I generally take are:
>>-Launch the built server as Admin.
>>-Say yes to any firewall questions from the OS.
>>-Register as a service.
>>-Start 4D Server service via Service control panel of the OS.
>>-connect with 4D client…. Be happy!
>> 
>> The problem is that the client does not connect. Upon closer inspection, I
>> notice that the server is initially started as a server then it apparently
>> quits just after it starts. The Service list shows it running and it looks
>> like it’s running, then after a refresh of that list, it’s clearly not
>> running.
>> 
>> Any ideas?
>> 
>> Thanks,
>> 
>> Robert
>> 
>>> On Jan 28, 2019, at 4:15 PM, Uist Macdonald via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>>> 
>>> When I run 4d Server V17.0 as an app under Windows Server 2016, I can
>> connect to it OK.  However if I run it as a service, I cannot connect.
>> 
>> **
>> 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
>> **
> 
> 
> 
> -- 
> *
> CatBase - Top Dog in Data Publishing
> tel: +44 (0) 207 118 7889
> w: http://www.catbase.com
> skype: pat.bensky
> *
> **
> 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: $D V17 as a service

2019-03-18 Thread Pat Bensky via 4D_Tech
I have been banging my head against the wall with this problem for weeks :)
Advice I was given was to NOT run the service with the Local system Access
option selected but to create a new user account and use that. I got the
client's IT dept. to create a new user account and it is selected under
"This account" in Task Manager->Services->Properties->Log on.

So in the Task Manager it says the app is "Running", but in the Properties
dialog, under General, it says Service status: Stopped. If I click Start it
starts but then immediately reverts to Stopped.

If I do not try to run the app as a service, it runs just fine, and I can
connect to it from a Client on the same machine, so I'm confident that
there isn't a problem with the app that's preventing it from running.

I started a thread on this topic a few weeks ago and I believe I've
followed the advice given there :) But still can't get it to work.

Pat

On Mon, 18 Mar 2019 at 22:12, Robert ListMail via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> I’m having the same issue with Windows Server 2016 and Windows 10 Pro
> (local Dev OS) when using a built server.
>
> The steps I generally take are:
> -Launch the built server as Admin.
> -Say yes to any firewall questions from the OS.
> -Register as a service.
> -Start 4D Server service via Service control panel of the OS.
> -connect with 4D client…. Be happy!
>
> The problem is that the client does not connect. Upon closer inspection, I
> notice that the server is initially started as a server then it apparently
> quits just after it starts. The Service list shows it running and it looks
> like it’s running, then after a refresh of that list, it’s clearly not
> running.
>
> Any ideas?
>
> Thanks,
>
> Robert
>
> > On Jan 28, 2019, at 4:15 PM, Uist Macdonald via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > When I run 4d Server V17.0 as an app under Windows Server 2016, I can
> connect to it OK.  However if I run it as a service, I cannot connect.
>
> **
> 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
> **



-- 
*
CatBase - Top Dog in Data Publishing
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
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: $D V17 as a service

2019-03-18 Thread Robert ListMail via 4D_Tech
I’m having the same issue with Windows Server 2016 and Windows 10 Pro (local 
Dev OS) when using a built server. 

The steps I generally take are:
-Launch the built server as Admin.
-Say yes to any firewall questions from the OS.
-Register as a service.
-Start 4D Server service via Service control panel of the OS.
-connect with 4D client…. Be happy!

The problem is that the client does not connect. Upon closer inspection, I 
notice that the server is initially started as a server then it apparently 
quits just after it starts. The Service list shows it running and it looks like 
it’s running, then after a refresh of that list, it’s clearly not running.

Any ideas?

Thanks,

Robert

> On Jan 28, 2019, at 4:15 PM, Uist Macdonald via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> When I run 4d Server V17.0 as an app under Windows Server 2016, I can connect 
> to it OK.  However if I run it as a service, I cannot connect.

**
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: $D V17 as a service

2019-01-28 Thread Jim Hays via 4D_Tech
The account the service is running under may not have network permissions.

Not an IT guy, but maybe you can setup an account on the machine that
allows the 4D network communications.
We've had to do that on a couple of Window 2012 R2 instances.

Jim

On Mon, Jan 28, 2019 at 5:15 PM Uist Macdonald via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Hi
>
> When I run 4d Server V17.0 as an app under Windows Server 2016, I can
> connect to it OK.  However if I run it as a service, I cannot connect.
>
> I am wondering if it has something to do with an SSL certificate, which
> I normally get a warning for in the browser, as I am connecting from the
> local network.  I have tried running as Administrator.
>
> Is there some Voodoo that I am missing?
>
> Uist
>
>
>
> --
>
> Ceres Computer Consultants Ltd
>
> Registered Office:
> South Scotstarvit
> Chance Inn
> Cupar
> Fife KY15 5QJ
>
> +44 (0) 1334 828002
>
> Registered in Scotland : SC107838
>
> An ISO 9001 registered company.
>
> This message including any attachments, is intended and authorized for
> the addressee only, and may contain privileged and/or confidential
> information.  If you are not the authorized addressee, you are not
> authorized to either review or disseminate this message.  Accordingly,
> if you are not the intended and authorized recipient, please disregard
> this message and notify the sender.  If you are the authorized
> addressee, you may use this for the purpose for which it was intended; a
> direct, personal communication to you and your legal agents.  You may
> not distribute it to or publish it in any public forum without prior,
> specific, written permission from the sender.
> **
> 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
**