PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

Remote channel view doesn't show all available videos nor an indicator that new data is being retrieved

Open jeena opened this issue 3 years ago • 3 comments

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.

peertube-videos

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:

peertube-videos2

Steps to reproduce:

  1. Go to the channel view on your instance of a channel from a different instance which you haven't been visiting for some time.
  2. See that not all videos show up.
  3. Wait for some minutes.
  4. 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/):

jeena avatar Apr 11 '21 01:04 jeena

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

jeena avatar Apr 25 '21 00:04 jeena

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.

jeena avatar Jan 25 '22 03:01 jeena

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):

  1. Lookup the latest local video that remote instance itself has
  2. Search for that video's title on my instance
  3. If that video does not show up in search then:
  4. Delete the following relationship with that instance
  5. Re-add the following relationship with that instance
  6. 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).

Racer159 avatar Jun 12 '22 17:06 Racer159

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.

CyberFox001 avatar Mar 03 '23 23:03 CyberFox001

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:

Screenshot from 2023-03-03 23-45-48

After recycling the following relationship with [email protected] as described above:

image

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...

Racer159 avatar Mar 04 '23 05:03 Racer159

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.

CyberFox001 avatar Sep 04 '23 18:09 CyberFox001

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

rosbeef avatar Sep 25 '23 12:09 rosbeef