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

cudominer: add package #80

Open
milahu opened this issue Oct 3, 2024 · 2 comments
Open

cudominer: add package #80

milahu opened this issue Oct 3, 2024 · 2 comments

Comments

@milahu
Copy link
Owner

milahu commented Oct 3, 2024

cryptocurrency miner from https://www.cudominer.com/cudo-miner-cryptocurrency-mining-software/

draft in milahu/nur-packages@843fed8

status: fails to run

readme.txt

$ ./result/bin/cudominercli
Pkg: Error reading from file.

$ strace ./result/bin/cudominercli 2>&1 | grep open
...
openat(AT_FDCWD, "/sys/fs/cgroup/memory/memory.limit_in_bytes", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
...

$ ls /sys/fs/cgroup/memory.* | cat
/sys/fs/cgroup/memory.numa_stat
/sys/fs/cgroup/memory.pressure
/sys/fs/cgroup/memory.reclaim
/sys/fs/cgroup/memory.stat



# https://stackoverflow.com/questions/65646317/sys-fs-cgroup-memory-memory-limit-in-bytes-not-present-in-fedora-33

$ findmnt /sys/fs/cgroup
TARGET         SOURCE  FSTYPE  OPTIONS
/sys/fs/cgroup cgroup2 cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot

The issue is related to new cgroup v2. To resolve this, revert cgroup to v1:

sudo sed -i '/^GRUB_CMDLINE_LINUX/ s/"$/ systemd.unified_cgroup_hierarchy=0"/' /etc/default/grub

and reboot.

After this /sys/fs/cgroup/memory/memory.limit_in_bytes will be present.

issue reported in discord chat https://discord.com/channels/541993453467336704/541993454180237333/1291413717568716862

upstream issue NixOS#333219 - ping @Nika03

the download url for install.sh seems to be stable for different users at cudominer.com

@Nika03
Copy link

Nika03 commented Oct 3, 2024

Hi, I just wanted to let you know that I'm only a user. I used this software on Windows but I haven't tried to use it on Linux since I use NixOS as my primary OS. CudoMiner was made primarily for Ubuntu as far as I'm aware. I haven't tried packaging software for Nix.

Here is a screenshot of the download page from CudoMiner for Ubuntu
Screenshot_20241003_184903
Here is the line of bash as text:
sudo su -c "bash <(wget -qO- https://download.cudo.org/tenants/135790374f46b0107c516a5f5e13069b/5e5f800fdf87209fdf8f9b61441e53a1/linux/x64/stable/install.sh)" root

I don't think I can be of assistance. Sorry.

@milahu
Copy link
Owner Author

milahu commented Oct 3, 2024

all good : )
i just wanted to share my progress
waiting for NixOS#333219 could take forever, because low priority

download page from CudoMiner

yepp, i have a user account at cudominer.com, and i get the same url for install.sh

a possible workaround for the cgroup2 error would be to downgrade to cgroup1
as described on stackoverflow
but i hope that cudominer will fix their code in the near future...

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

2 participants