MapGuide Open Source:  Home |  Download |  Internals

Ticket #514 (new defect)

Opened 3 months ago

Last modified 3 months ago

Mapguide Daemon Path Issues On Linux?

Reported by: Rothgar Assigned to: ronnielouie
Priority: high Milestone:
Component: Server Version: 2.0.0
Severity: major Keywords:
Cc: External ID:

Description

MapGuide? was working fine on Ubuntu and then all of a sudden stopped working, I rebooted the server to see if it would make any difference and we still can't login.

We tried the web interface which is still operational but the login does not work saying the credentials are wrong.

After checking the server there is no "mgserver" running.

I ran mgserver in the foreground using "mgserver run" and got this error:

root@mapsrv:/home/jasonm# /home/mapguide/server/bin/mgserver run Running the server interactively as an application instead of as a service.

(3017819840) Configuration file "serverconfig.ini" cannot be found or cannot be opened. Exception occurred in method MgConfiguration?.LoadConfiguration? at line 110 in file System/Configuration.cpp

(3017819840) Server stopped.

"Serverconfig.ini" exists here: root@mapsrv:/home/jasonm# find / -name "serverconfig.ini" /home/mapguide-svn/Server/src/Core/serverconfig.ini /home/mapguide-src/mapguide-2.0.0/Server/src/Core/serverconfig.ini /home/mapguide/server/bin/serverconfig.ini

Change History

03/24/08 21:34:31 changed by Rothgar

Running ./mgserver.sh << Non daemon seems to work

Running ./mgserverd.sh << Daemon does not work.

I have no idea of why this is happening because the only difference in the scripts is either parameter "run" to make it spawn in the foreground or "daemon" to fork into the background.

03/24/08 21:36:57 changed by Rothgar

  • summary changed from Mapguide Broken on Ubuntu? to Mapguide Daemon Path Issues On Linux?.

03/24/08 21:38:26 changed by Rothgar

  • owner changed.
  • component changed from Map Admin to Server.

03/26/08 22:05:52 changed by Rothgar

  • owner set to ronnielouie.

03/27/08 13:09:23 changed by ronnielouie

MapGuide Server should be trying to load serverconfig.ini from /home/mapguide/server/bin which you say does exist. Can you check if there is a permissions problem preventing access? Maybe you could check to contents of the file. The values should be similar to the values from the one from svn, except for the paths should reflect the actual paths.

03/27/08 17:54:59 changed by Rothgar

Hi Ronnie,

The permissions are correct, the problem is the "mgserver.sh" file which references the same configuration file? Works fine it just runs in the foreground.

The "mgserverd.sh" for some reason maybe the binary has the wrong paths or something and is not referencing the file properly when in daemon mode? because it says it can't find the file?

I ran a diff between the "mgserver.sh" and "mgserverd.sh" and the only difference is the switch?

04/08/08 06:11:28 changed by Rothgar

We are moving to Windows, will not be able to do any more testing.