-
Notifications
You must be signed in to change notification settings - Fork 373
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
[Unraid OS] Error when starting docker #386
Comments
Need more info.
How exactly was this done? I mean what commands/actions?
What folder exactly?
How exactly was this done? I mean what commands/actions? |
You need to get in contact with whomever is maintaining that unraid app install as it is not being managed by rdavydov and therefore out of their hands, my guess is that the installer is misconfigured. Please contact Unraid do not make an report here as this is not caused by the application / docker image but rather the container being misconfigured. |
Thank you for posting that information. I will try to apply to my install.
Have a great day!
…On Tue, Oct 24, 2023, 8:27 AM c0rrre ***@***.***> wrote:
Hi,
im also using the miner in Unraid and here is my configuration:
[image: image]
<https://user-images.githubusercontent.com/5563418/277671827-f973bf43-7aa4-4bda-9b7a-bbd1f720fc30.png>
Make sure to check the path for main.py and mount the file directly:
[image: image]
<https://user-images.githubusercontent.com/5563418/277672161-cce1fe77-14ba-4b4c-a2aa-f51360c5f12a.png>
The run.py (or main.py in my case) has to exist in the appdata folder
—
Reply to this email directly, view it on GitHub
<#386 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHRWWFXINGEHNYR7F4P7NLYA662PAVCNFSM6AAAAAA6K6CGNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZXGIYDGNJUGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
**I'm sorry I am not currently equipped with the knowledge that you are seeking. Essentially, I installed the docker application from the unraid store, this is the one: Twitch-Channel-Points-Miner-Leander**
I am sorry, I did not intend to create issues. I reported the problem to the wrong place. I am new to github and lack epertise to answer most of these questions. no doubt it's a configuration error. I'm sorry again to bother you. |
I was able to move the run.py to the directory its looking for, however I cannot get the container to start. In the log I get the following error message.. /usr/local/bin/python: can't find 'main' module in '/usr/src/app/run.py' I only added my twitch credentials and a single streamer in the run.py example. Any thoughts or ideas are much appreciated. |
\UNRAID\appdata\twitchminer\run.py\run.py This path is wrong |
@segaastrocity You need to give us more to go on here, Please provide screenshots of your current set up with more detail we cant help you at all. While I know very little about unraid I know a fair bit about docker. |
Most likely it should be What is the contents of your |
Right, and these too. @segaastrocity please also provide screenshots just like @c0rrre did. This will help a lot in understanding what's wrong. |
I think I fixed it! It's now running and i just activated it through the twitch window from the log file with the code. I'm now trying to access the web interface and coming into some issues but i will mess with them for a few minutes and then report back with screenshots. I apologize for not providing everything needed but I wanted to specifically thank all of you for your time, efforts and energy. I am truly grateful for you and appreciate you very much! |
Most likely you should change the run.py file accordingly. Please provide its full contents. Don't forget to omit your credentials. |
in your .py file make sure the port is set to 5000 and not 5555. Is the logs saying that the analytics page is running? |
The container port is 5000, but in unraid I can set a specific port to avoid conflicts with other services. I don't think the webserver is running. Can you tell me how I can tell? Here is a copy of my file, with the import stuff removed: `# -- coding: utf-8 -- import logging twitch_miner = TwitchChannelPointsMiner( You can customize the settings for each streamer. If not settings were provided, the script would use the streamer_settings from TwitchChannelPointsMiner.If no streamer_settings are provided in TwitchChannelPointsMiner the script will use default settings.The streamers array can be a String -> username or Streamer instance.The settings priority are: settings in mine function, settings in TwitchChannelPointsMiner instance, default settings.For example, if in the mine function you don't provide any value for 'make_prediction' but you have set it on TwitchChannelPointsMiner instance, the script will take the value from here.If you haven't set any value even in the instance the default one will be used#twitch_miner.analytics(host="127.0.0.1", port=5000, refresh=5, days_ago=7) # Start the Analytics web-server twitch_miner.mine( |
if this is easier, IDK why the formatting got strange, I copied out of notepad++ |
Uncomment the line Just remove the # sign in the beginning of the line. |
At this point you need to actually read the config options, this is basic configuration stuff. Change remove the # at the start at: #twitch_miner.analytics(host="127.0.0.1", port=5000, refresh=5, days_ago=7) |
And set |
Also, changing |
Thank you so much for your help! You guys are awesome. I hope you all
have a great week and I will be more adventurous next time and poke through
all of the options in the configuration file. I guess I'm a little spoonfed
babby with a lot of these unraid docker containers.
I've learned alot and never expected to have so many people willing to tell
me what is wrong.
…On Tue, Oct 24, 2023, 11:12 AM Roman Davydov ***@***.***> wrote:
Also, changing host="127.0.0.1" to host="0.0.0.0" in the run.py file
should be your next step in case it still doesn't work.
—
Reply to this email directly, view it on GitHub
<#386 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHRWWBNCKTGVDEJ54RBZOLYA7SIRAVCNFSM6AAAAAA6K6CGNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZXGU3TCOJSGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Is this issue solved and can be closed? @segaastrocity It would be nice of you to leave a comment before closing the issue, so it will help other people with the same problem. Did you manage to solve this issue? What was the cause? |
My issue was that the .py file was not in the correct location. My setup in
unraid was the default, but once I moved the .py to the proper location it
began running.
I have not yet edit the config file to run the webserver but i should be
able to do so without issue thanks to your help.
this issue can be closed.
…On Thu, Oct 26, 2023 at 6:09 AM Roman Davydov ***@***.***> wrote:
Is this issue solved and can be closed? @segaastrocity
<https://github.com/segaastrocity> It would be nice of you to leave a
comment before closing the issue, so it will help other people with the
same problem. Did you manage to solve this issue? What was the cause?
—
Reply to this email directly, view it on GitHub
<#386 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHRWWGTOLYL2TBI7V46H7DYBJAH5AVCNFSM6AAAAAA6K6CGNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBQHEYDMMBZGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I have the same issue on unraid. Where is the correct location? |
@WaffleMaster22 you can tag @segaastrocity so they would receive a mention notification. |
Describe the bug
I am running this on unraid from the app store, this in particular (Twitch-Channel-Points-Miner-Leander
rdavidoff)
I have updated the example run.py and placed it into the folder as outlined in the setup.
When trying to start, the log shows the following: /usr/local/bin/python: can't find 'main' module in '/usr/src/app/run.py'
I'm not sure how to troubleshoot further. I hope this is the right place to ask this question, any help/advice would be appreciated as I am pretty inexperienced with this.
Steps to reproduce
Expected behavior
I would like the docker to start.
Operating system
linux unraid
Python version
UNK
Miner version
UNK
Other relevant software versions
No response
Logs
I am unsure how to add this to my script. I'm sorry.
Additional context
No response
The text was updated successfully, but these errors were encountered: