Timeout was reached (28) to nixos-unstable on calling nix flake update

Hello all,

I’ve been struck with this sudden problem, everything worked fine this morning, but right now, I started getting timeouts when trying to check for nixpkgs updates using flakes. Since I don’t see anyone else talking about this, I imagine this is just a me problem. Here’s the full output:

[vitorc@lambda:~/NixOS-config]$ nix flake update
warning: unable to download 'https://api.github.com/repos/nixos/nixpkgs/commits/nixos-unstable': Timeout was reached (28) Connection timed out after 15002 milliseconds; retrying in 307 ms (attempt 1/5)
warning: unable to download 'https://api.github.com/repos/nixos/nixpkgs/commits/nixos-unstable': Timeout was reached (28) Connection timed out after 15001 milliseconds; retrying in 503 ms (attempt 2/5)
warning: unable to download 'https://api.github.com/repos/nixos/nixpkgs/commits/nixos-unstable': Timeout was reached (28) Connection timed out after 15000 milliseconds; retrying in 1095 ms (attempt 3/5)
warning: unable to download 'https://api.github.com/repos/nixos/nixpkgs/commits/nixos-unstable': Timeout was reached (28) Connection timed out after 15000 milliseconds; retrying in 2515 ms (attempt 4/5)
warning: unable to download 'https://api.github.com/repos/nixos/nixpkgs/commits/nixos-unstable': Timeout was reached (28) Connection timed out after 15000 milliseconds; using cached version

Things I’ve already tried:

  • Checking connectivity (works as expected)
  • Rebooting (no difference)
  • Firefox works, curl works

At this point I’m out of ideas on how to even start debugging this, any help would be appreciated, thank you.

EDIT: possibly related to this? (marked as resolved already though): GitHub Status - Authentication issues related to API requests

github is doing github things

inputs.nixpkgs.url = "https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz";

bonus is that it also works on ipv6

1 Like

I know this might seem unusual, however could you tell me the result of running this command?

host -v -N 3 -t AAAA api.github.com

This is what I get from running that command:

[vitorc@lambda:~/NixOS-config]$ host -v -N 3 -t AAAA api.github.com
Trying "api.github.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51990
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;api.github.com.                        IN      AAAA

Received 32 bytes from 192.168.15.1#53 in 1 ms

This worked for me, btw. Thank you. Hopefully this is just a temporary GitHub issue and not something permanent on my end.

1 Like

It could be github having yet another oopsie, or it could be that you’re getting rate limited. setting access-tokens in nix.conf is one way to work around rate limiting from github, but it gets painful whenever your token expires because there is no tokenless fallback

That’s almost normal, I was just making sure that it wasn’t another instance of 0A000410:SSL routines::ssl error only in nix sandbox - #4 by MaxHearnden. There should be an SOA record. Just to rule out any DNS issues, could you run

host api.github.com

Output for that is:

[vitorc@lambda:~/iped-nix]$ host api.github.com
api.github.com has address 4.228.31.149

Wait, this might sound weird and irrelevant, but I’m from Brazil. Apparently, I just got news that our main Telecom Agency blocked GitHub’s API (Twitter post) for the whole country, possibly due to the World Cup going on. God, this is so stupid.

5 Likes