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

🐛 Installing fails if user account is named "algorand" #71

Open
SilentRhetoric opened this issue Jan 10, 2025 · 2 comments
Open

🐛 Installing fails if user account is named "algorand" #71

SilentRhetoric opened this issue Jan 10, 2025 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@SilentRhetoric
Copy link

Describe the bug
A fresh NodeKit install on Ubuntu in which the user account was already named algorand failed to install properly and did not produce a meaningful error.

To Reproduce
Steps to reproduce the behavior:

  1. With a Linux user account algorand
  2. Install NodeKit
  3. FATA: algod is not running

Expected behavior
NodeKit could detect the user account and throw a descriptive error.

Screenshots
image

Additional context
User was able to build a new image with a different user account name and NodeKit worked fine.

@SilentRhetoric SilentRhetoric changed the title 🐛 Installing fails if user account is named "algorand" 🐛 Jan 10, 2025
@SilentRhetoric SilentRhetoric changed the title Installing fails if user account is named "algorand" 🐛 🐛 Installing fails if user account is named "algorand" Jan 10, 2025
@tasosbit
Copy link
Contributor

Default systemd service runs algod with user=algorand - very likely related

We'll see what we can do. Worst case scenario we just warn people who have this username

@tasosbit
Copy link
Contributor

tasosbit commented Jan 20, 2025

We are unlikely to be able to do something about this, as we don't want to delve into "changing systemd service file" territory.

@dliptak001 The fix I would recommend is to rename the user account AND group from algorand to algo

@PhearZero implementation note: we should warn when we detect this, but need to take care not to confuse a service algorand user (uid < 1000) with a regular algorand user (uid >1000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants
@PhearZero @SilentRhetoric @tasosbit and others