RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Server Crashy

Erucid

Sorceror
My first crashy. What happened?

Code:
Error:
System.NullReferenceException: Object reference not set to an instance of an object
  at Server.Network.NetState.get_IsUOTDClient () [0x00000]
  at Server.Effects.SendParticlesTo (Server.Network.NetState state) [0x00000]
  at Server.Effects.SendTargetParticles (IEntity target, Int32 itemID, Int32 speed, Int32 duration, Int32 hue, Int32 renderMode, Int32 effect, EffectLayer layer, Int32 unknown) [0x00000]
  at Server.Mobile.FixedParticles (Int32 itemID, Int32 speed, Int32 duration, Int32 effect, Int32 hue, Int32 renderMode, EffectLayer layer) [0x00000]
  at Server.Spells.Chivalry.CloseWoundsSpell.Target (Server.Mobile m) [0x00000]
  at Server.Spells.Chivalry.CloseWoundsSpell+InternalTarget.OnTarget (Server.Mobile from, System.Object o) [0x00000]
  at Server.Targeting.Target.Invoke (Server.Mobile from, System.Object targeted) [0x00000]
  at Server.Network.PacketHandlers.TargetResponse (Server.Network.NetState state, Server.Network.PacketReader pvSrc) [0x00000]
  at Server.Network.MessagePump.HandleReceive (Server.Network.NetState ns) [0x00000]
  at Server.Network.MessagePump.Slice () [0x00000]
  at Server.Core.Main (System.String[] args) [0x00000]
Crash: Backing up...done

Code:
Server Crash Report
===================

RunUO Version 2.1, Build 3832.8042
Operating System: Unix 2.6.32.5
.NET Framework: 2.0.50727.1433
Time: 5/10/2011 4:03:24 PM
Mobiles: 2694
Items: 102798
Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at Server.Network.NetState.get_IsUOTDClient () [0x00000]
  at Server.Effects.SendParticlesTo (Server.Network.NetState state) [0x00000]
  at Server.Effects.SendTargetParticles (IEntity target, Int32 itemID, Int32 speed, Int32 duration, Int32 hue, Int32 renderMode, Int32 effect, EffectLayer layer, Int32 unknown) [0x00000]
  at Server.Mobile.FixedParticles (Int32 itemID, Int32 speed, Int32 duration, Int32 effect, Int32 hue, Int32 renderMode, EffectLayer layer) [0x00000]
  at Server.Spells.Chivalry.CloseWoundsSpell.Target (Server.Mobile m) [0x00000]
  at Server.Spells.Chivalry.CloseWoundsSpell+InternalTarget.OnTarget (Server.Mobile from, System.Object o) [0x00000]
  at Server.Targeting.Target.Invoke (Server.Mobile from, System.Object targeted) [0x00000]
  at Server.Network.PacketHandlers.TargetResponse (Server.Network.NetState state, Server.Network.PacketReader pvSrc) [0x00000]
  at Server.Network.MessagePump.HandleReceive (Server.Network.NetState ns) [0x00000]
  at Server.Network.MessagePump.Slice () [0x00000]
  at Server.Core.Main (System.String[] args) [0x00000]

Clients:
- Count: 5
+ 99.68.126.192: (account = erbert) (mobile = 0x15 'Kenjo Poe')
+ 98.134.204.83: (account = jordan) (mobile = 0x1846 'huchi momma')
+ 98.134.204.83: (account = haydn) (mobile = 0x157C 'Ishimaru Tomoshi')
+ 98.134.204.83: (account = tylergm) (mobile = 0x630 'Nobi')
+ 98.134.204.83: (account = bigrick17) (mobile = 0x1A51 'ventor')
 

Erucid

Sorceror
Umm well what do you mean by 'the core' and what do you mean by 'modify'. I've got lots of custom scripts. and some custom scripts required modifications to some of the default runuo scripts.

I can't read that crash log. But it looks to me like close wounds crashed the server. And I can't think of anything ever having been changed regarding that script.
 

Phr3d13

Sorceror
i would run in debug mode ( -debug or /debug can't remember which) and try to re-produce the crash. it'll give you more info to work with
 

Erucid

Sorceror
my start runuo script is as follows.
Code:
cd /runuo/devel
nohup mono runuo.exe -debug -v >> console.log &
So I should be in debug mode always, right? This isn't a production server yet. I'm still 'in testing' with my friends. But we thinking it is getting ready to go production soon. I will attempt to reproduce the crash.
 

Erucid

Sorceror
crash again.
Code:
ant2ne@Nedimare-01:/runuo/devel$ cat "Crash 11-5-2011-7-38-50.log"
Server Crash Report
===================

RunUO Version 2.1, Build 3832.8042
Operating System: Unix 2.6.32.5
.NET Framework: 2.0.50727.1433
Time: 5/11/2011 7:38:50 AM
Mobiles: 2699
Items: 101857
Exception:
System.UnauthorizedAccessException: Access to the path "/runuo/devel/Saves/Mobiles/Mobiles.idx" is denied.
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000]
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000]
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at Server.BinaryFileWriter..ctor (System.String filename, Boolean prefixStr) [0x00000]
  at Server.StandardSaveStrategy.SaveMobiles (Server.SaveMetrics metrics) [0x00000]
  at Server.StandardSaveStrategy.Save (Server.SaveMetrics metrics) [0x00000]
  at Server.World.Save (Boolean message) [0x00000]
  at Server.World.Save () [0x00000]
  at Server.Misc.AutoSave.Save () [0x00000]
  at Server.Misc.AutoSave.OnTick () [0x00000]
  at Server.Timer.Slice () [0x00000]
  at Server.Core.Main (System.String[] args) [0x00000]

Clients:
- Count: 0

looking at the perms for that path
Code:
ant2ne@Nedimare-01:/runuo/devel$ ls -l /runuo/devel/Saves/Mobiles/Mobiles.idx
-rw-r--r-- 1 root root 54164 2011-05-11 09:11 /runuo/devel/Saves/Mobiles/Mobiles.idx
so I changed it to something more reasonable and will continue to monitor
 

Erucid

Sorceror
Still crashing with same error. Loosened up perms again on that directory. Still not sure what is causing this, or what could have changed.
 

tass23

Page
What about the file permissions themselves? What OS are you running on? When is the crash happening, only during saves? Do you get any warnings when you restart the server after one of those crashes? Another suggestion might be to try a different save backup and see if it continues to happen. Maybe the save file got corrupted.
 

Erucid

Sorceror
debian linux and mono.

It appears to be happening at a regular interval. I think it IS related to the saves. No other warnings that I've noticed. What do you mean by "try a different save backup"?

I notice the perms on that directory keep getting reset back to 644

Code:
ls -l "/runuo/devel/Saves/Mobiles"

total 1672

-rw-r--r-- 1 root root 1631491 2011-05-12 10:26 Mobiles.bin

-rw-r--r-- 1 root root 57704 2011-05-12 10:26 Mobiles.idx

-rw-r--r-- 1 root root 5858 2011-05-12 10:26 Mobiles.tdb

And I'm sure as hell not sure how. I even have a cron job that runs every hour to set the perms and ownership.
Code:
# m h dom mon dow command

1 * * * * chmod 773 -R /runuo/devel

1 * * * * chown sysop:runuosers -R /runuo/devel

sysop=root
runuoser= a group

including a few accounts that I use to manage and execute runuo and mono.

I'm gonna tweak cron to run every 15 minutes to prevent these crashes as often. Still need to know what is breaking that dir permissions.
 

Erucid

Sorceror
Still crashing and those permissions keep changing. What do the files in that directory even do? I haven't made any server changes lately. Not on the script or OS level. In game only.
 

Phr3d13

Sorceror
this is just a guess, but it looks like they are all the stuff/props all the mobiles have at world save
 

Lichtblitz

Sorceror
When the server performs a world save it creates a backup of the current world save and clears the entire save folder. It then recreates the folder structure in there and saves the world to the different files. Since the folders are deleted and recreated the permissions change to either the default values or whatever RunUO sets up.
 

Erucid

Sorceror
either the default values or whatever RunUO sets up
I don't even know if the permissions ARE the problem. But how do I change these default permissions? Why would it have changed? I've been running stable for months without any problems.
 

Erucid

Sorceror
did a
Code:
mv devel/Saves devel/Saves.old
I then logged ingame and saved and restarted the shard. That genearted a new devel/Saves directory. Hasn't crashed since *fingers crossed*
 
Top