Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2007, 03:30 AM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default Shared memory error when starting server after reboot.

Whenever I start my server after a reboot I always see the following:

SharedMemory->datasize(0) != iSize(36508172), We can rebuild him faster better STRONGER!
Or not.. restart all servers on this machine

I run gentoo linux and have applied the shmmax fix as noted in this post which corrected the shmat issue from before but this new error just start popping up a few server revisions ago. Basically I just restart the server and it is fine until the PC is rebooted then I get the line again. If I stop the server then start it again without rebooting the pc I do not get the error.

I have the following line added to /etc/sysctl.conf:
kernel.shmmax = 134217728

and also did the command /sbin/sysctl -p to make it permanent.

When I run:
cat /proc/sys/kernel/shmmax

it returns:
134217728

Any help is appreciated.
Reply With Quote
  #2  
Old 12-20-2007, 07:27 AM
Bishop4351
Sarnak
 
Join Date: Sep 2006
Location: Texas
Posts: 49
Default

I had this this morning after a server crash I restarted world and it was good.
Reply With Quote
  #3  
Old 12-20-2007, 08:08 AM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default

Try rebooting your PC and then start the eqemu server up again you will get the same message and will have to stop the eqemu server and restart it for it to go away. Then it will be good until your server reboots , then you will have to do the process over.
Reply With Quote
  #4  
Old 12-26-2007, 08:11 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Look for my post about "shmmat" issues. There are a few solutions in there to make a perma change to your kernal.shmmax size.
Reply With Quote
  #5  
Old 12-27-2007, 12:58 AM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default

Thanks for the reply John but I did follow all the directions in that post a while ago. Also in my first post in this thread I listed the values:

From the top:

I have the following line added to /etc/sysctl.conf:
kernel.shmmax = 134217728

and also did the command /sbin/sysctl -p to make it permanent.

When I run:
cat /proc/sys/kernel/shmmax

it returns:
134217728
Reply With Quote
  #6  
Old 01-01-2008, 04:00 AM
narcberry
Sarnak
 
Join Date: Mar 2005
Location: Idaho, USA
Posts: 94
Default

I have same problem. I have increased my shmmax and it persists after reboots. I'm running Eqemu 0.7.0-1070 on ubuntu with a clean install, and a fresh database from peq cvs.

On first load of world I get
Code:
SharedMemory->datasize(0) != iSize(31898332), We can rebuild him faster better STRONGER!
Or not.. restart all servers on this machine

It only displays on first world run after a server boot. It's not just a nuisance for me, since I also am getting this on zone launches:
Code:
Error: EMuShareMem: DLLLoadItems: iItemStructSize != sizeof(Item_Struct)
Item_Struct has changed, EMuShareMem.dll needs to be recompiled.
[Debug] [ZONE__INIT_ERR] Loading items FAILED!
[Debug] [ZONE__INIT] Failed.  But ignoring error and going on...
[Debug] [ZONE__INIT] Loading npc faction lists
Error: EMuShareMem: DLLLoadNPCFactionLists: iNPCFactionListStructSize != sizeof(NPCFactionList)
NPCFactionList struct has changed, EMuShareMem.dll needs to be recompiled.
[Debug] [ZONE__INIT_ERR] Loading npcs faction lists FAILED!
I can run 0.7.0-989 just fine, dunno about any versions in between. I've been struggling with this for a couple weeks now off and on. Lend me your head so I can pull out your hair too pls.
__________________
Thanks for answering my questions.
My Website
Reply With Quote
  #7  
Old 01-11-2008, 08:05 AM
narcberry
Sarnak
 
Join Date: Mar 2005
Location: Idaho, USA
Posts: 94
Default

I am still struggling with this. Has anyone else experienced this problem?
__________________
Thanks for answering my questions.
My Website
Reply With Quote
  #8  
Old 01-11-2008, 09:18 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Code:
Error: EMuShareMem: DLLLoadItems: iItemStructSize != sizeof(Item_Struct)
Item_Struct has changed, EMuShareMem.dll needs to be recompiled.
Would suggest the version of zone/world and libEMuShareMem.so are incompatible. When you run the 1070 server, are you sure it is picking up the 1070 version of zone/world and libEMuShareMem.so ?

E.g. you might have an older version of any of these files in your PATH or LD_LIBRARY_PATH which it is picking up before the 1070 versions, leading to it trying to e.g. run the 1070 zone/world with the 989 libEMuShareMem.so or any cominbation thereof.

Sorry if this is obvious and you already ruled this out, but I can't think what else it could be.
Reply With Quote
  #9  
Old 01-11-2008, 11:46 AM
narcberry
Sarnak
 
Join Date: Mar 2005
Location: Idaho, USA
Posts: 94
Default

Every compile I destroy my working server directory and copy in files from a build directory. But I may be linking to an old build directory instead of my working server directory. I'll check it out.

Win or lose, thanks for the help.
__________________
Thanks for answering my questions.
My Website
Reply With Quote
  #10  
Old 01-11-2008, 12:53 PM
krusher
Sarnak
 
Join Date: Jan 2003
Location: Grand Rapids, MI
Posts: 90
Default DB table struct error

This can be caused by a table in the db that dosent have the correct columns for the release of your compiled Emusharemem lib file. Look through the changelog for the release and make sure your DB table struct is current with 107x.

Krusher
Reply With Quote
  #11  
Old 01-11-2008, 01:34 PM
narcberry
Sarnak
 
Join Date: Mar 2005
Location: Idaho, USA
Posts: 94
Default

Thanks, I have applied the necessary changelog changes, followed by dropping the entire database to load the peq database to ensure I hadn't made a mistake.


I found out that I was using the wrong libEMuShareMem.so, I had my old .so in /lib and so it didn't load the correct one in my working server directory. I removed the file and ln'd to the one in my server directory to avoid having this problem in the future.

Thanks all for the help.
__________________
Thanks for answering my questions.
My Website
Reply With Quote
  #12  
Old 01-11-2008, 03:37 PM
narcberry
Sarnak
 
Join Date: Mar 2005
Location: Idaho, USA
Posts: 94
Default

Well previous help has cleared up my libEMu problems, but I'm still getting
Quote:
SharedMemory->datasize(0) != iSize(31898332), We can rebuild him faster better STRONGER!
Or not.. restart all servers on this machine
on first server run.
__________________
Thanks for answering my questions.
My Website
Reply With Quote
  #13  
Old 01-11-2008, 03:53 PM
narcberry
Sarnak
 
Join Date: Mar 2005
Location: Idaho, USA
Posts: 94
Default

Server and zones will load and wait a connection. I can get to the character select screen, but on "enter world" my server console reads:

Quote:
Error: EMuShareMem: DLLLoadNPCFactionLists: !NPCFactionListsMMF.IsLoaded() (timeout)
[Debug] [ZONE__INIT_ERR] Loading npcs faction lists FAILED!
My client gets a near immediate zone unavailable error.
__________________
Thanks for answering my questions.
My Website
Reply With Quote
  #14  
Old 01-11-2008, 04:40 PM
narcberry
Sarnak
 
Join Date: Mar 2005
Location: Idaho, USA
Posts: 94
Default

turned out the peq db requires changelog sql fixes. I had assumed otherwise.

Server is up, thanks for the help.
__________________
Thanks for answering my questions.
My Website
Reply With Quote
  #15  
Old 01-12-2008, 03:51 AM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

If you required updates, then you are using the wrong CVS address, and aren't using the current db.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:30 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3