[mapguide-trac] #1550: MG Service can't be started while
repositories is corrupt
MapGuide Open Source
trac_mapguide at osgeo.org
Sat Dec 4 02:12:58 EST 2010
#1550: MG Service can't be started while repositories is corrupt
-----------------------+----------------------------------------------------
Reporter: carlshe | Owner:
Type: defect | Status: new
Priority: low | Milestone:
Component: Server | Version: 2.1.0
Severity: trivial | Keywords: service repository
External_id: |
-----------------------+----------------------------------------------------
Accidentally, MG2.1 can't be started.
The information from Windows VISTA event viewer is:
[[BR]]
{{{
An exception occurred in DB component
DbEnv::dbremove: No such file or directory
}}}
and the information from the Error.log of MG Server is:
{{{
......
......
<2010-12-02T22:46:15> 4584 Administrator
Error: An exception occurred in DB component.
DbEnv::dbremove: No such file or directory
StackTrace:
- MgServer.open() line 1083 file
c:\osgeo\mapguide_21\mgdev\server\src\core\Server.cpp
- MgServiceManager.Initialize() line 145 file
c:\osgeo\mapguide_21\mgdev\server\src\common\manager\ServiceManager.cpp
- MgServerResourceService.OpenRepositories() line 173 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\ServerResourceService.cpp
- MgRepositoryManager.CleanRepository() line 330 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\RepositoryManager.cpp
<2010-12-02T22:46:15> 4584
Success: Server stopped.
<2010-12-02T22:59:51> 5508 Administrator
Error: An exception occurred in DB component.
DbEnv::dbremove: No such file or directory
StackTrace:
- MgServer.open() line 1083 file
c:\osgeo\mapguide_21\mgdev\server\src\core\Server.cpp
- MgServiceManager.Initialize() line 145 file
c:\osgeo\mapguide_21\mgdev\server\src\common\manager\ServiceManager.cpp
- MgServerResourceService.OpenRepositories() line 173 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\ServerResourceService.cpp
- MgRepositoryManager.CleanRepository() line 330 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\RepositoryManager.cpp
<2010-12-02T23:04:16> 612 Administrator
Error: An exception occurred in DB component.
DbEnv::dbremove: No such file or directory
StackTrace:
- MgServer.open() line 1083 file
c:\osgeo\mapguide_21\mgdev\server\src\core\Server.cpp
- MgServiceManager.Initialize() line 145 file
c:\osgeo\mapguide_21\mgdev\server\src\common\manager\ServiceManager.cpp
- MgServerResourceService.OpenRepositories() line 173 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\ServerResourceService.cpp
- MgRepositoryManager.CleanRepository() line 330 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\RepositoryManager.cpp
<2010-12-02T23:04:16> 612
Success: Server stopped.
<2010-12-02T23:04:48> 1084 Administrator
Error: An exception occurred in DB component.
DbEnv::dbremove: No such file or directory
StackTrace:
- MgServer.open() line 1083 file
c:\osgeo\mapguide_21\mgdev\server\src\core\Server.cpp
- MgServiceManager.Initialize() line 145 file
c:\osgeo\mapguide_21\mgdev\server\src\common\manager\ServiceManager.cpp
- MgServerResourceService.OpenRepositories() line 173 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\ServerResourceService.cpp
- MgRepositoryManager.CleanRepository() line 330 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\RepositoryManager.cpp
<2010-12-02T23:04:48> 1084
Success: Server stopped.
<2010-12-02T23:06:55> 1504 Administrator
Error: An exception occurred in DB component.
DbEnv::dbremove: No such file or directory
StackTrace:
- MgServer.open() line 1083 file
c:\osgeo\mapguide_21\mgdev\server\src\core\Server.cpp
- MgServiceManager.Initialize() line 145 file
c:\osgeo\mapguide_21\mgdev\server\src\common\manager\ServiceManager.cpp
- MgServerResourceService.OpenRepositories() line 173 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\ServerResourceService.cpp
- MgRepositoryManager.CleanRepository() line 330 file
c:\osgeo\mapguide_21\mgdev\server\src\services\resource\RepositoryManager.cpp
}}}
It seems that the repository is corrupt.
I Renamed the Server/Repositories and restart MGServer again. MG Server
recreate a new folder 'Server/Repositories' and then MG server runs well
again.
It is a pity that the issue can't be reproduced now. Even if I renamed
some files' names inside repositories or deleted some external spatial
data files, Now MG can repair repositories automatically while restarted.
I think Mapguide shouldn't terminate itself while meeting with some non-
key problems, such as corrupted repository. The repair of the repository
could be finished by administrator through some tools like Maestro. If
MGServer is terminated, user will have no visible entries to interact with
it.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1550>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list