geth container binary inconsistent with command options #454

Closed
opened 2023-07-19 02:55:40 +00:00 by dboreham · 7 comments
Owner

Testing mobymask-v2 stack I see this in the fixturenet-eth-geth container:

Incorrect Usage. flag provided but not defined: -log.vmodule

NAME:
   geth - the go-ethereum command line interface

USAGE:
   geth [global options] command [command options] [arguments...]

VERSION:
   1.11.5-statediff-4.3.9-alpha-4e7a42eb-20230406
Testing mobymask-v2 stack I see this in the fixturenet-eth-geth container: ``` Incorrect Usage. flag provided but not defined: -log.vmodule NAME: geth - the go-ethereum command line interface USAGE: geth [global options] command [command options] [arguments...] VERSION: 1.11.5-statediff-4.3.9-alpha-4e7a42eb-20230406 ```
Author
Owner

This may have crept in with some plugeth changes, unnoticed because we don't run the fixturenet-eth test on every PR.

It looks like this commit : 809889f9f0 (diff-e397b8ae6dcabdce76c66636365b2f565020818ba4d2d55591d8259feefb16e3R133) introduced a command line option that seems to be invalid for regular geth (but probably ok for plugeth).

The result is that the geth fixturenet doesn't work.

This may have crept in with some plugeth changes, unnoticed because we don't run the fixturenet-eth test on every PR. It looks like this commit : https://github.com/cerc-io/stack-orchestrator/commit/809889f9f03c843a56b7cf1eb76767dbf0e913f8#diff-e397b8ae6dcabdce76c66636365b2f565020818ba4d2d55591d8259feefb16e3R133 introduced a command line option that seems to be invalid for regular geth (but probably ok for plugeth). The result is that the geth fixturenet doesn't work.
Member

This is odd, I'm using geth fixturenet.

This is odd, I'm using geth fixturenet.
Member
~/cerc/go-ethereum  v1.11.6-statediff-v5 ✗= ❯ make geth
env GO111MODULE=on go run build/ci.go install ./cmd/geth
>>> /home/telackey/opt/go1.20.5/bin/go build -ldflags "-X github.com/ethereum/go-ethereum/internal/version.gitCommit=1b72d2f737a031fd6617aa0954a6a5b96a487426 -X github.com/ethereum/go-ethereum/internal/version.gitDate=20230718 -extldflags '-Wl,-z,stack-size=0x800000'" -tags urfave_cli_no_docs -trimpath -v -o /home/telackey/cerc/go-ethereum/build/bin/geth ./cmd/geth
Done building.
Run "./build/bin/geth" to launch geth.
~/cerc/go-ethereum  v1.11.6-statediff-v5 ✗= ❯ build/bin/geth --help | grep -i vmodule
    --log.vmodule value
``` ~/cerc/go-ethereum  v1.11.6-statediff-v5 ✗= ❯ make geth env GO111MODULE=on go run build/ci.go install ./cmd/geth >>> /home/telackey/opt/go1.20.5/bin/go build -ldflags "-X github.com/ethereum/go-ethereum/internal/version.gitCommit=1b72d2f737a031fd6617aa0954a6a5b96a487426 -X github.com/ethereum/go-ethereum/internal/version.gitDate=20230718 -extldflags '-Wl,-z,stack-size=0x800000'" -tags urfave_cli_no_docs -trimpath -v -o /home/telackey/cerc/go-ethereum/build/bin/geth ./cmd/geth Done building. Run "./build/bin/geth" to launch geth. ~/cerc/go-ethereum  v1.11.6-statediff-v5 ✗= ❯ build/bin/geth --help | grep -i vmodule --log.vmodule value ```
Member

I actually finally switched it, because for awhile geth had been warning that --vmodule was deprecated and we needed to switch to --log.vmodule.

I actually finally switched it, because for awhile geth had been _warning_ that `--vmodule` was deprecated and we needed to switch to `--log.vmodule`.
Author
Owner

This seems significant:

v1.11.6
This seems significant: ``` v1.11.6 ```
Author
Owner

It looks like the problem is that our go-ethereum repo changes default branch.
That is problematic if you have an existing cloned tree because there's no way to know from the client side that the default branch changed. My setup therefore continued building old code, even though I'd told it to pull from git and force a container rebuild.

It looks like the problem is that our go-ethereum repo changes default branch. That is problematic if you have an existing cloned tree because there's no way to know from the client side that the default branch changed. My setup therefore continued building old code, even though I'd told it to pull from git and force a container rebuild.
Author
Owner

Closing as machine-specific.

Closing as machine-specific.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#454
No description provided.