# Servoy Application Server not starting after OS update

**URL:** <https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010>\
**Category:** Classic Servoy\
**Created:** [April 7, 2010, 10:07pm UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010 "2010-04-07T22:07:06Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [April 7, 2010, 10:07pm UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/1 "2010-04-07T22:07:06Z")

</div>

Hi All

I have updated our Mac OS X Server 10.6.2 to 10.6.3. As a result, the Servoy Application Server doesn’t startup any more ![:-(]( "Sad")

Anyone has updated to Server version 10.6.3 and found the same problem?

Any help appreciated, Robert

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [April 7, 2010, 10:14pm UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/2 "2010-04-07T22:14:19Z")

</div>

I have Servoy 5 running with OS X 10.6.3.

It remember what you describe while upgrading from 10.6.1 to 10.6.2 but not with the latest update.  
If I remember well I simply re-installed Servoy.

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [April 7, 2010, 10:21pm UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/3 "2010-04-07T22:21:49Z")

</div>

Thanks Marcel, I found I can start the App Server manually, but not automatically at the server startup.

Quite strange.

I also found that Safari crashes when connecting to the Servoy App Server, hmmmm

Bes regards, Robert

> IT2Be:  
> I have Servoy 5 running with OS X 10.6.3.
> 
> It remember what you describe while upgrading from 10.6.1 to 10.6.2 but not with the latest update.  
> If I remember well I simply re-installed Servoy.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [April 8, 2010, 5:40am UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/4 "2010-04-08T05:40:55Z")

</div>

Hi Robert,

I upgraded to 10.6.3 and have no real issues.  
Perhaps you need to fix your permissions (see Disk Utility).  
As for Safari crashing, this can have many causes. One of which can be a corrupt preference file. Just by deleting it should do the trick.  
But I would start with fixing the permissions.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [April 8, 2010, 7:30am UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/5 "2010-04-08T07:30:35Z")

</div>

Hi Robert

I already did all you mentioned, with no luck.  
I do get this 2 messages in the servoy\_log.txt file:

2010-04-08 09:13:39,699 ERROR [main] com.servoy.j2db.util.Debug - Cannot start repository: com.servoy.j2db.persistence.RepositoryException: Error checking repository  
2010-04-08 09:13:39,700 ERROR [main] com.servoy.j2db.util.Debug - Do note Servoy server does not start any database!

I don’t know how the second msg is meant, but the database server process gets started, i. e. dbsrv11 is running, as well as our postgres database servers (although this has nothing to do with Servoy)

Anyone an idea what this means and how I can get everything started again.

Regards, Robert

> ROCLASI:  
> Hi Robert,
> 
> I upgraded to 10.6.3 and have no real issues.  
> Perhaps you need to fix your permissions (see Disk Utility).  
> As for Safari crashing, this can have many causes. One of which can be a corrupt preference file. Just by deleting it should do the trick.  
> But I would start with fixing the permissions.
> 
> Hope this helps.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [April 8, 2010, 7:46am UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/6 "2010-04-08T07:46:07Z")

</div>

Hi Robert,

Perhaps Sybase gets launched after Servoy Server ? Can you check the system log to see when what is launched when you boot up.

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [April 8, 2010, 11:04am UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/7 "2010-04-08T11:04:42Z")

</div>

Hi Robert

It looks to me as it is the correct order of startups. Here the part of the system log:

```auto
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: SQL Anywhere Network Server Version 11.0.1.2045
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: Workgroup edition
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: 
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: Copyright (c) 2001-2009, iAnywhere Solutions, Inc.
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: Portions copyright (c) 1988-2009, Sybase, Inc. All rights reserved.
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: Use of this software is governed by the Sybase License Agreement. Refer to http://www.sybase.com/softwarelicenses
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: 
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: 8 logical processor(s) on 2 physical processor(s) detected.
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: This edition is restricted to use a maximum of 2 physical processors (0 = unlimited).
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: Per-processor licensing model. The server is licensed to use 1 physical processor(s).
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: Warning: The server is licensed to use 1 physical processor(s), but it is executing on 2 processor(s).
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: This server is licensed to:
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: servoy
Apr 8 10:00:19: --- last message repeated 1 time ---
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: Running Darwin 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:57:13 PST 2010; root:xnu-1504.3.12~1/RELEASE_X86_64 on X86_64
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: Server built for X86 processor architecture
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: Note: A cache size of 2097152K exceeds the available physical memory of 841436K. A performance penalty may result.
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: 2097152K of memory used for caching
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: Minimum cache size: 2097152K, maximum cache size: 2097152K
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: Using a maximum page size of 4096 bytes
Apr 8 10:00:19 SkyServer SQLAnywhere(servoy_repository)[761]: Starting database "servoy_repository" (/Applications/Servoy/application_server/database/servoy_repository.db) at Thu Apr 08 2010 10:00

```

Are you using a LaunchDaemon or do you have also the old way with scripts in StartupItems folder?

My 2 scripts in the /Library/StartupItems/Servoy folder look like this:

File Servoy:

```auto
#!/bin/sh
##
# Servoy Application Server
##
. /etc/rc.common 
StartService () {
	ConsoleMessage "Starting Servoy Application Server..."
	cd /Applications/Servoy/application_server/
	. /Applications/Servoy/application_server/servoy_server.sh &
} 
StopService()
{
	ConsoleMessage "In the future Stop Servoy Application Server here"
}
RestartService ()
{
	ConsoleMessage "Restarting Servoy Application Server..."
	StopService
	StartService
}
RunService "$1"

```

File StartupParameter.plist:

```auto
{
	Description = "Servoy Application Server";
	Provides = ("Servoy");
	Requires = ("Resolver");
	Preference = "Late";
	Messages =
	{
		 start = "Starting Servoy Application Server";
		 stop = "Stopping Servoy Application Server";
	};
 }

```

As this is the old way and the recommended way is using launch daemons, I am always a bit unsure if that is the cause.

What do you think?

Regards, Robert

> ROCLASI:  
> Hi Robert,
> 
> Perhaps Sybase gets launched after Servoy Server ? Can you check the system log to see when what is launched when you boot up.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [April 8, 2010, 11:12am UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/8 "2010-04-08T11:12:19Z")

</div>

Hi Robert,

The startup items should still work (it does for me on a couple of services).  
In your systemlog I don’t see the entry for Servoy Server. Is that before or after the Sybase log entries ?

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [April 8, 2010, 11:12am UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/9 "2010-04-08T11:12:52Z")

</div>

Hi Robert

Did permission repar, did delete Safari preference files, did even reset Safari. But when accessing the Servoy Application Server site, i. e. [http://localhost:8080/servoy-admin/](http://localhost:8080/servoy-admin/) Safari crashes. But only on this site! No idea why. All other sites I tried work without any crash, but when accessing the former mentioned site Safari crashes always. What might be wrong with the Servoy Application Server site?

Regards, Robert

> ROCLASI:  
> Hi Robert,
> 
> I upgraded to 10.6.3 and have no real issues.  
> Perhaps you need to fix your permissions (see Disk Utility).  
> As for Safari crashing, this can have many causes. One of which can be a corrupt preference file. Just by deleting it should do the trick.  
> But I would start with fixing the permissions.
> 
> Hope this helps.

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [April 8, 2010, 11:15am UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/10 "2010-04-08T11:15:11Z")

</div>

Robert, how should that look like?

> ROCLASI:  
> Hi Robert,
> 
> The startup items should still work (it does for me on a couple of services).  
> In your systemlog I don’t see the entry for Servoy Server. Is that before or after the Sybase log entries ?

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [April 8, 2010, 11:15am UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/11 "2010-04-08T11:15:39Z")

</div>

> Robert Huber:  
> Did permission repar, did delete Safari preference files, did even reset Safari. But when accessing the Servoy Application Server site, i. e. [http://localhost:8080/servoy-admin/](http://localhost:8080/servoy-admin/) Safari crashes. But only on this site! No idea why. All other sites I tried work without any crash, but when accessing the former mentioned site Safari crashes always. What might be wrong with the Servoy Application Server site?

What do you see when you use FireFox ?

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [April 8, 2010, 11:16am UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/12 "2010-04-08T11:16:28Z")

</div>

> Robert Huber:  
> Robert, how should that look like?
> 
> > ROCLASI:  
> > Hi Robert,
> > 
> > The startup items should still work (it does for me on a couple of services).  
> > In your systemlog I don’t see the entry for Servoy Server. Is that before or after the Sybase log entries ?

Your script has “ConsoleMessage “Starting Servoy Application Server…””.  
Perhaps you have to look in your console.log.

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [April 8, 2010, 11:21am UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/13 "2010-04-08T11:21:19Z")

</div>

When connecting with Camino, it does not crash.

> ROCLASI:
> 
> > Robert Huber:  
> > Did permission repar, did delete Safari preference files, did even reset Safari. But when accessing the Servoy Application Server site, i. e. [http://localhost:8080/servoy-admin/](http://localhost:8080/servoy-admin/) Safari crashes. But only on this site! No idea why. All other sites I tried work without any crash, but when accessing the former mentioned site Safari crashes always. What might be wrong with the Servoy Application Server site?
> 
> What do you see when you use FireFox ?

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [April 8, 2010, 11:36am UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/14 "2010-04-08T11:36:54Z")

</div>

Robert, Safari crashes here as well when I open Servoy Admin.

This is the deamon script I use (but I don’t use iAnywhere).

```auto
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Disabled</key>
	<false/>
	<key>KeepAlive</key>
	<false/>
	<key>Label</key>
	<string>com.servoy.server</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Applications/Additional/CRM/application_server/servoy_server.sh</string>
	</array>
	<key>QueueDirectories</key>
	<array/>
	<key>RunAtLoad</key>
	<true/>
	<key>WatchPaths</key>
	<array/>
	<key>WorkingDirectory</key>
	<string>/Applications/Additional/CRM/application_server/</string>
</dict>
</plist>

```

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [April 8, 2010, 11:46am UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/15 "2010-04-08T11:46:11Z")

</div>

Nice! ![:(]( "Sad")

I see that now as well. But only on a remote server, localhost seems to work.  
OmniWeb however works fine for me which uses WebKit as well.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [April 8, 2010, 12:17pm UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/16 "2010-04-08T12:17:03Z")

</div>

Hmm…odd. Now Safari does work on a remote servoy server.

Edit: well most of the time…

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [April 8, 2010, 12:50pm UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/17 "2010-04-08T12:50:52Z")

</div>

Hi Marcel

I would like to have a docu which describes how to set up the launch service as a launch daemon, but can’t find it on the Servoy Wiki Documentation!? Which would give answers like where do you put this script, how is it started, …?

Regards, Robert

> IT2Be:  
> Robert, Safari crashes here as well when I open Servoy Admin.
> 
> This is the deamon script I use (but I don’t use iAnywhere).
> 
> ```auto
> <?xml version="1.0" encoding="UTF-8"?>
> 
> ```

 Disabled KeepAlive Label com.servoy.server ProgramArguments /Applications/Additional/CRM/application\_server/servoy\_server.sh QueueDirectories RunAtLoad WatchPaths WorkingDirectory /Applications/Additional/CRM/application\_server/ \> ```

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [April 8, 2010, 3:41pm UTC](https://forum.servoy.com/t/servoy-application-server-not-starting-after-os-update/12010/18 "2010-04-08T15:41:01Z")

</div>

Hi Robert,

I don’t think you will find it here or on the wiki.

It is general OS X information about setting up launch daemons.

You can find documentation here: [http://developer.apple.com/mac/library/ … emons.html](http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/Articles/LaunchOnDemandDaemons.html)

After reading ( and understanding ![:)]( "Smile") ) you can use the application Lingon to make your life a little easier.
