Opened 17 years ago
Closed 15 years ago
#514 closed defect (wontfix)
Mapguide Daemon Path Issues On Linux?
Reported by: | Rothgar | Owned by: | |
---|---|---|---|
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 (11)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Summary: | Mapguide Broken on Ubuntu? → Mapguide Daemon Path Issues On Linux? |
---|
comment:3 by , 17 years ago
Component: | Map Admin → Server |
---|
comment:4 by , 17 years ago
Owner: | set to |
---|
comment:5 by , 17 years ago
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.
comment:6 by , 17 years ago
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?
comment:8 by , 16 years ago
Has there been any new information on this bug or how to fix it? I'm experiencing this with 2.0.1 installed in ubuntu hardy heron. Would upgrading to 2.0.2 help at all?
comment:9 by , 16 years ago
Owner: | removed |
---|
comment:10 by , 16 years ago
Can you do some research and see why a daemon and interactive mode cannot access the same things on Ubuntu? Have you tried using sudo or running from root? And if so, what are the results? Thanks, Tom
comment:11 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Closing due to lack of follow-up.
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.