cobalt icon indicating copy to clipboard operation
cobalt copied to clipboard

Self hosted instance can't reach internet

Open Rizwan-Basheer opened this issue 1 year ago • 9 comments

the main cobalt.tools instance working well but i when create my own instance first it working well after two days it stops working i reinstall it but it not works then i install it on other two different servers but it also not working on those servers i always get this response

{"status": "error", "text": "i couldn't connect to the service api. maybe it's down, or cobalt got blocked. try again, but if error persists, check the <a class="text-backdrop link" href="https://status.cobalt.tools/" target="_blank">status page or <a class="text-backdrop link" href="https://github.com/imputnet/cobalt" target="_blank">create an issue on github." }

Rizwan-Basheer avatar Jul 19 '24 09:07 Rizwan-Basheer

Try using oAuth2 solution with new server IP

2shiraz avatar Jul 19 '24 19:07 2shiraz

i try oAuth2 but it not start working

Rizwan-Basheer avatar Jul 20 '24 09:07 Rizwan-Basheer

how did you create that instance

ihatespawn avatar Jul 20 '24 10:07 ihatespawn

have you considered creating an issue using a clearly labeled template? image

wukko avatar Jul 20 '24 10:07 wukko

what links cause this error? can you give me more context?

wukko avatar Jul 20 '24 10:07 wukko

thats the video url "https://www.youtube.com/watch?v=6qIE4cR4Fqc" which is working on main instance but at my intances any urls including above url are not working.

i run this command in terminal "npm run token:youtube" then i open the url in other window and put the code and continue with a gmail account which is not important for me.

i create instances by git clone and my node version is 20.15.1

other services like soundcloud and reddit are working perfectly

Rizwan-Basheer avatar Jul 20 '24 13:07 Rizwan-Basheer

oh i found the problem before i using FREEBIND_CIDR=2a01:4f8::::/64 and the instance not works now i remove it try again now the instance start working but how can i use FREEBIND_CIDR or force cobalt to use ipv6

Rizwan-Basheer avatar Jul 20 '24 18:07 Rizwan-Basheer

oh i found the problem before i using FREEBIND_CIDR=2a01:4f8::::/64 and the instance not works now i remove it try again now the instance start working but how can i use FREEBIND_CIDR or force cobalt to use ipv6

you can’t force cobalt to use ipv6. if you run cobalt in a docker container that has an ipv6 address, or directly on a server that has an ipv6 address, it will prefer using ipv6 and fallback to ipv4 only for services that don’t support it — but this is not a special feature of cobalt, it’s just how networking works.

dumbmoron avatar Jul 20 '24 18:07 dumbmoron

if you really want cobalt to only use ipv6, just ensure wherever you are running it has no ipv4 default route

dumbmoron avatar Jul 20 '24 18:07 dumbmoron