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

Video views always 0 #6307

Closed
rorizhang opened this issue Mar 30, 2024 · 5 comments
Closed

Video views always 0 #6307

rorizhang opened this issue Mar 30, 2024 · 5 comments
Labels
Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor

Comments

@rorizhang
Copy link

rorizhang commented Mar 30, 2024

Describe the current behavior

Video views always 0

Steps to reproduce

1.install docker
2.install nginx proxy manager by docker
3.install peertube by docker
[docker-compose.yml]
services:

postgres:
image: postgres:13-alpine
env_file:
- .env
volumes:
- ./db:/var/lib/postgresql/data
restart: "always"

redis:
image: redis:6-alpine
volumes:
- ./redis:/data
restart: "always"

peertube:
image: chocobozzz/peertube:production-bookworm
env_file:
- .env
ports:
# - "1935:1935" # Comment if you don't want to use the live feature
- "20115:9000" # Uncomment if you use another webserver/proxy or test PeerTube in local, otherwise not suitable for production
volumes:
- ./data:/data
- ./config:/config
depends_on:
- postgres
- redis
restart: "always"

[.env]
POSTGRES_PASSWORD=XXX

POSTGRES_DB=peertube

PEERTUBE_DB_USERNAME=$POSTGRES_USER
PEERTUBE_DB_PASSWORD=$POSTGRES_PASSWORD
PEERTUBE_DB_SSL=false

PEERTUBE_DB_HOSTNAME=postgres

PEERTUBE_WEBSERVER_HOSTNAME=XXX

PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "uniquelocal", "172.26.0.1"]

PEERTUBE_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

PEERTUBE_SMTP_USERNAME=XXX
PEERTUBE_SMTP_PASSWORD=XXX

PEERTUBE_SMTP_HOSTNAME=XXX
PEERTUBE_SMTP_PORT=XXX
PEERTUBE_SMTP_FROM=XXX
PEERTUBE_SMTP_TLS=true
PEERTUBE_SMTP_DISABLE_STARTTLS=true
PEERTUBE_ADMIN_EMAIL=XXX

PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PUBLIC="public-read"
PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PRIVATE="private"

Describe the expected behavior

Why and how to resolve?

Additional information

This instance is deployed in a closed intranet environment. Should I pay attention to something?
CentOS 7.9
Docker Engine 26.0.0
Nginx Proxy Mnanger 2.10.4
Peertube pulled the latest by now

@Chocobozzz
Copy link
Owner

Hi,

Views are buffered so you may notice a delay before the counter is actually updated

@Chocobozzz Chocobozzz added the Status: Waiting for answer Waiting issue author answer label Apr 2, 2024
@rorizhang
Copy link
Author

I played all night. But it is still 0.

@Chocobozzz
Copy link
Owner

Can you enable peertube debug logs and paste them?

@rorizhang
Copy link
Author

rorizhang commented Apr 2, 2024

error_log.txt

Is it?

@Chocobozzz
Copy link
Owner

Thanks, the issue should be fixed by f8b8dc6

You can set geo_ip.enabled to false (https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L397) as a workaround until the next peertube version is released

@Chocobozzz Chocobozzz added Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor and removed Status: Waiting for answer Waiting issue author answer labels Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor
Projects
None yet
Development

No branches or pull requests

2 participants