Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008264opensim[GRID] Robust Serverpublic2017-11-09 13:082017-11-13 11:18
Assigned To 
PlatformPC / test gridOperating SystemWindowsOperating System Version10
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0008264: DefaultRegion not set
DescriptionOn a test grid I have a Region with the name "Welcome". I want this to be the Default Region where an Avatar will be sent to if a local login cannot be placed in the required region. I also want this to be the Default Region for Hypergrid connections with no region specified.

In order to achieve this I added a Region_Welcome entry to the [GridService] section in Robust.ini.

    LocalServiceModule = "OpenSim.Services.GridService.dll:GridService"
    ;; Needed to display non-default map tile images for linked regions
    AssetService = "OpenSim.Services.AssetService.dll:AssetService"
    ;; Next, we can specify properties of regions, including default and fallback regions
    ;; The syntax is: Region_<RegionName> = "<flags>"
    ;; or: Region_<RegionID> = "<flags>"
    ;; where <flags> can be:
    ;; DefaultRegion, DefaultHGRegion, FallbackRegion,
    ;; NoDirectLogin, Persistent, LockedOut, Reservation,
    ;; NoMove, Authenticate
    Region_Welcome = "DefaultRegion,DefaultHGRegion,FallbackRegion"

However, this information will not be stored in the database. New users entering the Grid for the first time will not necessarily land on the Welcome region and TP requests from external HG users will not be accepted due to missing default regions.

Typically the following entries can be found in the log:
2017-11-09 15:16:11,598 DEBUG (57) - OpenSim.Services.HypergridService.GatekeeperService [GATEKEEPER SERVICE]: Request to link to default region
2017-11-09 15:16:11,602 DEBUG (57) - OpenSim.Services.GridService.GridService [GRID SERVICE]: GetDefaultRegions returning 0 regions
2017-11-09 15:16:11,605 DEBUG (57) - OpenSim.Services.GridService.GridService [GRID SERVICE]: GetDefaultHypergridRegions returning 0 hypergrid default and 0 normal default regions
2017-11-09 15:16:11,606 DEBUG (57) - OpenSim.Services.HypergridService.GatekeeperService [GATEKEEPER SERVICE]: Unable to send information. Please specify a default region for this grid!
Steps To Reproduce1) Add a Default Region entry as described above to the [GridService] section in Robust.ini. Replace Welcome by the name of your default region (e.g. if your start region is called "Central Plaza", name the entry Region_Central_Plaza instead of Region_Welcome).

2) Restart Robust.exe

3) Try to teleport from an another grid to your grid without adding a region name (e.g. In Firestorm you will get the message "No regions found with that name". On the Robust console window you will see messages like the log messages mentioned above.
Additional InformationAfter I manually changed the field "flags" for the region in the regions table in the database to a value of 5, things worked as expected.

I didn't test with the RegionID instead of the RegionName as an alternative.
TagsNo tags attached.
Git Revision or version numberfcb8b2a
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Script Engine
Environment.NET / Windows64
Mono VersionNone
Attached Files

- Relationships

-  Notes
BillBlight (developer)
2017-11-09 13:54
edited on: 2017-11-09 13:55

I recently tested this, and I can confirm this is an issue ..

I had not noticed it before, as I use a external script to set my default regions, so I do not have to restart the robust to change them.

They do seem to save it done via console commands, and not via the ini load.

piusnoel (reporter)
2017-11-10 02:51

In this case it would be interesting to see what your external script does. Using the console command didn't help me:

R.O.B.U.S.T.# config set GridService Region_Welcome DefaultRegion
In section [GridService], set Region_Welcome = DefaultRegion
R.O.B.U.S.T.# config show GridService
  LocalServiceModule = OpenSim.Services.GridService.dll:GridService
  AssetService = OpenSim.Services.AssetService.dll:AssetService
  Region_Welcome = DefaultRegion
  HypergridLinker = true
  ExportSupported = true
11:48:20 - [GATEKEEPER SERVICE]: Request to link to default region
11:48:20 - [GRID SERVICE]: GetDefaultRegions returning 0 regions
11:48:20 - [GRID SERVICE]: GetDefaultHypergridRegions returning 0 hypergrid default and 0 normal default regions
11:48:20 - [GATEKEEPER SERVICE]: Unable to send information. Please specify a default region for this grid!
piusnoel (reporter)
2017-11-10 03:15
edited on: 2017-11-10 03:32

It's more complicated and probably NOT a real issue! It worked well, once the default region has been de-registered and completely removed from the database by shutting down the server with quit. After a new start of the simulator the default region got registered with the right settings in the database.

piusnoel (reporter)
2017-11-10 03:38

My conclusion and proposal to resolve the issue:
1) the simple one: improve the documentation with something like:
Make sure to stop the simulator with "quit" in order to reload and set the proper region flags after any changes you made to the region properties settings, including default and fallback regions, in the [GridService] section of Robust.ini. Shutting down the simulator with <ctrl>-c will not remove the region entries from the database and therefore not update the changes.
2) unnecessarily complex: update the flags at each restart in the database.
UbitUmarov (administrator)
2017-11-12 14:31

Yes its confusing, and possible not practical.
All special grid regions should be started after a gridservice restarted, or they may be ignored, unless there where no changes on this settings and they where up on the service shutdown.
smxy (reporter)
2017-11-12 15:23

I believe that if you set a region as a default region and a default HG region, in the ini, it does not get set to both. Anything set in in the ini needs to be honored.
tampa (reporter)
2017-11-12 15:25

From some reading in the code, once the region is found it is saved via its uuid. So whenever a request comes in the reply is the uuid of the region. I suppose for human-readability the reference in the ini is via the name instead of the uuid. It could be changed, but it would make it harder to know which region is referenced as you would have to remember the uuid.

Beyond that regions should always be properly shutdown and CTRL+C and kill commands are a last resort in case of a stuck simulator. Always shutdown using the shutdown command and you may even add backup just before that to make sure all changes are written to datastore so nothing gets lost and the deregistration occurs.
Gavin Hird (reporter)
2017-11-13 11:18

I believe the ini setting must be quoted like

Region_andwest = "DefaultRegion, DefaultHGRegion, FallbackRegion"

for it to work properly.

- Issue History
Date Modified Username Field Change
2017-11-09 13:08 piusnoel New Issue
2017-11-09 13:54 BillBlight Note Added: 0032406
2017-11-09 13:55 BillBlight Note Edited: 0032406 View Revisions
2017-11-10 02:51 piusnoel Note Added: 0032407
2017-11-10 03:15 piusnoel Note Added: 0032408
2017-11-10 03:16 piusnoel Note Edited: 0032408 View Revisions
2017-11-10 03:32 piusnoel Note Edited: 0032408 View Revisions
2017-11-10 03:38 piusnoel Note Added: 0032409
2017-11-12 14:31 UbitUmarov Note Added: 0032417
2017-11-12 15:23 smxy Note Added: 0032418
2017-11-12 15:25 tampa Note Added: 0032419
2017-11-13 11:18 Gavin Hird Note Added: 0032421

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker