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 02-29-2016, 07:11 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default Strange Shared_Memory issue

Moving my server between Debian installs I am getting a new shared memory error. The directory is there, just called "shared". I have tried giving permissions as the user and even run shared_memory as root and still get the same errors. Strangest thing...

Code:
[Zone Server] Loading items
[Error] Error Loading Items: EQEmu Exception (Shared Memory) in /home/eq1/src/common/memory_mapped_file.cpp at line (112): Could not open the file to find the existing file size.
[Error] Loading items FAILED!
[Error] Failed. But ignoring error and going on...
[Zone Server] Loading npc faction lists
[Error] Error Loading npc factions: EQEmu Exception (Shared Memory) in /home/eq1/src/common/memory_mapped_file.cpp at line (112): Could not open the file to find the existing file size.
[Error] Loading npcs faction lists FAILED!
Looking at line 112 that is definitely where it is trying to open the file. I am at a loss here, unless there is something drastic between Debian versions.
Reply With Quote
  #2  
Old 02-29-2016, 07:45 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Where are your files and what are your permissions? Are you using symlinks? Give an ls -al on your emu root folder?
Reply With Quote
  #3  
Old 02-29-2016, 08:01 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Code:
-rwxr-xr-x   1 root root       319 Feb 29 13:19 1
-rwxr-xr-x   1 root root         0 Feb 29 13:19 base_data.lock
-rw-------   1 root root      1979 Feb 29 17:23 .bash_history
drwxr-xr-x   2 root root      4096 Feb 28 22:22 bin
-rwxr-xr-x   1 root root         0 Feb 29 13:22 commands.pl
drwxr-xr-x   2 root root      4096 Feb 28 22:40 db_update
-rwxr-xr-x   1 root root      1339 Feb 29 14:05 eqemu_config.xml
-rwxr-xr-x   1 root root     49427 Feb 29 13:22 eqemu_query_error_log.txt
-rwxr-xr-x   1 root root     56874 Feb 29 13:22 eqemu_update.pl
-rwxr-xr-x   1 root root   2436658 Feb 29 13:22 eqlaunch
-rwxr-xr-x   1 root root        29 Feb 29 14:55 eqtime.cfg
drwxr-xr-x   2 root root      4096 Feb 28 22:41 export
-rwxr-xr-x   1 root root   3857506 Feb 29 13:22 export_client_files
-rwxr-xr-x   1 root root         0 Feb 29 13:22 faction.lock
-rwxr-xr-x   1 root root      1774 Feb 29 13:22 guides_install
-rwxr-xr-x   1 root root      1565 Feb 29 13:22 hotzones.pl
-rwxr-xr-x   1 root root   3894495 Feb 29 13:23 import_client_files
-rwxr-xr-x   1 root root         0 Feb 29 13:23 items.lock
-rwxr-xr-x   1 root root  31514692 Feb 29 13:23 libcommon.a
-rwxr-xr-x   1 root root   4545178 Feb 29 13:23 libluabind.a
-rwxr-xr-x   1 root root       666 Feb 29 13:23 log.ini
drwxr-xr-x   3 root root      4096 Feb 28 22:44 loginserver
drwxr-xr-x   2 root root      4096 Feb 29 18:03 logs
-rwxr-xr-x   1 root root         0 Feb 29 13:27 loot.lock
drwxr-xr-x   2 root root      4096 Feb 29 05:19 lua_modules
-rwxr-xr-x   1 root root       300 Feb 29 13:27 mail_opcodes.conf
drwxr-xr-x   5 root root     28672 Feb 29 17:27 Maps
-rwxr-xr-x   1 root root       925 Feb 29 17:27 mime.types
-rwxr-xr-x   1 root root     16679 Feb 29 17:30 opcodes.conf
-rwxr-xr-x   1 root root     17703 Feb 29 17:30 patch_6.2.conf
-rwxr-xr-x   1 root root     15808 Feb 29 17:30 patch_RoF2.conf
-rwxr-xr-x   1 root root     16375 Feb 29 17:30 patch_RoF.conf
-rwxr-xr-x   1 root root     18951 Feb 29 17:30 patch_SoD.conf
-rwxr-xr-x   1 root root     22852 Feb 29 17:30 patch_SoF.conf
-rwxr-xr-x   1 root root     18860 Feb 29 17:30 patch_Titanium.conf
-rwxr-xr-x   1 root root     19469 Feb 29 17:30 patch_UF.conf
-rwxr-xr-x   1 root root     19394 Feb 29 17:30 patch_Underfoot.conf
-rwxr-xr-x   1 root root         0 Feb 29 17:30 plugin.pl
drwxr-xr-x   2 root root      4096 Feb 29 17:30 plugins
-rwxr-xr-x   1 root root   2668837 Feb 29 17:31 queryserv
drwxr-xr-x 242 root root     12288 Feb 29 17:54 quests
drwxrwxrwx   2 root root      4096 Feb 29 17:59 shared
-rwxr-xr-x   1 root root   4162668 Feb 29 18:00 shared_memory
-rwxr-xr-x   1 root root         0 Feb 29 18:00 skill_caps.lock
-rwxr-xr-x   1 root root         0 Feb 29 18:00 spells.lock
-rwxr-xr-x   1 root root  19355741 Feb 29 18:01 spells_us.txt
-rwxr-xr-x   1 root root      1371 Feb 29 18:01 start
-rwxr-xr-x   1 root root       387 Feb 29 18:01 stop
drwxr-xr-x   3 root root      4096 Feb 29 18:01 templates
-rwxr-xr-x   1 root root   5528710 Feb 29 18:01 ucs
-rwxr-xr-x   1 root root  19229645 Feb 29 18:02 world
-rwxr-xr-x   1 root root         0 Feb 29 18:02 worldui.pl
-rwxr-xr-x   1 root root 111419400 Feb 29 18:04 zone
root@con:~#
Reply With Quote
  #4  
Old 02-29-2016, 08:10 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

So all owned by root:root. What happens when you run ./shared_memory all by itself as root?
Reply With Quote
  #5  
Old 02-29-2016, 08:14 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

It runs as normal and fills the directory, all files have sizes

Code:
-rw------- 1 root root    88072 Feb 29 17:53 base_data
-rw------- 1 root root   244756 Feb 29 17:53 faction
-rw------- 1 root root 79878824 Feb 29 17:53 items
-rw------- 1 root root  6236788 Feb 29 17:53 loot_drop
-rw------- 1 root root  1437173 Feb 29 17:53 loot_table
-rw------- 1 root root   315400 Feb 29 17:53 skill_caps
-rw------- 1 root root 34189048 Feb 29 17:53 spells
Reply With Quote
  #6  
Old 02-29-2016, 08:15 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

I pretty well set my debugging to max, so I am getting plenty of data back when zone runs.

Code:
[Zone Server] Loading server configuration..
[Zone Server] Connecting to MySQL...
[Status] Starting File Log 'logs/zone_3817.log'
[Zone Server] CURRENT_VERSION: 1.1.3
[Zone Server] Mapping Incoming Opcodes
[Zone Server] Loading Variables
[MySQL Query] SELECT varname, value, unix_timestamp() FROM variables where unix_timestamp(ts) >= 0 (22 rows returned)
[Zone Server] Current hotfix in use: 'hotfix_'
[Zone Server] Loading zone names
[MySQL Query] SELECT zoneidnumber, short_name FROM zone (483 rows returned)
[Zone Server] Loading items
[Error] Error Loading Items: EQEmu Exception (Shared Memory) in /home/eq1/src/common/memory_mapped_file.cpp at line (112): Could not open the file to fi                                                                        nd the existing file size.
[Error] Loading items FAILED!
[Error] Failed. But ignoring error and going on...
[Zone Server] Loading npc faction lists
[Error] Error Loading npc factions: EQEmu Exception (Shared Memory) in /home/eq1/src/common/memory_mapped_file.cpp at line (112): Could not open the fil                                                                        e to find the existing file size.
[Error] Loading npcs faction lists FAILED!
Reply With Quote
  #7  
Old 02-29-2016, 08:37 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,165
Default

Eww running as root.
Reply With Quote
  #8  
Old 02-29-2016, 08:38 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

I'm wondering if this is a nesting permissions issue. Is your original user eq1? I recommend going back and chowning everything (-R from src) back to eq1, clear locks/logs, rebuild and run everything as that user again.

EDIT: Haha, demon and I were thinking the same thing...
Reply With Quote
  #9  
Old 02-29-2016, 08:42 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Quote:
Originally Posted by demonstar55 View Post
Eww running as root.
Never, that was just for troubleshooting, I know better.
Reply With Quote
  #10  
Old 02-29-2016, 09:07 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

provocating, run this and try again:

Code:
UPDATE `variables` SET `value`='' WHERE (`varname`='hotfix_name')
Let me know how this works for you
Reply With Quote
  #11  
Old 02-29-2016, 09:53 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

That did it. Now I am completely confused why that would have any effect at all. Should this be something I include in a reboot script?
Reply With Quote
  #12  
Old 02-29-2016, 10:48 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

It's kind of a "bug", it's working as intended but its an issue that folks run into when they make use of #hotfix.

I'll look into making a long term solution for it.
Reply With Quote
  #13  
Old 02-29-2016, 11:27 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

If you can enlighten me on what is causing it, I would like to go ahead and change it in my source. I use hotfix at least a few times a day.
Reply With Quote
  #14  
Old 02-29-2016, 11:38 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by provocating View Post
If you can enlighten me on what is causing it, I would like to go ahead and change it in my source. I use hotfix at least a few times a day.
I'm working on it right now, calm your tits
Reply With Quote
  #15  
Old 02-29-2016, 11:58 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Done and tested.

Works.

https://github.com/EQEmu/Server/comm...1ca89d83683c1b

Profit.

Love me long time
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 04:22 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