Opened 14 years ago
#1550 new defect
MG Service can't be started while repositories is corrupt
Reported by: | carlshe | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | Server | Version: | 2.1.0 |
Severity: | trivial | Keywords: | service repository |
Cc: | External ID: |
Description
Accidentally, MG2.1 can't be started.
The information from Windows VISTA event viewer is:
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.