cobalt icon indicating copy to clipboard operation
cobalt copied to clipboard

Encountering 'file tunnel is empty' Issue When Attempting Self Hosting

Open Andy-Mckelvey05 opened this issue 6 months ago • 10 comments

problem description

I'm trying to get self hosting working on my machine, i have been the only person using it, so i don't suspect I'm getting blocked from YouTube's end. the yml listed below worked for me about a week ago, but today its giving me a 'file tunnel is empty, try again in a few minutes' issue. it consistently lags at 33% and then gives that error, so the web must be getting some data from the API right? (i don't have much technical knowledge on stuff like this so some guidance would be greatly appreciated)

Image Image

I've tried for a few hours now to get it working but with no success, has anyone encountered an issue like this or know how to fix it?

your instance configuration

services:
  cobalt-api:
    image: ghcr.io/imputnet/cobalt:11
    init: true
    read_only: true
    restart: unless-stopped
    container_name: cobalt-api
    ports:
      - 9000:9000
    environment:
      API_URL: "http://localhost:9000/"

  cobalt-web:
    container_name: cobalt-web
    restart: unless-stopped
    build:
      context: https://github.com/NotNite/cobalt-web-docker.git
      dockerfile: Dockerfile
      additional_contexts:
        cobalt-src: https://github.com/imputnet/cobalt.git
      args:
        WEB_HOST: "http://localhost:3000/"
        WEB_DEFAULT_API: "http://localhost:9000/"
    ports:
      - 3000:3000

Andy-Mckelvey05 avatar Oct 04 '25 17:10 Andy-Mckelvey05

I spun up my own self hosted instance today to try and get YouTube working but am having the exact same error. Hoping to find a fix.

gabbott507 avatar Oct 04 '25 18:10 gabbott507

Having this error as well. No idea how or why it is happening Other community instances are working just fine All i want to be able to do is download a video from youtube

IayZBoy avatar Oct 04 '25 19:10 IayZBoy

I'm having the same issue, but I can only download the first batch of episodes I downloaded when I set it up, and no others

YEEYEE58 avatar Oct 08 '25 17:10 YEEYEE58

bump, same here

dxcvvxd avatar Oct 12 '25 09:10 dxcvvxd

Same issue. Used to work fine, but stopped working some time ago.

CmdrSharp avatar Oct 17 '25 22:10 CmdrSharp

same

creasydude avatar Oct 19 '25 15:10 creasydude

For shorts it download normally but full Videos it will result in file tunnel is empty

Image

Locally hosted gui and api

d7eeem avatar Oct 23 '25 08:10 d7eeem

A trace on this shows that its due to a 403 error from youtube's side on affected content streaminfo URLs. Shorts and, for some reason, Rickroll come through fine. Its then transplaneted with an undefined dispatcher before I have no idea what happens next

Scrxtchy avatar Nov 11 '25 03:11 Scrxtchy

Same issue with self-hosted instances. Any logs we could share to help troubleshoot the issue?

sudocarlos avatar Nov 15 '25 13:11 sudocarlos

I think the problem is not what Cobalt is doing, it is what Cobalt isn't doing. Maybe there are solutions already implemented such as using a session, since to me it seems likely to be entangled with PO Tokens. Since cobalt by default uses IOS innertube, it means also working with youtube's rollout and that might mean setting up a session.

I've yet to test any of this, but others are free to, or otherwise comment if you've already tried doing so

Scrxtchy avatar Nov 15 '25 14:11 Scrxtchy

Having this same issue, anyone found a fix yet?

Lunascaped avatar Dec 20 '25 15:12 Lunascaped