rdavydov / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.11k stars 326 forks source link

Portainer+Analytics #366

Closed vegych closed 9 months ago

vegych commented 9 months ago

Describe the bug

I am using the miner on a local server in a docker container. I tried to run analytics on 127.0.0.0.1 and 0.0.0.0.0, but the page is still inaccessible. The port on the router is open. At the same time, if I run the miner on my computer, everything opens fine. Where can I make a mistake?

Steps to reproduce

Screenshot_1 Screenshot_3

Expected behavior

Running analytics

Operating system

Armbian 23.08.0-trunk Jammy with Linux 5.15.131-ophub

Python version

3.10.12

Miner version

1.8.6

Other relevant software versions

No response

Logs

There's no error logs

Additional context

No response

H4K0N42 commented 9 months ago

You are trying to connect to your servers privat ip address with port 5000 and not 0.0.0.0:5000 or 127.0.0.1:5000 right?

hostname -I | awk '{print $1}'
vegych commented 9 months ago

I have tried all the ip options: 0.0.0.0 127.0.0.1 local ip of the server, in my case - 192.168.0.117 And all of them do not open the page with analytics

H4K0N42 commented 9 months ago

Try this in your config:

twitch_miner.analytics(host="localhost", port=5000, refresh=5, days_ago=7)   # Start the Analytics web-server

Then docker compose restart and connect to "http://192.168.0.117:5000"

vegych commented 9 months ago

It gives an error ERR_CONNECTION_REFUSED Tried localhost:5000 and 192.168.0.117:5000

H4K0N42 commented 9 months ago

I just checked it on my server, I run it native and have the same problem now. @rdavydov looks like a fault in the new update and not in the config

rdavydov commented 9 months ago

I just checked it on my server, I run it native and have the same problem now. @rdavydov looks like a fault in the new update and not in the config

No, nothing was changed in the Analytics code.

rdavydov commented 9 months ago

@vegych and @H4K0N42, please show your run.py file and your docker-compose config or your docker run command.

vegych commented 9 months ago

I'm a bit confused about which docker-compose we're talking about, but I use portainer to access the container image image image

run.zip

rdavydov commented 9 months ago

1) Did you read https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/wiki/Deploy-Docker-container-in-Portainer ? 2) Can you try the docker run command as stated in the README?

vegych commented 9 months ago

I just used these instructions to install via portainer. But the point about access to analytics is not clear - how to connect to this ip... This is what came up after entering the command image

rdavydov commented 9 months ago

You have to specify the correct path and understand what you're doing, not just copy and paste the command.

Also, this is not an issue and not a bug. Converting this to a discussion.