Page 1 of 1

Admin page not accessible from remote pc

PostPosted: Fri Mar 01, 2013 10:32 am
by jdbruijn
I've got a strange problem. Because of a hardware crash I've moved 2 servoy applications to a new laptop (win7). I used the install_service.bat to install the windows service for both instances. The first instance (running on port 8080) is running without problems and I can access it from another laptop.
The second instance (running on port 83) is behaving strangely. When I start the servoy server as a windows service, I cannot access the admin page from a remote laptop (using http://lt07:83/servoy-admin), but http://lt07:83/ does give me the client page. However when I start the servoy server using the servoy_server.bat file I can connect to the admin page from a remote laptop.
Any idea what can cause this problem?

Note: first instance is Servoy 6.0.9, second instance is 6.1.4rc1.

Re: Admin page not accessible from remote pc

PostPosted: Fri Mar 01, 2013 1:54 pm
by ngervasi
Weird, can you try to use port 8081 instead of 83?

Re: Admin page not accessible from remote pc

PostPosted: Fri Mar 01, 2013 5:03 pm
by jdbruijn
I've tried changing the server port, but without success: when running as a service I cannot access the admin page remotely and running the batch file I can access the admin page remotely.

Re: Admin page not accessible from remote pc

PostPosted: Fri Mar 01, 2013 5:11 pm
by ngervasi
Ok, check the server.log (application_folder) and the service log, there must be something there.

Re: Admin page not accessible from remote pc

PostPosted: Fri Mar 01, 2013 5:19 pm
by jdbruijn
I've included the logfiles

Re: Admin page not accessible from remote pc

PostPosted: Fri Mar 01, 2013 5:35 pm
by ngervasi
This looks like a problem:
Code: Select all
STATUS | wrapper  | 2013/03/01 16:00:09 | --> Wrapper Started as Service
STATUS | wrapper  | 2013/03/01 16:00:09 | Java Service Wrapper Standard Edition 32-bit 3.3.5
STATUS | wrapper  | 2013/03/01 16:00:09 |   Copyright (C) 1999-2009 Tanuki Software, Ltd.  All Rights Reserved.
STATUS | wrapper  | 2013/03/01 16:00:09 |     http://wrapper.tanukisoftware.org
STATUS | wrapper  | 2013/03/01 16:00:09 |   Licensed to Servoy for ServoyApplicationServer
STATUS | wrapper  | 2013/03/01 16:00:09 |
STATUS | wrapper  | 2013/03/01 16:00:10 | Launching a JVM...
INFO   | jvm 1    | 2013/03/01 16:00:10 | Error occurred during initialization of VM
INFO   | jvm 1    | 2013/03/01 16:00:10 | Could not reserve enough space for object heap
INFO   | jvm 1    | 2013/03/01 16:00:10 | Error: Could not create the Java Virtual Machine.
INFO   | jvm 1    | 2013/03/01 16:00:10 | Error: A fatal exception has occurred. Program will exit.
ERROR  | wrapper  | 2013/03/01 16:00:10 | JVM exited while loading the application.
STATUS | wrapper  | 2013/03/01 16:00:14 | Launching a JVM...
INFO   | jvm 2    | 2013/03/01 16:00:16 | WrapperManager: Initializing...


How much memory do you have? How much memory dedicated to servoy server? Can you try to stop the other servoy instance to see if this starts working correctly?

Re: Admin page not accessible from remote pc

PostPosted: Tue Mar 05, 2013 2:27 pm
by jdbruijn
The laptop has 6GB memory, so that should not be an issue.

I've tried disabling the first instance, but with no success.
I think there is a strange issue with the firewall on that laptop, because now I also cannot access the postgress db anymore with pgadmin, that did work correctly.

Re: Admin page not accessible from remote pc

PostPosted: Tue Mar 05, 2013 4:18 pm
by ngervasi
jdbruijn wrote:The laptop has 6GB memory, so that should not be an issue.


Is it a 32bit system? Looks like you assigned too much memory to the Java process. Check the service configuration file, remember thatJava 32bit can handle 2GB max so you shouldn't assign more than 1.3-1.4GB (more or less).