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

TwitchDropsMiner => UNRAID server ? #618

Open
Lifeng77X opened this issue Nov 14, 2024 · 18 comments
Open

TwitchDropsMiner => UNRAID server ? #618

Lifeng77X opened this issue Nov 14, 2024 · 18 comments
Labels
Question Further information is requested

Comments

@Lifeng77X
Copy link

Hello, has anyone successfully used "TwitchDropsMiner" on a server type "UNRAID"? If so, which tutorial did you follow?
I would be very interested.
Thank you.

@DevilXD DevilXD added the Question Further information is requested label Nov 16, 2024
@TomerGamerTV
Copy link

Because the dev doesn't want you to autofarm on servers you might need to set up a linux/windows VM and run the program there

@DevilXD
Copy link
Owner

DevilXD commented Nov 19, 2024

I actually don't have that much of an issue with using a server in particular, other than maybe the user not tending to it often enough, and hoping some kind of autorestart will do. What usually ends up happening, is Twitch changes something, and then keeps getting hammered with errors, over and over, That's the reason why the miner does not include any kind of automatic restart - when it breaks, it's not supposed to be used anymore, until it's fixed back up.

The biggest issue with server usage is people setting up farms with thousands of accounts, basically the above, but thousands times worse. Twitch has a way of defending itself from this, but I don't want to contribute to the problem by providing the tools to do it. This is supposed to be a single-instance user-friendly desktop application.

I personally don't have any experience with RAID servers, so can't really help here. If anyone else has any knowledge about the topic, they're free to respond here.

@Lifeng77X
Copy link
Author

Hello, I come from the Windows world, so I'm not very skilled when it comes to Linux. My Unraid server (which is just for hosting a Plex server) is why I wanted to add the Twitch drop recovery function. Unraid already has integrated applications via a community catalog, but not Twitch drops. I know I can install it through what they call a Docker, but with very little knowledge of Linux, I get lost very easily. The only solution, for now, while I improve my skills and my research on the subject increases, is to use a Windows VM and install it there. I hope this doesn't take too long because VMs tend to put a heavy load on the CPU and result in significant energy consumption. But thank you for bringing up the topic again.

@TomerGamerTV
Copy link

Hello, I come from the Windows world, so I'm not very skilled when it comes to Linux. My Unraid server (which is just for hosting a Plex server) is why I wanted to add the Twitch drop recovery function. Unraid already has integrated applications via a community catalog, but not Twitch drops. I know I can install it through what they call a Docker, but with very little knowledge of Linux, I get lost very easily. The only solution, for now, while I improve my skills and my research on the subject increases, is to use a Windows VM and install it there. I hope this doesn't take too long because VMs tend to put a heavy load on the CPU and result in significant energy consumption. But thank you for bringing up the topic again.

If you are going to use a windows VM I recommend using a modified ISO that gets rid of all the bloat so the system will run better

@Lifeng77X
Copy link
Author

Bonjour, je viens du monde Windows, donc je ne suis pas très habile quand il s'agit de Linux. Mon serveur Unraid (qui est juste pour héberger un serveur Plex) est la raison pour laquelle je voulais ajouter la fonction de récupération de la goutte Twitch. Unraid a déjà intégré des applications via un catalogue communautaire, mais pas Twitch drops. Je sais que je peux l'installer à travers ce qu'ils appellent un Docker, mais avec très peu de connaissance de Linux, je me perds très facilement. La seule solution, pour l'instant, alors que j'améliore mes compétences et mes recherches sur le sujet augmentent, est d'utiliser une VM Windows et de l'y installer. J'espère que cela ne prendra pas trop de temps parce que les machines de VM ont tendance à mettre une lourde charge sur le CPU et à entraîner une consommation d'énergie significative. Mais merci d'avoir abordé à nouveau le sujet.

Si vous devez utiliser une fenêtre VM je recommande d'utiliser une ISO modifiée qui se débarrasse de tout le gonflement, donc le système fonctionnera mieux

Hello, I was thinking of a modified version of Windows called "Arium 11.3".

@bitterbutt
Copy link

As someone who also has an Unraid server and has been using it for years- the "Community Applications" that are available are just glorified Dockerfile's that people have modified to be easily used with Unraid.

Now, due to the nature of the Miner, I imagine I could containerize it... But like DevilXD said "when it breaks, it's not supposed to be used anymore". Of course I could just have the container not restart itself upon erroring. I'll think about it.

@JourneyOver
Copy link

@bitterbutt if you do end up doing all this, try and see if you could get it working on an alpine base to try and minimize the size of the container some. I've got a dockerfile/container going right now myself that I've been trying to convert to be alpine based but there are some dependencies I'm lost on being able to switch from debian to alpine to get things working.

@TomerGamerTV

This comment was marked as off-topic.

@starkayc
Copy link

Was able to get it running on a Proxmox LXC running docker. Here's the two files used. Added a docker-compose if you need it.
Credits: https://github.com/fireph/docker-twitch-drops-miner

Dockerfile:

# Pull base image.
FROM jlesage/baseimage-gui:ubuntu-22.04-v4

MAINTAINER fireph

# Environment
ENV LANG=en_US.UTF-8
ENV DARK_MODE=1
ENV KEEP_APP_RUNNING=1
ENV TDM_VERSION_TAG 15-dev
ENV APP_ICON_URL https://raw.githubusercontent.com/DevilXD/TwitchDropsMiner/refs/heads/master/appimage/pickaxe.png

# Install Twitch Drops Miner
RUN apt-get update -y
RUN apt-get install -y wget unzip libc6 gir1.2-appindicator3-0.1 language-pack-en fonts-noto-color-emoji
RUN wget -P /tmp/ https://github.com/DevilXD/TwitchDropsMiner/releases/download/dev-build/Twitch.Drops.Miner.Linux.PyInstaller.zip
RUN mkdir /TwitchDropsMiner
RUN unzip -p /tmp/Twitch.Drops.Miner.Linux.PyInstaller.zip "Twitch Drops Miner/Twitch Drops Miner (by DevilXD)" >/TwitchDropsMiner/TwitchDropsMiner
RUN chmod +x /TwitchDropsMiner/TwitchDropsMiner
RUN rm -rf /tmp

# Link config folder files
RUN mkdir /TwitchDropsMiner/config
RUN ln -s /TwitchDropsMiner/config/settings.json /TwitchDropsMiner/settings.json
RUN ln -s /TwitchDropsMiner/config/cookies.jar /TwitchDropsMiner/cookies.jar

# Make sure permissions are gonna work
RUN chmod -R 777 /TwitchDropsMiner

# Copy the start script.
COPY startapp.sh /startapp.sh
RUN chmod +x /startapp.sh

# Generate and install favicons
RUN install_app_icon.sh "$APP_ICON_URL"

# Set the name/version of the application.
RUN set-cont-env APP_NAME "Twitch Drops Miner"
RUN set-cont-env APP_VERSION "$TDM_VERSION_TAG"

startapp.sh:

#!/bin/sh
exec /TwitchDropsMiner/TwitchDropsMiner

docker-compose.yml:

version: "3"

services:
  twitchdropsminer:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: twitchdropsminer
    ports:
    - 5800:5800
    volumes:
      - $PWD/config:/TwitchDropsMiner/config
    restart: always

Then just run docker compose build followed by docker compose up -d. Then head to SERVER_IP:5800

@DevilXD
Copy link
Owner

DevilXD commented Dec 1, 2024

Is "Proxmox LXC" a type of an UNRAID server?

@starkayc
Copy link

starkayc commented Dec 1, 2024

Is "Proxmox LXC" a type of an UNRAID server?

Hmm, Proxmox is pretty much a hypervision/OS and LXC is like a VM but lightweight. I just run docker on it and I know UNRAID runs docker. So, the Dockerfile I provided should work.

@Lifeng77X
Copy link
Author

Lifeng77X commented Dec 1, 2024

"Proxmox LXC" est-il un type de serveur UNRAID?

Hmm, Proxmox est à peu près une hypervision/OS et LXC est comme une VM mais légère. Je lance juste le docker dessus et je sais qu'UNRAID lance le docker. Donc, le Dockerfile que j'ai fourni devrait fonctionner.


On my "UNRAID" server in "APPS"

image

If I search for "twitch drops miner," it doesn't find any application. However, if I click on "click more results on Docker Hub,"

image

He finds me other applications, some of which have the same name but come from different people.
I find yours as well!

image
image

I arrive on the configuration page. (Attention, for the solution to the problem, please take into account the link from here.)
"#618 (comment)"

image

Since I don't understand anything and I come from the Windows environment, I won't touch anything and I'll just confirm!

image

Everything is settling in....

image

Except that it gives me a command error, is it due to the fact that I didn't configure the "config" correctly because of a lack of knowledge?

image

Since I encountered an error during installation, when I launch "docker," it shows me this error.

image

I tried to detail the installation process as much as possible in case my error is so obvious that it jumps out at you. As I mentioned, I'm not comfortable with the world of Linux and the terms used there. However, I'm not giving up, and I'm testing different things to learn how to use it...

@starkayc
Copy link

starkayc commented Dec 2, 2024

"Proxmox LXC" est-il un type de serveur UNRAID?

Hmm, Proxmox est à peu près une hypervision/OS et LXC est comme une VM mais légère. Je lance juste le docker dessus et je sais qu'UNRAID lance le docker. Donc, le Dockerfile que j'ai fourni devrait fonctionner.

On my "UNRAID" server in "APPS"

image

If I search for "twitch drops miner," it doesn't find any application. However, if I click on "click more results on Docker Hub,"

image

He finds me other applications, some of which have the same name but come from different people. I find yours as well!

image image

I arrive on the configuration page.

image

Since I don't understand anything and I come from the Windows environment, I won't touch anything and I'll just confirm!

image

Everything is settling in....

image

Except that it gives me a command error, is it due to the fact that I didn't configure the "config" correctly because of a lack of knowledge?

image

Since I encountered an error during installation, when I launch "docker," it shows me this error.

image

I tried to detail the installation process as much as possible in case my error is so obvious that it jumps out at you. As I mentioned, I'm not comfortable with the world of Linux and the terms used there. However, I'm not giving up, and I'm testing different things to learn how to use it...

I don't use Unraid but it seems like it created a bunch of unneeded environments and it got the volumes/ports wrong. If you're able to manually input them then all you need is the volume to be path/to/your/data:/TwitchDropsMiner/config and the ports to 5800:5800 anything else it added is not needed.

@peraperkan
Copy link

"Proxmox LXC" est-il un type de serveur UNRAID?

Hmm, Proxmox est à peu près une hypervision/OS et LXC est comme une VM mais légère. Je lance juste le docker dessus et je sais qu'UNRAID lance le docker. Donc, le Dockerfile que j'ai fourni devrait fonctionner.

On my "UNRAID" server in "APPS"

image

If I search for "twitch drops miner," it doesn't find any application. However, if I click on "click more results on Docker Hub,"

image

He finds me other applications, some of which have the same name but come from different people. I find yours as well!

image image

I arrive on the configuration page.

image

Since I don't understand anything and I come from the Windows environment, I won't touch anything and I'll just confirm!

image

Everything is settling in....

image

Except that it gives me a command error, is it due to the fact that I didn't configure the "config" correctly because of a lack of knowledge?

image

Since I encountered an error during installation, when I launch "docker," it shows me this error.

image

I tried to detail the installation process as much as possible in case my error is so obvious that it jumps out at you. As I mentioned, I'm not comfortable with the world of Linux and the terms used there. However, I'm not giving up, and I'm testing different things to learn how to use it...

I have tried to get this working and ended up using this repo (https://hub.docker.com/r/starkayc/twitch-drops-miner/), left all at default and had no issues, went to localhost:5800 and all is ok

@Lifeng77X
Copy link
Author

"Proxmox LXC" est-il un type de serveur UNRAID?

Hmm, Proxmox est peu à proximité une hypervision/OS et LXC est comme une VM mais légère. Je lance juste le docker dessus et je sais qu'UNRAID lance le docker. Donc, le Dockerfile que j'ai devrait fournir du système exécuté.

Sur mon serveur "UNRAID" dans "APPS"

imageSi je cherche "twitch gouttes à la tireur", il ne trouve aucune application. Cependant, si je clique sur "cliquer sur plus de résultats sur Docker Hub,"

imageIl me trouve d'autres applications, dont certaines ont le même nom mais viennent de personnes différentes. Je trouve la tienne aussi bien.

image imageJ'arrive sur la page de configuration.

imagePuisque je ne comprends rien et que je viens de l'environnement Windows, je ne toucherai rien et je le confirmerai.

imageTout s'installe dans...

imageSauf qu'il me donne une erreur de commande, est-ce dû au fait que je n'ai pas correctement configuré le "config" à cause d'un manque de connaissances ?

imageComme j'ai rencontré une erreur lors de l'installation, quand je lance "docker", il me montre cette erreur.

imageJ'ai essayé de détailler le processus d'installation autant que possible au cas où mon erreur serait si évidente qu'elle vous surfertraite. Comme je l'ai dit, je ne suis pas à l'aise avec le monde de Linux et les termes utilisés là-bas. Cependant, je n'abandonne pas, et je teste différentes choses pour apprendre à l'utiliser...

J'ai essayé de faire fonctionner ce et j'ai fini par utiliser ce repo (https://hub.docker.com/r/starkayc/twitch-drops-miner/), tout reste par défaut et n'a eu aucun problème, allé à localhost:5800 et tout est ok

Hello Peraperkan, I still have the same error.

image

At what point did you modify something regarding my installation process mentioned earlier?

@bolagnaise
Copy link

bolagnaise commented Dec 8, 2024

@Lifeng77X @peraperkan

Incredibly easy to get this container working. I have it up and running mining right now

https://i.imgur.com/9ewM9Ml.png

@justvetrex
Copy link

@Lifeng77X
You are using the default bridge network for your container, so the ports you map can't be already in use by a separate container on this bridge or the host itself. Regarding the error message, 0.0.0.0:5900: bind: address already in use it looks like this is the case.
Are you running VMs on your unRAID-Server? As soon as you start a VM with a virtual GPU, the Port 5900/TCP is used for the VNC connection to the VM.

You can try to shut down your VM(s) and see if the container starts. Otherwise, you can try to change the port mapping in the container settings so that Port 5900 of the container maps to a different Host Port (e.g., 5901). As @starkayc already said, maybe you can even remove the port mapping to 5900 completely.

@Lifeng77X
Copy link
Author

@bolagnaise , @justvetrex Thank you very much for your help; I found my mistake thanks to your assistance! I’m linking the image where the problem was in case others also want to install it on UNRAID.

solution

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

No branches or pull requests

9 participants