PeerTube
PeerTube copied to clipboard
Remote channel view doesn't show all available videos nor an indicator that new data is being retrieved
Describe the current behavior
When I check the view which should show the videos available for a channel on a remote instance, I can't I see all videos from a channel from a different instance on my own instances UI and there is no indication about that this view is outdated and is being updated in the background.
On the right it's https://tilvids.com/video-channels/polarhive/videos and I can see 10 videos on their channel. On the left it's the same channel but viewed within my own instance and there I only can see 2 videos.
After having browsed around on my instance for a while and randomly decided to check back on that channel I realized that it has been updated in the background and now shows the same amount of videos:
Steps to reproduce:
- Go to the channel view on your instance of a channel from a different instance which you haven't been visiting for some time.
- See that not all videos show up.
- Wait for some minutes.
- Reload the page with that view, now all videos show up.
Describe the expected behavior
Some kind of indicator should show that new data from a remote instance is being retrieved and the view will be updated so that I understand that I'm looking at outdated data.
Additional information
I'm not sure if that also affects this channels videos in the subscriptions, I started investigating because I felt that too few videos show up there. But I don't have a screenshot of before and after and my memory might be false.
-
PeerTube instance:
- URL: https://tube.jeena.net
- version: 3.0.0
- NodeJS version: v12.22.1
- Ffmpeg version: 4.3.2-0york0~18.04
-
Browser name, version and platforms on which you could reproduce the bug: Firefox on Arch Linux
-
Link to browser console log if relevant:
-
Link to server log if relevant (
journalctl
or/var/www/peertube/storage/logs/
):
In some cases waiting for an update doesn't help and new videos never show up, see https://tube.jeena.net/videos/watch/4a00e7ca-c9a2-40b4-b8c8-6820c278ddcc
With v4 it got much worse, now practically no new remote videos show up on the Subscriptions page and even local videos which are marked as Internal don't show up anymore.
I wasn't able to fully dig into it but I have seen similar behavior on my instance for a few of the servers that I had been following. I was able to work around it doing the following for each remote instance (leaving here in case this flow helps others):
- Lookup the latest local video that remote instance itself has
- Search for that video's title on my instance
- If that video does not show up in search then:
- Delete the following relationship with that instance
- Re-add the following relationship with that instance
- Wait for PeerTube to re-sync the remote instance
My theory for what was happening (unconfirmed) is that the remote instance was either rebuilt, migrated or was offline for long enough that it basically de-synced and needed to be forcibly re-added (I did notice that a few of the instances appeared to have changed since I had initially followed them, one even noticeably having a completely different set of videos).
Is this issue still there in latest version of PeerTube ?
I got the same issue with the instance I use and I was thinking that come from this instance. Didn't know it was a PeerTube bug.
But my instance is at version 4.3.1, so I can't tell if this issue is still there with latest version.
The issue definitely isn't as prevalent as it once was, but I checked more deeply and I still found at least one example across mine and another instance (both of us on 5.0.1).
As I found it:
After recycling the following relationship with [email protected]
as described above:
That said though, I have kept the same instance through upgrades and didn't refresh every following relationship so the issue might just have simply stuck around for that long...
On an instance with version 5.2.0, we still have the problem.
The video list of a remote channel is not up to date with the channel on its own instance.
On a channel, I got mostly 40 videos late.
Is this really a feature request? It should be a normal behaviour. Is this related to #3213 ?
Workaround: To make subscriptions sync again :
- go to the channel page
- unsubscribe
- resubscribe
- wait seconds Done