From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Running OpenSim)
Line 188: Line 188:
=== Running OpenSim.exe from a Cygwin shell has access denied for some dll's ===
=== Running OpenSim.exe from a Cygwin shell has access denied for some dll's ===
* Do a '<tt>cd bin</tt>' followed by '<tt>chmod a+x *</tt>' to make all dll files executable.
* Do a '<tt>cd bin</tt>' followed by '<tt>chmod a+x *</tt>' to make all dll files executable.
===I cannot start my sim====
===I cannot start my sim===
* See [[Configuration]]
* See [[Configuration]]

Revision as of 08:09, 17 March 2008

This page gives any system-specific configuration settings that may be useful, and advice for problems that might be encountered.


System-specific configuration

CentOS 5

To install mono and nant, you can use the "Linux Installer for x86" found at

SVN can be installed by:

yum install subversion

Mono defaults to installing into /opt, so you may have to add this path to your environment variables, for example, in your ~/.bashrc:

export PATH="/opt/mono-1.2.5/bin:$PATH"
export PKG_CONFIG_PATH="/opt/mono-1.2.5/lib/pkgconfig:$PKG_CONFIG_PATH"
export MANPATH="/opt/mono-1.2.5/share/man:$MANPATH"
export LD_LIBRARY_PATH="/opt/mono-1.2.5/lib:$LD_LIBRARY_PATH"

After changing LD_LIBRARY_PATH, you should update the dynamic linker cache:


You may still encounter the "The current runtime framework 'mono-2.0' is not correctly configured in the NAnt configuration file." error listed below. In that case, this may fix this:

yum install glib

If you are running a firewall as well (i.e., if iptables -L shows a list of ACCEPT and REJECT rules), you'll have to open the necessary ports if you want to access the sim from other machines. For standalone mode:

iptables -I RH-Firewall-1-INPUT -p tcp --dport 9000 -j ACCEPT
iptables -I RH-Firewall-1-INPUT -p udp --dport 9000 -j ACCEPT

Debian 4.0r0

If you set your system to use unstable sources, and then install some packages listed below, everything should just work. To use unstable sources, modify your /etc/apt/sources.list file, replacing 'etch' or 'stable' with 'unstable':

deb unstable main
deb-src unstable main

Then update your packages to the new versions:

apt-get update
apt-get dist-upgrade

This will probably change a large number of packages, and may break things. In my experience, however, if you do not use unstable sources then the packages are not up to date enough, and you run into version issues, which lead to two DllNotFoundException errors below appearing in the console output: gdiplus.dll and

Once the sources are updated, we need to install the necessary packages to be able to build OpenSim:

apt-get install subversion mono nant mono-gmcs mono-mjs libmono-microsoft8.0-cil libmono-system-runtime2.0-cil

If any of these packages are missing, you'll probably encounter one of the errors listed below. However, with these packages, OpenSim should build cleanly.


some Mono dependency & latest Mono itself may use "~x86" masked packages (assuming x86 is your platform, change may be made to reflect your ex:"~amd64" for 64bits). You could check for USE parameter with:

ACCEPT_KEYWORDS="~x86" emerge -vp subversion nant mono libgdiplus

Ten install with:

ACCEPT_KEYWORDS="~x86" emerge subversion nant mono libgdiplus

N.B: The ACCEPT_KEYWORDS="~x86" can be set in Gentoo /etc/make.conf file, but that turn up all the emerges in testing/unstable, using it at the begining of emerge command line use it only for current emerge process

Mac OS X

This assumes you're using the universal binary for mono from the Mono Project site.

If you are using OS X 10.4, you should also install X11 from the OS X install CDs. In OS X 10.5, this is not required.

If you get errors about the 2.0 framework not being supported, you may need to update your pkg-config path. I set this in ~/.bash_profile:

export PKG_CONFIG_PATH="/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/:${PKG_CONFIG_PATH}"

Errors and fixes

Build workarounds due to non-functionality or bugs:

Disappearing prims due to duplicate UID's

Generally this problem occurs when a save-xml/load-xml file is loaded into the same sim without using the -newUID switch to generate new UUID's for the objects. This switch is documented in the general server commands section. (load-xml <filename> -newUID). But if this does not work, the other way is to shift-copy your build and drag it up into the air.. then delete the one in the air, (which is actually the copy). This will generate new UID's on all your prims.. you can now leave that build, and load your original load-xml file in another region.

Linked objects not scaling/editing properly

From Mantis [# 135] and [# 223]:
Linked objects: while linking/unlinking objects seems to work fine, the editing of single prims inside a linked object doesn't work correctly. You have to check the box "Edit linked parts", then you can select a single prim and edit it, but in most cases the changes in size- and/or postion-parameters are not accepted and revert immediately to the original ones. It is not completely reproducible, as it may work in some single case though.
Workaround: unlink the whole object, make the changes, and relink the whole thing again.
note: re-scaling unlinked objects in grid mode seems to work better than in standalone.

Exception and loss of ode physics System.EntryPointNotFoundException: dSpaceLockQuery

The following is usually caused by using the wrong version of libode. First try find / -name "" to see if you have other copies of the ode physics engine. Then make sure you have the latest version of this.

[SCENE] [02-01 22:20:40] System.EntryPointNotFoundException: dSpaceLockQuery

 at (wrapper managed-to-native) Ode.NET.d:SpaceLockQuery (intptr)
 at OpenSim.Region.Physics.OdePlugin.OdeScene.waitForSpaceUnlock (IntPtr space) [0x00000] 
 at OpenSim.Region.Physics.OdePlugin.OdeCharacter.AvatarGeomAndBodyCreation (Single npositionX, Single npositionY, Single npositionZ, Single tensor) [0x00000] 
 at OpenSim.Region.Physics.OdePlugin.OdeCharacter..ctor (System.String avName, OpenSim.Region.Physics.OdePlugin.OdeScene parent_scene, OpenSim.Region.Physics.Manager.PhysicsVector pos) [0x00000] 
 at OpenSim.Region.Physics.OdePlugin.OdeScene.AddAvatar (System.String avName, OpenSim.Region.Physics.Manager.PhysicsVector position) [0x00000] 
 at OpenSim.Region.Environment.Scenes.ScenePresence.AddToPhysicalScene () [0x00000] 
 at OpenSim.Region.Environment.Scenes.ScenePresence.MakeRootAgent (LLVector3 pos, Boolean isFlying) [0x00000] 
 at OpenSim.Region.Environment.Scenes.Scene.AgentCrossing (UInt64 regionHandle, LLUUID agentID, LLVector3 position, Boolean isFlying) [0x00000]

MySQL connection errors after about 6-8 hours

MySQL has a timeout which drops the connection after 28,800 seconds of inactivity. So increase this to 31536000. Using set global wait_timeout=31536000; from the mysql console if you get these erros.

System.DllNotFoundException: gdiplus.dll

First, check to make sure that is known to the dynamic linker:

/sbin/ldconfig -p | grep libgdiplus

If nothing is found, make sure that the directory exists in is either in your LD_LIBRARY_PATH environment variable or listed in a *.conf file (e.g., gdiplus.conf) in /etc/ Then run ldconfig to update the cache. Then it should be able to find the library.

You may still have the above error, however, since libgdiplus also depends on other dynamic libraries, and if they fail to load, libgdiplus will fail. To test for this, run OpenSim with debugging information turned on:

MONO_LOG_LEVEL=debug mono OpenSim.exe

It may show errors loading other libraries, like In that case, linking to an existing version of the offending library may work:

ln -s

(Is there a cleaner solution than this?)

The assembly mscorlib.dll was not found or could not be loaded

This indicates that you are missing one of the mscor libs that comes with nant. This is easily solved by getting NAnt, which comes with both versions 1.0 and 2.0 of the required lib.

apt-get install nant

External Program Failed: /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe

This is quickly fixed by retrieving mono-gmcs.

apt-get install mono-gmcs

The type or namespace name JScript does not exist in the namespace Microsoft

Note that it says Jscript over and over again. Hint perhaps?

apt-get install mono-mjs libmono-microsoft8.0-cil

On Fedora, the needed package is mono-jscript

The type or namespace name Tcp does not exist in the namespace System.Runtime.Remoting.Channels

This one is taken care of with a quick install:

apt-get install libmono-system-runtime2.0-cil


 You are on 64bit linux machine and my need to follow these instructions: Installing and running on x86-64 

error while loading shared libraries: cannot open shared object file

If you start with a base Debian system as we did at the top of the page, but instead of using the apt version of mono you use the installer from their website, then you may encounter this issue.

After getting the .bin file from, and executing it as per its instructions, upon finishing, you may find that if you try to run `mono --version` you are presented with this message. This one means you need to install libglib2.0-0.

apt-get install libglib2.0-0

The current runtime framework 'mono-2.0' is not correctly configured in the NAnt configuration file.

This one seems to be fixed by retrieving the apt version of nant.

apt-get install nant

This can also be due to pkg-config not being able to locate the mono.pc file. Adding the directory containing this file to the environment variable PKG_CONFIG_PATH may solve this.

Networking and config issues

  See Running section

You are able to log in, but not connect to a Region from a remote client

   Look in your OpenSimulator/bin/Regions folder 
   1) Try for the internal_ip_address in your region.xml(default.xml) file
        (you'll have one of those files *per* region you've created)
   2) external_host_name="" will need to be changed to the accessable DNS name
       such as "" or "" (your public accessable ip)

Building OpenSim

I can't find any build files or solution files

  • If you're on Windows, run runprebuild.bat - on Linux/Mac/FreeBSD, run

VS2005 won't open the .sln file

  • Try running VS2005 C#. You are probably running VS2005 C++. This is a C# project.

Running OpenSim

Running OpenSim.exe from a Cygwin shell has access denied for some dll's

  • Do a 'cd bin' followed by 'chmod a+x *' to make all dll files executable.

I cannot start my sim

Something Has Gone Wrong!

I get errors concerning 'owner_uuid' when starting up my grid after updating from svn beyond r3254

When updating to recent revisions after r3254, we are now using the unused owner_uuid. There are some grids whose mysql tables were created during a time when this field was inadvertently removed from the .sql script that initializes the regions table. Logging in to your mysql instance and executing this SQL query to add the missing owner_uuid should solve this issue:

alter table `regions` add column `owner_uuid` varchar(36) default '00000000-0000-0000-0000-000000000000' not null, comment 'Rev.2';

The punctuation around regions and owner_uuid is "grave accent". The punctuation around the default value and the comment is the single quote. The "grave accent" is the one generally to the left of the One button, under the tilde and the single-quote, is, well, underneath the double quote. I think this matters to mysql.

I get errors concerning 'State' when starting up my grid after updating from svn beyond r3786

After r3786, a new 'State' field has been added to the 'primshapes' table on SQLite. This field is used to persist trees and grass. You may have an empty region at startup, because OpenSim does not find this 'State' field and does not know what to do. The best is to use SQLiteBrowser or another SQLite table editor (download it at to create the missing field:

alter table primshapes add column State integer default 0

Just launch SQLiteBrowser, use File/Open database, then browse to OpenSim.db file and open it. Then, go to the "Execute SQL" tab, copy/paste the command above in the "SQL string" textbox, then hit the "Execute query" button.

I get a timeout during region handshake

  • Do you have the correct IP in your Regions\* config files?
  • Do you have multiple interfaces on the server running OpenSim? OpenSim will not bind outgoing UDP packets to a specific IP, its default IP to reach you will be what the Region answers UDP with. If you have configured the region for another IP you will get a timeout during connect.

I cannot connect to my OpenSim

I can connect but cannot move

If the client connects but the avatar can only spin in place and not move, then the sim is not correctly configured. It completed the initial login function, but packets are not being exchanged between the client and the sim, probably due to a network configuration error on the sim.

From time to time my Avatar seems to get stuck

Right now there is a bottle neck when syncing prims off to the database. This will cause small (5 - 10 second) apparent hangs of the Avatar, but it will recover fine once the data is synced. It is a known issue based on legacy architecture of some of the data storage code. We hope this will be removed soon.

I have problems with viewing the worldmap

  • This may happen when running OpenSim on a Linux server, both in grid or standalone mode.
  • Symptoms: when opening the worldmap window in the SL-viewer, the sims are not displayed grahically in the worldmap, the server console shows some error related to openjpeg, the current session freezes...
  • Reason: your svn source trunk does not have the correct (or whatever...) libopenjpeg-libsl library.
  • Other reason: the file "defaultstripe.png" does not exists in the same OpenSim folder, or is corrupted.
  • Solution: get the newest code from libsecondlife (svn co svn://, 'make' manually in the subdir openjpeg-libsl, and copy the resulting into your OpenSim bin subdir, overwriting the existing one.
  • Recompile & restart OpenSim

Exceptions on the Console

This is a list of Exceptions that you may see on the console, what they mean, and if they are a problem.

System.DllNotFoundException: ./

Failed generating terrain map: System.DllNotFoundException: ./
at (wrapper managed-to-native) OpenJPEGNet.OpenJPEG:LibslAllocDecoded OpenJPEGNet.OpenJPEG/LibslImage&)
at OpenJPEGNet.OpenJPEG.Encode (System.Byte[] decoded, Int32 width, Int32 height, Int32 components, Boolean lossless) [0x00000]
at OpenJPEGNet.OpenJPEG.EncodeFromImage (System.Drawing.Bitmap bitmap, Boolean lossless) [0x00000]
at OpenSim.Region.Terrain.TerrainEngine.ExportJpegImage (System.String gradientmap) [0x00000]

You are on Linux, and the native lib is not compatible with your system for one of the following reasons:

  • You have an old processor (libopenjpeg has been compiled with optimizations)
  • You are running in 64bit mode (none of the native libs are built for 64bit)

You can rebuild your own libopenjpeg from source, or run in a compatible environment. You can do this by:

svn co svn:// libsl
cd libsl/openjpeg-libsl/

then copy into OpenSim bin-folder.

Grid Mode

Note: Grid Mode isn't officially supported yet. As such, you are pretty much on your own if you are trying to get OpenSim up and running in Grid Mode.

I start the sim and it doesn't connect to any grid

When OpenSim is first started, it needs configuration.

I start the OpenSim.Grid.UserServer.exe and it gives an error

If this error is access denied for username@localhost, the mysql database is not set up. It will print some text and wait for input - either an enter to accept a default value, or another value you can supply.

I want to run my own Local Grid but one or more servers fail to start

  • Be sure that you're able to start OpenSim.exe alone, in Standalone mode, and to be able to login.
  • Start the servers in the correct UGAS order and answer the questions as recommended (see OpenSim: Configuration).
  • Set all the external URI's to the correct IP: if running on your local machine, or aaa.bbb.ccc.ddd if running on a remote server.
  • Check again all the *.xml configuration files for any wrong settings or typing errors...!
  • Don't forget to connect with your SL-viewer to port 8002 (Grid User-Server) instead of 9000 (Standalone OpenSim-Server).
  • Delete all *.xml and *.yap files in the bin directory if you want to run a full reconfiguration again.

I get a bunch of asset not found errors, while connected to a online grid, and my inventory doesn't seem to work right

  • Make sure your opensim.ini has ' asset_database = "grid" ' otherwise it will not work correctly.
Personal tools
About This Wiki