freyr-js icon indicating copy to clipboard operation
freyr-js copied to clipboard

Freyr Failed to Detect An Internet Connection

Open capeguy63 opened this issue 2 years ago • 9 comments

I have an issue with freyr detecting an internet connection.

   / __/_______  __  _______
  / /_/ ___/ _ \/ / / / ___/
 / __/ /  /  __/ /_/ / /
/_/ /_/   \___/\__, /_/
              /____/ v0.8.1

freyr - (c) Miraculous Owonubi <[email protected]>
------------------------------------------------------
[!] Failed To Detect An Internet Connection

Anyone knows how to solve this issue?

capeguy63 avatar Aug 19 '22 13:08 capeguy63

What does curl icanhazip.com say?

miraclx avatar Aug 19 '22 17:08 miraclx

It shows my IP address

capeguy63 avatar Aug 19 '22 17:08 capeguy63

Interesting. How did you install freyr and What version are you running?

miraclx avatar Aug 19 '22 18:08 miraclx

Installed through npm. Running v0.8.1. Previously i had the --global issue, not sure if its related

capeguy63 avatar Aug 22 '22 19:08 capeguy63

Can you try the latest master and see if that works for you? I patched an issue with network check a long time ago and don't expect v0.8.1 to have any issues. Just try master and see if that works.

$ git clone https://github.com/miraclx/freyr-js
$ cd freyr-js
$ npm install
$ node cli.js <song-url>

miraclx avatar Aug 23 '22 01:08 miraclx

Sorry, it still does not work for me

capeguy63 avatar Aug 24 '22 17:08 capeguy63

Can you try the docker images?

$ docker run -it --rm freyrcli/freyrjs-git:master <song-url>

miraclx avatar Aug 26 '22 19:08 miraclx

Sorry I am not sure how to run the docker. Im not good enough at python

capeguy63 avatar Aug 31 '22 12:08 capeguy63

Start here: https://docs.docker.com/

miraclx avatar Aug 31 '22 12:08 miraclx

I had the same issue. Using the docker package works.

kamiTT avatar Sep 18 '22 23:09 kamiTT

@kamiTT, can you describe your network setup?

  • Are you using a VPN?
  • What does curl icanhazip.com show?

Also, which version of freyr are you on? and how did you install it?

miraclx avatar Sep 19 '22 00:09 miraclx

I tried it with and without a vpn. curl icanhazip.com will output my IP address/the server IP address. I installed via yarn and I'm using version 0.8.1. I use the cloudfare DNS if that could affect it.

kamiTT avatar Sep 19 '22 01:09 kamiTT

Got it, I'll try to reproduce the issue and see if I can arrive at a fix. Thanks for the info.

miraclx avatar Sep 19 '22 01:09 miraclx

same issue here.. i am running from docker(windows), but works in ubuntu

vasanthtt avatar Nov 28 '22 09:11 vasanthtt

@vasanthtt, can you include logs? And describe your network setup

miraclx avatar Dec 03 '22 17:12 miraclx

If it's the network checking logic that is flaky, you can disable it with --no-net-check. But it's there for a reason, if freyr runs perfectly with that flag set, but reports no internet without the flag, we'd need to look into it more.

miraclx avatar Dec 03 '22 17:12 miraclx

Same issue here with version 0.9.0 installed with "npm install -g freyr" The first time I run freyr, it almost always says "Failed To Detect An Internet Connection". A second run with the exact same command just immediately after the faulty one is generally ok. Sure with --no-net-check, it works too.

ocococococ avatar Jan 15 '23 10:01 ocococococ

Yeah, I could confirm I had the same issue. Network checking over a VPN plain failed, while without it worked fine. I'll take a look at this soon.

miraclx avatar Jan 16 '23 10:01 miraclx

I haven't experienced this issue in a while. If anyone can provide an update on the state of this, that would be very much appreciated. Otherwise, I'll have to close this soon.

miraclx avatar Jun 24 '23 07:06 miraclx

Hi, at the moment, every time i try Freyr, a new error will appear.

I am currently trying docker but am hanging at "Awaiting user authentication"

Sorry but I have only super basic knowledge on python and none for docker. Not sure what I am doing wrong

capeguy63 avatar Jun 25 '23 07:06 capeguy63

Extracted into #529, can you provide the full logs?

miraclx avatar Jun 25 '23 07:06 miraclx