Servoy Application Server not starting after OS update

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 :-(

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

Any help appreciated, Robert

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.

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.

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.

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.

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.

Hi Robert

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

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:

#!/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:

{
	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.

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 ?

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/ 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.

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 ?

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/ 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 ?

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.

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/ 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 ?

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

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

<?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>

Nice! :(

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.

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

Edit: well most of the time…

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).

<?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/ > ```

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

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