Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

could not gain write access to the shared memory file #58

Closed
0x83043 opened this issue Jul 1, 2017 · 6 comments
Closed

could not gain write access to the shared memory file #58

0x83043 opened this issue Jul 1, 2017 · 6 comments

Comments

@0x83043
Copy link

0x83043 commented Jul 1, 2017

Hi! I've caught the error wich related with rights i think. But i can't understand how to solve. Please help!

graphene@d657759b57d5:/eos$ eosd --config=./data-dir/config.ini
1540149ms thread-0   chain_plugin.cpp:60           plugin_initialize    ] initializing chain plugin
1540149ms thread-0   net_plugin.cpp:514            plugin_initialize    ] Initialize net plugin
1540149ms thread-0   net_plugin.cpp:520            plugin_initialize    ] configured net to listen on 127.0.0.1:9876
1540150ms thread-0   main.cpp:29                   main                 ] /eos/libraries/chainbase/src/chainbase.cpp(102): Throw in function chainbase::database::database(const bfs::path &, chainbase::database::open_flags, uint64_t)
Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >
std::exception::what: could not gain write access to the shared memory file
@pmesnier
Copy link
Contributor

pmesnier commented Jul 1, 2017

Hi,
Please run the following commands and report the results:
ls -l ./data-dir
ls -l ./data-dir/blockchain #or whatever you may have set the name to
umask
id

Then maybe we can figure out what the problem is

@0x83043
Copy link
Author

0x83043 commented Jul 1, 2017

graphene@162f8d36c4a6:/eos$ ls -l ./data-dir
total 12
drwxrwxr-x 2 graphene graphene 4096 Jun 29 18:26 blockchain
drwxrwxr-x 2 graphene graphene 4096 Jun 29 18:59 blocks
-rw-rw-r-- 1 graphene graphene 2413 Jul  1 09:03 config.ini
graphene@162f8d36c4a6:/eos$ ls -l ./data-dir/blockchain
total 5196
-rw-r--r-- 1 graphene graphene 8589934592 Jul  1 09:03 shared_memory.bin
-rw-r--r-- 1 graphene graphene       2896 Jul  1 09:03 shared_memory.meta
graphene@162f8d36c4a6:/eos$ umask
0002
graphene@162f8d36c4a6:/eos$ id
uid=1000(graphene) gid=1000(graphene) groups=1000(graphene),27(sudo)

@pmesnier
Copy link
Contributor

pmesnier commented Jul 1, 2017

Oh, you're trying to open a second writer on the same file!
The distributed testnet capability is not yet ready, but when it is, you will need to provide a separate data directory for each eosd instance. There'll be other config settings to modify too.

For the time being, just run a single eosd instance.

Now, if you are only running a single instance of eosd then we will have to dig into the arcana of shared memory and file locks to see how to recover. Did your previous run of eosd get abruptly terminated by say kill -9 or some unhandled signal like a segv?

@0x83043
Copy link
Author

0x83043 commented Jul 1, 2017

Oh, thanks! It still working after ^Z. I killed eosd, and started - it's ok. But next one:
Not producing block because I don't have the private key for EOS6MRyA....
How i can take valid kyes pair? It isn't take pair wich i try reg throw https://eos.io/distribution (i didn't send eth, may be in next windows).

@pmesnier
Copy link
Contributor

pmesnier commented Jul 1, 2017

OK, I don't have a full picture here. What are you trying to do? Are you modifying anything?

what do you mean it is still working after a ^Z? ^Z sends a sigstop to the process, which should leave it in the process table, with all resources held, just waiting to be continued. Then you use either the fg or bg command to continue the process either foregrounded or backgrounded. Is that what you mean?

Regarding the keys, the supplied genesis.json file has defaulted keypairs that should just work. Maybe you need to refresh your local git workspace.

@0x83043
Copy link
Author

0x83043 commented Jul 1, 2017

I was misled line after ^Z:
[1]+ Stopped eosd --data-dir=/eos/data-dir/ --genesis-json=/eos/genesis.json
I realized my mistake, thanks a lot!

I know about genesis.json with init nodes, but one pair need be listed in config.ini. I have taken values from --help option - it's work. Do I need registrade personal pair?

qianxiaofeng pushed a commit to eosiosg/eos that referenced this issue Apr 5, 2019
* update readme.md about MacOS binary install
NorseGaud pushed a commit that referenced this issue Jul 30, 2019
# This is the 1st commit message:

various improvements

# This is the commit message #2:

new hash

# This is the commit message #3:

fix for script path

# This is the commit message #4:

fixes

# This is the commit message #5:

fixes

# This is the commit message #6:

fixes

# This is the commit message #7:

fixes

# This is the commit message #8:

fixes

# This is the commit message #9:

fixes

# This is the commit message #10:

fixes

# This is the commit message #11:

fixes

# This is the commit message #12:

fixes

# This is the commit message #13:

fixes

# This is the commit message #14:

fixes

# This is the commit message #15:

fixes

# This is the commit message #16:

fixes

# This is the commit message #17:

fixes

# This is the commit message #18:

fixes

# This is the commit message #19:

fixes

# This is the commit message #20:

fixes

# This is the commit message #21:

fixes

# This is the commit message #22:

fixes

# This is the commit message #23:

fixes

# This is the commit message #24:

fixes

# This is the commit message #25:

fixes

# This is the commit message #26:

testing

# This is the commit message #27:

testing

# This is the commit message #28:

testing

# This is the commit message #29:

testing

# This is the commit message #30:

testing

# This is the commit message #31:

testing

# This is the commit message #32:

testing

# This is the commit message #33:

testing

# This is the commit message #34:

testing

# This is the commit message #35:

testing

# This is the commit message #36:

testing

# This is the commit message #37:

testing

# This is the commit message #38:

testing

# This is the commit message #39:

testing

# This is the commit message #40:

testing

# This is the commit message #41:

testing

# This is the commit message #42:

testing

# This is the commit message #43:

testing

# This is the commit message #44:

fixes

# This is the commit message #45:

fixes

# This is the commit message #46:

fixes

# This is the commit message #47:

fixes

# This is the commit message #48:

fixes

# This is the commit message #49:

fixes

# This is the commit message #50:

fixes

# This is the commit message #51:

fixes

# This is the commit message #52:

fixes

# This is the commit message #53:

fixes

# This is the commit message #54:

fixes

# This is the commit message #55:

fixes

# This is the commit message #56:

fixes

# This is the commit message #57:

fixes

# This is the commit message #58:

fixes

# This is the commit message #59:

fixes

# This is the commit message #60:

fixes

# This is the commit message #61:

fixes

# This is the commit message #62:

fixes

# This is the commit message #63:

fixes

# This is the commit message #64:

fixes

# This is the commit message #65:

fixes

# This is the commit message #66:

fixes

# This is the commit message #67:

fixes

# This is the commit message #68:

fixes

# This is the commit message #69:

fixes

# This is the commit message #70:

fixes

# This is the commit message #71:

fixes

# This is the commit message #72:

fixes

# This is the commit message #73:

fixes

# This is the commit message #74:

fixes

# This is the commit message #75:

fixes

# This is the commit message #76:

fixes

# This is the commit message #77:

fixes

# This is the commit message #78:

fixes

# This is the commit message #79:

more testing

# This is the commit message #80:

testing

# This is the commit message #81:

fixes

# This is the commit message #82:

fixes

# This is the commit message #83:

fixes

# This is the commit message #84:

fixes

# This is the commit message #85:

fixes

# This is the commit message #86:

fixes

# This is the commit message #87:

fixes

# This is the commit message #88:

fixes

# This is the commit message #89:

fixes

# This is the commit message #90:

fixes

# This is the commit message #91:

fixes

# This is the commit message #92:

fixes

# This is the commit message #93:

propagate-environment for buildkite-agent

# This is the commit message #94:

propagate-environment for buildkite-agent

# This is the commit message #95:

propagate-environment for buildkite-agent

# This is the commit message #96:

propagate-environment for buildkite-agent

# This is the commit message #97:

fixes

# This is the commit message #98:

fixes

# This is the commit message #99:

fixes

# This is the commit message #100:

fixes

# This is the commit message #101:

fixes

# This is the commit message #102:

fixes

# This is the commit message #103:

fixes

# This is the commit message #104:

fixes

# This is the commit message #105:

fixes

# This is the commit message #106:

fixes

# This is the commit message #107:

fixes

# This is the commit message #108:

fixes

# This is the commit message #109:

fixes

# This is the commit message #110:

fixes

# This is the commit message #111:

fixes

# This is the commit message #112:

fixes

# This is the commit message #113:

fixes

# This is the commit message #114:

fixes

# This is the commit message #115:

fixes

# This is the commit message #116:

fixes

# This is the commit message #117:

fixes

# This is the commit message #118:

fixes

# This is the commit message #119:

fixes

# This is the commit message #120:

fixes

# This is the commit message #121:

fixes

# This is the commit message #122:

fixes

# This is the commit message #123:

fixes

# This is the commit message #124:

fixes

# This is the commit message #125:

fixes

# This is the commit message #126:

fixes

# This is the commit message #127:

fixes

# This is the commit message #128:

fixes

# This is the commit message #129:

fixes

# This is the commit message #130:

fixes

# This is the commit message #131:

fixes

# This is the commit message #132:

fixes

# This is the commit message #133:

fixes

# This is the commit message #134:

fixes

# This is the commit message #135:

fixes

# This is the commit message #136:

fixes

# This is the commit message #137:

fixes

# This is the commit message #138:

fixes

# This is the commit message #139:

fixes

# This is the commit message #140:

fixes

# This is the commit message #141:

fixes

# This is the commit message #142:

fixes

# This is the commit message #143:

fixes

# This is the commit message #144:

fixes

# This is the commit message #145:

fixes

# This is the commit message #146:

fixes

# This is the commit message #147:

fixes

# This is the commit message #148:

fixes

# This is the commit message #149:

fixes

# This is the commit message #150:

fixes

# This is the commit message #151:

fixes

# This is the commit message #152:

fixes

# This is the commit message #153:

testing

# This is the commit message #154:

fixes

# This is the commit message #155:

fixes

# This is the commit message #156:

fixes

# This is the commit message #157:

fixes

# This is the commit message #158:

fixes

# This is the commit message #159:

fixes

# This is the commit message #160:

fixes

# This is the commit message #161:

fixes

# This is the commit message #162:

fixes

# This is the commit message #163:

fixes

# This is the commit message #164:

fixes

# This is the commit message #165:

fixes

# This is the commit message #166:

fixes

# This is the commit message #167:

fixes

# This is the commit message #168:

fixes

# This is the commit message #169:

fixes

# This is the commit message #170:

fixes

# This is the commit message #171:

fixes

# This is the commit message #172:

fixes

# This is the commit message #173:

fixes

# This is the commit message #174:

fixes

# This is the commit message #175:

fixes

# This is the commit message #176:

fixes

# This is the commit message #177:

fixes

# This is the commit message #178:

fixes

# This is the commit message #179:

fixes

# This is the commit message #180:

fixes

# This is the commit message #181:

fixes

# This is the commit message #182:

fixes

# This is the commit message #183:

fixes

# This is the commit message #184:

fixes

# This is the commit message #185:

fixes

# This is the commit message #186:

fixes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants