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

Incorrect parsing of --datadir with ‘=’ syntax on Ubuntu 24.04 via systemd (v1.30.2+) #8187

Open
mostwanted7 opened this issue Feb 10, 2025 · 3 comments
Assignees

Comments

@mostwanted7
Copy link

Description
On Ubuntu 24.04, when running Nethermind (v1.30.2 and later) via systemd, the application crashes when the --datadir argument is passed using the ‘=’ syntax (e.g., --datadir=/vm-datadisk/nethermind). The error message produced is:

Unrecognized command or argument '/vm-datadisk/nethermind'.

Steps to Reproduce

  1. Create or update a systemd service file with the following flags (in this exact order):
/usr/local/bin/nethermind \
  --datadir=/var/lib/nethermind \
  --network=holesky
  1. Start the service and observe logs, the nethermind service will crash.

Workarounds

  • Remove the ‘=’ sign:
/usr/local/bin/nethermind \
  --datadir /var/lib/nethermind \
  --network=holesky
  • Reorder the arguments (move datadir one line down)
/usr/local/bin/nethermind \
  --network=holesky \
  --datadir=/var/lib/nethermind

Environment

  • Operating System: Ubuntu 24.04
  • Version: 1.30.2 and later
  • Installation Method: Github release binary download
  • Consensus Client: Any

Additional context

  • The bug does NOT appear on previous versions of Nethermind.
  • Even though the flag is getting deprecated and replaced by data-dir, it is still supported with a warning, and therefore should work.
@kamilchodola
Copy link
Contributor

@rubo we adjusted sth in that matter recently, right?

@rubo
Copy link
Contributor

rubo commented Feb 10, 2025

I recall a user reported a similar issue on Discord that we couldn't reproduce. The workaround was to make the --data-dir not to be the first parameter. But we don't have any changes related to = handling.

This could be a bug in the underlying parser library. Needs an investigation.

@rubo rubo self-assigned this Feb 12, 2025
@rubo
Copy link
Contributor

rubo commented Feb 17, 2025

We were not able to reproduce the issue on our end.
@mostwanted7 Could you please try the same with Docker?

Also, a few remarks about the report above:

  • --network=holesky: Nethermind doesn't have a --network option. It's -c, --config instead. Otherwise, there will be the "Unrecognized command or argument..." error.

  • Even though the flag is getting deprecated and replaced by data-dir, it is still supported with a warning, and therefore should work.

    What warning do you mean? There should not be any warning about that.

ohko4711 added a commit to ohko4711/EthPillar-Endurance that referenced this issue Feb 23, 2025
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

3 participants