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

Self hosted instance can't reach internet #643

Open
Rizwan-Basheer opened this issue Jul 19, 2024 · 9 comments
Open

Self hosted instance can't reach internet #643

Rizwan-Basheer opened this issue Jul 19, 2024 · 9 comments

Comments

@Rizwan-Basheer
Copy link

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 Rizwan-Basheer changed the title My own cobalt instances not working My cobalt instances not working Jul 19, 2024
@2shiraz
Copy link

2shiraz commented Jul 19, 2024

Try using oAuth2 solution with new server IP

@Rizwan-Basheer
Copy link
Author

i try oAuth2 but it not start working

@ihatespawn
Copy link
Contributor

how did you create that instance

@wukko
Copy link
Member

wukko commented Jul 20, 2024

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

@wukko wukko changed the title My cobalt instances not working Self hosted instance can't reach internet Jul 20, 2024
@wukko
Copy link
Member

wukko commented Jul 20, 2024

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

@Rizwan-Basheer
Copy link
Author

Rizwan-Basheer commented Jul 20, 2024

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
Copy link
Author

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

@dumbmoron
Copy link
Member

dumbmoron commented Jul 20, 2024

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants