Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miner-genesis-init-container fail #11

Closed
julienpierini opened this issue Apr 20, 2018 · 9 comments
Closed

miner-genesis-init-container fail #11

julienpierini opened this issue Apr 20, 2018 · 9 comments

Comments

@julienpierini
Copy link

Hi,

I'm trying to deploy kuberneteth on my kubeadm cluster v1.10 but none miner containers can't run (it's in pending) because it wait for miner-genesis-init-container.
But my miner-genesis-init-container can't mkdir and touch in the volume mount because it haven't enough right : http://prntscr.com/j7sris
I don't know what i can do ?

@MaximilianMeister
Copy link
Owner

@JPyml this might be a host specific issue, can you check if /var/lib/docker/geth-storage is writable? on the kubeadm host (not the container)

@julienpierini
Copy link
Author

julienpierini commented Apr 20, 2018

I just chmod and still the same issue : http://prntscr.com/j7t4zk
and i have deleted my pod

@MaximilianMeister
Copy link
Owner

this is probably due to the usage of hostPath which is very limited, i wonder if it makes sense to switch to local at some point

I just chmod and still the same issue : http://prntscr.com/j7t4zk

can you try chown with whatever user is in charge of the container?

@julienpierini
Copy link
Author

julienpierini commented Apr 20, 2018

I run my kubernetes with my root account but I have try with my commun user but i have still the same issue
http://prntscr.com/j7tawn

@MaximilianMeister
Copy link
Owner

@JPyml ok, i'll try to reproduce the issue. thanks for the report

@Strydom
Copy link

Strydom commented May 1, 2018

It looks like this could be related to ethereum/go-ethereum#16464

The new docker image does not run with root permissions...

Dropping back to v1.8.3 of the ethereum/go-client image works 👍

@MaximilianMeister
Copy link
Owner

It looks like this could be related to ethereum/go-ethereum#16464

The new docker image does not run with root permissions...

@Strydom good catch! thanks for the hint

@InflatibleYoshi
Copy link

InflatibleYoshi commented May 3, 2018

@MaximilianMeister In node.toml.erb, Line 50 there's a typo
HTTPModules = ["db", "eth", "net", "web3", "personal", "web3"]
Replace the second web3 with "miner" and it worked for me.
EDIT: Never mind that, mining is still broken.

@MaximilianMeister
Copy link
Owner

this is fixed in geth since release 1.8.6 see here

the breaking PR has been reverted

i've tested it on k8s 1.9.7 but I assume it is fixed as well on 1.10

@JPyml would be great if you can test it with a geth version >= 1.8.6 again, but i'll close the issue for now. feel free to reopen when it is still broken

thanks for the help

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

No branches or pull requests

4 participants